POV-Ray : Newsgroups : povray.general : abs()? : Re: abs()? Server Time
29 Nov 2024 13:41:35 EST (-0500)
  Re: abs()?  
From: Daniel Hulme
Date: 15 Nov 2005 17:46:46
Message: <20051115224652.306da813@surreal>
> "abs(A) Absolute value of A. If A is negative, returns -A otherwise 
> returns A."
> 
> er...that isn't what absolute value is.  absolute value of A is +A, if
> A  is negative, the absolute value is +A, not -A.  is the behaviour of
> POV  or the documentation incorrect?
You understanding of unary plus is incorrect.
+A = A. (A < 0) implies (-A > 0).

-- 
There once was a teacher of great renown,      Gather your goods        
Whose words were like the tablets of stone,    and follow me            
Because it's easier to learn than unlearn,     Or you will surely die   
Because we've passed the point of no return.   Paul Simon, 'The Teacher'


Post a reply to this message

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