首页 文章

在Matlab中eps的实际 Value 是多少?

提问于
浏览
1

根据MATLAB文档, eps 的值应为 2^-52 .

"eps returns the distance from 1.0 to the next largest double-precision number, that is eps = 2^(-52)."(来自http://www.mathworks.com/help/techdoc/ref/eps.html) .

但是,当我在MATLAB的命令窗口中输入 eps 时,我得到 eps = 2.2204e-016 .

我糊涂了 . eps 的实际 Value 是多少?

谢谢 .

1 回答

  • 5

    呃,在我的机器上Matlab给出 2^(-52) == 2.2204e-16 . 我错过了你问题中明显的东西吗?

相关问题