Matlab中小数的精度有多大?

来源:百度知道 编辑:UC知道 时间:2024/05/02 12:05:02
搜索很久,一直想知道在matlab中小数的精度有多大,比如可以精确到小数点后多少位?要是用二进制表示,可以达到128bit吗?或者说从0到1之间,可以有2的128次方个小数吗?
我其实是想知道matlab能表示的实数空间有多大,请各位高人指点,不胜感激。
如果是从0到1,按照最大精度来计算,有多少个不同的小数呢?谢谢了

>>help eps

EPS Floating point relative accuracy.
EPS returns the distance from 1.0 to the next largest
floating point number. EPS is used as a default tolerance by
PINV and RANK, as well as several other MATLAB functions.

要看实数空间的话,还有realmax和realmin

补充,符号计算理论上无误差。

最小值可以达到2的-52次方,也就是eps。

最小为eps,matlab内总以最好精度计算,而不论我们取极为小数。