Install
mkdir -p .claude/skills/residues && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3318" && unzip -o skill.zip -d .claude/skills/residues && rm skill.zipInstalls to .claude/skills/residues
About this skill
Residues
When to Use
Use this skill when working on residues problems in complex analysis.
Decision Tree
-
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)
- Simple pole at z0:
-
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
-
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
-
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.
More by parcadei
View all skills by parcadei →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversLeverage structured decision making and advanced problem solving techniques for step-by-step analysis and adaptive strat
Mobile Next offers fast, seamless mobile automation for iOS and Android. Automate apps, extract data, and simplify mobil
Orchestrate complex problem-solving with our multi agent system—specialized agents offer deep, structured, and parallel
Use Backlinks (Ahrefs) for detailed SEO analysis. Check website backlinks, anchor text, domain rating & more with this b
Actor-Critic Thinking offers a unique dual-perspective approach to analyze creative works and decisions with empathy and
Think offers a dedicated thinking space for step-by-step analysis, memory retention, and encouraging feedback on complex
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.