Average Error: 0.1 → 0.1
Time: 12.1s
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 r494983 = 0.954929658551372;
        double r494984 = x;
        double r494985 = r494983 * r494984;
        double r494986 = 0.12900613773279798;
        double r494987 = r494984 * r494984;
        double r494988 = r494987 * r494984;
        double r494989 = r494986 * r494988;
        double r494990 = r494985 - r494989;
        return r494990;
}

double f(double x) {
        double r494991 = 0.954929658551372;
        double r494992 = 0.12900613773279798;
        double r494993 = x;
        double r494994 = r494993 * r494993;
        double r494995 = r494992 * r494994;
        double r494996 = r494991 - r494995;
        double r494997 = r494996 * r494993;
        return r494997;
}

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))))