我有一个关于密谋的问题。我想在范围之间绘制一些数据:
3825229325678980.0786812569752124806963380417361932和3825229325678980.078681262584097479512892231994772
但我得到以下错误:
Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=3.82522932568e+15, top=3.82522932568e+15我应该如何增加这里的小数点来解决问题?
发布于 2013-07-13 04:32:01
最小值和最大值之间的差值小于双精度(~1e-15)的eps。
基本上,使用4字节浮点表示法无法区分这两个数字。
我建议删除数据中的所有整数位,只表示小数部分。整数部分只是一个很大的常量,你可以随时添加。
发布于 2013-07-13 04:27:08
最简单的方法可能是缩放您的数据以提供一个看起来不太像零的范围。
https://stackoverflow.com/questions/17623451
复制相似问题