residues

GitHub

提供复变函数中留数计算、极点阶数识别及留数定理应用的解题策略,结合Sympy和Z3工具进行自动化计算与验证。

.claude/skills/math/complex-analysis/residues/SKILL.md parcadei/Continuous-Claude-v3

Trigger Scenarios

计算复变函数的留数 判断奇点类型或极点阶数 应用留数定理求解围道积分

Install

npx skills add parcadei/Continuous-Claude-v3 --skill residues -g -y
More Options

Non-standard path

npx skills add https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/math/complex-analysis/residues -g -y

Use without installing

npx skills use parcadei/Continuous-Claude-v3@residues

指定 Agent (Claude Code)

npx skills add parcadei/Continuous-Claude-v3 --skill residues -a claude-code -g -y

安装 repo 全部 skill

npx skills add parcadei/Continuous-Claude-v3 --all -g -y

预览 repo 内 skill

npx skills add parcadei/Continuous-Claude-v3 --list

SKILL.md

Frontmatter
{
    "name": "residues",
    "description": "Problem-solving strategies for residues in complex analysis",
    "allowed-tools": [
        "Bash",
        "Read"
    ]
}

Residues

When to Use

Use this skill when working on residues problems in complex analysis.

Decision Tree

  1. Computing Residues

    • Simple pole at z0:
      • Res(f, z0) = lim_{z->z0} (z - z0)f(z)
      • sympy_compute.py limit "(z - z0)*f(z)" --var z --at z0
    • Pole of order n:
      • Res(f, z0) = (1/(n-1)!) * lim d^{n-1}/dz^{n-1}[(z-z0)^n f(z)]
      • sympy_compute.py diff "((z-z0)**n)*f(z)" --var z --order n-1
    • L'Hopital shortcut for f = g/h with simple pole:
      • Res(f, z0) = g(z0)/h'(z0)
  2. Identify Pole Order

    • Simple pole: (z - z0)f(z) has finite limit
    • Order n: (z - z0)^n f(z) has finite limit, but (z - z0)^{n-1} f(z) doesn't
    • sympy_compute.py limit "(z - z0)**n * f(z)" --var z --at z0
  3. Essential Singularities

    • Neither pole nor removable (e.g., e^{1/z} at z=0)
    • Compute residue via Laurent series
    • sympy_compute.py series "exp(1/z)" --var z --at 0
  4. Apply Residue Theorem

    • oint_C f(z)dz = 2pii * (sum of residues inside C)
    • Count only poles INSIDE the contour
    • z3_solve.py prove "pole_inside_contour"

Tool Commands

Sympy_Residue

uv run python -m runtime.harness scripts/sympy_compute.py residue "1/((z-1)*(z-2))" --var z --at 1

Sympy_Limit

uv run python -m runtime.harness scripts/sympy_compute.py limit "(z - z0)*f(z)" --var z --at z0

Sympy_Laurent

uv run python -m runtime.harness scripts/sympy_compute.py series "exp(1/z)" --var z --at 0

Z3_Pole_Inside

uv run python -m runtime.harness scripts/z3_solve.py prove "abs(z0) < R"

Key Techniques

From indexed textbooks:

  • [Complex analysis an introduction to... (Z-Library)] The fact that the calculus of residues yields complex rather than real integrals is no dis¬ (49) with g(z) — z, we obtain <»» i>(”)=25 / f^w) = 2vi / /'() /(z) - w z dz. If (49) is applied with g(z) = zm, equation (50) is replaced by 2iri I |z-zo| = /'() f(z) - w zm dz. The right-hand member represents an analytic function of w for \w — ir0| < 8.
  • [Complex analysis an introduction to... (Z-Library)] What are the possible values of r dz J /l — z2 over a closed curve in the region? THE CALCULUS OF RESIDUES The results of the preceding section have shown that the determination of line integrals of analytic functions over closed curves can be reduced to the determination of periods. Under certain circumstances it turns out that the periods can be found without or with very little computation.
  • [Complex analysis an introduction to... (Z-Library)] Hint: Sketch the image of the imaginary axis and apply the argument principle to a large half disk. Evaluation of Definite Integrals. The calculus of residues pro¬ vides a very efficient tool for the evaluation of definite integrals.
  • [Complex analysis an introduction to... (Z-Library)] The particular function 1 /(z — ay) has a vanishing period. The constant Rj which produces this result is called the residue of f(z) at the point ay. We repeat the definition in the following form: It is helpful to use such self-explanatory notations as R = Res!
  • [Complex Analysis (Elias M. Stein, Ram... (Z-Library)] Cauchy, 1826 There is a general principle in the theory, already implicit in Riemann’s work, which states that analytic functions are in an essential way charac- terized by their singularities. That is to say, globally analytic functions are “eectively” determined by their zeros, and meromorphic functions by their zeros and poles. While these assertions cannot be formulated as precise general theorems, there are nevertheless signicant instances where this principle applies.

Cognitive Tools Reference

See .claude/skills/math-mode/SKILL.md for full tool documentation.

Version History

  • d07ff4b Current 2026-08-20 12:47

Same Skill Collection

.claude/plugins/braintrust-tracing/skills/trace-claude-code/SKILL.md
.claude/skills/agentica-claude-proxy/SKILL.md
.claude/skills/agentica-infrastructure/SKILL.md
.claude/skills/agentica-prompts/SKILL.md
.claude/skills/agentica-sdk/SKILL.md
.claude/skills/agentica-server/SKILL.md
.claude/skills/archive/leann-search/SKILL.md
.claude/skills/ast-grep-find/SKILL.md
.claude/skills/braintrust-tracing/SKILL.md
.claude/skills/cli-reference/SKILL.md
.claude/skills/commit/SKILL.md
.claude/skills/compound-learnings/SKILL.md
.claude/skills/continuity_ledger/SKILL.md
.claude/skills/create_handoff/SKILL.md
.claude/skills/dead-code/SKILL.md
.claude/skills/debug-hooks/SKILL.md
.claude/skills/debug/SKILL.md
.claude/skills/describe_pr/SKILL.md
.claude/skills/discovery-interview/SKILL.md
.claude/skills/explore/SKILL.md
.claude/skills/firecrawl-scrape/SKILL.md
.claude/skills/fix/SKILL.md
.claude/skills/github-search/SKILL.md
.claude/skills/help/SKILL.md
.claude/skills/hook-developer/SKILL.md
.claude/skills/implement_plan_micro/SKILL.md
.claude/skills/implement_plan/SKILL.md
.claude/skills/implement_task/SKILL.md
.claude/skills/loogle-search/SKILL.md
.claude/skills/math-help/SKILL.md
.claude/skills/math-router/SKILL.md
.claude/skills/math-unified/SKILL.md
.claude/skills/math/abstract-algebra/fields/SKILL.md
.claude/skills/math/abstract-algebra/groups/SKILL.md
.claude/skills/math/abstract-algebra/rings/SKILL.md
.claude/skills/math/category-theory/categories-functors/SKILL.md
.claude/skills/math/category-theory/limits-colimits/SKILL.md
.claude/skills/math/category-theory/natural-transformations/SKILL.md
.claude/skills/math/complex-analysis/analytic-functions/SKILL.md
.claude/skills/math/complex-analysis/contour-integrals/SKILL.md
.claude/skills/math/functional-analysis/banach-spaces/SKILL.md
.claude/skills/math/functional-analysis/hilbert-spaces/SKILL.md
.claude/skills/math/functional-analysis/operator-theory/SKILL.md
.claude/skills/math/graph-number-theory/graph-algorithms/SKILL.md
.claude/skills/math/graph-number-theory/modular-arithmetic/SKILL.md
.claude/skills/math/graph-number-theory/prime-numbers/SKILL.md
.claude/skills/math/information-theory/channel-capacity/SKILL.md
.claude/skills/math/information-theory/entropy/SKILL.md
.claude/skills/math/information-theory/source-coding/SKILL.md

Metadata

Files
0
Version
d07ff4b
Hash
e78931be
Indexed
2026-08-20 12:47

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 07:25
浙ICP备14020137号-1 $Гость$