integrate

package
v0.0.0-...-733ddd1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePlot

func CreatePlot(title, x, y string) *plot.Plot

CreatePlot used to create base plot object.

func DrawPlot

func DrawPlot(p *plot.Plot, ds plotter.XYs, n, m, md1, md2 int)

DrawPlot used to draw plot with given dots.

func Gauss

func Gauss(f func(float64) float64, a, b float64, n int) float64

Gauss function used to integrate with Gauss-Legendre quadrature.

func GenDots

func GenDots(f func(p float64) float64, sc []float64) plotter.XYs

GenDots used to generate dots for plot representation.

func Integrate

func Integrate(f Integrated, lm [][]float64, n []int, fn []Integrator) float64

Integrate function used to split integration directions.

func SavePlot

func SavePlot(p *plot.Plot, f string)

SavePlot used to save gonum plot to file.

func Simpson

func Simpson(f func(float64) float64, a, b float64, n int) float64

Simpson function used to integrate with Simpson method.

Types

type Integrated

type Integrated func(float64, float64) float64

Integrated type used to represent integrated function.

func IntegratedFunc

func IntegratedFunc(p float64) Integrated

IntegratedFunc function used to choose inner and outer direction of integration.

type Integrator

type Integrator func(func(float64) float64, float64, float64, int) float64

Integrator type used to represent integrator function.

Jump to

Keyboard shortcuts

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