numerical-integration

Select and apply numerical integration methods for definite, improper, and multi-dimensional integrals.

3.9k|296|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill numerical-integration-parcadei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: numerical-integration
Source: https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/math/numerical-methods/numerical-integration
Command: npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill numerical-integration-parcadei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides strategies and tools for solving numerical integration problems, particularly within the domain of numerical methods.

Core Features & Use Cases

  • Method Selection: Guides users in choosing appropriate quadrature methods based on integral type (definite, improper, multi-dimensional) and integrand characteristics.
  • Adaptive Integration: Facilitates the use of adaptive methods for precise error control.
  • Multi-dimensional Integration: Supports tools for integrating functions in two or three dimensions.
  • Verification: Offers methods for verifying the accuracy of integration results.
  • Use Case: When faced with a complex definite integral that lacks an analytical solution, this skill helps select and apply a suitable numerical method like scipy.integrate.quad or sympy.integrate.

Quick Start

Use the numerical-integration skill to compute the definite integral of sin(x) from 0 to pi using scipy.

Frequently Asked Questions about numerical-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute definite integrals in Python when there is no analytical solution?

To compute definite integrals without an analytical solution, you can use numerical integration libraries like SciPy and SymPy to apply quadrature methods and calculate approximate values.

What is the best way to choose a numerical integration method for improper or multi-dimensional integrals?

Selecting a numerical integration method for improper or multi-dimensional integrals depends on integrand characteristics, guiding the choice between Gaussian quadrature, adaptive methods, and Monte Carlo integration.

Can I use SciPy for adaptive integration and error control?

Yes, you can use SciPy for adaptive integration to achieve precise error control, utilizing functions designed to dynamically adjust the evaluation steps for accurate numerical integration.

How does Monte Carlo integration compare to Gaussian quadrature for multi-dimensional integrals?

Monte Carlo integration handles multi-dimensional integrals through random sampling, while Gaussian quadrature uses specific nodes and weights, with method selection depending on the integrand's characteristics.

How do I verify the accuracy of numerical integration results against analytical solutions?

You can verify numerical integration accuracy by comparing the computed results against known analytical solutions using SymPy, ensuring the chosen quadrature method provides correct values.

When should I use sympy.integrate instead of scipy.integrate.quad?

Use sympy.integrate for symbolic computation and finding analytical solutions, whereas scipy.integrate.quad is suited for numerical approximation of definite integrals lacking closed-form answers.