Average Error: 0.1 → 0.1
Time: 2.6s
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 r22996 = 0.954929658551372;
        double r22997 = x;
        double r22998 = r22996 * r22997;
        double r22999 = 0.12900613773279798;
        double r23000 = r22997 * r22997;
        double r23001 = r23000 * r22997;
        double r23002 = r22999 * r23001;
        double r23003 = r22998 - r23002;
        return r23003;
}

double f(double x) {
        double r23004 = x;
        double r23005 = 0.954929658551372;
        double r23006 = 0.12900613773279798;
        double r23007 = r23004 * r23004;
        double r23008 = r23006 * r23007;
        double r23009 = r23005 - r23008;
        double r23010 = r23004 * r23009;
        return r23010;
}

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 2020001 
(FPCore (x)
  :name "Rosa's Benchmark"
  :precision binary64
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))