Average Error: 0.1 → 0.1
Time: 19.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 r1063314 = 0.954929658551372;
        double r1063315 = x;
        double r1063316 = r1063314 * r1063315;
        double r1063317 = 0.12900613773279798;
        double r1063318 = r1063315 * r1063315;
        double r1063319 = r1063318 * r1063315;
        double r1063320 = r1063317 * r1063319;
        double r1063321 = r1063316 - r1063320;
        return r1063321;
}

double f(double x) {
        double r1063322 = 0.954929658551372;
        double r1063323 = 0.12900613773279798;
        double r1063324 = x;
        double r1063325 = r1063324 * r1063324;
        double r1063326 = r1063323 * r1063325;
        double r1063327 = r1063322 - r1063326;
        double r1063328 = r1063327 * r1063324;
        return r1063328;
}

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