Average Error: 0.0 → 0.0
Time: 342.0ms
Precision: 64
\[x \cdot 116 - 16\]
\[x \cdot 116 - 16\]
x \cdot 116 - 16
x \cdot 116 - 16
double f(double x) {
        double r252839 = x;
        double r252840 = 116.0;
        double r252841 = r252839 * r252840;
        double r252842 = 16.0;
        double r252843 = r252841 - r252842;
        return r252843;
}

double f(double x) {
        double r252844 = x;
        double r252845 = 116.0;
        double r252846 = r252844 * r252845;
        double r252847 = 16.0;
        double r252848 = r252846 - r252847;
        return r252848;
}

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 2020081 +o rules:numerics
(FPCore (x)
  :name "Data.Colour.CIE:lightness from colour-2.3.3"
  :precision binary64
  (- (* x 116) 16))