POV-Ray : Newsgroups : povray.newusers : Using mathematical functions in co-ordinates : Re: Using mathematical functions in co-ordinates Server Time
29 Jul 2024 10:22:40 EDT (-0400)
  Re: Using mathematical functions in co-ordinates  
From: Trevor G Quayle
Date: 9 Feb 2006 22:51:12
Message: <43ec0db0$1@news.povray.org>
"Larry Hudson" <org### [at] yahoocom> wrote in message 
news:43ec0a8c$1@news.povray.org...
> Trevor G Quayle wrote:
>> "RareBeast" <mdc### [at] bigpondcom> wrote:
> ...
>>>I have been using < 0, 0, 1.713> which is fine, but I was wondering if 
>>>there
>>>is anyway of doing it like < 0, 0, SQRT(3) > or some such.
>>>
>>>Thanks
>>
>> <0,0,pow(3,1/3)>
>>
>
> 'Scuse me?  That would be cube root not square root.  Try pow(3,1/2).
>
Yes, bit tired and misread the 3 part as wanting the cube root.

RareBeast: Just so you know, the pow() function is used for all powers and 
roots (including cube roots...), the '^' operator having been removed a few 
versions ago.

-tgq


Post a reply to this message

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