|
|
I know how to create local variables in a macro, but after extensive
searching, I still have not found any way to create local variables in a
function. Is this even possible?
Just for a crazy example, suppose I had something like this:
#declare f=function(x) {sum(i,1,1000,pow(sin(x),i))}
Then it would be much faster if I could make a local variable, say,
something like this:
#declare f=function(x) {sinx=sin(x); sum(i,1,1000,pow(sinx,i))}
Post a reply to this message
|
|