Toolverse
All skills

numerical-integration

by parcadei

Problem-solving strategies for numerical integration in numerical methods

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
parcadei
Category
Data Science
Views
1

About this skill

Problem-solving strategies for numerical integration in numerical methods

How to use

  1. Zidentyfikuj typ całki, którą chcesz rozwiązać: całka oznaczona na przedziale skończonym, całka niewłaściwa (nieskończone granice lub osobliwości) czy całka wielowymiarowa.

  2. Wybierz metodę kwadratury na podstawie charakteru funkcji podcałkowej. Dla funkcji gładkiej na przedziale skończonym zastosuj kwadratury Gaussa. Dla całek oscylacyjnych użyj metod specjalistycznych. Dla osobliwości na końcu przedziału wybierz metody adaptacyjne.

  3. Wykonaj całkowanie adaptacyjne za pomocą scipy.integrate.quad dla całek jednowymiarowych, podając tolerancje błędu (epsabs, epsrel). Dla dwóch wymiarów użyj dblquad, dla trzech wymiarów tplquad. Do wyższych wymiarów zastosuj metodę Monte Carlo.

  4. Uruchom obliczenia numeryczne poleceniem: uv run python -c "from scipy.integrate import quad; import numpy as np; result, err = quad(lambda x: np.sin(x), 0, np.pi); print('Integral:', result, 'Error:', err)" – zastępując funkcję i granice własnymi wartościami.

  5. Zweryfikuj dokładność wyniku, porównując go z rozwiązaniem analitycznym (jeśli istnieje) lub zmniejszając tolerancję i obserwując zbieżność. Możesz również użyć SymPy do obliczeń symbolicznych: uv run python -m runtime.harness scripts/sympy_compute.py integrate "sin(x)" --var x --from 0 --to "pi".

Related skills

arxiv-search

by langchain-ai

Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields

Data Science
76172

ml-paper-writing

by davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation

Data Science
2681

prompt-optimizer

by solatis

Optimize system prompts for Claude Code agents using proven prompt engineering patterns. Use when users request prompt improvement, optimization, or refinement for agent workflows, tool instructions, or system behaviors.

Data Science
15109

skill-creator

by anthropics

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

Data Science
59147

notebooklm

by leegonzales

Query Google NotebookLM for source-grounded, citation-backed answers from uploaded documents. Reduces hallucinations through Gemini's document-only responses. Browser automation with library management and persistent authentication.

Data Science
142112

a-stock-analysis

by openclaw

A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。

Data Science
48153