A circle integral with two simple poles #
This file verifies the two-pole worked example from the contour-integration roadmap. For two
distinct points s₁ and s₂, the function
z ↦ A / (z - s₁) + B / (z - s₂)
has residues A and B at the respective poles. When both poles lie inside a circle, its
contour integral is therefore 2πi (A + B). The calculation is stated directly for arbitrary
centres, radii, pole positions, and coefficients, so it also covers a vanishing coefficient
without pretending that the corresponding point remains a pole.
The integral calculation uses Mathlib's circleIntegral.integral_sub_inv_of_mem_ball; the
residue calculations use the simple-pole API in
TauCeti.Analysis.Contour.Residue.SimplePole.
This is the concrete two-simple-pole acceptance criterion in
TauCetiRoadmap/ContourIntegration/README.md, under “Worked examples”.
The value of twoPrincipalParts at a point.
The function-level defining equation for twoPrincipalParts.
twoPrincipalParts is analytic where each nonzero principal part is away from its designated
point, or where coincident principal parts cancel.
The function twoPrincipalParts is meromorphic everywhere.
At the first designated point, the residue of twoPrincipalParts is the first coefficient if
the other principal part vanishes or is designated at a distinct point.
At the second designated point, the residue of twoPrincipalParts is the second coefficient if
the other principal part vanishes or is designated at a distinct point.
Two-pole circle integral. If the designated point of each nonzero principal part lies
strictly inside the circle C(c, R), then the integral of A / (z - s₁) + B / (z - s₂) around
that circle is 2πi (A + B). Together with
residue_twoPrincipalParts_left and residue_twoPrincipalParts_right, this is the roadmap's worked
example of the classical residue theorem with two simple poles.
The two-pole calculation in residue-theorem form: for distinct designated points, with the
point of each nonzero principal part inside the circle, the integral is 2πi times the sum of the
two residues.