Average Error: 0.1 → 0.1
Time: 2.5s
Precision: 64
\[0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[x \cdot \left(0.95492965855137202 - 0.129006137732797982 \cdot \left(x \cdot x\right)\right)\]
0.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)
x \cdot \left(0.95492965855137202 - 0.129006137732797982 \cdot \left(x \cdot x\right)\right)
double f(double x) {
        double r17107 = 0.954929658551372;
        double r17108 = x;
        double r17109 = r17107 * r17108;
        double r17110 = 0.12900613773279798;
        double r17111 = r17108 * r17108;
        double r17112 = r17111 * r17108;
        double r17113 = r17110 * r17112;
        double r17114 = r17109 - r17113;
        return r17114;
}

double f(double x) {
        double r17115 = x;
        double r17116 = 0.954929658551372;
        double r17117 = 0.12900613773279798;
        double r17118 = r17115 * r17115;
        double r17119 = r17117 * r17118;
        double r17120 = r17116 - r17119;
        double r17121 = r17115 * r17120;
        return r17121;
}

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.95492965855137202 \cdot x - 0.129006137732797982 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Simplified0.1

    \[\leadsto \color{blue}{x \cdot \left(0.95492965855137202 - 0.129006137732797982 \cdot \left(x \cdot x\right)\right)}\]
  3. Final simplification0.1

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

Reproduce

herbie shell --seed 2020100 
(FPCore (x)
  :name "Rosa's Benchmark"
  :precision binary64
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))