MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / atanHelper

Function atanHelper

libraries/FastTrig/FastTrig.cpp:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390
391inline float atanHelper(float x)
392{
393 float x2 = x * x;
394 return (((0.079331 * x2) - 0.288679) * x2 + 0.995354) * x;
395
396 // an even more accurate alternative, less fast
397 // return ((((-0.0389929 * x2) + 0.1462766) * x2 - 0.3211819) * x2 + 0.9992150) * x;
398}
399
400
401float atan2Fast(float y, float x)

Callers 1

atanFastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected