POV-Ray : Newsgroups : povray.beta-test : atan() not working ? Server Time
5 Nov 2024 05:20:48 EST (-0500)
  atan() not working ? (Message 1 to 5 of 5)  
From: Philippe Debar
Subject: atan() not working ?
Date: 9 Sep 2001 08:27:57
Message: <3b9b604d$1@news.povray.org>
Problem : can't use atan() float function

This one line :
#declare test=atan(1);

Gives this :
#declare test=atan <----ERROR

Parse Error: Expected 'RValue to declare', atan found instead



... and this one-liner :
#declare test=1+atan(1);

Gives this :
#declare test=1+atan <----ERROR

Parse Error: Expected 'numeric expression', atan found instead



Workaround : use atan2(,) which works fine



Sys info :
POV-Ray 3.5 b1
Win 2k pro sp2
Ahtlon 1.2 GHz
512 MB DDR


Sorry if this is documented somewhere, I did not RTFM completely (but I did
an "atan" search on the doc and here)


Povingly,


Philippe


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: atan() not working ?
Date: 9 Sep 2001 08:42:56
Message: <3b9b63d0@news.povray.org>
Afaik atan is only used in Julia Fractals. There are atan2 and atanh as
float functions.

Marc-Hendrik

Philippe Debar schrieb in Nachricht <3b9b604d$1@news.povray.org>...
>Problem : can't use atan() float function


Post a reply to this message

From: Philippe Debar
Subject: Re: atan() not working ?
Date: 9 Sep 2001 10:16:12
Message: <3b9b79ac@news.povray.org>
"Marc-Hendrik Bremer" <Mar### [at] t-onlinede> wrote in message
news:3b9b63d0@news.povray.org...
> Afaik atan is only used in Julia Fractals. There are atan2 and atanh as
> float functions.
>
> Marc-Hendrik

atan(FLOAT) is in :

6.1.3 Float expression / FLOAT_FUNCTION


Philippe


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: atan() not working ? [DOCS?]
Date: 9 Sep 2001 11:00:22
Message: <3b9b8406@news.povray.org>
Yes, it's in the syntax description at the beginning, but is not described
under 6.1.3.6. But under atan2() they say: "Use atan2(A,1) to compute usual
atan(A) function." I think, that atan() has to be deleted in the syntax
description. Or am I (again) missing something?

BTW: there is a ")" missing in that syntax description after "ln( FLOAT".

Marc-Hendrik

Philippe Debar schrieb in Nachricht <3b9b79ac@news.povray.org>...
>
>"Marc-Hendrik Bremer" <Mar### [at] t-onlinede> wrote in message
>news:3b9b63d0@news.povray.org...
>> Afaik atan is only used in Julia Fractals. There are atan2 and atanh as
>> float functions.
>>
>> Marc-Hendrik
>
>atan(FLOAT) is in :
>
>6.1.3 Float expression / FLOAT_FUNCTION
>
>
>Philippe
>
>
>


Post a reply to this message

From: Ron Parker
Subject: Re: atan() not working ?
Date: 9 Sep 2001 12:16:43
Message: <slrn9pn5fc.2re.ron.parker@fwi.com>
On Sun, 9 Sep 2001 14:20:06 +0200, Philippe Debar wrote:
>Problem : can't use atan() float function
[...]
>Workaround : use atan2(,) which works fine

This, and a related bug with the hyperbolic and inverse hyperbolic functions,
should be fixed in the next beta.

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.