|
![](/i/fill.gif) |
On Tue, 04 Jan 2000 13:16:37 -0700, Kevin Wampler wrote:
>> Without looking at the code, it looks like it's using too high a priority
>> for unary minus, so it's treating "-x^2" as "(-x)^2". BTW, I suspect you'd
>> get better performance with the sqr() function.
>
>That's what I thought, but upon closer examination, it appears to only assign
>the unary minus a higher priority on the first term, so y-exp(-x^2-z^2)
>renders differently from y-exp(-z^2-x^2). Good point about the sqr()
>function, I hadn't realized that it was optimized.
>
The second term isn't a unary minus; it's the binary subtraction operator.
--
These are my opinions. I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html
Post a reply to this message
|
![](/i/fill.gif) |