Average Error: 0.1 → 0.1
Time: 6.6s
Precision: 64
\[\left(\left|5 + x\right| \cdot 8\right) \cdot x\]
\[\left(\left|5 + x\right| \cdot 8\right) \cdot x\]
\left(\left|5 + x\right| \cdot 8\right) \cdot x
\left(\left|5 + x\right| \cdot 8\right) \cdot x
double f(double x) {
        double r1179794 = 5.0;
        double r1179795 = x;
        double r1179796 = r1179794 + r1179795;
        double r1179797 = fabs(r1179796);
        double r1179798 = 8.0;
        double r1179799 = r1179797 * r1179798;
        double r1179800 = r1179799 * r1179795;
        return r1179800;
}

double f(double x) {
        double r1179801 = 5.0;
        double r1179802 = x;
        double r1179803 = r1179801 + r1179802;
        double r1179804 = fabs(r1179803);
        double r1179805 = 8.0;
        double r1179806 = r1179804 * r1179805;
        double r1179807 = r1179806 * r1179802;
        return r1179807;
}

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

    \[\left(\left|5 + x\right| \cdot 8\right) \cdot x\]
  2. Final simplification0.1

    \[\leadsto \left(\left|5 + x\right| \cdot 8\right) \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "abs(5 + x) * 8x"
  :precision binary64
  (* (* (fabs (+ 5 x)) 8) x))