计算错误:sind(x) 和 cosd(x)
原文英文,约200词,阅读约需1分钟。发表于: 。In this blog post, we explore incorrect calculations of the sine function sind(x) and cosine function cosd(x) of which the independent variable is in degrees in MATLAB. Example 1. Given that x1 =...
本文讨论了MATLAB中以度为单位的正弦函数sind(x)和余弦函数cosd(x)的计算错误。通过对x1和x2的sind和cosd值进行计算,发现MATLAB输出与正确值存在显著误差,前两个的误差率分别为43.75%和31.25%,后两个则完全错误,误差率为100%。