Average Error: 0.1 → 0.1
Time: 2.4s
Precision: 64
\[1 - x \cdot \left(0.2530000000000000026645352591003756970167 + x \cdot 0.1199999999999999955591079014993738383055\right)\]
\[1 - \left(x \cdot 0.2530000000000000026645352591003756970167 + x \cdot \left(x \cdot 0.1199999999999999955591079014993738383055\right)\right)\]
1 - x \cdot \left(0.2530000000000000026645352591003756970167 + x \cdot 0.1199999999999999955591079014993738383055\right)
1 - \left(x \cdot 0.2530000000000000026645352591003756970167 + x \cdot \left(x \cdot 0.1199999999999999955591079014993738383055\right)\right)
double f(double x) {
        double r53019 = 1.0;
        double r53020 = x;
        double r53021 = 0.253;
        double r53022 = 0.12;
        double r53023 = r53020 * r53022;
        double r53024 = r53021 + r53023;
        double r53025 = r53020 * r53024;
        double r53026 = r53019 - r53025;
        return r53026;
}

double f(double x) {
        double r53027 = 1.0;
        double r53028 = x;
        double r53029 = 0.253;
        double r53030 = r53028 * r53029;
        double r53031 = 0.12;
        double r53032 = r53028 * r53031;
        double r53033 = r53028 * r53032;
        double r53034 = r53030 + r53033;
        double r53035 = r53027 - r53034;
        return r53035;
}

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

    \[1 - x \cdot \left(0.2530000000000000026645352591003756970167 + x \cdot 0.1199999999999999955591079014993738383055\right)\]
  2. Using strategy rm
  3. Applied distribute-lft-in0.1

    \[\leadsto 1 - \color{blue}{\left(x \cdot 0.2530000000000000026645352591003756970167 + x \cdot \left(x \cdot 0.1199999999999999955591079014993738383055\right)\right)}\]
  4. Final simplification0.1

    \[\leadsto 1 - \left(x \cdot 0.2530000000000000026645352591003756970167 + x \cdot \left(x \cdot 0.1199999999999999955591079014993738383055\right)\right)\]

Reproduce

herbie shell --seed 2019353 
(FPCore (x)
  :name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, A"
  :precision binary64
  (- 1 (* x (+ 0.253 (* x 0.12)))))