LdeApprox[ToRatCoeffs] - gives rational approximation of LDE coefficients over given interval
ToRatCoeffs(lde, x = a..b, [m, n])
lde - linear differential equation
x - independent variable
a, b - numerical values specifying the interval of approximation
m - integer specifying the desired degree of the numerator
n - integer specifying the desired degree of the denominator
This loads the package.
This is a simple LDE with some non-polynomial coefficients.
Trying to find approximate solution of the IVP: .
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.
Trying ApproxSol for the new approximate LDE.
The exact solution of the IVP is as follows:
Comparing the results.