Documentation ¶
Overview ¶
Package math provides a mockable wrapper for math.
Index ¶
- type Impl
- func (*Impl) Abs(x float64) float64
- func (*Impl) Acos(x float64) float64
- func (*Impl) Acosh(x float64) float64
- func (*Impl) Asin(x float64) float64
- func (*Impl) Asinh(x float64) float64
- func (*Impl) Atan(x float64) float64
- func (*Impl) Atan2(y float64, x float64) float64
- func (*Impl) Atanh(x float64) float64
- func (*Impl) Cbrt(x float64) float64
- func (*Impl) Ceil(x float64) float64
- func (*Impl) Copysign(x float64, y float64) float64
- func (*Impl) Cos(x float64) float64
- func (*Impl) Cosh(x float64) float64
- func (*Impl) Dim(x float64, y float64) float64
- func (*Impl) Erf(x float64) float64
- func (*Impl) Erfc(x float64) float64
- func (*Impl) Erfcinv(x float64) float64
- func (*Impl) Erfinv(x float64) float64
- func (*Impl) Exp(x float64) float64
- func (*Impl) Exp2(x float64) float64
- func (*Impl) Expm1(x float64) float64
- func (*Impl) FMA(x float64, y float64, z float64) float64
- func (*Impl) Float32bits(f float32) uint32
- func (*Impl) Float32frombits(b uint32) float32
- func (*Impl) Float64bits(f float64) uint64
- func (*Impl) Float64frombits(b uint64) float64
- func (*Impl) Floor(x float64) float64
- func (*Impl) Frexp(f float64) (frac float64, exp int)
- func (*Impl) Gamma(x float64) float64
- func (*Impl) Hypot(p float64, q float64) float64
- func (*Impl) Ilogb(x float64) int
- func (*Impl) Inf(sign int) float64
- func (*Impl) IsInf(f float64, sign int) bool
- func (*Impl) IsNaN(f float64) (is bool)
- func (*Impl) J0(x float64) float64
- func (*Impl) J1(x float64) float64
- func (*Impl) Jn(n int, x float64) float64
- func (*Impl) Ldexp(frac float64, exp int) float64
- func (*Impl) Lgamma(x float64) (lgamma float64, sign int)
- func (*Impl) Log(x float64) float64
- func (*Impl) Log10(x float64) float64
- func (*Impl) Log1p(x float64) float64
- func (*Impl) Log2(x float64) float64
- func (*Impl) Logb(x float64) float64
- func (*Impl) Max(x float64, y float64) float64
- func (*Impl) Min(x float64, y float64) float64
- func (*Impl) Mod(x float64, y float64) float64
- func (*Impl) Modf(f float64) (int float64, frac float64)
- func (*Impl) NaN() float64
- func (*Impl) Nextafter(x float64, y float64) (r float64)
- func (*Impl) Nextafter32(x float32, y float32) (r float32)
- func (*Impl) Pow(x float64, y float64) float64
- func (*Impl) Pow10(n int) float64
- func (*Impl) Remainder(x float64, y float64) float64
- func (*Impl) Round(x float64) float64
- func (*Impl) RoundToEven(x float64) float64
- func (*Impl) Signbit(x float64) bool
- func (*Impl) Sin(x float64) float64
- func (*Impl) Sincos(x float64) (sin float64, cos float64)
- func (*Impl) Sinh(x float64) float64
- func (*Impl) Sqrt(x float64) float64
- func (*Impl) Tan(x float64) float64
- func (*Impl) Tanh(x float64) float64
- func (*Impl) Trunc(x float64) float64
- func (*Impl) Y0(x float64) float64
- func (*Impl) Y1(x float64) float64
- func (*Impl) Yn(n int, x float64) float64
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) Float32bits ¶
func (*Impl) Float32frombits ¶
func (*Impl) Float64bits ¶
func (*Impl) Float64frombits ¶
func (*Impl) RoundToEven ¶
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. |
Click to show internal directories.
Click to hide internal directories.