Average Error: 0.1 → 0.1
Time: 37.6s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.9549296585513720181381813745247200131416 - \left(x \cdot 0.1290061377327979819096270830414141528308\right) \cdot x\right) \cdot x\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\left(0.9549296585513720181381813745247200131416 - \left(x \cdot 0.1290061377327979819096270830414141528308\right) \cdot x\right) \cdot x
double f(double x) {
        double r968773 = 0.954929658551372;
        double r968774 = x;
        double r968775 = r968773 * r968774;
        double r968776 = 0.12900613773279798;
        double r968777 = r968774 * r968774;
        double r968778 = r968777 * r968774;
        double r968779 = r968776 * r968778;
        double r968780 = r968775 - r968779;
        return r968780;
}

double f(double x) {
        double r968781 = 0.954929658551372;
        double r968782 = x;
        double r968783 = 0.12900613773279798;
        double r968784 = r968782 * r968783;
        double r968785 = r968784 * r968782;
        double r968786 = r968781 - r968785;
        double r968787 = r968786 * r968782;
        return r968787;
}

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 - x \cdot \left(0.1290061377327979819096270830414141528308 \cdot x\right)\right)}\]
  3. Final simplification0.1

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

Reproduce

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