Average Error: 0.1 → 0.1
Time: 15.0s
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 r839603 = 0.954929658551372;
        double r839604 = x;
        double r839605 = r839603 * r839604;
        double r839606 = 0.12900613773279798;
        double r839607 = r839604 * r839604;
        double r839608 = r839607 * r839604;
        double r839609 = r839606 * r839608;
        double r839610 = r839605 - r839609;
        return r839610;
}

double f(double x) {
        double r839611 = 0.954929658551372;
        double r839612 = x;
        double r839613 = r839611 * r839612;
        double r839614 = 0.12900613773279798;
        double r839615 = 3.0;
        double r839616 = pow(r839612, r839615);
        double r839617 = r839614 * r839616;
        double r839618 = r839613 - r839617;
        return r839618;
}

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