Average Error: 0.1 → 0
Time: 795.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 r271812 = d1;
        double r271813 = r271812 * r271812;
        double r271814 = r271813 * r271812;
        double r271815 = r271814 * r271812;
        return r271815;
}

double f(double d1) {
        double r271816 = d1;
        double r271817 = 4.0;
        double r271818 = pow(r271816, r271817);
        return r271818;
}

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 2019322 
(FPCore (d1)
  :name "FastMath repmul"
  :precision binary64

  :herbie-target
  (pow d1 4)

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