Maths & numbers

Padé approximant calculator from a power series

Match a power series with an exact rational function, choose numerator and denominator orders, and inspect every matching residual.

Your numbers

Use exact integers, decimals with up to six places, or fractions. Separate entries with commas or spaces; each component is bounded as stated in the guide. Include at least L + M + 1 coefficients; at most 21.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A Padé approximant replaces a local power-series truncation by a ratio of two polynomials. The coefficients are chosen so that multiplying the supplied series by the denominator agrees with the numerator through the requested matching order. This calculator solves those coefficient equations with exact fractions and normalizes the denominator constant to one. It reports the numerator, denominator, query value and a table of exact residuals rather than treating a visually close curve as proof of series agreement.

THE FORMULAA(x)Q(x) − P(x) = O(x^(L+M+1)), with deg(P)≤L, deg(Q)≤M and Q(0)=1.

A worked example

For the exponential coefficients 1, 1 and 1/2, choose L = 1 and M = 1. The result is (1 + x/2)/(1 − x/2). Multiplication by the input series leaves residual zero through x². At x = 1 the rational approximant is exactly 3. This is an approximation to e, not an exact evaluation of the exponential function.

Good to know

Numerator order is 0 through 8, denominator order 0 through 6 and at least L + M + 1 ascending coefficients are required. Exact fraction growth is bounded. Singular normalized systems are rejected rather than assigned a guessed denominator. A query at a denominator zero is reported as undefined. Local series matching alone does not bound approximation error elsewhere or distinguish genuine singularities from spurious poles.

The input list is in ascending powers

The first entry is the constant term a0, followed by the coefficient of x, then x² and so on. These are coefficients, not raw derivative values. For an exponential series centered at zero, a2 is 1/2 because the second derivative is divided by 2!. Reversing the list or omitting factorial divisions asks for a different approximant.

With Q(0) fixed at one, the higher matching equations determine the remaining denominator coefficients. The low-order coefficients of A times Q then determine P. The residual table checks the complete condition A·Q − P through degree L + M. All displayed residuals must vanish exactly for a successful result, including when the final numerator or denominator has degree lower than its chosen bound.

The first three exponential coefficients give a one over one Padé ratioSeries: 1 + x + x²/21 + x/21 − x/2At x = 1: value = 3
Matching 1 + x + x²/2 through order two gives (1 + x/2)/(1 − x/2). Its value at x = 1 is three, while its denominator vanishes at x = 2.

The Chebyshev polynomial approximation calculator targets a finite interval rather than matching a local power series with a rational denominator.

More series agreement is not a global accuracy certificate

The default approximant has a denominator zero at x = 2 even though the exponential function has no finite real pole. Its finite value at x = 1 therefore does not justify using it near that artificial singularity. The calculator shows an undefined query result when Q(x) is exactly zero instead of returning an infinite decimal or silently evaluating only the numerator.

Some series and order choices produce a singular normalized coefficient system. Such a system may fail to determine a unique denominator in this representation, and a specialized treatment can sometimes recover a reduced rational function. This bounded tool rejects that ambiguity explicitly. The existing Taylor approximation workflow constructs polynomial truncations; this page solves a different rational series-matching task. Choosing M = 0 gives the polynomial special case on this same page, rather than creating another alias calculator.

A few questions, answered

Are the orders exact polynomial degrees?

They are upper bounds. Leading coefficients can cancel, leaving a simpler numerator or denominator.

Can I enter a series around a nonzero center?

Treat the entered variable as the displacement from that center and evaluate at the corresponding displacement. The calculator does not infer or subtract a center automatically.

Find your calculator

Start typing to explore the library.