Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find an economized rational approximation to a function
ResourceFunction["EconomizedRationalApproximation"][expr,{x,{x0,x1},m,n}] gives the economized rational approximation to expr that is good over the interval x0 to x1, with numerator order m and denominator order n. |
Economized rational approximation of degree (2,4) of ⅇx over the interval 0≤x≤2:
In[1]:= | ![]() |
Out[1]= | ![]() |
The difference between the true function and the approximation:
In[2]:= | ![]() |
Out[2]= | ![]() |
Padé approximation is potentially more accurate near the center of the approximation interval:
In[3]:= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
But less accurate at the ends:
In[7]:= | ![]() |
Out[7]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License