def ulp

bend-collections-laws-crypto@1.0.0.0 · src/math/f64.bend:904

import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F64
import Base

904# the value of the least significant bit of x (Python's math.ulp)
905def ulp(+x: F64) -> F64:
906  ulp_cls(x, Nat.is_eq(exp_field(x), 2047n))

Uses (4)

Used by (1)