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)\]
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot {x}^{3}\]
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
0.954929658551372 \cdot x - 0.12900613773279798 \cdot {x}^{3}
double f(double x) {
        double r837212 = 0.954929658551372;
        double r837213 = x;
        double r837214 = r837212 * r837213;
        double r837215 = 0.12900613773279798;
        double r837216 = r837213 * r837213;
        double r837217 = r837216 * r837213;
        double r837218 = r837215 * r837217;
        double r837219 = r837214 - r837218;
        return r837219;
}

double f(double x) {
        double r837220 = 0.954929658551372;
        double r837221 = x;
        double r837222 = r837220 * r837221;
        double r837223 = 0.12900613773279798;
        double r837224 = 3.0;
        double r837225 = pow(r837221, r837224);
        double r837226 = r837223 * r837225;
        double r837227 = r837222 - r837226;
        return r837227;
}

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. Using strategy rm
  3. Applied pow20.1

    \[\leadsto 0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\color{blue}{{x}^{2}} \cdot x\right)\]
  4. Applied pow-plus0.1

    \[\leadsto 0.954929658551372 \cdot x - 0.12900613773279798 \cdot \color{blue}{{x}^{\left(2 + 1\right)}}\]
  5. Simplified0.1

    \[\leadsto 0.954929658551372 \cdot x - 0.12900613773279798 \cdot {x}^{\color{blue}{3}}\]
  6. Final simplification0.1

    \[\leadsto 0.954929658551372 \cdot x - 0.12900613773279798 \cdot {x}^{3}\]

Reproduce

herbie shell --seed 2019141 
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))