Average Error: 0.1 → 0.1
Time: 15.5s
Precision: 64
\[0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right) \cdot x\]
0.9549296585513720181381813745247200131416 \cdot x - 0.1290061377327979819096270830414141528308 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right) \cdot x
double f(double x) {
        double r1058927 = 0.954929658551372;
        double r1058928 = x;
        double r1058929 = r1058927 * r1058928;
        double r1058930 = 0.12900613773279798;
        double r1058931 = r1058928 * r1058928;
        double r1058932 = r1058931 * r1058928;
        double r1058933 = r1058930 * r1058932;
        double r1058934 = r1058929 - r1058933;
        return r1058934;
}

double f(double x) {
        double r1058935 = 0.954929658551372;
        double r1058936 = 0.12900613773279798;
        double r1058937 = x;
        double r1058938 = r1058937 * r1058937;
        double r1058939 = r1058936 * r1058938;
        double r1058940 = r1058935 - r1058939;
        double r1058941 = r1058940 * r1058937;
        return r1058941;
}

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 \left(0.9549296585513720181381813745247200131416 - 0.1290061377327979819096270830414141528308 \cdot \left(x \cdot x\right)\right) \cdot x\]

Reproduce

herbie shell --seed 2019179 
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))