Average Error: 0.1 → 0.1
Time: 4.6s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
double f(double x) {
        double r34264 = 0.954929658551372;
        double r34265 = x;
        double r34266 = r34264 * r34265;
        double r34267 = 0.12900613773279798;
        double r34268 = r34265 * r34265;
        double r34269 = r34268 * r34265;
        double r34270 = r34267 * r34269;
        double r34271 = r34266 - r34270;
        return r34271;
}

double f(double x) {
        double r34272 = 0.954929658551372;
        double r34273 = x;
        double r34274 = r34272 * r34273;
        double r34275 = 0.12900613773279798;
        double r34276 = r34273 * r34273;
        double r34277 = r34276 * r34273;
        double r34278 = r34275 * r34277;
        double r34279 = r34274 - r34278;
        return r34279;
}

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. Final simplification0.1

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

Reproduce

herbie shell --seed 2019353 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  :precision binary64
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))