Average Error: 0.1 → 0.1
Time: 14.4s
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 r18285 = 0.954929658551372;
        double r18286 = x;
        double r18287 = r18285 * r18286;
        double r18288 = 0.12900613773279798;
        double r18289 = r18286 * r18286;
        double r18290 = r18289 * r18286;
        double r18291 = r18288 * r18290;
        double r18292 = r18287 - r18291;
        return r18292;
}

double f(double x) {
        double r18293 = x;
        double r18294 = 0.954929658551372;
        double r18295 = 0.12900613773279798;
        double r18296 = r18293 * r18293;
        double r18297 = r18295 * r18296;
        double r18298 = r18294 - r18297;
        double r18299 = r18293 * r18298;
        return r18299;
}

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 2019297 
(FPCore (x)
  :name "Rosa's Benchmark"
  :precision binary64
  (- (* 0.95492965855137202 x) (* 0.129006137732797982 (* (* x x) x))))