POV-Ray : Newsgroups : povray.general : Re: Probably been asked... Why no power operator? : Re: Probably been asked... Why no power operator? Server Time
5 Aug 2024 12:18:17 EDT (-0400)
  Re: Probably been asked... Why no power operator?  
From: AC
Date: 15 Nov 2002 08:02:55
Message: <3dd4f07f$1@news.povray.org>
"Tor Olav Kristensen" <tor### [at] hotmailcom> wrote in message
news:web.3dd4440dc24ffac838149fba0@news.povray.org...
> Christopher James Huff wrote:
> >In article <3dd3cb3c$1[at]news.povray.org>, "Slime"
<slm### [at] slimelandcom>
> >wrote:
> .....
> >> Besides, I would think that since we're adding ^ as a new operator, we
could
> >> give it whatever precedence we wanted, and it just seems more logical
to me
> >> to make it work the way we've been taught it should work than to allow
the
> >> 2^-3 syntax just for convenience.
> >
> >Not for convenience, for self consistency. There isn't an existing rule,
> >so the one that was most logical and consistent was chosen.
>
> How about just requiring that the hat
> operator should always be preceeded
> by a pair of parantesis.
>
> Like this:   ( )^
>
> E.g.:   (3)^-3 or (-4)^2
>
>
> Tor Olav
>
>
That would be a possible solution that would work... for me, But it would be
a problem for those who don't know about it.


Post a reply to this message

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