def magval

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/f64next.bend:192

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64next.bend as F64next
import Base
import bend-collections-laws-math@1.0.0.0/spec/math/f64.bend as SF
import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as SW
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64cmp.bend as FC

192def magval(+x: F.F64) -> {SW.value(F.mag(x)) == SF.pat(x) : Nat}:
193  match x:
194    case F.Bits{+xl, +xh}:
195      FC.magv(xl, xh, 2147483647, {==})

Uses (6)

Used by (1)