test

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationAdd      = "+"
	OperationSubtract = "-"
	OperationMultiply = "*"
	OperationDivide   = "/"
)

Predefined operations

Variables

This section is empty.

Functions

func Calc

func Calc(calc func(operation CalcOperation) func(first, second float64) float64)

Calc is a function to test a function that returns operation function for operation

func Polynomial

func Polynomial(polynomial func([]float64) func(x float64) float64)

Polynomial is a function to test a polynomial function

Types

type CalcOperation

type CalcOperation string

CalcOperation is a type that define allowed operations for calculator

Jump to

Keyboard shortcuts

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