Average Error: 0.1 → 0.1
Time: 23.8s
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 r915671 = 0.954929658551372;
        double r915672 = x;
        double r915673 = r915671 * r915672;
        double r915674 = 0.12900613773279798;
        double r915675 = r915672 * r915672;
        double r915676 = r915675 * r915672;
        double r915677 = r915674 * r915676;
        double r915678 = r915673 - r915677;
        return r915678;
}

double f(double x) {
        double r915679 = 0.954929658551372;
        double r915680 = 0.12900613773279798;
        double r915681 = x;
        double r915682 = r915681 * r915681;
        double r915683 = r915680 * r915682;
        double r915684 = r915679 - r915683;
        double r915685 = r915684 * r915681;
        return r915685;
}

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. 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 2019179 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))