POV-Ray : Newsgroups : povray.off-topic : The trick : Re: The trick Server Time
6 Sep 2024 07:19:18 EDT (-0400)
  Re: The trick  
From: Invisible
Date: 13 Mar 2009 06:55:29
Message: <49ba3ba1@news.povray.org>
>> Fun thing:
>>
>>   12+3*
>>   123+*
>>
>> These two expressions look different, but are guaranteed to produce 
>> the same answer.
> 
> I thought that 12+3* means (1+2)*3 and 123+* means (2+3)*1 ???

I stand corrected.

I was pretty certain I remember there being a way to modify the exact 
order in which operations are performed yet always arrive at the same 
answer. However, I am currently unable to construct a valid example. 
Perhaps my memory is off...


Post a reply to this message

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