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:14:19 EDT (-0400)
  Re: Probably been asked... Why no power operator?  
From: Jellby
Date: 14 Nov 2002 15:05:26
Message: <3dd40205@news.povray.org>
> I am of the opinion that sacrificing the strange 2^-3 syntax for 2^(-3)
> makes more sense than having to use -(3^9) in place of -3^9. This is
> *sorta* inconsistent with the way the * operator works, except that no
> one's going to argue what the value of -2*2 is.

Wouldn't it be possible to have *both* 3^-2 and -3^2 generate an error, to 
force the use of parenthesis: 3^(-2) and either -(3^2) or (-3)^2? This 
would at least get rid of the need of pow (but not of the need of pov ;) ), 
while givin rise to no misunderstunding.

-- 

Linux User #289967 (counter.li.org)
PGP Pub Key ID: 0x01A95F99 (pgp.escomplinux.org)


Post a reply to this message

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