Average Error: 0.1 → 0.1
Time: 16.7s
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 r927493 = 0.954929658551372;
        double r927494 = x;
        double r927495 = r927493 * r927494;
        double r927496 = 0.12900613773279798;
        double r927497 = r927494 * r927494;
        double r927498 = r927497 * r927494;
        double r927499 = r927496 * r927498;
        double r927500 = r927495 - r927499;
        return r927500;
}

double f(double x) {
        double r927501 = 0.954929658551372;
        double r927502 = x;
        double r927503 = r927501 * r927502;
        double r927504 = 0.12900613773279798;
        double r927505 = 3.0;
        double r927506 = pow(r927502, r927505);
        double r927507 = r927504 * r927506;
        double r927508 = r927503 - r927507;
        return r927508;
}

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