Documentation

Fp.Negation

def f_neg {w e : Nat} (a : FixedPoint w e) :

Negate the fixed point number

Equations
Instances For
    def e_neg {w e : Nat} (a : EFixedPoint w e) :

    Negate the extended fixed point number

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def negfixed {e s : Nat} (a : PackedFloat e s) (mode : RoundingMode) :

      Negate a floating-point number, by conversion to a fixed-point number.

      Equations
      Instances For
        def neg {e s : Nat} (a : PackedFloat e s) :

        Negate a floating-point number, by flipping the sign bit.

        This implements the same function as negfixed, but is much simpler.

        Equations
        Instances For
          def abs {e s : Nat} (a : PackedFloat e s) :
          Equations
          Instances For