Average Error: 0.1 → 0.1
Time: 15.6s
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 r529318 = 0.954929658551372;
        double r529319 = x;
        double r529320 = r529318 * r529319;
        double r529321 = 0.12900613773279798;
        double r529322 = r529319 * r529319;
        double r529323 = r529322 * r529319;
        double r529324 = r529321 * r529323;
        double r529325 = r529320 - r529324;
        return r529325;
}

double f(double x) {
        double r529326 = 0.954929658551372;
        double r529327 = x;
        double r529328 = r529326 * r529327;
        double r529329 = 0.12900613773279798;
        double r529330 = 3.0;
        double r529331 = pow(r529327, r529330);
        double r529332 = r529329 * r529331;
        double r529333 = r529328 - r529332;
        return r529333;
}

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 pow30.1

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

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

Reproduce

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