Digi Area Group - Math Tools for Professionals
   Maple and Mathematica packages - math tools for professionals

LdeApprox™  - analytical approximation methods for Mathematica™

> Features List & Examples
> License & Pricing
> Buy Online

 
 
 
 
Google

Description  |  Features List & Examples  |  Numeric Approx.  |  Symbolic Approx.  |  Function Approx.  |  References

  • Non polynomial example of the DifferentialEquations`LdeApprox` package

    Copyright © 2004-2009 DigiArea Group All rights reserved.

    Description:

    This notebook illustrates DifferentialEquations`LdeApprox` package capability of doing polynomial approximation of an LDE solution with non polynomial coefficients. If the given LDE has non-polynomial coefficients one can use the package procedure ToRatCoeffs which gives a rational approximation of the coefficients. This procedure applies RationalInterpolation function from NumericalMath`Approximations` package to each non-polynomial coefficient of the LDE. It should be pointed out that the coefficients can not involve indeterminate variables except independent one. This restriction comes from NumericalMath`Approximations` package as pure numerical one.
    First of all we load the package and define an IVP. Then we use ToRatCoeffs and ApproxSol procedures to find 9-th degree polynomial approximation for the IVP solution on interval x = [-1,1]. After that we find exact solution by Mathematica™ function DSolve. Finally we compare exact and approximate results using Mathematica™ function Plot.
     

  • This loads the package.

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_1.gif]
  • This LDE has non-polynomial coefficient.

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_2.gif]
    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_3.gif]
  • Trying to find approximate solution(an error occurs as the LDE has non polynomial coefficients).

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_4.gif]
    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_5.gif]
    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_6.gif]
  • Using ToRatCoeffs to convert the LDE into one with polynomial coefficients on the given interval.

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_7.gif]
    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_8.gif]
  • Trying ApproxSol for the new LDE.

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_9.gif]
    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_10.gif]
  • Using Mathematica™ function DSolve to get the exact solution.

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_11.gif]
    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_12.gif]
  • Comparing the results.

  • [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_13.gif]

    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_14.gif]

    [Graphics:prod/LdeApproxMath/nonpoly/images/index_gr_15.gif]

    Note:

    We use quite simple examples (just for Web). You can try more complex examples in your computer.