avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Re: Add items on TODO


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Re: Add items on TODO
Date: Wed, 30 Oct 2002 18:18:55 +0100
User-agent: Mutt/1.2.5i

As E. Weddington wrote:

> math: asin(x) = atan(x/sqrt(1-x^2))
> AFAIK, C lang: atan(x/y) == atan2(y, x) so C lang asin(x) == 
> atan2(sqrt(1-x*x), x)

If x == 1, atan2 would divide by 0.  Hmm, it seems the case where x !=
0 and y == 0 is actually defined well, and can be used.

Btw., your atan2() call has the arguments reversed (as it was the case
with the library until recently).

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]