Average Error: 0.0 → 0.0
Time: 289.0ms
Precision: 64
\[x \cdot 116 - 16\]
\[x \cdot 116 - 16\]
x \cdot 116 - 16
x \cdot 116 - 16
double f(double x) {
        double r224388 = x;
        double r224389 = 116.0;
        double r224390 = r224388 * r224389;
        double r224391 = 16.0;
        double r224392 = r224390 - r224391;
        return r224392;
}

double f(double x) {
        double r224393 = x;
        double r224394 = 116.0;
        double r224395 = r224393 * r224394;
        double r224396 = 16.0;
        double r224397 = r224395 - r224396;
        return r224397;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x \cdot 116 - 16\]
  2. Final simplification0.0

    \[\leadsto x \cdot 116 - 16\]

Reproduce

herbie shell --seed 2019353 +o rules:numerics
(FPCore (x)
  :name "Data.Colour.CIE:lightness from colour-2.3.3"
  :precision binary64
  (- (* x 116) 16))