Average Error: 0.2 → 0.1
Time: 14.7s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right) \cdot x\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right) \cdot x
double f(double x) {
        double r1112337 = 0.954929658551372;
        double r1112338 = x;
        double r1112339 = r1112337 * r1112338;
        double r1112340 = 0.12900613773279798;
        double r1112341 = r1112338 * r1112338;
        double r1112342 = r1112341 * r1112338;
        double r1112343 = r1112340 * r1112342;
        double r1112344 = r1112339 - r1112343;
        return r1112344;
}

double f(double x) {
        double r1112345 = 0.954929658551372;
        double r1112346 = 0.12900613773279798;
        double r1112347 = x;
        double r1112348 = r1112347 * r1112347;
        double r1112349 = r1112346 * r1112348;
        double r1112350 = r1112345 - r1112349;
        double r1112351 = r1112350 * r1112347;
        return r1112351;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Simplified0.1

    \[\leadsto \color{blue}{x \cdot \left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right)}\]
  3. Final simplification0.1

    \[\leadsto \left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right) \cdot x\]

Reproduce

herbie shell --seed 2019172 
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))