Documentation

Mathlib.Data.FP.Basic

Implementation of floating-point numbers (experimental). #

def Int.shift2 (a b : ) :
Equations
inductive FP.RMode :
Instances
    def FP.ValidFinite [C : FloatCfg] (e : ) (m : ) :
    Equations
    inductive FP.Float [C : FloatCfg] :
    def FP.toRat [C : FloatCfg] (f : Float) :
    Equations
    unsafe def FP.ofPosRatDn [C : FloatCfg] (n d : ℕ+) :
    Equations
    • One or more equations did not get rendered due to their size.
    unsafe def FP.nextUpPos [C : FloatCfg] (e : ) (m : ) (v : ValidFinite e m) :
    Equations
    unsafe def FP.nextDnPos [C : FloatCfg] (e : ) (m : ) (v : ValidFinite e m) :
    Equations
    unsafe def FP.ofRatUp [C : FloatCfg] :
    Equations
    unsafe def FP.ofRatDn [C : FloatCfg] (r : ) :
    Equations
    unsafe def FP.ofRat [C : FloatCfg] :
    RModeFloat
    Equations
    • One or more equations did not get rendered due to their size.
    unsafe def FP.Float.add [C : FloatCfg] (mode : RMode) :
    FloatFloatFloat
    Equations
    unsafe def FP.Float.sub [C : FloatCfg] (mode : RMode) (f1 f2 : Float) :
    Equations
    unsafe def FP.Float.mul [C : FloatCfg] (mode : RMode) :
    FloatFloatFloat
    Equations
    unsafe def FP.Float.div [C : FloatCfg] (mode : RMode) :
    FloatFloatFloat
    Equations