Average Error: 0.1 → 0.1
Time: 36.4s
Precision: 64
\[1 - x \cdot \left(0.2530000000000000026645352591003756970167 + x \cdot 0.1199999999999999955591079014993738383055\right)\]
\[1 - \left(0.2530000000000000026645352591003756970167 \cdot x + \left(x \cdot 0.1199999999999999955591079014993738383055\right) \cdot x\right)\]
1 - x \cdot \left(0.2530000000000000026645352591003756970167 + x \cdot 0.1199999999999999955591079014993738383055\right)
1 - \left(0.2530000000000000026645352591003756970167 \cdot x + \left(x \cdot 0.1199999999999999955591079014993738383055\right) \cdot x\right)
double f(double x) {
        double r3729781 = 1.0;
        double r3729782 = x;
        double r3729783 = 0.253;
        double r3729784 = 0.12;
        double r3729785 = r3729782 * r3729784;
        double r3729786 = r3729783 + r3729785;
        double r3729787 = r3729782 * r3729786;
        double r3729788 = r3729781 - r3729787;
        return r3729788;
}

double f(double x) {
        double r3729789 = 1.0;
        double r3729790 = 0.253;
        double r3729791 = x;
        double r3729792 = r3729790 * r3729791;
        double r3729793 = 0.12;
        double r3729794 = r3729791 * r3729793;
        double r3729795 = r3729794 * r3729791;
        double r3729796 = r3729792 + r3729795;
        double r3729797 = r3729789 - r3729796;
        return r3729797;
}

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(0.2530000000000000026645352591003756970167 \cdot x + \left(x \cdot 0.1199999999999999955591079014993738383055\right) \cdot x\right)\]

Reproduce

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