Average Error: 0.1 → 0.1
Time: 19.6s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[x \cdot \left(0.9549296585513720181381813745247200131416 - \left(0.1290061377327979819096270830414141528308 \cdot x\right) \cdot x\right)\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
x \cdot \left(0.9549296585513720181381813745247200131416 - \left(0.1290061377327979819096270830414141528308 \cdot x\right) \cdot x\right)
double f(double x) {
        double r22364 = 0.954929658551372;
        double r22365 = x;
        double r22366 = r22364 * r22365;
        double r22367 = 0.12900613773279798;
        double r22368 = r22365 * r22365;
        double r22369 = r22368 * r22365;
        double r22370 = r22367 * r22369;
        double r22371 = r22366 - r22370;
        return r22371;
}

double f(double x) {
        double r22372 = x;
        double r22373 = 0.954929658551372;
        double r22374 = 0.12900613773279798;
        double r22375 = r22374 * r22372;
        double r22376 = r22375 * r22372;
        double r22377 = r22373 - r22376;
        double r22378 = r22372 * r22377;
        return r22378;
}

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. Using strategy rm
  4. Applied associate-*r*0.1

    \[\leadsto x \cdot \left(0.9549296585513720181381813745247200131416 - \color{blue}{\left(0.1290061377327979819096270830414141528308 \cdot x\right) \cdot x}\right)\]
  5. Final simplification0.1

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

Reproduce

herbie shell --seed 2019208 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  :precision binary64
  (- (* 0.95492965855137202 x) (* 0.129006137732797982 (* (* x x) x))))