Documentation ¶
Index ¶
- func AntiDiff(f cFunc, a, b float64, i ...int) float64
- func CountElements(ops string, elements []string) int
- func Diff(fn cFunc, point float64, usrPrec ...int) float64
- func GlqNodes(n int, f cFunc) (node []float64, weight []float64)
- func IsElement(ops string, elements []string, i int) bool
- func LegendrePoly(n int) []cFunc
- func NewtonRaphson(f, df cFunc, x0 float64) float64
- func SetPrec(defaultPrec int, usrPrec []int) int
- type Function
- func (fnc Function) AntiDiff(lower float64, upper float64, usrPrec ...int) float64
- func (fnc Function) Diff(point float64, usrPrec ...int) float64
- func (fnc Function) Eval(val float64) float64
- func (fnc Function) GetFunc() string
- func (fnc Function) GetToksArray(j int) []string
- func (fnc Function) GetToksArrayAbstract() []string
- func (fnc Function) GetToksArrayLit() []string
- func (fnc Function) GetToksString(j int) string
- func (fnc Function) GetToksStringAbstract() string
- func (fnc Function) GetToksStringLit() string
- func (fnc Function) ParseChars() [][]string
- func (fnc Function) ParseToks() []string
- func (fnc *Function) SetFunc(name string)
- func (fnc Function) SymDiff() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountElements ¶
* Counts the number of elements, e.g. 2*x+345 -> [2,*,x,+,345] -> 5
func LegendrePoly ¶
func LegendrePoly(n int) []cFunc
func NewtonRaphson ¶
Types ¶
type Function ¶
func (Function) AntiDiff ¶
* Wrappers for Diff and AntiDiff for evaluating the function inputted as a string with the Function struct
func (Function) GetToksArray ¶
func (Function) GetToksArrayAbstract ¶
func (Function) GetToksArrayLit ¶
func (Function) GetToksString ¶
func (Function) GetToksStringAbstract ¶
func (Function) GetToksStringLit ¶
func (Function) ParseChars ¶
* Returns toks. * i => tok index in function * [i][0] => constant/variable * [i][1] => value
Click to show internal directories.
Click to hide internal directories.