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: E. Weddington
Subject: Re: [avr-libc-dev] Re: Add items on TODO
Date: Wed, 30 Oct 2002 09:55:57 -0700

On 30 Oct 2002 at 17:43, Joerg Wunsch wrote:

> Well, we should at least document the flaw and the possible
> workaround.  I wouldn't make the workaround the general solution,
> however, not only due to the size, but AFAIR there were also issues
> that the argument domain of asin/atan2 is different.

?????
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)
There should be in the avr-gcc-list archives where a user did a 
workaround for acos(x) as atan2(x, sqrt(1-x*x)).

Eric





reply via email to

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