POV-Ray : Newsgroups : povray.unofficial.patches : Why & has higher precedence than + or - in isosurface functions? : Re: Why & has higher precedence than + or - in isosurface functions? Server Time
2 Sep 2024 00:15:32 EDT (-0400)
  Re: Why & has higher precedence than + or - in isosurface functions?  
From: Warp
Date: 1 Aug 2000 06:24:26
Message: <3986a55a@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: The & sign in isosurfaces is obviously the equivalent of the inverted-V, and
: thus it should have lower precedence.  As for the not inverted-V, the '|'
: (or-sign), I am not sure about the current implementation, but is should
: also have lower precedence.

  Also | should have lower precedence than &, so if we have this:

x-y | y-z & x+z

it should be interpreted in this way:

(x-y) | ((y-z) & (x+z))

  In this way it will be consistent with mathematics.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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