Thanks for your answer, but I have 2 problems with your solution

        - I need to use [ i* atanh i*  neg ] to get the good result
        - if I type in "50 36 / atan" I get back a complex number. (on  
windows and mac)

My computer crash during a drawing, I think it is due to interaction  
between complex number (introduced by atanh) and GL functions. I need  
to test a bit more.

Jeff


>
> Message: 9
> Date: Thu, 03 Jan 2008 16:09:16 -0400
> From: Slava Pestov <[EMAIL PROTECTED]>
> Subject: Re: [Factor-talk] atan in math.functions
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> If the input is a complex number, then [-1,1]? returns false, and we
> just use atanh which is more general.
>
> Slava
>
> Jean-Fran?ois Bigot wrote:
>> Hi,
>>
>> As "atan" can be calculate for each float wouldn't be better to
>> define it by
>>
>> : atan ( x -- y )
>>> float fatan ; inline
>>
>> instead of
>>
>> : atan ( x -- y )
>>      dup [-1,1]? [ >float fatan ] [ i* atanh i* ] if ; inline
>>
>> thanks
>>
>>
>>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to