newton

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproximateDerivative

func ApproximateDerivative(f common.System, x_0 mat.Vector) mat.Matrix

func FindRoot

func FindRoot(f common.System, D common.Derivative,
	x_0 mat.Vector, params *Params) (mat.Vector, error)

FindRoot uses the simplified Newton method in order to approximate a root. The derivate is required to be invertable at x_0, otherwise error is thrown. D is optional and if not given it will be approximated.

Types

type Params

type Params = struct {
	Max_iter  int
	Precision float64
}

Jump to

Keyboard shortcuts

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