Module math
SourceDescription
Numeric helpers — generic Ord ops, integer arithmetic, and float transcendentals.
The MinMax trait supplies .min / .max / .clamp on any Ord type. Integer bit-manipulation and ilog helpers live as free :fns backed by host intrinsics. Float transcendentals (fsqrt, fpow, fln, trig, hyperbolics, rounding, classification, IEEE-754 helpers) are also free :fns typed AnyFloat -> AnyFloat — operator specialisation must land before they can move to trait methods.
Data Types
Types
Abstractions
Functions
Functions
- epsilon
- f-e
- facos
- fasin
- fatan
- fatan2
- fcbrt
- fceil
- fcopy-sign
- fcos
- fexp
- ffloor
- ffract
- fhypot
- fis-finite
- fis-inf
- fis-nan
- fln
- flog
- flog10
- flog2
- fmul-add
- fnext-down
- fnext-up
- fpow
- from-bits
- from-str-radix
Constructor: parse a string as an integer in the given radix.
- fround
- fround-ties-away
- fsin
- fsin-cos
- fsqrt
- ftan
- fto-bits
- ftotal-cmp
- ftrunc
- icount-ones
- ileading-zeros
- ilog10
- ilog2
- inext-power-of-two
- inf
- is-power-of-two
- itrailing-zeros
- max-float
- min-positive
- nan
- neg-inf
- pi
- tau