大数值下的错误计算:正割函数sec(x)和余割函数csc(x)
原文英文,约200词,阅读约需1分钟。发表于: 。In this blog post, we explore incorrect calculations of the secant function sec(x) and cosecant function csc(x) for large numbers in MATLAB. Example 1. Given that x = 1234567890888777.123,...
本文讨论了MATLAB中对大数的正割函数sec(x)和余割函数csc(x)的计算错误。以x = 1234567890888777.123为例,MATLAB输出结果与正确值相差甚远,错误率分别为93.75%和100%。
![大数值下的错误计算:正割函数sec(x)和余割函数csc(x)](https://media2.dev.to/dynamic/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhrvg3w9wqtgeyekvz2lf.png)