POV-Ray : Newsgroups : povray.general : What is this strangeness? : What is this strangeness? Server Time
4 Nov 2026 11:20:40 EST (-0500)
  What is this strangeness?  
From: kurtzlepirate
Date: 3 Nov 2026 11:15:49
Message: <6aea08b5$1@news.povray.org>
Hello,

I spent some time trying to figure out why my code was producing bizarre 
results. It couldn't be simpler. It fits on a single line :

	#declare y0 = a*x0*+b;


Of course, there are no syntax errors.
A typo left an “*” after the x0.

What I don't understand is the calculation involving that extra “*”

With a = 0.51, b = 10.66 and  x0 =  -16.25, the correct calculation 
yields 2.37 and with the extar "*", -88.34 !

Where's the logic? I haven't been able to find a connection between the 
two values, so I don't understand what operation this * performs.



I'm sure the people here have already figured it out and will be able to 
explain it to me. Thanks


-- 
klp
compagnie de la banquise


Post a reply to this message

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