Posix_mathPOSIX mathematical functions bindings.
This module provides OCaml bindings to the POSIX math functions defined in math.h.
Functions are provided in three variants:
sin, cos, etc.sinf, cosf, etc.sinl, cosl, etc.Most functions map directly to their C equivalents.
type fp_type = [ | `InfinitePositive or negative infinity
*)| `NaNNot a number
*)| `NormalNormal floating-point number
*)| `SubnormalSubnormal (denormalized) number
*)| `Zero ]Result of floating-point classification.
Positive or negative zero
val fpclassify : float -> fp_type optionClassify a floating-point value. See fpclassify(3).
Test if a value is a normal number (not zero, subnormal, infinite, or NaN).
isgreater x y is true if x > y, without raising exceptions for NaN.
isgreaterequal x y is true if x >= y, without raising exceptions for NaN.
islessequal x y is true if x <= y, without raising exceptions for NaN.
islessgreater x y is true if x < y or x > y, without raising exceptions for NaN.