gonum: gonum.org/v1/gonum/integrate/testquad Index | Files

package testquad

import "gonum.org/v1/gonum/integrate/testquad"

Package testquad provides integrals for testing quadrature algorithms.

Index

Package Files

testquad.go

type Integral Uses

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 Uses

func Constant(alpha float64) Integral

Constant returns the integral of a constant function

∫_{-1}^2 alpha dx

func ExpOverX2Plus1 Uses

func ExpOverX2Plus1() Integral

ExpOverX2Plus1 returns the integral

∫_0^1 exp(x)/(x*x+1)dx

func Poly Uses

func Poly(degree int) Integral

Poly returns the integral of a polynomial

∫_{-1}^2 x^degree dx

func Sin Uses

func Sin() Integral

Sin returns the integral

∫_0^1 sin(x)dx

func Sqrt Uses

func Sqrt() Integral

Sqrt returns the integral

∫_0^1 sqrt(x)dx

func XExpMinusX Uses

func XExpMinusX() Integral

XExpMinusX returns the integral

∫_0^1 x*exp(-x)dx

Package testquad imports 2 packages (graph) and is imported by 2 packages. Updated 2019-10-18. Refresh now. Tools for package owners.