Average Error: 0.2 → 0.2
Time: 12.2s
Precision: 64
\[0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)
0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)
double f(double x) {
        double r23496 = 0.954929658551372;
        double r23497 = x;
        double r23498 = r23496 * r23497;
        double r23499 = 0.12900613773279798;
        double r23500 = r23497 * r23497;
        double r23501 = r23500 * r23497;
        double r23502 = r23499 * r23501;
        double r23503 = r23498 - r23502;
        return r23503;
}

double f(double x) {
        double r23504 = 0.954929658551372;
        double r23505 = x;
        double r23506 = r23504 * r23505;
        double r23507 = 0.12900613773279798;
        double r23508 = r23505 * r23505;
        double r23509 = r23508 * r23505;
        double r23510 = r23507 * r23509;
        double r23511 = r23506 - r23510;
        return r23511;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Final simplification0.2

    \[\leadsto 0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]

Reproduce

herbie shell --seed 2020047 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  :precision binary64
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))