Documentation

Fp.Subtraction

def e_sub {w e : Nat} (mode : RoundingMode) (a b : EFixedPoint w e) :
EFixedPoint (w + 1) e

Subtraction of two extended fixed-point numbers.

Equations
Instances For
    def subfixed {e s : Nat} (a b : PackedFloat e s) (mode : RoundingMode) :

    Subtraction of two floating-point numbers.

    Implemented entirely within EFixedPoint using e_sub.

    Equations
    Instances For
      def sub {e s : Nat} (a b : PackedFloat e s) (mode : RoundingMode) :

      Subtraction of two floating-point numbers.

      Implemented as a negation followed by an addition.

      Equations
      Instances For