大数值下的错误计算:正割函数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)
相关推荐 去reddit讨论