Fix lisp error from quad_qawf when given an invalid trig arg
[maxima.git] / demo / eaton1.dem
blob35023c2d0c4592ed9e5081dcc0606827256628dd
1 /* solution of simultaneous differential equations */
3 eq1:3*'diff(f(x),x,2)-2*'diff(g(x),x)=sin(x);
4 eq2:a*'diff(g(x),x,2)+'diff(f(x),x)=a*cos(x);
5 atvalue(g(x),x=0,1)$
6 atvalue('diff(f(x),x),x=0,0)$
7 atvalue('diff(g(x),x),x=0,1)$
8 laplace_eq1:laplace(eq1,x,s);
9 laplace_eq2:laplace(eq2,x,s);
10 solve([laplace_eq1,laplace_eq2],
11          ['laplace(f(x),x,s),'laplace(g(x),x,s)]);
12 ilt(%,s,x);