Average Error: 0.1 → 0.1
Time: 2.9s
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 r28342 = 0.954929658551372;
        double r28343 = x;
        double r28344 = r28342 * r28343;
        double r28345 = 0.12900613773279798;
        double r28346 = r28343 * r28343;
        double r28347 = r28346 * r28343;
        double r28348 = r28345 * r28347;
        double r28349 = r28344 - r28348;
        return r28349;
}

double f(double x) {
        double r28350 = x;
        double r28351 = 0.954929658551372;
        double r28352 = 0.12900613773279798;
        double r28353 = r28350 * r28350;
        double r28354 = r28352 * r28353;
        double r28355 = r28351 - r28354;
        double r28356 = r28350 * r28355;
        return r28356;
}

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.95492965855137202 x) (* 0.129006137732797982 (* (* x x) x))))