Average Error: 0.1 → 0.1
Time: 10.4s
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 r16808 = 0.954929658551372;
        double r16809 = x;
        double r16810 = r16808 * r16809;
        double r16811 = 0.12900613773279798;
        double r16812 = r16809 * r16809;
        double r16813 = r16812 * r16809;
        double r16814 = r16811 * r16813;
        double r16815 = r16810 - r16814;
        return r16815;
}

double f(double x) {
        double r16816 = x;
        double r16817 = 0.954929658551372;
        double r16818 = 0.12900613773279798;
        double r16819 = r16818 * r16816;
        double r16820 = r16819 * r16816;
        double r16821 = r16817 - r16820;
        double r16822 = r16816 * r16821;
        return r16822;
}

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