阅读背景:

atan2f vs fmodf vs只是普通的减法。

来源:互联网 

I have a problem with a piece of code that I wrote to wrap an angle around during an integration and is part of a small simulation that I'm working on. So basically the idea is to prevent the angle from growing large by making sure that it always has a sane value. I have tried three different approaches that I would expect to give the same results. And most of the time they do. But the first two give artifacts around the point where angle value wraps around. When I then generate a waveform from the angle value I get undesirable results because of these precision errors.I have a problem with a piece of code that I wr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: