We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A(i, j) = (2.0 * (float)drand48() - 1.0) 误差为 4.577637e-05
如果数字更大,误差更大
The text was updated successfully, but these errors were encountered:
这是正常的...原因是数值的表达方式。计算机并不是严格的数学,计算的先后顺序会导致最终结果的不同。
严格意义上, a+b+c != c+b+a
Sorry, something went wrong.
https://zhuanlan.zhihu.com/p/558723507
No branches or pull requests
A(i, j) = (2.0 * (float)drand48() - 1.0)
误差为
4.577637e-05
如果数字更大,误差更大
The text was updated successfully, but these errors were encountered: