← all modules
Sky.Core.Math
Sky.Core.Math
Sky.Core.Math — pure numeric helpers (Layer 3 Sky source).
Values
abs : Int -> Int
acos : Float -> Float
acosh : Float -> Float
asin : Float -> Float
asinh : Float -> Float
atan : Float -> Float
atan2 : Float -> Float -> Float
atan2 y x — quadrant-aware arctangent. Matches Go's math.Atan2
atanh : Float -> Float
cbrt : Float -> Float
ceil : Float -> Int
cos : Float -> Float
cosh : Float -> Float
e : Float
exp : Float -> Float
exp2 : Float -> Float
floor : Float -> Int
hypot : Float -> Float -> Float
inf : Float
Positive infinity.
isNaN : Float -> Bool
True if `x` is IEEE 754 NaN. Use this rather than `x == nan`
log : Float -> Float
log10 : Float -> Float
log2 : Float -> Float
max : comparable -> comparable -> comparable
min : comparable -> comparable -> comparable
min / max work on any comparable type (see `List.sort`): the smaller /
mod : Float -> Float -> Float
Float modulo. Result has the sign of the dividend (Go's math.Mod).
nan : Float
Not-a-Number. `nan == nan` is False (NaN ≠ NaN by IEEE 754);
phi : Float
Golden ratio (1.618033988…).
pi : Float
pow : Float -> Float -> Float
remainder : Float -> Float -> Float
IEEE 754 remainder. Result has the sign of the dividend or zero.
round : Float -> Int
sin : Float -> Float
sinh : Float -> Float
sqrt : Float -> Float
sqrt2 : Float
tan : Float -> Float
tanh : Float -> Float
trunc : Float -> Int
Truncate toward zero. `trunc 3.7 == 3`, `trunc (-3.7) == -3`.