Average Error: 0.1 → 0
Time: 526.0ms
Precision: 64
\[\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1\]
\[{d1}^{4}\]
\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1
{d1}^{4}
double f(double d1) {
        double r377342 = d1;
        double r377343 = r377342 * r377342;
        double r377344 = r377343 * r377342;
        double r377345 = r377344 * r377342;
        return r377345;
}

double f(double d1) {
        double r377346 = d1;
        double r377347 = 4.0;
        double r377348 = pow(r377346, r377347);
        return r377348;
}

Error

Bits error versus d1

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0
Herbie0
\[{d1}^{4}\]

Derivation

  1. Initial program 0.1

    \[\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1\]
  2. Simplified0

    \[\leadsto \color{blue}{{d1}^{4}}\]
  3. Final simplification0

    \[\leadsto {d1}^{4}\]

Reproduce

herbie shell --seed 2020065 
(FPCore (d1)
  :name "FastMath repmul"
  :precision binary64

  :herbie-target
  (pow d1 4)

  (* (* (* d1 d1) d1) d1))