package frama-c
Install
dune-project
Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
TTristan Le Gall
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
MMuriel Roger
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=5b13574a16a58971c27909bee94ae7f37b17d897852b40c768a3d4e2e09e39d2
doc/frama-c.kernel/Frama_c_kernel/Fc_float/index.html
Module Frama_c_kernel.Fc_float
Implementation of floating-point values of different precision, using the standard ocaml floating-point numbers in double precision. Long_Double and Real are inexact.
include Float_sig.S with type t = float
val packed_descr : Structural_descr.packval hash : t -> intval pretty : Format.formatter -> t -> unitval is_exact : Float_sig.prec -> boolIs the representation of floating-point numbers of a given precision exact? Should at least be false for Real.
val of_float : Float_sig.round -> Float_sig.prec -> float -> tConverts a caml float into a floating-point number of the given precision. Must work on infinities and on negative and positive zeros.
val to_float : t -> floatConverts a floating-point number of single or double precision into a caml float. Never called on better precision than double.
IEEE comparison: do not distinguish between -0.0 and 0.0. This comparison must work between values of different precisions.
Comparison that distinguishes -0.0 and 0.0. This comparison must work between values of different precisions.
val is_nan : t -> boolval is_finite : t -> boolval is_infinite : t -> boolval is_negative : t -> boolIs a number negative? Never called on NaN, but must be correct on infinities and zeros.
val round_to_precision : Float_sig.round -> Float_sig.prec -> t -> tRounds a number to a given precision.
val next_float : Float_sig.prec -> t -> tFirst value above the argument in the given precision. Returns the minimum finite value on -infty. Returns +0 on -0, and the minimum strictly positive value on +0. Returns +infty on the maximum finite value. Returns +infty on +infty. Undefined on NaN.
val prev_float : Float_sig.prec -> t -> tFirst value below the argument in the given precision. Inversed behavior as next_float.
module Widen_Hints : Float_sig.Widen_Hintstype widen_hints = Widen_Hints.tval widen_up : widen_hints -> Float_sig.prec -> t -> twiden_up f returns a value strictly larger than f, such that successive applications of widen_up converge rapidly to infinity. The first arguments give the set of steps that could be used.
val widen_down : widen_hints -> Float_sig.prec -> t -> tFloating-point operations.
val add : Float_sig.round -> Float_sig.prec -> t -> t -> tval sub : Float_sig.round -> Float_sig.prec -> t -> t -> tval mul : Float_sig.round -> Float_sig.prec -> t -> t -> tval div : Float_sig.round -> Float_sig.prec -> t -> t -> tval fmod : Float_sig.round -> Float_sig.prec -> t -> t -> tval exp : Float_sig.round -> Float_sig.prec -> t -> tval log : Float_sig.round -> Float_sig.prec -> t -> tval log10 : Float_sig.round -> Float_sig.prec -> t -> tval sqrt : Float_sig.round -> Float_sig.prec -> t -> tval pow : Float_sig.round -> Float_sig.prec -> t -> t -> tval cos : Float_sig.round -> Float_sig.prec -> t -> tval sin : Float_sig.round -> Float_sig.prec -> t -> tval acos : Float_sig.round -> Float_sig.prec -> t -> tval asin : Float_sig.round -> Float_sig.prec -> t -> tval atan : Float_sig.round -> Float_sig.prec -> t -> tval atan2 : Float_sig.round -> Float_sig.prec -> t -> t -> t