Gallery of proved programs
| ⇑ | ||
| ⇐ | Full Coq proof using why2 | ⇒ |
| Full proof using why3 |
Exact subtraction: Sterbenz's theorem
This function computes the exact subtraction if the inputs are near enough one to another.
/*@ requires y/2. <= x <= 2.*y; @ ensures \result == x-y; @*/ float Sterbenz(float x, float y) { return x-y; }