Average Error: 0.1 → 0.1
Time: 13.0s
Precision: 64
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.954929658551372 - 0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x\]
0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)
\left(0.954929658551372 - 0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x
double f(double x) {
        double r387773 = 0.954929658551372;
        double r387774 = x;
        double r387775 = r387773 * r387774;
        double r387776 = 0.12900613773279798;
        double r387777 = r387774 * r387774;
        double r387778 = r387777 * r387774;
        double r387779 = r387776 * r387778;
        double r387780 = r387775 - r387779;
        return r387780;
}

double f(double x) {
        double r387781 = 0.954929658551372;
        double r387782 = 0.12900613773279798;
        double r387783 = x;
        double r387784 = r387783 * r387783;
        double r387785 = r387782 * r387784;
        double r387786 = r387781 - r387785;
        double r387787 = r387786 * r387783;
        return r387787;
}

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. Simplified0.1

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

    \[\leadsto \left(0.954929658551372 - 0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x\]

Reproduce

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