Documentation
¶
Index ¶
- Constants
- Variables
- func Abs(x float32) float32
- func Copysign(x, y float32) float32
- func Cos(x float32) float32
- func Inf(sign int) float32
- func IsInf(f float32, sign int) bool
- func IsNaN(f float32) (is bool)
- func NaN() float32
- func Signbit(x float32) bool
- func Sin(x float32) float32
- func Sincos(x float32) (sin, cos float32)
- func Sqrt(x float32) float32
- func Tan(x float32) float32
Constants ¶
View Source
const Pi float32 = float32(math.Pi)
Variables ¶
View Source
var CosGo = cos
View Source
var SinGo = sin
View Source
var TanGo = tan
Functions ¶
func Cos ¶
Cos returns the cosine of the radian argument x.
Special cases are:
Cos(±Inf) = NaN Cos(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 Sin ¶
Sin returns the sine of the radian argument x.
Special cases are:
Sin(±0) = ±0 Sin(±Inf) = NaN Sin(NaN) = NaN
func Sincos ¶
Sincos returns Sin(x), Cos(x).
Special cases are:
Sincos(±0) = ±0, 1 Sincos(±Inf) = NaN, NaN Sincos(NaN) = NaN, NaN
func Sqrt ¶
Sqrt returns the square root of x. For more information see: https://golang.org/pkg/math/#Sqrt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.