math

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package math provides a mockable wrapper for math.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Abs

func (*Impl) Abs(x float64) float64

func (*Impl) Acos

func (*Impl) Acos(x float64) float64

func (*Impl) Acosh

func (*Impl) Acosh(x float64) float64

func (*Impl) Asin

func (*Impl) Asin(x float64) float64

func (*Impl) Asinh

func (*Impl) Asinh(x float64) float64

func (*Impl) Atan

func (*Impl) Atan(x float64) float64

func (*Impl) Atan2

func (*Impl) Atan2(y float64, x float64) float64

func (*Impl) Atanh

func (*Impl) Atanh(x float64) float64

func (*Impl) Cbrt

func (*Impl) Cbrt(x float64) float64

func (*Impl) Ceil

func (*Impl) Ceil(x float64) float64

func (*Impl) Copysign

func (*Impl) Copysign(x float64, y float64) float64

func (*Impl) Cos

func (*Impl) Cos(x float64) float64

func (*Impl) Cosh

func (*Impl) Cosh(x float64) float64

func (*Impl) Dim

func (*Impl) Dim(x float64, y float64) float64

func (*Impl) Erf

func (*Impl) Erf(x float64) float64

func (*Impl) Erfc

func (*Impl) Erfc(x float64) float64

func (*Impl) Erfcinv

func (*Impl) Erfcinv(x float64) float64

func (*Impl) Erfinv

func (*Impl) Erfinv(x float64) float64

func (*Impl) Exp

func (*Impl) Exp(x float64) float64

func (*Impl) Exp2

func (*Impl) Exp2(x float64) float64

func (*Impl) Expm1

func (*Impl) Expm1(x float64) float64

func (*Impl) FMA

func (*Impl) FMA(x float64, y float64, z float64) float64

func (*Impl) Float32bits

func (*Impl) Float32bits(f float32) uint32

func (*Impl) Float32frombits

func (*Impl) Float32frombits(b uint32) float32

func (*Impl) Float64bits

func (*Impl) Float64bits(f float64) uint64

func (*Impl) Float64frombits

func (*Impl) Float64frombits(b uint64) float64

func (*Impl) Floor

func (*Impl) Floor(x float64) float64

func (*Impl) Frexp

func (*Impl) Frexp(f float64) (frac float64, exp int)

func (*Impl) Gamma

func (*Impl) Gamma(x float64) float64

func (*Impl) Hypot

func (*Impl) Hypot(p float64, q float64) float64

func (*Impl) Ilogb

func (*Impl) Ilogb(x float64) int

func (*Impl) Inf

func (*Impl) Inf(sign int) float64

func (*Impl) IsInf

func (*Impl) IsInf(f float64, sign int) bool

func (*Impl) IsNaN

func (*Impl) IsNaN(f float64) (is bool)

func (*Impl) J0

func (*Impl) J0(x float64) float64

func (*Impl) J1

func (*Impl) J1(x float64) float64

func (*Impl) Jn

func (*Impl) Jn(n int, x float64) float64

func (*Impl) Ldexp

func (*Impl) Ldexp(frac float64, exp int) float64

func (*Impl) Lgamma

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

func (*Impl) Log

func (*Impl) Log(x float64) float64

func (*Impl) Log10

func (*Impl) Log10(x float64) float64

func (*Impl) Log1p

func (*Impl) Log1p(x float64) float64

func (*Impl) Log2

func (*Impl) Log2(x float64) float64

func (*Impl) Logb

func (*Impl) Logb(x float64) float64

func (*Impl) Max

func (*Impl) Max(x float64, y float64) float64

func (*Impl) Min

func (*Impl) Min(x float64, y float64) float64

func (*Impl) Mod

func (*Impl) Mod(x float64, y float64) float64

func (*Impl) Modf

func (*Impl) Modf(f float64) (int float64, frac float64)

func (*Impl) NaN

func (*Impl) NaN() float64

func (*Impl) Nextafter

func (*Impl) Nextafter(x float64, y float64) (r float64)

func (*Impl) Nextafter32

func (*Impl) Nextafter32(x float32, y float32) (r float32)

func (*Impl) Pow

func (*Impl) Pow(x float64, y float64) float64

func (*Impl) Pow10

func (*Impl) Pow10(n int) float64

func (*Impl) Remainder

func (*Impl) Remainder(x float64, y float64) float64

func (*Impl) Round

func (*Impl) Round(x float64) float64

func (*Impl) RoundToEven

func (*Impl) RoundToEven(x float64) float64

func (*Impl) Signbit

func (*Impl) Signbit(x float64) bool

func (*Impl) Sin

func (*Impl) Sin(x float64) float64

func (*Impl) Sincos

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

func (*Impl) Sinh

func (*Impl) Sinh(x float64) float64

func (*Impl) Sqrt

func (*Impl) Sqrt(x float64) float64

func (*Impl) Tan

func (*Impl) Tan(x float64) float64

func (*Impl) Tanh

func (*Impl) Tanh(x float64) float64

func (*Impl) Trunc

func (*Impl) Trunc(x float64) float64

func (*Impl) Y0

func (*Impl) Y0(x float64) float64

func (*Impl) Y1

func (*Impl) Y1(x float64) float64

func (*Impl) Yn

func (*Impl) Yn(n int, x float64) float64

type Interface

type Interface interface {
	Abs(x float64) float64
	Acos(x float64) float64
	Acosh(x float64) float64
	Asin(x float64) float64
	Asinh(x float64) float64
	Atan(x float64) float64
	Atan2(y float64, x float64) float64
	Atanh(x float64) float64
	Cbrt(x float64) float64
	Ceil(x float64) float64
	Copysign(x float64, y float64) float64
	Cos(x float64) float64
	Cosh(x float64) float64
	Dim(x float64, y float64) float64
	Erf(x float64) float64
	Erfc(x float64) float64
	Erfcinv(x float64) float64
	Erfinv(x float64) float64
	Exp(x float64) float64
	Exp2(x float64) float64
	Expm1(x float64) float64
	FMA(x float64, y float64, z float64) float64
	Float32bits(f float32) uint32
	Float32frombits(b uint32) float32
	Float64bits(f float64) uint64
	Float64frombits(b uint64) float64
	Floor(x float64) float64
	Frexp(f float64) (frac float64, exp int)
	Gamma(x float64) float64
	Hypot(p float64, q float64) float64
	Ilogb(x float64) int
	Inf(sign int) float64
	IsInf(f float64, sign int) bool
	IsNaN(f float64) (is bool)
	J0(x float64) float64
	J1(x float64) float64
	Jn(n int, x float64) float64
	Ldexp(frac float64, exp int) float64
	Lgamma(x float64) (lgamma float64, sign int)
	Log(x float64) float64
	Log10(x float64) float64
	Log1p(x float64) float64
	Log2(x float64) float64
	Logb(x float64) float64
	Max(x float64, y float64) float64
	Min(x float64, y float64) float64
	Mod(x float64, y float64) float64
	Modf(f float64) (int float64, frac float64)
	NaN() float64
	Nextafter(x float64, y float64) (r float64)
	Nextafter32(x float32, y float32) (r float32)
	Pow(x float64, y float64) float64
	Pow10(n int) float64
	Remainder(x float64, y float64) float64
	Round(x float64) float64
	RoundToEven(x float64) float64
	Signbit(x float64) bool
	Sin(x float64) float64
	Sincos(x float64) (sin float64, cos float64)
	Sinh(x float64) float64
	Sqrt(x float64) float64
	Tan(x float64) float64
	Tanh(x float64) float64
	Trunc(x float64) float64
	Y0(x float64) float64
	Y1(x float64) float64
	Yn(n int, x float64) float64
}

Directories

Path Synopsis
Package big provides a mockable wrapper for math/big.
Package big provides a mockable wrapper for math/big.
Package bits provides a mockable wrapper for math/bits.
Package bits provides a mockable wrapper for math/bits.
Package cmplx provides a mockable wrapper for math/cmplx.
Package cmplx provides a mockable wrapper for math/cmplx.
Package rand provides a mockable wrapper for math/rand.
Package rand provides a mockable wrapper for math/rand.

Jump to

Keyboard shortcuts

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