JuliaMath/QuadGK.jl
소개
adaptive 1d numerical Gauss–Kronrod integration in Julia
과학 및 공학측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalQuadGK.jl
This package provides support for one-dimensional numerical integration in Julia using adaptive
Gauss-Kronrod quadrature.
The code was originally part of Base Julia. It supports integration of arbitrary numeric types,
including arbitrary precision (BigFloat), and even integration of arbitrary normed vector spaces
(e.g. matrix-valued integrands).
The package provides three basic functions: quadgk, gauss, and kronrod.
quadgk performs the integration, gauss computes Gaussian quadrature points and weights for integrating
over the interval [a, b], and kronrod computes Kronrod points, weights, and embedded Gaussian quadrature
weights for integrating over [-1, 1]. Typical usage looks like:
using QuadGK
integral, err = quadgk(x -> exp(-x^2), 0, 1, rtol=1e-8)
which computes the integral of exp(–x²) from x=0 to x=1 to a relative tolerance of 10⁻⁸, and returns the approximate integral = 0.746824132812427 and error estimate err = 7.887024366937112e-13 (which is actually smaller than the requested tolerance: convergence was very rapid because the integrand is smooth).
For more information, see the documentation.
관련 프로젝트 살펴보기
불러오는 중…