Average Error: 0.1 → 0.1
Time: 16.9s
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 r636747 = 0.954929658551372;
        double r636748 = x;
        double r636749 = r636747 * r636748;
        double r636750 = 0.12900613773279798;
        double r636751 = r636748 * r636748;
        double r636752 = r636751 * r636748;
        double r636753 = r636750 * r636752;
        double r636754 = r636749 - r636753;
        return r636754;
}

double f(double x) {
        double r636755 = 0.954929658551372;
        double r636756 = x;
        double r636757 = r636755 * r636756;
        double r636758 = 0.12900613773279798;
        double r636759 = 3.0;
        double r636760 = pow(r636756, r636759);
        double r636761 = r636758 * r636760;
        double r636762 = r636757 - r636761;
        return r636762;
}

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

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

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

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

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

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

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

Reproduce

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