Average Error: 0.2 → 0.2
Time: 2.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 r20827 = 0.954929658551372;
        double r20828 = x;
        double r20829 = r20827 * r20828;
        double r20830 = 0.12900613773279798;
        double r20831 = r20828 * r20828;
        double r20832 = r20831 * r20828;
        double r20833 = r20830 * r20832;
        double r20834 = r20829 - r20833;
        return r20834;
}

double f(double x) {
        double r20835 = 0.954929658551372;
        double r20836 = x;
        double r20837 = r20835 * r20836;
        double r20838 = 0.12900613773279798;
        double r20839 = r20836 * r20836;
        double r20840 = r20839 * r20836;
        double r20841 = r20838 * r20840;
        double r20842 = r20837 - r20841;
        return r20842;
}

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