Average Error: 0.1 → 0.0
Time: 7.7s
Precision: 64
\[\left(\frac{x}{14000} \cdot 150 - 850\right) \cdot \left(-1\right)\]
\[\left(0.01071428571428571438484134148438897682354 \cdot x - 850\right) \cdot \left(-1\right)\]
\left(\frac{x}{14000} \cdot 150 - 850\right) \cdot \left(-1\right)
\left(0.01071428571428571438484134148438897682354 \cdot x - 850\right) \cdot \left(-1\right)
double f(double x) {
        double r2203846 = x;
        double r2203847 = 14000.0;
        double r2203848 = r2203846 / r2203847;
        double r2203849 = 150.0;
        double r2203850 = r2203848 * r2203849;
        double r2203851 = 850.0;
        double r2203852 = r2203850 - r2203851;
        double r2203853 = 1.0;
        double r2203854 = -r2203853;
        double r2203855 = r2203852 * r2203854;
        return r2203855;
}

double f(double x) {
        double r2203856 = 0.010714285714285714;
        double r2203857 = x;
        double r2203858 = r2203856 * r2203857;
        double r2203859 = 850.0;
        double r2203860 = r2203858 - r2203859;
        double r2203861 = 1.0;
        double r2203862 = -r2203861;
        double r2203863 = r2203860 * r2203862;
        return r2203863;
}

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

    \[\left(\frac{x}{14000} \cdot 150 - 850\right) \cdot \left(-1\right)\]
  2. Taylor expanded around 0 0.0

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

    \[\leadsto \left(0.01071428571428571438484134148438897682354 \cdot x - 850\right) \cdot \left(-1\right)\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "(x/14000*150-850)*-1"
  :precision binary64
  (* (- (* (/ x 14000) 150) 850) (- 1)))