Kod: Zaznacz cały
float atan(float x)
{
const float c1 = 1.6867629106;
const float c2 = 0.4378497304;
const float c3 = 1.6867633134;
float x2 = x*x;
return(x*(c1 + x2*c2) / (c3 + x2));
}
Kod: Zaznacz cały
float atan(float x)
{
const float c1 = 1.6867629106;
const float c2 = 0.4378497304;
const float c3 = 1.6867633134;
float x2 = x*x;
return(x*(c1 + x2*c2) / (c3 + x2));
}