Average Error: 0.1 → 0.1
Time: 15.8s
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 r559503 = 0.954929658551372;
        double r559504 = x;
        double r559505 = r559503 * r559504;
        double r559506 = 0.12900613773279798;
        double r559507 = r559504 * r559504;
        double r559508 = r559507 * r559504;
        double r559509 = r559506 * r559508;
        double r559510 = r559505 - r559509;
        return r559510;
}

double f(double x) {
        double r559511 = 0.954929658551372;
        double r559512 = 0.12900613773279798;
        double r559513 = x;
        double r559514 = r559513 * r559513;
        double r559515 = r559512 * r559514;
        double r559516 = r559511 - r559515;
        double r559517 = r559516 * r559513;
        return r559517;
}

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 2019151 
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))