How this calculation works
Construct a rational Padé approximation from a finite Taylor coefficient list. The result includes numerator and denominator coefficients and a series-matching residual rather than a global approximation claim.
Q(0)=1; Q(z)Σa_k z^k−P(z)=O(z^(m+n+1)).A worked example
For exp(z) and orders[2/2],P=1+z/2+z²/12,Q=1−z/2+z²/12. Their ratio matches the exponential series through degree four;it is not identical to exp at every argument.
Good to know
Numerator/denominator orders0–6,total≤10;finite decimal coefficients,constant term first. Floating linear solve with conditioning rejection and matching residual. Defective or unresolved systems rejected. No exact-rational certificate,pole classification,automatic cancellation or convergence-region guarantee.
Reference: Mathematical method reference (opens in a new tab) ↗
A rational approximation uses denominator freedom
A Taylor polynomial matches local power-series coefficients using only numerator terms. A Padé approximant introduces a denominator as well,allowing the same finite information to produce a rational function with potentially different behavior away from the expansion point.
The additional flexibility can be useful,but it also creates poles and possible near-canceling factors. This page returns the rational coefficients;it does not declare that every resulting pole represents a genuine singularity of the function that generated the series.
Compare this with the Polynomial composition inverse series calculator to specified order. Inverse-series composition and a Taylor polynomial do not produce a rational approximant with poles.
Order pairs describe different matching problems
The numerator degree m and denominator degree n are separate choices. The denominator constant is normalized to one,which removes a shared nonzero scaling ambiguity. At least m+n+1 series coefficients are needed to pose the stated matching condition.
Coefficient lists are entered from the constant term upward. They are already Taylor coefficients,so any derivative data must first be divided by factorials. Reversing the list or entering raw derivatives solves a different approximation problem even when a system can still be formed.
High-order matching determines the denominator first
Multiplying the proposed denominator by the supplied series must leave zero coefficients above the numerator degree through order m+n. Those equations form a linear system for the nonconstant denominator coefficients under Q(0)=1.
Once Q is found,the lower-order product coefficients determine P directly. The implementation checks the resulting coefficient residual across the requested matching range,and rejects numerically singular systems rather than silently lowering an order or adding a penalty.
The exponential example has a compact exact pattern
The default coefficients begin1,1,1/2,1/6,1/24. At orders[2/2],the resulting numerator has coefficients1,1/2,1/12 and the denominator1,−1/2,1/12. The opposite linear signs are part of the approximation rather than a formatting convention.
Expanding that ratio around zero reproduces the supplied coefficients through degree four. This is a local algebraic match:substituting a distant argument does not extend the matching identity to exact equality with the exponential function everywhere.
Defective systems need an explicit interpretation
Some order requests yield singular or inconsistent denominator equations. A zero or highly structured input series can admit multiple equivalent representations,so a solver cannot always manufacture one unique full-order rational approximation from the requested settings.
This implementation rejects unresolved systems instead of choosing a hidden convention for defective cases. A useful lower-order approximation may exist,but changing the requested order should be a visible user choice rather than an undocumented repair inside the returned coefficients.
The matching residual has a limited meaning
The residual measures how closely Q times the supplied finite series agrees with P through the chosen order. It diagnoses the solved coefficient equations and finite arithmetic;it does not bound pointwise error on a real interval or a complex region.
Input coefficients themselves may be rounded estimates. A small algebraic residual does not remove their uncertainty. Near a denominator zero,the rational value can be sensitive even when all matching equations were solved accurately at the expansion point.
Inspect poles before evaluating elsewhere
A denominator close to zero can make the approximant large or undefined. Before using it in another model,examine the denominator and any near numerator cancellations rather than treating it as a harmless substitute for the original function.
The page does not provide analytic continuation,automatic pole removal or an exact rational certificate. Preserve the expansion point,coefficient precision and order pair with an exported result so a local numerical construction is not mistaken for a global identity.
A few questions, answered
Are coefficients constant term first?
Yes. Enter a0,a1,a2 and so on.
Do I enter derivatives directly?
No. Taylor coefficients are derivatives divided by their factorials.
Does a small residual bound approximation error everywhere?
No. It checks the requested local coefficient equations.
Why reject a singular order request?
It can be defective or nonunique;the solver does not silently change the requested degrees.