Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, A

Percentage Accurate: 99.9% → 99.8%
Time: 5.5s
Alternatives: 8
Speedup: 1.3×

Specification

?
\[\begin{array}{l} \\ 1 - x \cdot \left(0.253 + x \cdot 0.12\right) \end{array} \]
(FPCore (x) :precision binary64 (- 1.0 (* x (+ 0.253 (* x 0.12)))))
double code(double x) {
	return 1.0 - (x * (0.253 + (x * 0.12)));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = 1.0d0 - (x * (0.253d0 + (x * 0.12d0)))
end function
public static double code(double x) {
	return 1.0 - (x * (0.253 + (x * 0.12)));
}
def code(x):
	return 1.0 - (x * (0.253 + (x * 0.12)))
function code(x)
	return Float64(1.0 - Float64(x * Float64(0.253 + Float64(x * 0.12))))
end
function tmp = code(x)
	tmp = 1.0 - (x * (0.253 + (x * 0.12)));
end
code[x_] := N[(1.0 - N[(x * N[(0.253 + N[(x * 0.12), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
1 - x \cdot \left(0.253 + x \cdot 0.12\right)
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 8 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 99.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ 1 - x \cdot \left(0.253 + x \cdot 0.12\right) \end{array} \]
(FPCore (x) :precision binary64 (- 1.0 (* x (+ 0.253 (* x 0.12)))))
double code(double x) {
	return 1.0 - (x * (0.253 + (x * 0.12)));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = 1.0d0 - (x * (0.253d0 + (x * 0.12d0)))
end function
public static double code(double x) {
	return 1.0 - (x * (0.253 + (x * 0.12)));
}
def code(x):
	return 1.0 - (x * (0.253 + (x * 0.12)))
function code(x)
	return Float64(1.0 - Float64(x * Float64(0.253 + Float64(x * 0.12))))
end
function tmp = code(x)
	tmp = 1.0 - (x * (0.253 + (x * 0.12)));
end
code[x_] := N[(1.0 - N[(x * N[(0.253 + N[(x * 0.12), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
1 - x \cdot \left(0.253 + x \cdot 0.12\right)
\end{array}

Alternative 1: 99.8% accurate, 0.9× speedup?

\[\begin{array}{l} \\ 1 - \mathsf{fma}\left(x \cdot x, 0.12, 0.253 \cdot x\right) \end{array} \]
(FPCore (x) :precision binary64 (- 1.0 (fma (* x x) 0.12 (* 0.253 x))))
double code(double x) {
	return 1.0 - fma((x * x), 0.12, (0.253 * x));
}
function code(x)
	return Float64(1.0 - fma(Float64(x * x), 0.12, Float64(0.253 * x)))
end
code[x_] := N[(1.0 - N[(N[(x * x), $MachinePrecision] * 0.12 + N[(0.253 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
1 - \mathsf{fma}\left(x \cdot x, 0.12, 0.253 \cdot x\right)
\end{array}
Derivation
  1. Initial program 99.9%

    \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. lift-*.f64N/A

      \[\leadsto 1 - \color{blue}{x \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
    2. lift-+.f64N/A

      \[\leadsto 1 - x \cdot \color{blue}{\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
    3. +-commutativeN/A

      \[\leadsto 1 - x \cdot \color{blue}{\left(x \cdot \frac{3}{25} + \frac{253}{1000}\right)} \]
    4. distribute-lft-inN/A

      \[\leadsto 1 - \color{blue}{\left(x \cdot \left(x \cdot \frac{3}{25}\right) + x \cdot \frac{253}{1000}\right)} \]
    5. lift-*.f64N/A

      \[\leadsto 1 - \left(x \cdot \color{blue}{\left(x \cdot \frac{3}{25}\right)} + x \cdot \frac{253}{1000}\right) \]
    6. associate-*r*N/A

      \[\leadsto 1 - \left(\color{blue}{\left(x \cdot x\right) \cdot \frac{3}{25}} + x \cdot \frac{253}{1000}\right) \]
    7. *-commutativeN/A

      \[\leadsto 1 - \left(\left(x \cdot x\right) \cdot \frac{3}{25} + \color{blue}{\frac{253}{1000} \cdot x}\right) \]
    8. lower-fma.f64N/A

      \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(x \cdot x, \frac{3}{25}, \frac{253}{1000} \cdot x\right)} \]
    9. lower-*.f64N/A

      \[\leadsto 1 - \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{3}{25}, \frac{253}{1000} \cdot x\right) \]
    10. lower-*.f6499.9

      \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, 0.12, \color{blue}{0.253 \cdot x}\right) \]
  4. Applied rewrites99.9%

    \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(x \cdot x, 0.12, 0.253 \cdot x\right)} \]
  5. Add Preprocessing

Alternative 2: 98.7% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.12, x, -0.253\right) \cdot x\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= (* x (+ 0.253 (* x 0.12))) 1e-8)
   (fma -0.253 x 1.0)
   (* (fma -0.12 x -0.253) x)))
double code(double x) {
	double tmp;
	if ((x * (0.253 + (x * 0.12))) <= 1e-8) {
		tmp = fma(-0.253, x, 1.0);
	} else {
		tmp = fma(-0.12, x, -0.253) * x;
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if (Float64(x * Float64(0.253 + Float64(x * 0.12))) <= 1e-8)
		tmp = fma(-0.253, x, 1.0);
	else
		tmp = Float64(fma(-0.12, x, -0.253) * x);
	end
	return tmp
end
code[x_] := If[LessEqual[N[(x * N[(0.253 + N[(x * 0.12), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e-8], N[(-0.253 * x + 1.0), $MachinePrecision], N[(N[(-0.12 * x + -0.253), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\
\;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-0.12, x, -0.253\right) \cdot x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 x (+.f64 #s(literal 253/1000 binary64) (*.f64 x #s(literal 3/25 binary64)))) < 1e-8

    1. Initial program 100.0%

      \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \color{blue}{1 + \frac{-253}{1000} \cdot x} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\frac{-253}{1000} \cdot x + 1} \]
      2. lower-fma.f6499.3

        \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]
    5. Applied rewrites99.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]

    if 1e-8 < (*.f64 x (+.f64 #s(literal 253/1000 binary64) (*.f64 x #s(literal 3/25 binary64))))

    1. Initial program 99.7%

      \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf

      \[\leadsto \color{blue}{-1 \cdot \left({x}^{2} \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left({x}^{2} \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)} \]
      2. unpow2N/A

        \[\leadsto \mathsf{neg}\left(\color{blue}{\left(x \cdot x\right)} \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right) \]
      3. associate-*l*N/A

        \[\leadsto \mathsf{neg}\left(\color{blue}{x \cdot \left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)}\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto \color{blue}{x \cdot \left(\mathsf{neg}\left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right)} \]
      5. *-commutativeN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right) \cdot x} \]
      6. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right) \cdot x} \]
      7. distribute-rgt-neg-inN/A

        \[\leadsto \color{blue}{\left(x \cdot \left(\mathsf{neg}\left(\left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right)\right)} \cdot x \]
      8. distribute-neg-inN/A

        \[\leadsto \left(x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(\frac{3}{25}\right)\right) + \left(\mathsf{neg}\left(\frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right)}\right) \cdot x \]
      9. metadata-evalN/A

        \[\leadsto \left(x \cdot \left(\color{blue}{\frac{-3}{25}} + \left(\mathsf{neg}\left(\frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right)\right) \cdot x \]
      10. distribute-rgt-inN/A

        \[\leadsto \color{blue}{\left(\frac{-3}{25} \cdot x + \left(\mathsf{neg}\left(\frac{253}{1000} \cdot \frac{1}{x}\right)\right) \cdot x\right)} \cdot x \]
      11. distribute-lft-neg-outN/A

        \[\leadsto \left(\frac{-3}{25} \cdot x + \color{blue}{\left(\mathsf{neg}\left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)\right)}\right) \cdot x \]
      12. associate-*l*N/A

        \[\leadsto \left(\frac{-3}{25} \cdot x + \left(\mathsf{neg}\left(\color{blue}{\frac{253}{1000} \cdot \left(\frac{1}{x} \cdot x\right)}\right)\right)\right) \cdot x \]
      13. lft-mult-inverseN/A

        \[\leadsto \left(\frac{-3}{25} \cdot x + \left(\mathsf{neg}\left(\frac{253}{1000} \cdot \color{blue}{1}\right)\right)\right) \cdot x \]
      14. metadata-evalN/A

        \[\leadsto \left(\frac{-3}{25} \cdot x + \left(\mathsf{neg}\left(\color{blue}{\frac{253}{1000}}\right)\right)\right) \cdot x \]
      15. metadata-evalN/A

        \[\leadsto \left(\frac{-3}{25} \cdot x + \color{blue}{\frac{-253}{1000}}\right) \cdot x \]
      16. lower-fma.f6499.2

        \[\leadsto \color{blue}{\mathsf{fma}\left(-0.12, x, -0.253\right)} \cdot x \]
    5. Applied rewrites99.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(-0.12, x, -0.253\right) \cdot x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.12, x, -0.253\right) \cdot x\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 98.1% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot x\right) \cdot -0.12\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= (* x (+ 0.253 (* x 0.12))) 1e-8)
   (fma -0.253 x 1.0)
   (* (* x x) -0.12)))
double code(double x) {
	double tmp;
	if ((x * (0.253 + (x * 0.12))) <= 1e-8) {
		tmp = fma(-0.253, x, 1.0);
	} else {
		tmp = (x * x) * -0.12;
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if (Float64(x * Float64(0.253 + Float64(x * 0.12))) <= 1e-8)
		tmp = fma(-0.253, x, 1.0);
	else
		tmp = Float64(Float64(x * x) * -0.12);
	end
	return tmp
end
code[x_] := If[LessEqual[N[(x * N[(0.253 + N[(x * 0.12), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e-8], N[(-0.253 * x + 1.0), $MachinePrecision], N[(N[(x * x), $MachinePrecision] * -0.12), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\
\;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot x\right) \cdot -0.12\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 x (+.f64 #s(literal 253/1000 binary64) (*.f64 x #s(literal 3/25 binary64)))) < 1e-8

    1. Initial program 100.0%

      \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \color{blue}{1 + \frac{-253}{1000} \cdot x} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\frac{-253}{1000} \cdot x + 1} \]
      2. lower-fma.f6499.3

        \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]
    5. Applied rewrites99.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]

    if 1e-8 < (*.f64 x (+.f64 #s(literal 253/1000 binary64) (*.f64 x #s(literal 3/25 binary64))))

    1. Initial program 99.7%

      \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf

      \[\leadsto \color{blue}{\frac{-3}{25} \cdot {x}^{2}} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \color{blue}{{x}^{2} \cdot \frac{-3}{25}} \]
      2. lower-*.f64N/A

        \[\leadsto \color{blue}{{x}^{2} \cdot \frac{-3}{25}} \]
      3. unpow2N/A

        \[\leadsto \color{blue}{\left(x \cdot x\right)} \cdot \frac{-3}{25} \]
      4. lower-*.f6498.8

        \[\leadsto \color{blue}{\left(x \cdot x\right)} \cdot -0.12 \]
    5. Applied rewrites98.8%

      \[\leadsto \color{blue}{\left(x \cdot x\right) \cdot -0.12} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot x\right) \cdot -0.12\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 98.2% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-0.12 \cdot x\right) \cdot x\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= (* x (+ 0.253 (* x 0.12))) 1e-8)
   (fma -0.253 x 1.0)
   (* (* -0.12 x) x)))
double code(double x) {
	double tmp;
	if ((x * (0.253 + (x * 0.12))) <= 1e-8) {
		tmp = fma(-0.253, x, 1.0);
	} else {
		tmp = (-0.12 * x) * x;
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if (Float64(x * Float64(0.253 + Float64(x * 0.12))) <= 1e-8)
		tmp = fma(-0.253, x, 1.0);
	else
		tmp = Float64(Float64(-0.12 * x) * x);
	end
	return tmp
end
code[x_] := If[LessEqual[N[(x * N[(0.253 + N[(x * 0.12), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e-8], N[(-0.253 * x + 1.0), $MachinePrecision], N[(N[(-0.12 * x), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\
\;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\

\mathbf{else}:\\
\;\;\;\;\left(-0.12 \cdot x\right) \cdot x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 x (+.f64 #s(literal 253/1000 binary64) (*.f64 x #s(literal 3/25 binary64)))) < 1e-8

    1. Initial program 100.0%

      \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \color{blue}{1 + \frac{-253}{1000} \cdot x} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\frac{-253}{1000} \cdot x + 1} \]
      2. lower-fma.f6499.3

        \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]
    5. Applied rewrites99.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]

    if 1e-8 < (*.f64 x (+.f64 #s(literal 253/1000 binary64) (*.f64 x #s(literal 3/25 binary64))))

    1. Initial program 99.7%

      \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf

      \[\leadsto \color{blue}{\frac{-3}{25} \cdot {x}^{2}} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \color{blue}{{x}^{2} \cdot \frac{-3}{25}} \]
      2. lower-*.f64N/A

        \[\leadsto \color{blue}{{x}^{2} \cdot \frac{-3}{25}} \]
      3. unpow2N/A

        \[\leadsto \color{blue}{\left(x \cdot x\right)} \cdot \frac{-3}{25} \]
      4. lower-*.f6498.8

        \[\leadsto \color{blue}{\left(x \cdot x\right)} \cdot -0.12 \]
    5. Applied rewrites98.8%

      \[\leadsto \color{blue}{\left(x \cdot x\right) \cdot -0.12} \]
    6. Step-by-step derivation
      1. Applied rewrites98.8%

        \[\leadsto \left(-0.12 \cdot x\right) \cdot \color{blue}{x} \]
    7. Recombined 2 regimes into one program.
    8. Final simplification99.0%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot \left(0.253 + x \cdot 0.12\right) \leq 10^{-8}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-0.12 \cdot x\right) \cdot x\\ \end{array} \]
    9. Add Preprocessing

    Alternative 5: 52.3% accurate, 1.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.2:\\ \;\;\;\;x \cdot 0.253\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \end{array} \end{array} \]
    (FPCore (x)
     :precision binary64
     (if (<= x -4.2) (* x 0.253) (fma -0.253 x 1.0)))
    double code(double x) {
    	double tmp;
    	if (x <= -4.2) {
    		tmp = x * 0.253;
    	} else {
    		tmp = fma(-0.253, x, 1.0);
    	}
    	return tmp;
    }
    
    function code(x)
    	tmp = 0.0
    	if (x <= -4.2)
    		tmp = Float64(x * 0.253);
    	else
    		tmp = fma(-0.253, x, 1.0);
    	end
    	return tmp
    end
    
    code[x_] := If[LessEqual[x, -4.2], N[(x * 0.253), $MachinePrecision], N[(-0.253 * x + 1.0), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;x \leq -4.2:\\
    \;\;\;\;x \cdot 0.253\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if x < -4.20000000000000018

      1. Initial program 99.7%

        \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto 1 - \color{blue}{x \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
        2. lift-+.f64N/A

          \[\leadsto 1 - x \cdot \color{blue}{\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
        3. +-commutativeN/A

          \[\leadsto 1 - x \cdot \color{blue}{\left(x \cdot \frac{3}{25} + \frac{253}{1000}\right)} \]
        4. distribute-lft-inN/A

          \[\leadsto 1 - \color{blue}{\left(x \cdot \left(x \cdot \frac{3}{25}\right) + x \cdot \frac{253}{1000}\right)} \]
        5. lift-*.f64N/A

          \[\leadsto 1 - \left(x \cdot \color{blue}{\left(x \cdot \frac{3}{25}\right)} + x \cdot \frac{253}{1000}\right) \]
        6. associate-*r*N/A

          \[\leadsto 1 - \left(\color{blue}{\left(x \cdot x\right) \cdot \frac{3}{25}} + x \cdot \frac{253}{1000}\right) \]
        7. *-commutativeN/A

          \[\leadsto 1 - \left(\left(x \cdot x\right) \cdot \frac{3}{25} + \color{blue}{\frac{253}{1000} \cdot x}\right) \]
        8. lower-fma.f64N/A

          \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(x \cdot x, \frac{3}{25}, \frac{253}{1000} \cdot x\right)} \]
        9. lower-*.f64N/A

          \[\leadsto 1 - \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{3}{25}, \frac{253}{1000} \cdot x\right) \]
        10. lower-*.f6499.9

          \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, 0.12, \color{blue}{0.253 \cdot x}\right) \]
      4. Applied rewrites99.9%

        \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(x \cdot x, 0.12, 0.253 \cdot x\right)} \]
      5. Taylor expanded in x around inf

        \[\leadsto \color{blue}{-1 \cdot \left({x}^{2} \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)} \]
      6. Step-by-step derivation
        1. unpow2N/A

          \[\leadsto -1 \cdot \left(\color{blue}{\left(x \cdot x\right)} \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right) \]
        2. associate-*l*N/A

          \[\leadsto -1 \cdot \color{blue}{\left(x \cdot \left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right)} \]
        3. *-commutativeN/A

          \[\leadsto -1 \cdot \color{blue}{\left(\left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right) \cdot x\right)} \]
        4. associate-*r*N/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(x \cdot \left(\frac{3}{25} + \frac{253}{1000} \cdot \frac{1}{x}\right)\right)\right) \cdot x} \]
        5. distribute-rgt-inN/A

          \[\leadsto \left(-1 \cdot \color{blue}{\left(\frac{3}{25} \cdot x + \left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)}\right) \cdot x \]
        6. distribute-lft-inN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(\frac{3}{25} \cdot x\right) + -1 \cdot \left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)\right)} \cdot x \]
        7. fp-cancel-sign-sub-invN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(\frac{3}{25} \cdot x\right) - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)\right)} \cdot x \]
        8. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(-1 \cdot \frac{3}{25}\right) \cdot x} - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)\right) \cdot x \]
        9. metadata-evalN/A

          \[\leadsto \left(\color{blue}{\frac{-3}{25}} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)\right) \cdot x \]
        10. metadata-evalN/A

          \[\leadsto \left(\frac{-3}{25} \cdot x - \color{blue}{1} \cdot \left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot x\right)\right) \cdot x \]
        11. associate-*l*N/A

          \[\leadsto \left(\frac{-3}{25} \cdot x - 1 \cdot \color{blue}{\left(\frac{253}{1000} \cdot \left(\frac{1}{x} \cdot x\right)\right)}\right) \cdot x \]
        12. lft-mult-inverseN/A

          \[\leadsto \left(\frac{-3}{25} \cdot x - 1 \cdot \left(\frac{253}{1000} \cdot \color{blue}{1}\right)\right) \cdot x \]
        13. metadata-evalN/A

          \[\leadsto \left(\frac{-3}{25} \cdot x - 1 \cdot \color{blue}{\frac{253}{1000}}\right) \cdot x \]
        14. metadata-evalN/A

          \[\leadsto \left(\frac{-3}{25} \cdot x - \color{blue}{\frac{253}{1000}}\right) \cdot x \]
        15. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(\frac{-3}{25} \cdot x - \frac{253}{1000}\right) \cdot x} \]
      7. Applied rewrites99.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(-0.12, x, -0.253\right) \cdot x} \]
      8. Taylor expanded in x around 0

        \[\leadsto \frac{-253}{1000} \cdot \color{blue}{x} \]
      9. Step-by-step derivation
        1. Applied rewrites0.4%

          \[\leadsto -0.253 \cdot \color{blue}{x} \]
        2. Step-by-step derivation
          1. Applied rewrites6.9%

            \[\leadsto x \cdot 0.253 \]

          if -4.20000000000000018 < x

          1. Initial program 99.9%

            \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \color{blue}{1 + \frac{-253}{1000} \cdot x} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \color{blue}{\frac{-253}{1000} \cdot x + 1} \]
            2. lower-fma.f6466.9

              \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]
          5. Applied rewrites66.9%

            \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, x, 1\right)} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification51.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.2:\\ \;\;\;\;x \cdot 0.253\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.253, x, 1\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 6: 99.9% accurate, 1.3× speedup?

        \[\begin{array}{l} \\ \mathsf{fma}\left(\mathsf{fma}\left(-0.12, x, -0.253\right), x, 1\right) \end{array} \]
        (FPCore (x) :precision binary64 (fma (fma -0.12 x -0.253) x 1.0))
        double code(double x) {
        	return fma(fma(-0.12, x, -0.253), x, 1.0);
        }
        
        function code(x)
        	return fma(fma(-0.12, x, -0.253), x, 1.0)
        end
        
        code[x_] := N[(N[(-0.12 * x + -0.253), $MachinePrecision] * x + 1.0), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \mathsf{fma}\left(\mathsf{fma}\left(-0.12, x, -0.253\right), x, 1\right)
        \end{array}
        
        Derivation
        1. Initial program 99.9%

          \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift--.f64N/A

            \[\leadsto \color{blue}{1 - x \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
          2. lift-*.f64N/A

            \[\leadsto 1 - \color{blue}{x \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
          3. fp-cancel-sub-sign-invN/A

            \[\leadsto \color{blue}{1 + \left(\mathsf{neg}\left(x\right)\right) \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
          4. +-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(x\right)\right) \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right) + 1} \]
          5. distribute-lft-neg-outN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(x \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)\right)\right)} + 1 \]
          6. distribute-rgt-neg-inN/A

            \[\leadsto \color{blue}{x \cdot \left(\mathsf{neg}\left(\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)\right)\right)} + 1 \]
          7. *-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)\right)\right) \cdot x} + 1 \]
          8. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)\right), x, 1\right)} \]
          9. lift-+.f64N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)}\right), x, 1\right) \]
          10. +-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(x \cdot \frac{3}{25} + \frac{253}{1000}\right)}\right), x, 1\right) \]
          11. distribute-neg-inN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(x \cdot \frac{3}{25}\right)\right) + \left(\mathsf{neg}\left(\frac{253}{1000}\right)\right)}, x, 1\right) \]
          12. lift-*.f64N/A

            \[\leadsto \mathsf{fma}\left(\left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{3}{25}}\right)\right) + \left(\mathsf{neg}\left(\frac{253}{1000}\right)\right), x, 1\right) \]
          13. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\left(\mathsf{neg}\left(\color{blue}{\frac{3}{25} \cdot x}\right)\right) + \left(\mathsf{neg}\left(\frac{253}{1000}\right)\right), x, 1\right) \]
          14. distribute-lft-neg-inN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\frac{3}{25}\right)\right) \cdot x} + \left(\mathsf{neg}\left(\frac{253}{1000}\right)\right), x, 1\right) \]
          15. lower-fma.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(\frac{3}{25}\right), x, \mathsf{neg}\left(\frac{253}{1000}\right)\right)}, x, 1\right) \]
          16. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\frac{-3}{25}}, x, \mathsf{neg}\left(\frac{253}{1000}\right)\right), x, 1\right) \]
          17. metadata-eval99.9

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-0.12, x, \color{blue}{-0.253}\right), x, 1\right) \]
        4. Applied rewrites99.9%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-0.12, x, -0.253\right), x, 1\right)} \]
        5. Add Preprocessing

        Alternative 7: 52.0% accurate, 1.9× speedup?

        \[\begin{array}{l} \\ \mathsf{fma}\left(-0.253, \left|x\right|, 1\right) \end{array} \]
        (FPCore (x) :precision binary64 (fma -0.253 (fabs x) 1.0))
        double code(double x) {
        	return fma(-0.253, fabs(x), 1.0);
        }
        
        function code(x)
        	return fma(-0.253, abs(x), 1.0)
        end
        
        code[x_] := N[(-0.253 * N[Abs[x], $MachinePrecision] + 1.0), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \mathsf{fma}\left(-0.253, \left|x\right|, 1\right)
        \end{array}
        
        Derivation
        1. Initial program 99.9%

          \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto 1 - \color{blue}{x \cdot \left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
          2. lift-+.f64N/A

            \[\leadsto 1 - x \cdot \color{blue}{\left(\frac{253}{1000} + x \cdot \frac{3}{25}\right)} \]
          3. +-commutativeN/A

            \[\leadsto 1 - x \cdot \color{blue}{\left(x \cdot \frac{3}{25} + \frac{253}{1000}\right)} \]
          4. distribute-lft-inN/A

            \[\leadsto 1 - \color{blue}{\left(x \cdot \left(x \cdot \frac{3}{25}\right) + x \cdot \frac{253}{1000}\right)} \]
          5. lift-*.f64N/A

            \[\leadsto 1 - \left(x \cdot \color{blue}{\left(x \cdot \frac{3}{25}\right)} + x \cdot \frac{253}{1000}\right) \]
          6. associate-*r*N/A

            \[\leadsto 1 - \left(\color{blue}{\left(x \cdot x\right) \cdot \frac{3}{25}} + x \cdot \frac{253}{1000}\right) \]
          7. *-commutativeN/A

            \[\leadsto 1 - \left(\left(x \cdot x\right) \cdot \frac{3}{25} + \color{blue}{\frac{253}{1000} \cdot x}\right) \]
          8. lower-fma.f64N/A

            \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(x \cdot x, \frac{3}{25}, \frac{253}{1000} \cdot x\right)} \]
          9. lower-*.f64N/A

            \[\leadsto 1 - \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{3}{25}, \frac{253}{1000} \cdot x\right) \]
          10. lower-*.f6499.9

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, 0.12, \color{blue}{0.253 \cdot x}\right) \]
        4. Applied rewrites99.9%

          \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(x \cdot x, 0.12, 0.253 \cdot x\right)} \]
        5. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \color{blue}{\frac{253}{1000} \cdot x}\right) \]
          2. metadata-evalN/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \color{blue}{\left|\frac{253}{1000}\right|} \cdot x\right) \]
          3. unpow1N/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \left|\frac{253}{1000}\right| \cdot \color{blue}{{x}^{1}}\right) \]
          4. metadata-evalN/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \left|\frac{253}{1000}\right| \cdot {x}^{\color{blue}{\left(\frac{2}{2}\right)}}\right) \]
          5. sqrt-pow1N/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \left|\frac{253}{1000}\right| \cdot \color{blue}{\sqrt{{x}^{2}}}\right) \]
          6. pow2N/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \left|\frac{253}{1000}\right| \cdot \sqrt{\color{blue}{x \cdot x}}\right) \]
          7. rem-sqrt-square-revN/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \left|\frac{253}{1000}\right| \cdot \color{blue}{\left|x\right|}\right) \]
          8. fabs-mulN/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \color{blue}{\left|\frac{253}{1000} \cdot x\right|}\right) \]
          9. lift-*.f64N/A

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, \frac{3}{25}, \left|\color{blue}{\frac{253}{1000} \cdot x}\right|\right) \]
          10. lower-fabs.f6499.3

            \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, 0.12, \color{blue}{\left|0.253 \cdot x\right|}\right) \]
        6. Applied rewrites99.3%

          \[\leadsto 1 - \mathsf{fma}\left(x \cdot x, 0.12, \color{blue}{\left|0.253 \cdot x\right|}\right) \]
        7. Taylor expanded in x around 0

          \[\leadsto \color{blue}{1 - \left|\frac{253}{1000} \cdot x\right|} \]
        8. Step-by-step derivation
          1. fabs-mulN/A

            \[\leadsto 1 - \color{blue}{\left|\frac{253}{1000}\right| \cdot \left|x\right|} \]
          2. metadata-evalN/A

            \[\leadsto 1 - \color{blue}{\frac{253}{1000}} \cdot \left|x\right| \]
          3. fp-cancel-sub-sign-invN/A

            \[\leadsto \color{blue}{1 + \left(\mathsf{neg}\left(\frac{253}{1000}\right)\right) \cdot \left|x\right|} \]
          4. +-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{253}{1000}\right)\right) \cdot \left|x\right| + 1} \]
          5. metadata-evalN/A

            \[\leadsto \color{blue}{\frac{-253}{1000}} \cdot \left|x\right| + 1 \]
          6. metadata-evalN/A

            \[\leadsto \color{blue}{\left(\frac{253}{1000} \cdot -1\right)} \cdot \left|x\right| + 1 \]
          7. metadata-evalN/A

            \[\leadsto \left(\frac{253}{1000} \cdot \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right) \cdot \left|x\right| + 1 \]
          8. lft-mult-inverseN/A

            \[\leadsto \left(\frac{253}{1000} \cdot \left(\mathsf{neg}\left(\color{blue}{\frac{1}{x} \cdot x}\right)\right)\right) \cdot \left|x\right| + 1 \]
          9. distribute-rgt-neg-outN/A

            \[\leadsto \left(\frac{253}{1000} \cdot \color{blue}{\left(\frac{1}{x} \cdot \left(\mathsf{neg}\left(x\right)\right)\right)}\right) \cdot \left|x\right| + 1 \]
          10. associate-*l*N/A

            \[\leadsto \color{blue}{\left(\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot \left(\mathsf{neg}\left(x\right)\right)\right)} \cdot \left|x\right| + 1 \]
          11. *-commutativeN/A

            \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) \cdot \left(\frac{253}{1000} \cdot \frac{1}{x}\right)\right)} \cdot \left|x\right| + 1 \]
          12. mul-1-negN/A

            \[\leadsto \left(\color{blue}{\left(-1 \cdot x\right)} \cdot \left(\frac{253}{1000} \cdot \frac{1}{x}\right)\right) \cdot \left|x\right| + 1 \]
          13. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(-1 \cdot x\right) \cdot \left(\frac{253}{1000} \cdot \frac{1}{x}\right), \left|x\right|, 1\right)} \]
          14. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(x\right)\right)} \cdot \left(\frac{253}{1000} \cdot \frac{1}{x}\right), \left|x\right|, 1\right) \]
          15. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\frac{253}{1000} \cdot \frac{1}{x}\right) \cdot \left(\mathsf{neg}\left(x\right)\right)}, \left|x\right|, 1\right) \]
          16. associate-*l*N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{253}{1000} \cdot \left(\frac{1}{x} \cdot \left(\mathsf{neg}\left(x\right)\right)\right)}, \left|x\right|, 1\right) \]
          17. distribute-rgt-neg-outN/A

            \[\leadsto \mathsf{fma}\left(\frac{253}{1000} \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{1}{x} \cdot x\right)\right)}, \left|x\right|, 1\right) \]
          18. lft-mult-inverseN/A

            \[\leadsto \mathsf{fma}\left(\frac{253}{1000} \cdot \left(\mathsf{neg}\left(\color{blue}{1}\right)\right), \left|x\right|, 1\right) \]
          19. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(\frac{253}{1000} \cdot \color{blue}{-1}, \left|x\right|, 1\right) \]
          20. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{-253}{1000}}, \left|x\right|, 1\right) \]
          21. lower-fabs.f6451.7

            \[\leadsto \mathsf{fma}\left(-0.253, \color{blue}{\left|x\right|}, 1\right) \]
        9. Applied rewrites51.7%

          \[\leadsto \color{blue}{\mathsf{fma}\left(-0.253, \left|x\right|, 1\right)} \]
        10. Add Preprocessing

        Alternative 8: 48.8% accurate, 17.0× speedup?

        \[\begin{array}{l} \\ 1 \end{array} \]
        (FPCore (x) :precision binary64 1.0)
        double code(double x) {
        	return 1.0;
        }
        
        real(8) function code(x)
            real(8), intent (in) :: x
            code = 1.0d0
        end function
        
        public static double code(double x) {
        	return 1.0;
        }
        
        def code(x):
        	return 1.0
        
        function code(x)
        	return 1.0
        end
        
        function tmp = code(x)
        	tmp = 1.0;
        end
        
        code[x_] := 1.0
        
        \begin{array}{l}
        
        \\
        1
        \end{array}
        
        Derivation
        1. Initial program 99.9%

          \[1 - x \cdot \left(0.253 + x \cdot 0.12\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \color{blue}{1} \]
        4. Step-by-step derivation
          1. Applied rewrites48.3%

            \[\leadsto \color{blue}{1} \]
          2. Final simplification48.3%

            \[\leadsto 1 \]
          3. Add Preprocessing

          Reproduce

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