Average Error: 0.1 → 0.1
Time: 21.2s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[x \cdot \left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right)\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
x \cdot \left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right)
double f(double x) {
        double r18170 = 0.954929658551372;
        double r18171 = x;
        double r18172 = r18170 * r18171;
        double r18173 = 0.12900613773279798;
        double r18174 = r18171 * r18171;
        double r18175 = r18174 * r18171;
        double r18176 = r18173 * r18175;
        double r18177 = r18172 - r18176;
        return r18177;
}

double f(double x) {
        double r18178 = x;
        double r18179 = 0.954929658551372;
        double r18180 = 0.12900613773279798;
        double r18181 = r18178 * r18178;
        double r18182 = r18180 * r18181;
        double r18183 = r18179 - r18182;
        double r18184 = r18178 * r18183;
        return r18184;
}

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 x \cdot \left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right)\]

Reproduce

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