Average Error: 0.1 → 0.1
Time: 11.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 r600442 = 0.954929658551372;
        double r600443 = x;
        double r600444 = r600442 * r600443;
        double r600445 = 0.12900613773279798;
        double r600446 = r600443 * r600443;
        double r600447 = r600446 * r600443;
        double r600448 = r600445 * r600447;
        double r600449 = r600444 - r600448;
        return r600449;
}

double f(double x) {
        double r600450 = 0.954929658551372;
        double r600451 = x;
        double r600452 = r600450 * r600451;
        double r600453 = 0.12900613773279798;
        double r600454 = 3.0;
        double r600455 = pow(r600451, r600454);
        double r600456 = r600453 * r600455;
        double r600457 = r600452 - r600456;
        return r600457;
}

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