Average Error: 0.1 → 0.1
Time: 14.0s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot \left(x \cdot x\right)\right)\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot \left(x \cdot x\right)\right)
double f(double x) {
        double r957621 = 0.954929658551372;
        double r957622 = x;
        double r957623 = r957621 * r957622;
        double r957624 = 0.12900613773279798;
        double r957625 = r957622 * r957622;
        double r957626 = r957625 * r957622;
        double r957627 = r957624 * r957626;
        double r957628 = r957623 - r957627;
        return r957628;
}

double f(double x) {
        double r957629 = 0.954929658551372;
        double r957630 = x;
        double r957631 = r957629 * r957630;
        double r957632 = 0.12900613773279798;
        double r957633 = r957630 * r957630;
        double r957634 = r957630 * r957633;
        double r957635 = r957632 * r957634;
        double r957636 = r957631 - r957635;
        return r957636;
}

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

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

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

Reproduce

herbie shell --seed 2019171 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))