def neg
import bend-collections-laws-crypto@1.0.0.0/spec/math/f64.bend as F64import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F
207# the double with the sign bit flipped (NaN included)
208def neg(+x: F.F64) -> F.F64:
209 encode(Bool.not(sign(x)), efield(x), frac(x))