Hi,
I have a simple batch program, which causes a to many context error.
DD:3;
f(i,j,x,y):=cos(i*(x+y)/2)*sin(j*(x-y)/4);
pp(x):=cos(x)+cos(2*x);
Dint(f,v,a,b):=block([FF:ratsimp(integrate(f,v))],subst(b,v,FF)-subst(a,v,FF));
fn(i,j,x,y):=ratsimp(f(i,j,x,y)/ev(sqrt(Dint(Dint(f(i,j,x,y)*f(i,j,x,y),x,-4*%pi,4*%pi),y,-4*%pi,4*%pi))));
wf(i,x,y):=fn(floor(i/4),mod(i,4)+1,x,y);
EP1:genmatrix(ev(aa),DD,DD);
g:2;
for i from 0 thru DD do (for j from 0 thru DD do
aa[i,j]:(Dint(Dint(wf(i,x,y)*wf(j,x,y)*(pp(x)+pp(y)),x,-%pi,%pi),y,-%pi,
%pi)));
***
If I remove the second cos from the function pp everything is fine.
Is there a way to increase the number of contexts? If so, it would be
great to include this into the error message.
Detlef