Average Error: 0.1 → 0.1
Time: 11.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 r662669 = 0.954929658551372;
        double r662670 = x;
        double r662671 = r662669 * r662670;
        double r662672 = 0.12900613773279798;
        double r662673 = r662670 * r662670;
        double r662674 = r662673 * r662670;
        double r662675 = r662672 * r662674;
        double r662676 = r662671 - r662675;
        return r662676;
}

double f(double x) {
        double r662677 = 0.954929658551372;
        double r662678 = x;
        double r662679 = r662677 * r662678;
        double r662680 = 0.12900613773279798;
        double r662681 = 3.0;
        double r662682 = pow(r662678, r662681);
        double r662683 = r662680 * r662682;
        double r662684 = r662679 - r662683;
        return r662684;
}

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 2019134 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))