To find a rational approximation of Padé for the function sin(2x-3) on the interval [-2,2] with m=n=5 in MATLAB, you can follow these steps:
main.m21 chars2 lines
taylor function in MATLAB:main.m44 chars3 lines
pade function in MATLAB to find the rational approximation of Padé for the Taylor series expansion:main.m68 chars3 lines
The pade_approximation will give you the rational approximation of Padé for the function sin(2x-3) on the interval [-2,2] with m=n=5.
Note that the pade function requires the Symbolic Math Toolbox in MATLAB.
gistlibby LogSnag