POV-Ray : Newsgroups : povray.advanced-users : Isosurface question : Re: Isosurface question Server Time
28 Jul 2024 18:24:19 EDT (-0400)
  Re: Isosurface question  
From: Fredrik Eriksson
Date: 20 Jul 2004 17:49:55
Message: <opsbghm7g8cs6ysw@news.povray.org>
On Tue, 20 Jul 2004 21:28:14 +0100, Andrew C on Mozilla <voi### [at] devnull>  
wrote:
> #declare Fn1 =
> {
>    ( (sin(x) * cos(y) * tan(z))*sqrt(x*y / z) - exp(log(x)*y - z) ) *  
> (tan(sin(x) * cos(y) * tan(z) + sqrt(x*y / z)) - log(exp(log(x)*y - z)) )
> }
>
> Notice how A, B and C have to be calculated *TWICE*...
>
> Is there any way round this??


Something like this:


#declare Fn1_Aux =
function ( A, B, C ) {
	(A*B - C)*(tan(A+B)-log(C))
}


#declare Fn1 =
function {
	Fn_1_Aux( sin(x)*cos(y)*tan(z), sqrt(x*y / z), exp(log(x)*y - z) )
}



-- 
FE


Post a reply to this message

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