07-16-2008 06:54 AM
07-16-2008 07:20 AM
I've posted that some times ago on the old BB forum:
This might work. Was used long time ago in OpenOffice:
Function ArcSin( x )
ArcSin = Atn( x / Sqr(-x * x + 1) )
End Function
Function ArcCos( x )
ArcCos = ArcSin( Sqr( 1 - x^2 ) )
End Function
Next problem is that there is no atan in the API...
Found that in wikipedia:
if abs(x) <= 1:
atan(x) = x/(x+0.28 * x^2)
if x > 1:
atan(x) = PI/2 - x/(x^2 + 0.28)
according to wiki is the max calc. difference under 0,005 Rad