Wasn't it Justace Clutter who wrote:
>So we learn from this that the sum function is just not to be trusted here.
>I guess that I shall be needing to use something else.
You could always perform the summation in POV code, rather than using
sum(). Like this:-
function {
z
#declare n=1;
#while (n<50)
+((40/(n*pi)))*(cos(n*pi)-cos((n*pi)/2))*sin((n*pi*x)/10)
*exp(-1*(((pow(n,2)*pow(pi,2))/100)*0))
#declare n=n+1;
#end
}
max_gradient 86
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|