component

package
v0.0.0-...-aa2dd7b Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleAddFirst

func ExampleAddFirst()

ExampleAddFirst -

func ExamplePowFirst

func ExamplePowFirst()

ExamplePowFirst -

func ExampleSinFirst

func ExampleSinFirst()

ExampleSinFirst -

func ExampleSubFirst

func ExampleSubFirst()

ExampleSubFirst -

Types

type C2

type C2 struct {
	Calculation []*Calculate
	Result      float64
}

C2 - Calculation is the component used for calculation Result is used to store the intermediate or final value calculated by the component

func (*C2) Run

func (c2 *C2) Run(ch chan float64)

Run -

type Calculate

type Calculate struct {
	Operator string
	Arg      []float64
}

Calculate -

func (*Calculate) Run

func (cal *Calculate) Run(value float64) (result float64)

Run - all calculation methods are hidden in Run you can get the result by calling cal.Run()

Jump to

Keyboard shortcuts

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