|  |  | Warp <war### [at] tag povray  org> wrote in message news:3922afc2@news.povray.org...
> david sharp <dsh### [at] interport  net> wrote:
> : The cpow function needs both arguments to be 'complex';
> : To do Z^2 with cpow, you need to do cpow(Z,<2,0>)
>
>   Ah, ok.
>   I said this by mail already, but let me say it again here:
>   It would be more intuitive if cpow() would accept either a float or
> a complex.
That would be helpful, but implementation is complicated
by the way POV-Ray promotes a float (say 2.0) to a VECTOR
(becomes <2.0,2.0,2.0> ) when it is expecting a vector. So
cpow(Z,2) becomes cpow(Z,<2,2>) rather than the desired
cpow(Z,<2,0>). The simplest way to implement float exponents
would be to have a new function (eg crpow(Z,X) ) Post a reply to this message
 |  |