LDE with non polynomial coefficients Copyright © 2004-2013 DigiArea, Inc. . All rights reserved. Description: This worksheet illustrates LdeApprox package capability of doing numerical polynomial approximation of an LDE solution with non polynomial coefficients. This loads the package. restart: Examples: This is a simple LDE with some non-polynomial coefficients. lde:=diff(y(x),x)+erf(x)*y(x)=0;
Trying to find approximate solution of the IVP (an erroroccurs as the LDE has non polynomial coefficients). apr = ApproxSol({lde, y(0) = 1}, y(x), x=-1..1, 9); Error, (in LdeApprox/ivp) erf(x) is not a polynomial on x Using ToRatCoeffs to convert the LDE into approximate one with polynomial coefficients on the given interval. lde1 := ToRatCoeffs(lde, y(x), x=-1..1, 9);
Trying ApproxSol for the new approximate LDE. apr := ApproxSol({lde1, y(0) = 1}, y(x), x=-1..1, 9);
The exact solution of the IVP is as follows: sol:=dsolve({lde, y(0) = 1},y(x));
Comparing the results. plot(subs(sol,y(x))-subs(apr,y(x)),x=-1..1);
Note We use quite simple example (just for Web). You can try more complex examples in your computer. |


![[Maple Plot]](Maple/LdeApprox/examples/images/nonpoly11.gif)