fops

package
v0.0.0-...-0a688d3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 2 Imported by: 0

README

Folder for housing function operations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteValue

func AbsoluteValue(f func(x ...float64) float64) (h func(x ...float64) float64)

AbsoluteValue returns the absolute value of a funciton

func AbsoluteValueComplex

func AbsoluteValueComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

AbsoluteValueComplex returns the absolute value of a complex function

func Add

func Add(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Add returns the addition of two functions

func AddComplex

func AddComplex(f func(x ...complex128) complex128, g func(x ...complex128) complex128) (h func(x ...complex128) complex128)

AddComplex returns the addition of two complex functions

func Arccosine

func Arccosine(f func(x ...float64) float64) (h func(x ...float64) float64)

Arccosine returns the arccosine of a function

func ArccosineComplex

func ArccosineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

ArccosineComplex returns the arccosine of a complex function

func Arcsine

func Arcsine(f func(x ...float64) float64) (h func(x ...float64) float64)

Arcsine returns the arcsine of a function

func ArcsineComplex

func ArcsineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

ArcsineComplex returns the arcsine of a complex function

func Arctangent

func Arctangent(f func(x ...float64) float64) (h func(x ...float64) float64)

Arctangent returns the arctangent of a function

func Arctangent2

func Arctangent2(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Arctangent2 returns the arctangent using the signs of the two functions to tell which quadrant the resulting function is in. h(x...) = Atan(f(xx...)/g(x...))

func ArctangentComplex

func ArctangentComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

ArctangentComplex returns the arctangent of a complex function

func ArgumentComplex

func ArgumentComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

ArgumentComplex returns the argument of a complex function

func Ceil

func Ceil(f func(x ...float64) float64) (h func(x ...float64) float64)

Ceil returns the ceil (rounded up) of a function

func ConjugateComplex

func ConjugateComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

ConjugateComplex returns the conjugate of a complex function

func Constant

func Constant(constant float64) (f func(x ...float64) float64)

Constant returns a constant

func ConstantComplex

func ConstantComplex(constant complex128) (f func(x ...complex128) complex128)

ConstantComplex returns a complex constand

func Cosine

func Cosine(f func(x ...float64) float64) (h func(x ...float64) float64)

Cosine returns the cosine of a function

func CosineComplex

func CosineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

CosineComplex returns the cosine of a complex function

func CotComplex

func CotComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

CotComplex returns the cot of a complex function

func Divide

func Divide(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Divide returns the division of two functions

func DivideComplex

func DivideComplex(f func(x ...complex128) complex128, g func(x ...complex128) complex128) (h func(x ...complex128) complex128)

DivideComplex returns the division of two complex functions

func ErrorFunction

func ErrorFunction(f func(x ...float64) float64) (h func(x ...float64) float64)

ErrorFunction returns the error function of a function.

func Floor

func Floor(f func(x ...float64) float64) (h func(x ...float64) float64)

Floor returns the floor (rounded down) of a function

func HyperbolicCosine

func HyperbolicCosine(f func(x ...float64) float64) (h func(x ...float64) float64)

HyperbolicCosine returns the hyperbolicCosine of a function

func HyperbolicCosineComplex

func HyperbolicCosineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

HyperbolicCosineComplex returns the hyperbolicCosine of a complex function

func HyperbolicSine

func HyperbolicSine(f func(x ...float64) float64) (h func(x ...float64) float64)

HyperbolicSine returns the hyperbolicSine of a function

func HyperbolicSineComplex

func HyperbolicSineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

HyperbolicSineComplex returns the hyperbolicSine of a complex function

func HyperbolicTangent

func HyperbolicTangent(f func(x ...float64) float64) (h func(x ...float64) float64)

HyperbolicTangent returns the hyperbolicTangent of a function

func HyperbolicTangentComplex

func HyperbolicTangentComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

HyperbolicTangentComplex returns the hyperbolicTangent of a complex function

func InverseHyperbolicCosine

func InverseHyperbolicCosine(f func(x ...float64) float64) (h func(x ...float64) float64)

InverseHyperbolicCosine returns the inverseHyperbolicCosine of a function

func InverseHyperbolicCosineComplex

func InverseHyperbolicCosineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

InverseHyperbolicCosineComplex returns the inverseHyperbolicCosine of a complex function

func InverseHyperbolicSine

func InverseHyperbolicSine(f func(x ...float64) float64) (h func(x ...float64) float64)

InverseHyperbolicSine returns the inverseHyperbolicSine of a function

func InverseHyperbolicSineComplex

func InverseHyperbolicSineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

InverseHyperbolicSineComplex return the inverseHyperbolicSine of a complex function

func InverseHyperbolicTangent

func InverseHyperbolicTangent(f func(x ...float64) float64) (h func(x ...float64) float64)

InverseHyperbolicTangent returns the inverseHyperbolicTangent of a function

func InverseHyperbolicTangentComplex

func InverseHyperbolicTangentComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

InverseHyperbolicTangentComplex returns the inverseHyperbolicTangent of a complex function

func LogBaseGx

func LogBaseGx(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

LogBaseGx returns the log of two functions g(x) will typically be a constant function

func LogBaseGxComplex

func LogBaseGxComplex(f func(x ...complex128) complex128, g func(x ...complex128) complex128) (h func(x ...complex128) complex128)

LogBaseGxComplex returns the log of two complex functions g(x) will typically be a constant function

func Max

func Max(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Max returns the max of two functions

func Min

func Min(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Min returns the minimum

func Modulo

func Modulo(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Modulo returns the modulo of a function

func Multiple

func Multiple(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Multiple returns the multiplication of two functions

func MultipleComplex

func MultipleComplex(f func(x ...complex128) complex128, g func(x ...complex128) complex128) (h func(x ...complex128) complex128)

MultipleComplex returns the multiplication of two complex functions

func NegativeVariable

func NegativeVariable(index int) (f func(x ...float64) float64)

NegativeVariable returns a negative real variable

func NegativeVariableComplex

func NegativeVariableComplex(index int) (f func(x ...complex128) complex128)

NegativeVariableComplex returns a negative complex variable

func Parens

func Parens(f func(x ...float64) float64) (h func(x ...float64) float64)

Parens returns the identity of f(x...)

func ParensComplex

func ParensComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

ParensComplex returns the Identity of f(x...)

func Power

func Power(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Power returns the power of a function raised two another function

func PowerComplex

func PowerComplex(f func(x ...complex128) complex128, g func(x ...complex128) complex128) (h func(x ...complex128) complex128)

PowerComplex return the power of a complex function raised to another complex function

func Sine

func Sine(f func(x ...float64) float64) (h func(x ...float64) float64)

Sine returns the sine of a function

func SineComplex

func SineComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

SineComplex returns the sine of a complex function

func SquareRoot

func SquareRoot(f func(x ...float64) float64) (h func(x ...float64) float64)

SquareRoot returns the square root of a function

func SquareRootComplex

func SquareRootComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

SquareRootComplex returns the square root of a complex function

func Subtract

func Subtract(f func(x ...float64) float64, g func(x ...float64) float64) (h func(x ...float64) float64)

Subtract returns the subtraction of two functions

func SubtractComplex

func SubtractComplex(f func(x ...complex128) complex128, g func(x ...complex128) complex128) (h func(x ...complex128) complex128)

SubtractComplex returns the straction of two complex functions

func Tangent

func Tangent(f func(x ...float64) float64) (h func(x ...float64) float64)

Tangent returns the tangent of a function

func TangentComplex

func TangentComplex(f func(x ...complex128) complex128) (h func(x ...complex128) complex128)

TangentComplex returns the tangent of a complex function

func Variable

func Variable(index int) (f func(x ...float64) float64)

Variable returns a real variable

func VariableComplex

func VariableComplex(index int) (f func(x ...complex128) complex128)

VariableComplex return a complex variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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