Average Error: 0.1 → 0.1
Time: 36.0s
Precision: 64
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[x \cdot \left(0.954929658551372 - x \cdot \left(x \cdot 0.12900613773279798\right)\right)\]
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
x \cdot \left(0.954929658551372 - x \cdot \left(x \cdot 0.12900613773279798\right)\right)
double f(double x) {
        double r1575038 = 0.954929658551372;
        double r1575039 = x;
        double r1575040 = r1575038 * r1575039;
        double r1575041 = 0.12900613773279798;
        double r1575042 = r1575039 * r1575039;
        double r1575043 = r1575042 * r1575039;
        double r1575044 = r1575041 * r1575043;
        double r1575045 = r1575040 - r1575044;
        return r1575045;
}

double f(double x) {
        double r1575046 = x;
        double r1575047 = 0.954929658551372;
        double r1575048 = 0.12900613773279798;
        double r1575049 = r1575046 * r1575048;
        double r1575050 = r1575046 * r1575049;
        double r1575051 = r1575047 - r1575050;
        double r1575052 = r1575046 * r1575051;
        return r1575052;
}

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

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

Reproduce

herbie shell --seed 2019125 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))