Average Error: 0.0 → 0.0
Time: 287.0ms
Precision: 64
\[x \cdot 116 - 16\]
\[x \cdot 116 - 16\]
x \cdot 116 - 16
x \cdot 116 - 16
double f(double x) {
        double r260044 = x;
        double r260045 = 116.0;
        double r260046 = r260044 * r260045;
        double r260047 = 16.0;
        double r260048 = r260046 - r260047;
        return r260048;
}

double f(double x) {
        double r260049 = x;
        double r260050 = 116.0;
        double r260051 = r260049 * r260050;
        double r260052 = 16.0;
        double r260053 = r260051 - r260052;
        return r260053;
}

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