Documentation
¶
Overview ¶
Package math32 provides float32 versions of standard library math package routines used by gonum/blas/native.
Index ¶
- func Abs(x float32) float32
- func Copysign(x, y float32) float32
- func Hypot(p, q float32) float32
- func Inf(sign int) float32
- func IsInf(f float32, sign int) bool
- func IsNaN(f float32) (is bool)
- func Max(x, y float32) float32
- func Min(x, y float32) float32
- func NaN() float32
- func Signbit(x float32) bool
- func Sqrt(x float32) float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hypot ¶
Hypot returns Sqrt(p*p + q*q), taking care to avoid unnecessary overflow and underflow.
Special cases are:
Hypot(±Inf, q) = +Inf Hypot(p, ±Inf) = +Inf Hypot(NaN, q) = NaN Hypot(p, NaN) = NaN
func IsInf ¶
IsInf reports whether f is an infinity, according to sign. If sign > 0, IsInf reports whether f is positive infinity. If sign < 0, IsInf reports whether f is negative infinity. If sign == 0, IsInf reports whether f is either infinity.
func Max ¶ added in v0.11.0
Max returns the larger of x or y.
Special cases are:
Max(x, +Inf) = Max(+Inf, x) = +Inf Max(x, NaN) = Max(NaN, x) = NaN Max(+0, ±0) = Max(±0, +0) = +0 Max(-0, -0) = -0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.