Average Error: 0.1 → 0.1
Time: 11.5s
Precision: 64
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.954929658551372 - 0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x\]
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\left(0.954929658551372 - 0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x
double f(double x) {
        double r489654 = 0.954929658551372;
        double r489655 = x;
        double r489656 = r489654 * r489655;
        double r489657 = 0.12900613773279798;
        double r489658 = r489655 * r489655;
        double r489659 = r489658 * r489655;
        double r489660 = r489657 * r489659;
        double r489661 = r489656 - r489660;
        return r489661;
}

double f(double x) {
        double r489662 = 0.954929658551372;
        double r489663 = 0.12900613773279798;
        double r489664 = x;
        double r489665 = r489664 * r489664;
        double r489666 = r489663 * r489665;
        double r489667 = r489662 - r489666;
        double r489668 = r489667 * r489664;
        return r489668;
}

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

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

Reproduce

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