Average Error: 0.1 → 0.1
Time: 3.3s
Precision: 64
\[x \cdot x + 12 \cdot x\]
\[x \cdot x + 12 \cdot x\]
x \cdot x + 12 \cdot x
x \cdot x + 12 \cdot x
double f(double x) {
        double r842782 = x;
        double r842783 = r842782 * r842782;
        double r842784 = 12.0;
        double r842785 = r842784 * r842782;
        double r842786 = r842783 + r842785;
        return r842786;
}

double f(double x) {
        double r842787 = x;
        double r842788 = r842787 * r842787;
        double r842789 = 12.0;
        double r842790 = r842789 * r842787;
        double r842791 = r842788 + r842790;
        return r842791;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x \cdot x + 12 \cdot x\]
  2. Final simplification0.1

    \[\leadsto x \cdot x + 12 \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "x*x +12*x"
  :precision binary64
  (+ (* x x) (* 12 x)))