Average Error: 0.1 → 0.1
Time: 17.6s
Precision: 64
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.954929658551372 - \left(x \cdot 0.12900613773279798\right) \cdot x\right) \cdot x\]
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\left(0.954929658551372 - \left(x \cdot 0.12900613773279798\right) \cdot x\right) \cdot x
double f(double x) {
        double r1006266 = 0.954929658551372;
        double r1006267 = x;
        double r1006268 = r1006266 * r1006267;
        double r1006269 = 0.12900613773279798;
        double r1006270 = r1006267 * r1006267;
        double r1006271 = r1006270 * r1006267;
        double r1006272 = r1006269 * r1006271;
        double r1006273 = r1006268 - r1006272;
        return r1006273;
}

double f(double x) {
        double r1006274 = 0.954929658551372;
        double r1006275 = x;
        double r1006276 = 0.12900613773279798;
        double r1006277 = r1006275 * r1006276;
        double r1006278 = r1006277 * r1006275;
        double r1006279 = r1006274 - r1006278;
        double r1006280 = r1006279 * r1006275;
        return r1006280;
}

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.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Simplified0.1

    \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 - \left(0.12900613773279798 \cdot x\right) \cdot x\right)}\]
  3. Final simplification0.1

    \[\leadsto \left(0.954929658551372 - \left(x \cdot 0.12900613773279798\right) \cdot x\right) \cdot x\]

Reproduce

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