Versions in this module Expand all Collapse all v0 v0.2.0 Oct 17, 2026 v0.1.0 Oct 11, 2026 Changes in this version + const DefaultEpsAbs + const DefaultEpsRel + const DefaultLimLst + const DefaultLimit + const DefaultMaxP1 + var ErrBadIntegrand = errors.New("integrate: extremely bad integrand behaviour") + var ErrCycles = errors.New("integrate: bad integrand behaviour in one or more cycles") + var ErrDivMax = errors.New("integrate: Romberg: DivMax exceeded") + var ErrDivergent = errors.New("integrate: integral is probably divergent") + var ErrExcessWork = errors.New("integrate: excess work done on this call") + var ErrExtrapolation = errors.New("integrate: extrapolation does not converge") + var ErrInvalidInput = errors.New("integrate: invalid input") + var ErrLimit = errors.New("integrate: maximum number of subdivisions reached") + var ErrODEInput = errors.New("integrate: invalid ODE input") + var ErrRoundoff = errors.New("integrate: roundoff error detected") + var ErrSamples = errors.New("integrate: invalid samples") + var ErrStepTooSmall = errors.New("integrate: required step size is less than spacing between numbers") + func Const(v float64) func(float64) float64 + func Const2(v float64) func(float64, float64) float64 + func CumulativeTrapezoid(y, x []float64, dx float64, initial bool) ([]float64, error) + func CumulativeTrapezoidND(y *ndarray.Array, x []float64, dx float64, axis int, initial bool) (*ndarray.Array, error) + func FixedQuad(f func(float64) float64, a, b float64, n int) (float64, error) + func GaussLegendre(n int) (x, w []float64) + func Romb(y []float64, dx float64) (float64, error) + func Romberg(f func(float64) float64, a, b float64, opts *RombergOptions) (float64, error) + func Simpson(y, x []float64, dx float64) (float64, error) + func SimpsonND(y *ndarray.Array, x []float64, dx float64, axis int) (*ndarray.Array, error) + func Trapezoid(y, x []float64, dx float64) (float64, error) + func TrapezoidND(y *ndarray.Array, x []float64, dx float64, axis int) (*ndarray.Array, error) + type Event struct + Direction float64 + F func(t float64, y []float64) float64 + Terminal int + type IVPOptions struct + ATol float64 + ATolVec []float64 + DenseOutput bool + Events []Event + FirstStep float64 + Jac JacFunc + MaxStep float64 + Method Method + RTol float64 + RTolVec []float64 + TEval []float64 + type JacFunc func(t float64, y []float64, jac []float64) + type Method int + const BDF + const DOP853 + const LSODA + const RK23 + const RK45 + const Radau + func (m Method) String() string + type NQuadOptions struct + Opts []*QuadOptions + type ODEFunc func(t float64, y, dydt []float64) + type ODESolution struct + func (s *ODESolution) Eval(t float64) []float64 + func (s *ODESolution) EvalArray(ts []float64) *ndarray.Array + func (s *ODESolution) EvalInto(t float64, y []float64) + func (s *ODESolution) TMax() float64 + func (s *ODESolution) TMin() float64 + type OdeintInfo struct + HU []float64 + MUsed []int + Message string + NFE []int + NJE []int + NST []int + TCur []float64 + func Odeint(f ODEFunc, y0 []float64, t []float64, opts *OdeintOptions) (*ndarray.Array, *OdeintInfo, error) + type OdeintOptions struct + ATol float64 + ATolVec []float64 + H0 float64 + HMax float64 + Jac JacFunc + MxStep int + RTol float64 + RTolVec []float64 + type QuadError struct + Detail string + Ier int + func (e *QuadError) Error() string + func (e *QuadError) Unwrap() error + type QuadOptions struct + Alpha float64 + Beta float64 + C float64 + EpsAbs float64 + EpsRel float64 + LimLst int + Limit int + MaxP1 int + Omega float64 + Points []float64 + Weight Weight + type QuadResult struct + AbsErr float64 + CycleIer []int + NEval int + NIntervals int + Value float64 + func DblQuad(f func(y, x float64) float64, a, b float64, gfun, hfun func(x float64) float64, ...) (QuadResult, error) + func NQuad(f func(x []float64) float64, ranges []Range, opts *NQuadOptions) (QuadResult, error) + func Quad(f func(float64) float64, a, b float64, opts *QuadOptions) (QuadResult, error) + func TplQuad(f func(z, y, x float64) float64, a, b float64, ...) (QuadResult, error) + type Range func(outer []float64) (lo, hi float64) + func ConstRange(lo, hi float64) Range + type RombergOptions struct + DivMax int + RTol float64 + Tol float64 + type Solution struct + Message string + NFev int + NFevJac int + NJev int + NLU int + NSteps int + Sol *ODESolution + Status int + Success bool + T []float64 + TEvents [][]float64 + Y [][]float64 + YEvents [][][]float64 + func SolveIVP(f ODEFunc, tSpan [2]float64, y0 []float64, opts *IVPOptions) (*Solution, error) + func (s *Solution) Component(i int) []float64 + func (s *Solution) TArray() *ndarray.Array + func (s *Solution) YArray() *ndarray.Array + type Weight int + const WeightAlg + const WeightAlgLog + const WeightAlgLogA + const WeightAlgLogB + const WeightCauchy + const WeightCos + const WeightNone + const WeightSin