fast_atan function

Does the fast_atan function in the AP math library return a value in radians or degrees?

Thanks!

Anyone have any idea?

Just write a quick test.

[code]#include
using namespace std;

float fast_atan(float v)
{
float v2 = vv;
return (v
(1.6867629106f + v2*0.4378497304f)/(1.6867633134f + v2));
}

int main() {
cout << fast_atan(1) << endl;
}[/code]

Prints 0.79077. atan(1) is pi/4. pi/4 in degrees is 45.

Thank you!

I didn’t even think about doing something as simple as that.