calc

package
v0.0.0-...-b5d641a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

package calc provides some basic calculus routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deriv

func Deriv(xs, ys []float64, order int, opts ...DerivOption) []float64

Deriv computes the numerical derivative of a a sequence of (x, y) points. The points do not need to be uniformly spaced.

The only supported orders are 2 and 4.

Types

type DerivOption

type DerivOption internalDerivOption

func Out

func Out(out []float64) DerivOption

Out supplies a call to Deriv with a slice to write derivatives to.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL