contour-integrals
SolidProblem-solving strategies for contour integrals in complex analysis
AI & Automation 496 stars
41 forks Updated 1 months ago MIT
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Contour Integrals
## When to Use
Use this skill when working on contour-integrals problems in complex analysis.
## Decision Tree
1. **Integral Type Selection**
- For integral_{-inf}^{inf} f(x)dx where f decays like 1/x^a, a > 1:
* Use semicircular contour (upper or lower half-plane)
- For integral involving e^{ix} or trigonometric functions:
* Close in upper half-plane for e^{ix} (Jordan's lemma)
* Close in lower half-plane for e^{-ix}
- For integral_0^{2pi} f(cos theta, sin theta)d theta:
* Substitute z = e^{i theta}, use unit circle contour
- For integrand with branch cuts:
* Use keyhole or dogbone contour around cuts
2. **Contour Setup**
- Identify singularities and their locations
- Choose contour that encloses desired singularities
- `sympy_compute.py solve "f(z) = inf"` to find poles
3. **Jordan's Lemma**
- For integral over semicircle of radius R:
- If |f(z)| -> 0 as |z| -> inf, semicircular contribution vanishes
4. **Compute with Residue Theorem**
- oint_C f(z)dz = 2*pi*i * (sum of residues inside C)
- `sympy_compute.py residue "f(z)" --var z --at z0`
## Tool Commands
### Sympy_Residue
```bash
uv run python -m runtime.harness scripts/sympy_compute.py residue "1/(z**2 + 1)" --var z --at I
```
### Sympy_Poles
```bash
uv run python -m runtime.harness scripts/sympy_compute.py solve "z**2 + 1" --var z
```
### Sympy_Integrate
```bash
uv run python -m runt...
Details
- Author
- vibeeval
- Repository
- vibeeval/vibecosystem
- Created
- 2 months ago
- Last Updated
- 1 months ago
- Language
- C#
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
contour-integrals
Problem-solving strategies for contour integrals in complex analysis
3,795 Updated 4 months ago
parcadei AI & Automation Solid
residues
Problem-solving strategies for residues in complex analysis
496 Updated 1 months ago
vibeeval AI & Automation Solid
residues
Problem-solving strategies for residues in complex analysis
3,795 Updated 4 months ago
parcadei AI & Automation Solid
analytic-functions
Problem-solving strategies for analytic functions in complex analysis
496 Updated 1 months ago
vibeeval AI & Automation Solid
analytic-functions
Problem-solving strategies for analytic functions in complex analysis
3,795 Updated 4 months ago
parcadei