On Thu, 22 May 2003, Boris Herman wrote:
Hello
If there's interest, I could add ArcSin and ArcCos to the runtime library.
This would be great!
I've found out that I get more precision by using this self-written function:
function ArcSin(x:double):double; const c1=1e-6; begin if abs(x-1)<c1 then ArcSin:=pi/2 else if abs(1+x)<c1 then ArcSin:=-pi/2 else ArcSin:=ArcTan(x/sqrt(1-sqr(x))); end;
Hi, Boris,
Did you actually mean, that you get more precise ArcSin and ArcCos than math (co)processors offer, or did you address imprecisions in the math library?
How does your formula perform in calculation time compared to math processor and library function?
Thanks.
(Sorry for delay with this question)
Mirsad