Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Numerical Calculus Package >

NResidue

NResidue[expr, {z, z0}]
numerically finds the residue of expr near the point z=z0.
  • The expression expr must be numeric when its argument x is numeric.
  • The residue is defined as the coefficient of (z-z0)-1 in the Laurent expansion of expr.
  • NResidue numerically integrates around a small circle centered at the point z0 in the complex plane. NResidue will return an incorrect result when the punctured disk is not analytic.
  • NResidue is unable to recognize small numbers that should in fact be zero. Chop is often needed to eliminate these spurious residuals.
  • Although Residue usually needs to be able to evaluate power series at a point, NResidue can find residues even if the power series cannot be computed.
  • NResidue has the same options as NIntegrate, with the following additions and changes:
Radius1/100radius of contour on which integral is evaluated
MethodTrapezoidalintegration method to use
Residue of the function about the origin:
Needs["NumericalCalculus`"]
Residue of the function about the origin:
In[2]:=
Click for copyable input
Out[2]=
NResidue can find residues of functions with essential singularities:
Since Series is unable to handle essential singularities, Residue returns unevaluated:
NResidue allows for some error in the location of the pole:
Due to machine-precision arithmetic, z1. is not a pole:
With Residue, the error in the location of the pole yields a result of zero:
NResidue threads element-wise over lists:
Use Radius to shrink the radius of the contour of integration to isolate a single pole:
Increase the radius to improve convergence of the integration if no other poles are nearby:
NResidue accepts options for NIntegrate, which are sometimes necessary to get an accurate result:
Use NResidue to evaluate derivatives of a function evaluated at a point:
Residues of numerical functions:
NSeries can also compute residues of numerical functions:
Using NSeries:
NResidue will return an incorrect result when the integration contour contains branch cuts:
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team