Average Error: 0.1 → 0.1
Time: 52.2s
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 r2345643 = 0.954929658551372;
        double r2345644 = x;
        double r2345645 = r2345643 * r2345644;
        double r2345646 = 0.12900613773279798;
        double r2345647 = r2345644 * r2345644;
        double r2345648 = r2345647 * r2345644;
        double r2345649 = r2345646 * r2345648;
        double r2345650 = r2345645 - r2345649;
        return r2345650;
}

double f(double x) {
        double r2345651 = x;
        double r2345652 = 0.954929658551372;
        double r2345653 = 0.12900613773279798;
        double r2345654 = r2345651 * r2345653;
        double r2345655 = r2345651 * r2345654;
        double r2345656 = r2345652 - r2345655;
        double r2345657 = r2345651 * r2345656;
        return r2345657;
}

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 2019128 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))