Average Error: 0.1 → 0.1
Time: 20.0s
Precision: 64
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[x \cdot \left(0.954929658551372 - x \cdot \left(x \cdot 0.12900613773279798\right)\right)\]
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
x \cdot \left(0.954929658551372 - x \cdot \left(x \cdot 0.12900613773279798\right)\right)
double f(double x) {
        double r706563 = 0.954929658551372;
        double r706564 = x;
        double r706565 = r706563 * r706564;
        double r706566 = 0.12900613773279798;
        double r706567 = r706564 * r706564;
        double r706568 = r706567 * r706564;
        double r706569 = r706566 * r706568;
        double r706570 = r706565 - r706569;
        return r706570;
}

double f(double x) {
        double r706571 = x;
        double r706572 = 0.954929658551372;
        double r706573 = 0.12900613773279798;
        double r706574 = r706571 * r706573;
        double r706575 = r706571 * r706574;
        double r706576 = r706572 - r706575;
        double r706577 = r706571 * r706576;
        return r706577;
}

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}{\left(0.954929658551372 - \left(0.12900613773279798 \cdot x\right) \cdot x\right) \cdot x}\]
  3. Final simplification0.1

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

Reproduce

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