package testquad
import "gonum.org/v1/gonum/integrate/testquad"
Package testquad provides integrals for testing quadrature algorithms.
Index ¶
Types ¶
type Integral ¶
type Integral struct { Name string A, B float64 // Integration limits F func(float64) float64 // Integrand Value float64 }
Integral is a definite integral
∫_a^b f(x)dx
with a known value.
func Constant ¶
Constant returns the integral of a constant function
∫_{-1}^2 alpha dx
func ExpOverX2Plus1 ¶
func ExpOverX2Plus1() Integral
ExpOverX2Plus1 returns the integral
∫_0^1 exp(x)/(x*x+1)dx
func Poly ¶
Poly returns the integral of a polynomial
∫_{-1}^2 x^degree dx
func Sin ¶
func Sin() Integral
Sin returns the integral
∫_0^1 sin(x)dx
func Sqrt ¶
func Sqrt() Integral
Sqrt returns the integral
∫_0^1 sqrt(x)dx
func XExpMinusX ¶
func XExpMinusX() Integral
XExpMinusX returns the integral
∫_0^1 x*exp(-x)dx
Source Files ¶
testquad.go
- Version
- v0.15.1 (latest)
- Published
- Aug 16, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 20 hours ago –
Tools for package owners.