Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在实现一些几何算法,但发现浮点数计算误差的影响很大。有没有减少这种影响的指导方针?
算法包含许多部分并且非常复杂。示例之一是计算直线和样条曲线(贝塞尔曲线序列)之间的相交。当线位置接近贝塞尔曲线的终点时,结果不稳定。
谢谢
double
float