sqrt

package
v0.0.0-...-de6dcb2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNegSqrt    = errors.New("sqrt of negative number")
	ErrNoSolution = errors.New("no solution found")
)

Common errors

Functions

func Abs

func Abs(val float64) float64

Abs returns the absolute value of val

func Sqrt

func Sqrt(val float64) (float64, error)

Sqrt return the square root of a number

Types

This section is empty.

Jump to

Keyboard shortcuts

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