math

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T types.Numbers](x T) T

func Acos

func Acos[T types.Numbers](x T) T

func Acosh

func Acosh[T types.Numbers](x T) T

func AllFactors

func AllFactors[T constraints.Integer](n T) []T

func ArcLengthRadiusToRadian

func ArcLengthRadiusToRadian[T types.Numbers](arcLength, radius T) T

https://byjus.com/degree-and-radian-measure-formula/

func Asin

func Asin[T types.Numbers](x T) T

func Asinh

func Asinh[T types.Numbers](x T) T

func Atan

func Atan[T types.Numbers](x T) T

func Atan2

func Atan2[T types.Numbers](y, x T) T

func Atanh

func Atanh[T types.Numbers](x T) T

func Cbrt

func Cbrt[T types.Numbers](x T) T

func Ceil

func Ceil[T types.Numbers](x T) T

func Copysign

func Copysign[T types.Numbers](f, sign T) T

func Cos

func Cos[T types.Numbers](x T) T

func Cosh

func Cosh[T types.Numbers](x T) T

func Dim

func Dim[T types.Numbers](x, y T) T

func Erf

func Erf[T types.Numbers](x T) T

func Erfc

func Erfc[T types.Numbers](x T) T

func Erfcinv

func Erfcinv[T types.Numbers](x T) T

func Erfinv

func Erfinv[T types.Numbers](x T) T

func Exp

func Exp[T types.Numbers](x T) T

func Exp2

func Exp2[T types.Numbers](x T) T

func Expm1

func Expm1[T types.Numbers](x T) T

func FMA

func FMA[T types.Numbers](x, y, z T) T

func Floor

func Floor[T types.Numbers](x T) T

func Gamma

func Gamma[T types.Numbers](x T) T

func GreatestCommonFactor

func GreatestCommonFactor[T types.Numbers](a T, b T) T

func Hypot

func Hypot[T types.Numbers](p, q T) T

func Ilogb

func Ilogb(x float64) int

func Inf

func Inf(x int) float64

func IsInf

func IsInf(f float64, sign int) bool

func IsNaN

func IsNaN(x float64) bool

func J0

func J0[T types.Numbers](x T) T

func J1

func J1[T types.Numbers](x T) T

func Jn

func Jn(n int, x float64) float64

func Ldexp

func Ldexp(n float64, x int) float64

func Lgamma

func Lgamma(x float64) (lgamma float64, sign int)

func Log

func Log[T types.Numbers](x T) T

func Log10

func Log10[T types.Numbers](x T) T

func Log1p

func Log1p[T types.Numbers](x T) T

func Log2

func Log2[T types.Numbers](x T) T

func Logb

func Logb[T types.Numbers](x T) T

func Magnitude

func Magnitude[T constraints.Integer](n T) int

func Max

func Max[T types.Numbers](x, y T) T

func MaxOf

func MaxOf[V types.Numbers](numbers ...V) V

func Mean

func Mean[V types.Numbers](numbers ...V) V

func Median

func Median[V types.Numbers](numbers ...V) V

func Min

func Min[T types.Numbers](x, y T) T

func MinOf

func MinOf[V types.Numbers](numbers ...V) V

func Mod

func Mod[T types.Numbers](x, y T) T

func Modf

func Modf[I types.Numbers, O types.Numbers](x I) (O, O)

func NaN

func NaN() float64

func Nextafter

func Nextafter[T types.Numbers](x, y T) T

func Nextafter32

func Nextafter32[T types.Numbers](x, y T) T

func Pow

func Pow[T types.Numbers](x, y T) T

func Pow10

func Pow10[T constraints.Integer, U types.Numbers](n T) U

func Qube

func Qube[T types.Numbers](n T) T

func Remainder

func Remainder[T types.Numbers](x, y T) T

func Round

func Round[T types.Numbers](x T) T

func RoundToEven

func RoundToEven[T types.Numbers](x T) T

func Signbit

func Signbit(x float64) bool

func Sin

func Sin[T types.Numbers](x T) T

func Sincos

func Sincos(x float64) (sin, cos float64)

func Sinh

func Sinh[T types.Numbers](x T) T

func Sqrt

func Sqrt[T types.Numbers](x T) T

func Square

func Square[T types.Numbers](n T) T

func Sum

func Sum[V types.Numbers](numbers ...V) V

func Tan

func Tan[T types.Numbers](x T) T

func Tanh

func Tanh[T types.Numbers](x T) T

func Trunc

func Trunc[T types.Numbers](x T) T

func Y0

func Y0[T types.Numbers](x T) T

func Y1

func Y1[T types.Numbers](x T) T

func Yn

func Yn(n int, x float64) float64

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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