3.8

3.8 | 5 ratings Rate this file 129 downloads (last 30 days) File Size: 1.57 KB File ID: #4388

Pade' Approximant

by Greg von Winckel

 

19 Jan 2004 (Updated 20 Jan 2004)

Code covered by BSD License  

Computes coefficients of Pade' Approximants to symbolic functions.

Download Now | Watch this File

File Information
Description

This script will compute the coefficients for the "symmetric" Pade' approximant to a symbolic function expanded at x=0. It also returns poles and zeros to ensure that the expansion does not have undesireable behavior in the region of interest. Users may modify and redistribute this script freely.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
05 Jun 2004 Ymonnet Frederic

I search all data on pade approximant for a personnel work in french universitie

22 Sep 2005 Jörg Kubitz

a usefull thing
the documentation about y is wrong tho

21 Oct 2005 Taekjung Kim  
06 Jul 2007 Michael Ktistakis

The code fails in cases the highest order coeffs are zero. (example: f=acos(x))

fser=taylor(f,0,Nc);
% Extract the expansion coefficients
c=sym2poly(fser)';
% Check that c includes the
% high order zero coeffs
if length(c) < Nc
    c = [zeros(Nc-length(c),1);c];
end
% Reverse the order (ascending powers)
c=c(Nc:-1:1);

01 Jan 2009 Johannes

Is it fixable to meet atan(x) ?
And will it hold for all real values in the rage of [-inf +inf]?
I have code in the hand that could also compute unsymmetric pade approximants but I only use it for exp(x). I yet did not have the time to try implementing it for symbolic functions. The expantion point can be defined on input already. I am interested on getting approximants for the arcustangens(x) Function that hold for all real values.

05 May 2009 Wei Zhao

would be better if it could expand in any point

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
approximation Greg von Winckel 22 Oct 2008 07:13:01
interpolation Greg von Winckel 22 Oct 2008 07:13:01
rational Greg von Winckel 22 Oct 2008 07:13:01
function Greg von Winckel 22 Oct 2008 07:13:01
pade Greg von Winckel 22 Oct 2008 07:13:01
taylor Greg von Winckel 22 Oct 2008 07:13:01
series Greg von Winckel 22 Oct 2008 07:13:01
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com