Average Error: 0.1 → 0.1
Time: 32.3s
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 r1512989 = 0.954929658551372;
        double r1512990 = x;
        double r1512991 = r1512989 * r1512990;
        double r1512992 = 0.12900613773279798;
        double r1512993 = r1512990 * r1512990;
        double r1512994 = r1512993 * r1512990;
        double r1512995 = r1512992 * r1512994;
        double r1512996 = r1512991 - r1512995;
        return r1512996;
}

double f(double x) {
        double r1512997 = 0.954929658551372;
        double r1512998 = 0.12900613773279798;
        double r1512999 = x;
        double r1513000 = r1512999 * r1512999;
        double r1513001 = r1512998 * r1513000;
        double r1513002 = r1512997 - r1513001;
        double r1513003 = r1513002 * r1512999;
        return r1513003;
}

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