Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B

Percentage Accurate: 93.7% → 99.6%
Time: 18.5s
Alternatives: 19
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (+
  (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
  (/
   (+
    (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
    0.083333333333333)
   x)))
double code(double x, double y, double z) {
	return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
	return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z):
	return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z)
	return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x))
end
function tmp = code(x, y, z)
	tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\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 19 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: 93.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (+
  (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
  (/
   (+
    (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
    0.083333333333333)
   x)))
double code(double x, double y, double z) {
	return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
	return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z):
	return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z)
	return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x))
end
function tmp = code(x, y, z)
	tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}

Alternative 1: 99.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 920000:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, 0.91893853320467 + \left(\mathsf{fma}\left(\log x, x + -0.5, 0\right) - x\right), \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (if (<= x 920000.0)
   (/
    (fma
     x
     (+ 0.91893853320467 (- (fma (log x) (+ x -0.5) 0.0) x))
     (fma
      z
      (fma z (+ 0.0007936500793651 y) -0.0027777777777778)
      0.083333333333333))
    x)
   (+
    (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
    (* z (* z (/ (+ 0.0007936500793651 y) x))))))
double code(double x, double y, double z) {
	double tmp;
	if (x <= 920000.0) {
		tmp = fma(x, (0.91893853320467 + (fma(log(x), (x + -0.5), 0.0) - x)), fma(z, fma(z, (0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333)) / x;
	} else {
		tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + (z * (z * ((0.0007936500793651 + y) / x)));
	}
	return tmp;
}
function code(x, y, z)
	tmp = 0.0
	if (x <= 920000.0)
		tmp = Float64(fma(x, Float64(0.91893853320467 + Float64(fma(log(x), Float64(x + -0.5), 0.0) - x)), fma(z, fma(z, Float64(0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333)) / x);
	else
		tmp = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(z * Float64(z * Float64(Float64(0.0007936500793651 + y) / x))));
	end
	return tmp
end
code[x_, y_, z_] := If[LessEqual[x, 920000.0], N[(N[(x * N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision] + 0.0), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(z * N[(0.0007936500793651 + y), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(z * N[(N[(0.0007936500793651 + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq 920000:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, 0.91893853320467 + \left(\mathsf{fma}\left(\log x, x + -0.5, 0\right) - x\right), \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)\right)}{x}\\

\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 9.2e5

    1. Initial program 99.7%

      \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + \left(x \cdot \left(\frac{91893853320467}{100000000000000} + \left(\frac{-1}{2} \cdot \log x + x \cdot \left(\log x - 1\right)\right)\right) + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)\right)}{x}} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(x, 0.91893853320467 + \left(\mathsf{fma}\left(\log x, -0.5 + x, 0\right) - x\right), \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)\right)}{x}} \]

    if 9.2e5 < x

    1. Initial program 89.8%

      \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{{z}^{2} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
    4. Step-by-step derivation
      1. associate-/l*N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{{z}^{2} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
      2. unpow2N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(z \cdot z\right)} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x} \]
      3. associate-*l*N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
      4. associate-*r/N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
      5. *-lowering-*.f64N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
      6. /-lowering-/.f64N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
      7. *-lowering-*.f64N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \frac{\color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}}{x} \]
      8. +-lowering-+.f6496.8

        \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \frac{z \cdot \color{blue}{\left(0.0007936500793651 + y\right)}}{x} \]
    5. Simplified96.8%

      \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x}} \]
    6. Step-by-step derivation
      1. associate-/l*N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
      2. *-commutativeN/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(\frac{\frac{7936500793651}{10000000000000000} + y}{x} \cdot z\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(\frac{\frac{7936500793651}{10000000000000000} + y}{x} \cdot z\right)} \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \left(\color{blue}{\frac{\frac{7936500793651}{10000000000000000} + y}{x}} \cdot z\right) \]
      5. +-lowering-+.f6499.5

        \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \left(\frac{\color{blue}{0.0007936500793651 + y}}{x} \cdot z\right) \]
    7. Applied egg-rr99.5%

      \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \color{blue}{\left(\frac{0.0007936500793651 + y}{x} \cdot z\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 920000:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, 0.91893853320467 + \left(\mathsf{fma}\left(\log x, x + -0.5, 0\right) - x\right), \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 88.0% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+150}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+307}:\\ \;\;\;\;0.91893853320467 + \left(\frac{0.083333333333333}{x} + \mathsf{fma}\left(\log x, x + -0.5, 0 - x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0
         (+
          (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
          (/
           (+
            0.083333333333333
            (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778)))
           x))))
   (if (<= t_0 -5e+150)
     (* y (/ (* z z) x))
     (if (<= t_0 5e+307)
       (+
        0.91893853320467
        (+ (/ 0.083333333333333 x) (fma (log x) (+ x -0.5) (- 0.0 x))))
       (fma
        z
        (fma
         z
         (/
          (-
           (- 0.0 9.259259259259444e-5)
           (fma
            -0.0069444444444443885
            (fma y 144.00000000000117 0.11428561142857531)
            -9.259259259259444e-5))
          x)
         (/ -0.0027777777777778 x))
        (/ 0.083333333333333 x))))))
double code(double x, double y, double z) {
	double t_0 = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x);
	double tmp;
	if (t_0 <= -5e+150) {
		tmp = y * ((z * z) / x);
	} else if (t_0 <= 5e+307) {
		tmp = 0.91893853320467 + ((0.083333333333333 / x) + fma(log(x), (x + -0.5), (0.0 - x)));
	} else {
		tmp = fma(z, fma(z, (((0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), (-0.0027777777777778 / x)), (0.083333333333333 / x));
	}
	return tmp;
}
function code(x, y, z)
	t_0 = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))) / x))
	tmp = 0.0
	if (t_0 <= -5e+150)
		tmp = Float64(y * Float64(Float64(z * z) / x));
	elseif (t_0 <= 5e+307)
		tmp = Float64(0.91893853320467 + Float64(Float64(0.083333333333333 / x) + fma(log(x), Float64(x + -0.5), Float64(0.0 - x))));
	else
		tmp = fma(z, fma(z, Float64(Float64(Float64(0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), Float64(-0.0027777777777778 / x)), Float64(0.083333333333333 / x));
	end
	return tmp
end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+150], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+307], N[(0.91893853320467 + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision] + N[(0.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(z * N[(N[(N[(0.0 - 9.259259259259444e-5), $MachinePrecision] - N[(-0.0069444444444443885 * N[(y * 144.00000000000117 + 0.11428561142857531), $MachinePrecision] + -9.259259259259444e-5), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(-0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\
\mathbf{if}\;t\_0 \leq -5 \cdot 10^{+150}:\\
\;\;\;\;y \cdot \frac{z \cdot z}{x}\\

\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;0.91893853320467 + \left(\frac{0.083333333333333}{x} + \mathsf{fma}\left(\log x, x + -0.5, 0 - x\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x)) < -5.00000000000000009e150

    1. Initial program 81.4%

      \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
    4. Step-by-step derivation
      1. associate-/l*N/A

        \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
      3. /-lowering-/.f64N/A

        \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
      4. unpow2N/A

        \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
      5. *-lowering-*.f6488.6

        \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
    5. Simplified88.6%

      \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

    if -5.00000000000000009e150 < (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x)) < 5e307

    1. Initial program 99.5%

      \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\frac{83333333333333}{1000000000000000}}}{x} \]
    4. Step-by-step derivation
      1. Simplified89.1%

        \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\color{blue}{0.083333333333333}}{x} \]
      2. Step-by-step derivation
        1. clear-numN/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{1}{\frac{x}{\frac{83333333333333}{1000000000000000}}}} \]
        2. /-lowering-/.f64N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{1}{\frac{x}{\frac{83333333333333}{1000000000000000}}}} \]
        3. div-invN/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{1}{\color{blue}{x \cdot \frac{1}{\frac{83333333333333}{1000000000000000}}}} \]
        4. *-lowering-*.f64N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{1}{\color{blue}{x \cdot \frac{1}{\frac{83333333333333}{1000000000000000}}}} \]
        5. metadata-eval89.2

          \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{1}{x \cdot \color{blue}{12.000000000000048}} \]
      3. Applied egg-rr89.2%

        \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{1}{x \cdot 12.000000000000048}} \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \color{blue}{\frac{1}{x \cdot \frac{1000000000000000}{83333333333333}} + \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right)} \]
        2. associate-+r+N/A

          \[\leadsto \color{blue}{\left(\frac{1}{x \cdot \frac{1000000000000000}{83333333333333}} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right) + \frac{91893853320467}{100000000000000}} \]
        3. +-lowering-+.f64N/A

          \[\leadsto \color{blue}{\left(\frac{1}{x \cdot \frac{1000000000000000}{83333333333333}} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right) + \frac{91893853320467}{100000000000000}} \]
        4. +-lowering-+.f64N/A

          \[\leadsto \color{blue}{\left(\frac{1}{x \cdot \frac{1000000000000000}{83333333333333}} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right)} + \frac{91893853320467}{100000000000000} \]
        5. *-commutativeN/A

          \[\leadsto \left(\frac{1}{\color{blue}{\frac{1000000000000000}{83333333333333} \cdot x}} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right) + \frac{91893853320467}{100000000000000} \]
        6. associate-/r*N/A

          \[\leadsto \left(\color{blue}{\frac{\frac{1}{\frac{1000000000000000}{83333333333333}}}{x}} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right) + \frac{91893853320467}{100000000000000} \]
        7. metadata-evalN/A

          \[\leadsto \left(\frac{\color{blue}{\frac{83333333333333}{1000000000000000}}}{x} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right) + \frac{91893853320467}{100000000000000} \]
        8. /-lowering-/.f64N/A

          \[\leadsto \left(\color{blue}{\frac{\frac{83333333333333}{1000000000000000}}{x}} + \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right)\right) + \frac{91893853320467}{100000000000000} \]
        9. sub-negN/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \color{blue}{\left(\left(x - \frac{1}{2}\right) \cdot \log x + \left(\mathsf{neg}\left(x\right)\right)\right)}\right) + \frac{91893853320467}{100000000000000} \]
        10. *-commutativeN/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \left(\color{blue}{\log x \cdot \left(x - \frac{1}{2}\right)} + \left(\mathsf{neg}\left(x\right)\right)\right)\right) + \frac{91893853320467}{100000000000000} \]
        11. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \color{blue}{\mathsf{fma}\left(\log x, x - \frac{1}{2}, \mathsf{neg}\left(x\right)\right)}\right) + \frac{91893853320467}{100000000000000} \]
        12. log-lowering-log.f64N/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \mathsf{fma}\left(\color{blue}{\log x}, x - \frac{1}{2}, \mathsf{neg}\left(x\right)\right)\right) + \frac{91893853320467}{100000000000000} \]
        13. sub-negN/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \mathsf{fma}\left(\log x, \color{blue}{x + \left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}, \mathsf{neg}\left(x\right)\right)\right) + \frac{91893853320467}{100000000000000} \]
        14. metadata-evalN/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \mathsf{fma}\left(\log x, x + \color{blue}{\frac{-1}{2}}, \mathsf{neg}\left(x\right)\right)\right) + \frac{91893853320467}{100000000000000} \]
        15. +-lowering-+.f64N/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \mathsf{fma}\left(\log x, \color{blue}{x + \frac{-1}{2}}, \mathsf{neg}\left(x\right)\right)\right) + \frac{91893853320467}{100000000000000} \]
        16. neg-sub0N/A

          \[\leadsto \left(\frac{\frac{83333333333333}{1000000000000000}}{x} + \mathsf{fma}\left(\log x, x + \frac{-1}{2}, \color{blue}{0 - x}\right)\right) + \frac{91893853320467}{100000000000000} \]
        17. --lowering--.f6489.2

          \[\leadsto \left(\frac{0.083333333333333}{x} + \mathsf{fma}\left(\log x, x + -0.5, \color{blue}{0 - x}\right)\right) + 0.91893853320467 \]
      5. Applied egg-rr89.2%

        \[\leadsto \color{blue}{\left(\frac{0.083333333333333}{x} + \mathsf{fma}\left(\log x, x + -0.5, 0 - x\right)\right) + 0.91893853320467} \]

      if 5e307 < (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x))

      1. Initial program 89.1%

        \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. div-invN/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
        2. flip-+N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
        3. associate-*l/N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
        4. /-lowering-/.f64N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
      4. Applied egg-rr18.6%

        \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
      5. Taylor expanded in x around 0

        \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
      6. Step-by-step derivation
        1. /-lowering-/.f64N/A

          \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
      7. Simplified17.0%

        \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
      8. Taylor expanded in z around 0

        \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \frac{z \cdot \left(\frac{192901234567904320987654321}{2083333333333325000000000000000} + \frac{-6944444444444388888888888889}{1000000000000000000000000000000} \cdot \left(\frac{7716049382716172839506172840000000000000}{578703703703696759259259259287037037037037} + \frac{1000000000000000000000000000000}{6944444444444388888888888889} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)\right)\right)}{x} - \frac{13888888888889}{5000000000000000} \cdot \frac{1}{x}\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}} \]
      9. Simplified94.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{9.259259259259444 \cdot 10^{-5} + \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{0 - x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)} \]
    5. Recombined 3 regimes into one program.
    6. Final simplification90.4%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x} \leq -5 \cdot 10^{+150}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x} \leq 5 \cdot 10^{+307}:\\ \;\;\;\;0.91893853320467 + \left(\frac{0.083333333333333}{x} + \mathsf{fma}\left(\log x, x + -0.5, 0 - x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \]
    7. Add Preprocessing

    Alternative 3: 88.0% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+150}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+307}:\\ \;\;\;\;0.91893853320467 + \left(\mathsf{fma}\left(x + -0.5, \log x, \frac{0.083333333333333}{x}\right) - x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \end{array} \]
    (FPCore (x y z)
     :precision binary64
     (let* ((t_0
             (+
              (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
              (/
               (+
                0.083333333333333
                (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778)))
               x))))
       (if (<= t_0 -5e+150)
         (* y (/ (* z z) x))
         (if (<= t_0 5e+307)
           (+
            0.91893853320467
            (- (fma (+ x -0.5) (log x) (/ 0.083333333333333 x)) x))
           (fma
            z
            (fma
             z
             (/
              (-
               (- 0.0 9.259259259259444e-5)
               (fma
                -0.0069444444444443885
                (fma y 144.00000000000117 0.11428561142857531)
                -9.259259259259444e-5))
              x)
             (/ -0.0027777777777778 x))
            (/ 0.083333333333333 x))))))
    double code(double x, double y, double z) {
    	double t_0 = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x);
    	double tmp;
    	if (t_0 <= -5e+150) {
    		tmp = y * ((z * z) / x);
    	} else if (t_0 <= 5e+307) {
    		tmp = 0.91893853320467 + (fma((x + -0.5), log(x), (0.083333333333333 / x)) - x);
    	} else {
    		tmp = fma(z, fma(z, (((0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), (-0.0027777777777778 / x)), (0.083333333333333 / x));
    	}
    	return tmp;
    }
    
    function code(x, y, z)
    	t_0 = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))) / x))
    	tmp = 0.0
    	if (t_0 <= -5e+150)
    		tmp = Float64(y * Float64(Float64(z * z) / x));
    	elseif (t_0 <= 5e+307)
    		tmp = Float64(0.91893853320467 + Float64(fma(Float64(x + -0.5), log(x), Float64(0.083333333333333 / x)) - x));
    	else
    		tmp = fma(z, fma(z, Float64(Float64(Float64(0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), Float64(-0.0027777777777778 / x)), Float64(0.083333333333333 / x));
    	end
    	return tmp
    end
    
    code[x_, y_, z_] := Block[{t$95$0 = N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+150], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+307], N[(0.91893853320467 + N[(N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], N[(z * N[(z * N[(N[(N[(0.0 - 9.259259259259444e-5), $MachinePrecision] - N[(-0.0069444444444443885 * N[(y * 144.00000000000117 + 0.11428561142857531), $MachinePrecision] + -9.259259259259444e-5), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(-0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := \left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\
    \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+150}:\\
    \;\;\;\;y \cdot \frac{z \cdot z}{x}\\
    
    \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+307}:\\
    \;\;\;\;0.91893853320467 + \left(\mathsf{fma}\left(x + -0.5, \log x, \frac{0.083333333333333}{x}\right) - x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x)) < -5.00000000000000009e150

      1. Initial program 81.4%

        \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
      2. Add Preprocessing
      3. Taylor expanded in y around inf

        \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
      4. Step-by-step derivation
        1. associate-/l*N/A

          \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
        3. /-lowering-/.f64N/A

          \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
        4. unpow2N/A

          \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
        5. *-lowering-*.f6488.6

          \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
      5. Simplified88.6%

        \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

      if -5.00000000000000009e150 < (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x)) < 5e307

      1. Initial program 99.5%

        \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \color{blue}{\frac{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}}{x} + \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right)} \]
        2. div-invN/A

          \[\leadsto \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} + \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        3. accelerator-lowering-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}, \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right)} \]
        4. *-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{z \cdot \left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right)} + \frac{83333333333333}{1000000000000000}, \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        5. accelerator-lowering-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, \left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}, \frac{83333333333333}{1000000000000000}\right)}, \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        7. accelerator-lowering-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        8. +-lowering-+.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(\color{blue}{y + \frac{7936500793651}{10000000000000000}}, z, \mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        9. metadata-evalN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \color{blue}{\frac{-13888888888889}{5000000000000000}}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        10. /-lowering-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \color{blue}{\frac{1}{x}}, \left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) \]
        11. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \color{blue}{\left(\left(x - \frac{1}{2}\right) \cdot \log x + \left(\mathsf{neg}\left(x\right)\right)\right)} + \frac{91893853320467}{100000000000000}\right) \]
        12. associate-+l+N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \color{blue}{\left(x - \frac{1}{2}\right) \cdot \log x + \left(\left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}\right)}\right) \]
        13. accelerator-lowering-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \color{blue}{\mathsf{fma}\left(x - \frac{1}{2}, \log x, \left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}\right)}\right) \]
        14. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \mathsf{fma}\left(\color{blue}{x + \left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}, \log x, \left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}\right)\right) \]
        15. +-lowering-+.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \mathsf{fma}\left(\color{blue}{x + \left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}, \log x, \left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}\right)\right) \]
        16. metadata-evalN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \mathsf{fma}\left(x + \color{blue}{\frac{-1}{2}}, \log x, \left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}\right)\right) \]
        17. log-lowering-log.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \mathsf{fma}\left(x + \frac{-1}{2}, \color{blue}{\log x}, \left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}\right)\right) \]
        18. +-lowering-+.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \mathsf{fma}\left(x + \frac{-1}{2}, \log x, \color{blue}{\left(\mathsf{neg}\left(x\right)\right) + \frac{91893853320467}{100000000000000}}\right)\right) \]
        19. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + \frac{7936500793651}{10000000000000000}, z, \frac{-13888888888889}{5000000000000000}\right), \frac{83333333333333}{1000000000000000}\right), \frac{1}{x}, \mathsf{fma}\left(x + \frac{-1}{2}, \log x, \color{blue}{\left(0 - x\right)} + \frac{91893853320467}{100000000000000}\right)\right) \]
        20. --lowering--.f6499.5

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right), \frac{1}{x}, \mathsf{fma}\left(x + -0.5, \log x, \color{blue}{\left(0 - x\right)} + 0.91893853320467\right)\right) \]
      4. Applied egg-rr99.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right), \frac{1}{x}, \mathsf{fma}\left(x + -0.5, \log x, \left(0 - x\right) + 0.91893853320467\right)\right)} \]
      5. Taylor expanded in z around 0

        \[\leadsto \color{blue}{\left(\frac{91893853320467}{100000000000000} + \left(\frac{83333333333333}{1000000000000000} \cdot \frac{1}{x} + \log x \cdot \left(x - \frac{1}{2}\right)\right)\right) - x} \]
      6. Step-by-step derivation
        1. associate--l+N/A

          \[\leadsto \color{blue}{\frac{91893853320467}{100000000000000} + \left(\left(\frac{83333333333333}{1000000000000000} \cdot \frac{1}{x} + \log x \cdot \left(x - \frac{1}{2}\right)\right) - x\right)} \]
        2. +-lowering-+.f64N/A

          \[\leadsto \color{blue}{\frac{91893853320467}{100000000000000} + \left(\left(\frac{83333333333333}{1000000000000000} \cdot \frac{1}{x} + \log x \cdot \left(x - \frac{1}{2}\right)\right) - x\right)} \]
        3. --lowering--.f64N/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \color{blue}{\left(\left(\frac{83333333333333}{1000000000000000} \cdot \frac{1}{x} + \log x \cdot \left(x - \frac{1}{2}\right)\right) - x\right)} \]
        4. +-commutativeN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\color{blue}{\left(\log x \cdot \left(x - \frac{1}{2}\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right)} - x\right) \]
        5. *-commutativeN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\left(\color{blue}{\left(x - \frac{1}{2}\right) \cdot \log x} + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        6. remove-double-negN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\left(\left(x - \frac{1}{2}\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\log x\right)\right)\right)\right)} + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        7. log-recN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\left(\left(x - \frac{1}{2}\right) \cdot \left(\mathsf{neg}\left(\color{blue}{\log \left(\frac{1}{x}\right)}\right)\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        8. mul-1-negN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\left(\left(x - \frac{1}{2}\right) \cdot \color{blue}{\left(-1 \cdot \log \left(\frac{1}{x}\right)\right)} + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        9. accelerator-lowering-fma.f64N/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\color{blue}{\mathsf{fma}\left(x - \frac{1}{2}, -1 \cdot \log \left(\frac{1}{x}\right), \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right)} - x\right) \]
        10. sub-negN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(\color{blue}{x + \left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}, -1 \cdot \log \left(\frac{1}{x}\right), \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        11. metadata-evalN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \color{blue}{\frac{-1}{2}}, -1 \cdot \log \left(\frac{1}{x}\right), \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        12. +-lowering-+.f64N/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(\color{blue}{x + \frac{-1}{2}}, -1 \cdot \log \left(\frac{1}{x}\right), \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        13. mul-1-negN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \frac{-1}{2}, \color{blue}{\mathsf{neg}\left(\log \left(\frac{1}{x}\right)\right)}, \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        14. log-recN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \frac{-1}{2}, \mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\log x\right)\right)}\right), \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        15. remove-double-negN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \frac{-1}{2}, \color{blue}{\log x}, \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        16. log-lowering-log.f64N/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \frac{-1}{2}, \color{blue}{\log x}, \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}\right) - x\right) \]
        17. associate-*r/N/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \frac{-1}{2}, \log x, \color{blue}{\frac{\frac{83333333333333}{1000000000000000} \cdot 1}{x}}\right) - x\right) \]
        18. metadata-evalN/A

          \[\leadsto \frac{91893853320467}{100000000000000} + \left(\mathsf{fma}\left(x + \frac{-1}{2}, \log x, \frac{\color{blue}{\frac{83333333333333}{1000000000000000}}}{x}\right) - x\right) \]
        19. /-lowering-/.f6489.1

          \[\leadsto 0.91893853320467 + \left(\mathsf{fma}\left(x + -0.5, \log x, \color{blue}{\frac{0.083333333333333}{x}}\right) - x\right) \]
      7. Simplified89.1%

        \[\leadsto \color{blue}{0.91893853320467 + \left(\mathsf{fma}\left(x + -0.5, \log x, \frac{0.083333333333333}{x}\right) - x\right)} \]

      if 5e307 < (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x))

      1. Initial program 89.1%

        \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. div-invN/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
        2. flip-+N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
        3. associate-*l/N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
        4. /-lowering-/.f64N/A

          \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
      4. Applied egg-rr18.6%

        \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
      5. Taylor expanded in x around 0

        \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
      6. Step-by-step derivation
        1. /-lowering-/.f64N/A

          \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
      7. Simplified17.0%

        \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
      8. Taylor expanded in z around 0

        \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \frac{z \cdot \left(\frac{192901234567904320987654321}{2083333333333325000000000000000} + \frac{-6944444444444388888888888889}{1000000000000000000000000000000} \cdot \left(\frac{7716049382716172839506172840000000000000}{578703703703696759259259259287037037037037} + \frac{1000000000000000000000000000000}{6944444444444388888888888889} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)\right)\right)}{x} - \frac{13888888888889}{5000000000000000} \cdot \frac{1}{x}\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}} \]
      9. Simplified94.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{9.259259259259444 \cdot 10^{-5} + \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{0 - x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification90.3%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x} \leq -5 \cdot 10^{+150}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x} \leq 5 \cdot 10^{+307}:\\ \;\;\;\;0.91893853320467 + \left(\mathsf{fma}\left(x + -0.5, \log x, \frac{0.083333333333333}{x}\right) - x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 86.8% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+150}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+307}:\\ \;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 + \left(x \cdot \log x - x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \end{array} \]
    (FPCore (x y z)
     :precision binary64
     (let* ((t_0
             (+
              (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
              (/
               (+
                0.083333333333333
                (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778)))
               x))))
       (if (<= t_0 -5e+150)
         (* y (/ (* z z) x))
         (if (<= t_0 5e+307)
           (+ (/ 0.083333333333333 x) (+ 0.91893853320467 (- (* x (log x)) x)))
           (fma
            z
            (fma
             z
             (/
              (-
               (- 0.0 9.259259259259444e-5)
               (fma
                -0.0069444444444443885
                (fma y 144.00000000000117 0.11428561142857531)
                -9.259259259259444e-5))
              x)
             (/ -0.0027777777777778 x))
            (/ 0.083333333333333 x))))))
    double code(double x, double y, double z) {
    	double t_0 = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x);
    	double tmp;
    	if (t_0 <= -5e+150) {
    		tmp = y * ((z * z) / x);
    	} else if (t_0 <= 5e+307) {
    		tmp = (0.083333333333333 / x) + (0.91893853320467 + ((x * log(x)) - x));
    	} else {
    		tmp = fma(z, fma(z, (((0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), (-0.0027777777777778 / x)), (0.083333333333333 / x));
    	}
    	return tmp;
    }
    
    function code(x, y, z)
    	t_0 = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))) / x))
    	tmp = 0.0
    	if (t_0 <= -5e+150)
    		tmp = Float64(y * Float64(Float64(z * z) / x));
    	elseif (t_0 <= 5e+307)
    		tmp = Float64(Float64(0.083333333333333 / x) + Float64(0.91893853320467 + Float64(Float64(x * log(x)) - x)));
    	else
    		tmp = fma(z, fma(z, Float64(Float64(Float64(0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), Float64(-0.0027777777777778 / x)), Float64(0.083333333333333 / x));
    	end
    	return tmp
    end
    
    code[x_, y_, z_] := Block[{t$95$0 = N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+150], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+307], N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(0.91893853320467 + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(z * N[(N[(N[(0.0 - 9.259259259259444e-5), $MachinePrecision] - N[(-0.0069444444444443885 * N[(y * 144.00000000000117 + 0.11428561142857531), $MachinePrecision] + -9.259259259259444e-5), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(-0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := \left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\
    \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+150}:\\
    \;\;\;\;y \cdot \frac{z \cdot z}{x}\\
    
    \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+307}:\\
    \;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 + \left(x \cdot \log x - x\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x)) < -5.00000000000000009e150

      1. Initial program 81.4%

        \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
      2. Add Preprocessing
      3. Taylor expanded in y around inf

        \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
      4. Step-by-step derivation
        1. associate-/l*N/A

          \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
        3. /-lowering-/.f64N/A

          \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
        4. unpow2N/A

          \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
        5. *-lowering-*.f6488.6

          \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
      5. Simplified88.6%

        \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

      if -5.00000000000000009e150 < (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x)) < 5e307

      1. Initial program 99.5%

        \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
      2. Add Preprocessing
      3. Taylor expanded in z around 0

        \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\frac{83333333333333}{1000000000000000}}}{x} \]
      4. Step-by-step derivation
        1. Simplified89.1%

          \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\color{blue}{0.083333333333333}}{x} \]
        2. Taylor expanded in x around inf

          \[\leadsto \left(\left(\color{blue}{x} \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\frac{83333333333333}{1000000000000000}}{x} \]
        3. Step-by-step derivation
          1. Simplified86.8%

            \[\leadsto \left(\left(\color{blue}{x} \cdot \log x - x\right) + 0.91893853320467\right) + \frac{0.083333333333333}{x} \]

          if 5e307 < (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 x #s(literal 1/2 binary64)) (log.f64 x)) x) #s(literal 91893853320467/100000000000000 binary64)) (/.f64 (+.f64 (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) #s(literal 83333333333333/1000000000000000 binary64)) x))

          1. Initial program 89.1%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr18.6%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified17.0%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \frac{z \cdot \left(\frac{192901234567904320987654321}{2083333333333325000000000000000} + \frac{-6944444444444388888888888889}{1000000000000000000000000000000} \cdot \left(\frac{7716049382716172839506172840000000000000}{578703703703696759259259259287037037037037} + \frac{1000000000000000000000000000000}{6944444444444388888888888889} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)\right)\right)}{x} - \frac{13888888888889}{5000000000000000} \cdot \frac{1}{x}\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}} \]
          9. Simplified94.8%

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{9.259259259259444 \cdot 10^{-5} + \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{0 - x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)} \]
        4. Recombined 3 regimes into one program.
        5. Final simplification88.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x} \leq -5 \cdot 10^{+150}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x} \leq 5 \cdot 10^{+307}:\\ \;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 + \left(x \cdot \log x - x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \]
        6. Add Preprocessing

        Alternative 5: 98.8% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := 0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\\ \mathbf{if}\;x \leq 10^{+117}:\\ \;\;\;\;t\_0 + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;t\_0 + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (let* ((t_0 (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))))
           (if (<= x 1e+117)
             (+
              t_0
              (/
               (+
                0.083333333333333
                (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778)))
               x))
             (+ t_0 (* z (* z (/ (+ 0.0007936500793651 y) x)))))))
        double code(double x, double y, double z) {
        	double t_0 = 0.91893853320467 + ((log(x) * (x - 0.5)) - x);
        	double tmp;
        	if (x <= 1e+117) {
        		tmp = t_0 + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x);
        	} else {
        		tmp = t_0 + (z * (z * ((0.0007936500793651 + y) / x)));
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8) :: t_0
            real(8) :: tmp
            t_0 = 0.91893853320467d0 + ((log(x) * (x - 0.5d0)) - x)
            if (x <= 1d+117) then
                tmp = t_0 + ((0.083333333333333d0 + (z * ((z * (0.0007936500793651d0 + y)) - 0.0027777777777778d0))) / x)
            else
                tmp = t_0 + (z * (z * ((0.0007936500793651d0 + y) / x)))
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z) {
        	double t_0 = 0.91893853320467 + ((Math.log(x) * (x - 0.5)) - x);
        	double tmp;
        	if (x <= 1e+117) {
        		tmp = t_0 + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x);
        	} else {
        		tmp = t_0 + (z * (z * ((0.0007936500793651 + y) / x)));
        	}
        	return tmp;
        }
        
        def code(x, y, z):
        	t_0 = 0.91893853320467 + ((math.log(x) * (x - 0.5)) - x)
        	tmp = 0
        	if x <= 1e+117:
        		tmp = t_0 + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x)
        	else:
        		tmp = t_0 + (z * (z * ((0.0007936500793651 + y) / x)))
        	return tmp
        
        function code(x, y, z)
        	t_0 = Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x))
        	tmp = 0.0
        	if (x <= 1e+117)
        		tmp = Float64(t_0 + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))) / x));
        	else
        		tmp = Float64(t_0 + Float64(z * Float64(z * Float64(Float64(0.0007936500793651 + y) / x))));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z)
        	t_0 = 0.91893853320467 + ((log(x) * (x - 0.5)) - x);
        	tmp = 0.0;
        	if (x <= 1e+117)
        		tmp = t_0 + ((0.083333333333333 + (z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778))) / x);
        	else
        		tmp = t_0 + (z * (z * ((0.0007936500793651 + y) / x)));
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_] := Block[{t$95$0 = N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 1e+117], N[(t$95$0 + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(z * N[(z * N[(N[(0.0007936500793651 + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := 0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\\
        \mathbf{if}\;x \leq 10^{+117}:\\
        \;\;\;\;t\_0 + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_0 + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 1.00000000000000005e117

          1. Initial program 99.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing

          if 1.00000000000000005e117 < x

          1. Initial program 85.2%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in z around inf

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{{z}^{2} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{{z}^{2} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
            2. unpow2N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(z \cdot z\right)} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x} \]
            3. associate-*l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
            4. associate-*r/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            5. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            6. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            7. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \frac{\color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}}{x} \]
            8. +-lowering-+.f6495.6

              \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \frac{z \cdot \color{blue}{\left(0.0007936500793651 + y\right)}}{x} \]
          5. Simplified95.6%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x}} \]
          6. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
            2. *-commutativeN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(\frac{\frac{7936500793651}{10000000000000000} + y}{x} \cdot z\right)} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(\frac{\frac{7936500793651}{10000000000000000} + y}{x} \cdot z\right)} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \left(\color{blue}{\frac{\frac{7936500793651}{10000000000000000} + y}{x}} \cdot z\right) \]
            5. +-lowering-+.f6499.5

              \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \left(\frac{\color{blue}{0.0007936500793651 + y}}{x} \cdot z\right) \]
          7. Applied egg-rr99.5%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \color{blue}{\left(\frac{0.0007936500793651 + y}{x} \cdot z\right)} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification99.6%

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 10^{+117}:\\ \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 6: 98.7% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 0.034:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (<= x 0.034)
           (/
            (fma
             z
             (fma z (+ 0.0007936500793651 y) -0.0027777777777778)
             0.083333333333333)
            x)
           (+
            (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
            (* z (* z (/ (+ 0.0007936500793651 y) x))))))
        double code(double x, double y, double z) {
        	double tmp;
        	if (x <= 0.034) {
        		tmp = fma(z, fma(z, (0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x;
        	} else {
        		tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + (z * (z * ((0.0007936500793651 + y) / x)));
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	tmp = 0.0
        	if (x <= 0.034)
        		tmp = Float64(fma(z, fma(z, Float64(0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x);
        	else
        		tmp = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(z * Float64(z * Float64(Float64(0.0007936500793651 + y) / x))));
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := If[LessEqual[x, 0.034], N[(N[(z * N[(z * N[(0.0007936500793651 + y), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(z * N[(N[(0.0007936500793651 + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq 0.034:\\
        \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 0.034000000000000002

          1. Initial program 99.8%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
          4. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
            2. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) + \frac{83333333333333}{1000000000000000}}}{x} \]
            3. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}, \frac{83333333333333}{1000000000000000}\right)}}{x} \]
            4. sub-negN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            5. metadata-evalN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \color{blue}{\frac{-13888888888889}{5000000000000000}}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            6. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000} + y, \frac{-13888888888889}{5000000000000000}\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            7. +-lowering-+.f6498.1

              \[\leadsto \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{0.0007936500793651 + y}, -0.0027777777777778\right), 0.083333333333333\right)}{x} \]
          5. Simplified98.1%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}} \]

          if 0.034000000000000002 < x

          1. Initial program 90.0%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in z around inf

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{{z}^{2} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{{z}^{2} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
            2. unpow2N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(z \cdot z\right)} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x} \]
            3. associate-*l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
            4. associate-*r/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            5. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            6. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            7. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \frac{\color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}}{x} \]
            8. +-lowering-+.f6496.2

              \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \frac{z \cdot \color{blue}{\left(0.0007936500793651 + y\right)}}{x} \]
          5. Simplified96.2%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x}} \]
          6. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
            2. *-commutativeN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(\frac{\frac{7936500793651}{10000000000000000} + y}{x} \cdot z\right)} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\left(\frac{\frac{7936500793651}{10000000000000000} + y}{x} \cdot z\right)} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \left(\color{blue}{\frac{\frac{7936500793651}{10000000000000000} + y}{x}} \cdot z\right) \]
            5. +-lowering-+.f6498.8

              \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \left(\frac{\color{blue}{0.0007936500793651 + y}}{x} \cdot z\right) \]
          7. Applied egg-rr98.8%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \color{blue}{\left(\frac{0.0007936500793651 + y}{x} \cdot z\right)} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification98.5%

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 0.034:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + z \cdot \left(z \cdot \frac{0.0007936500793651 + y}{x}\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 7: 97.2% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 1:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(\log x + -1\right) + z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x}\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (<= x 1.0)
           (/
            (fma
             z
             (fma z (+ 0.0007936500793651 y) -0.0027777777777778)
             0.083333333333333)
            x)
           (+ (* x (+ (log x) -1.0)) (* z (/ (* z (+ 0.0007936500793651 y)) x)))))
        double code(double x, double y, double z) {
        	double tmp;
        	if (x <= 1.0) {
        		tmp = fma(z, fma(z, (0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x;
        	} else {
        		tmp = (x * (log(x) + -1.0)) + (z * ((z * (0.0007936500793651 + y)) / x));
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	tmp = 0.0
        	if (x <= 1.0)
        		tmp = Float64(fma(z, fma(z, Float64(0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x);
        	else
        		tmp = Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) / x)));
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := If[LessEqual[x, 1.0], N[(N[(z * N[(z * N[(0.0007936500793651 + y), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq 1:\\
        \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;x \cdot \left(\log x + -1\right) + z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 1

          1. Initial program 99.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
          4. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
            2. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) + \frac{83333333333333}{1000000000000000}}}{x} \]
            3. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}, \frac{83333333333333}{1000000000000000}\right)}}{x} \]
            4. sub-negN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            5. metadata-evalN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \color{blue}{\frac{-13888888888889}{5000000000000000}}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            6. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000} + y, \frac{-13888888888889}{5000000000000000}\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            7. +-lowering-+.f6497.4

              \[\leadsto \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{0.0007936500793651 + y}, -0.0027777777777778\right), 0.083333333333333\right)}{x} \]
          5. Simplified97.4%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}} \]

          if 1 < x

          1. Initial program 89.9%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in z around inf

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{{z}^{2} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{{z}^{2} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
            2. unpow2N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(z \cdot z\right)} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x} \]
            3. associate-*l*N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \left(z \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}\right)} \]
            4. associate-*r/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            5. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            6. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \color{blue}{\frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
            7. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + z \cdot \frac{\color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}}{x} \]
            8. +-lowering-+.f6496.7

              \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \frac{z \cdot \color{blue}{\left(0.0007936500793651 + y\right)}}{x} \]
          5. Simplified96.7%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x}} \]
          6. Taylor expanded in x around inf

            \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right)} + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
          7. Step-by-step derivation
            1. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right)} + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            2. sub-negN/A

              \[\leadsto x \cdot \color{blue}{\left(-1 \cdot \log \left(\frac{1}{x}\right) + \left(\mathsf{neg}\left(1\right)\right)\right)} + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            3. metadata-evalN/A

              \[\leadsto x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) + \color{blue}{-1}\right) + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            4. +-lowering-+.f64N/A

              \[\leadsto x \cdot \color{blue}{\left(-1 \cdot \log \left(\frac{1}{x}\right) + -1\right)} + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            5. mul-1-negN/A

              \[\leadsto x \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\log \left(\frac{1}{x}\right)\right)\right)} + -1\right) + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            6. log-recN/A

              \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\log x\right)\right)}\right)\right) + -1\right) + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            7. remove-double-negN/A

              \[\leadsto x \cdot \left(\color{blue}{\log x} + -1\right) + z \cdot \frac{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x} \]
            8. log-lowering-log.f6496.4

              \[\leadsto x \cdot \left(\color{blue}{\log x} + -1\right) + z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x} \]
          8. Simplified96.4%

            \[\leadsto \color{blue}{x \cdot \left(\log x + -1\right)} + z \cdot \frac{z \cdot \left(0.0007936500793651 + y\right)}{x} \]
        3. Recombined 2 regimes into one program.
        4. Add Preprocessing

        Alternative 8: 84.6% accurate, 1.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 1.06 \cdot 10^{+22}:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(\log x + -1\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (<= x 1.06e+22)
           (/
            (fma
             z
             (fma z (+ 0.0007936500793651 y) -0.0027777777777778)
             0.083333333333333)
            x)
           (* x (+ (log x) -1.0))))
        double code(double x, double y, double z) {
        	double tmp;
        	if (x <= 1.06e+22) {
        		tmp = fma(z, fma(z, (0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x;
        	} else {
        		tmp = x * (log(x) + -1.0);
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	tmp = 0.0
        	if (x <= 1.06e+22)
        		tmp = Float64(fma(z, fma(z, Float64(0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x);
        	else
        		tmp = Float64(x * Float64(log(x) + -1.0));
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := If[LessEqual[x, 1.06e+22], N[(N[(z * N[(z * N[(0.0007936500793651 + y), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq 1.06 \cdot 10^{+22}:\\
        \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;x \cdot \left(\log x + -1\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 1.06e22

          1. Initial program 99.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
          4. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
            2. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) + \frac{83333333333333}{1000000000000000}}}{x} \]
            3. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}, \frac{83333333333333}{1000000000000000}\right)}}{x} \]
            4. sub-negN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            5. metadata-evalN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \color{blue}{\frac{-13888888888889}{5000000000000000}}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            6. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000} + y, \frac{-13888888888889}{5000000000000000}\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            7. +-lowering-+.f6496.1

              \[\leadsto \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{0.0007936500793651 + y}, -0.0027777777777778\right), 0.083333333333333\right)}{x} \]
          5. Simplified96.1%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}} \]

          if 1.06e22 < x

          1. Initial program 89.4%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in x around inf

            \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right)} \]
          4. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto x \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\log \left(\frac{1}{x}\right)\right)\right)} - 1\right) \]
            2. log-recN/A

              \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(\log x\right)\right)}\right)\right) - 1\right) \]
            3. remove-double-negN/A

              \[\leadsto x \cdot \left(\color{blue}{\log x} - 1\right) \]
            4. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{x \cdot \left(\log x - 1\right)} \]
            5. sub-negN/A

              \[\leadsto x \cdot \color{blue}{\left(\log x + \left(\mathsf{neg}\left(1\right)\right)\right)} \]
            6. metadata-evalN/A

              \[\leadsto x \cdot \left(\log x + \color{blue}{-1}\right) \]
            7. +-lowering-+.f64N/A

              \[\leadsto x \cdot \color{blue}{\left(\log x + -1\right)} \]
            8. log-lowering-log.f6477.9

              \[\leadsto x \cdot \left(\color{blue}{\log x} + -1\right) \]
          5. Simplified77.9%

            \[\leadsto \color{blue}{x \cdot \left(\log x + -1\right)} \]
        3. Recombined 2 regimes into one program.
        4. Add Preprocessing

        Alternative 9: 64.8% accurate, 2.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 1.95 \cdot 10^{+118}:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (<= x 1.95e+118)
           (/
            (fma
             z
             (fma z (+ 0.0007936500793651 y) -0.0027777777777778)
             0.083333333333333)
            x)
           (fma
            z
            (fma
             z
             (/
              (-
               (- 0.0 9.259259259259444e-5)
               (fma
                -0.0069444444444443885
                (fma y 144.00000000000117 0.11428561142857531)
                -9.259259259259444e-5))
              x)
             (/ -0.0027777777777778 x))
            (/ 0.083333333333333 x))))
        double code(double x, double y, double z) {
        	double tmp;
        	if (x <= 1.95e+118) {
        		tmp = fma(z, fma(z, (0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x;
        	} else {
        		tmp = fma(z, fma(z, (((0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), (-0.0027777777777778 / x)), (0.083333333333333 / x));
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	tmp = 0.0
        	if (x <= 1.95e+118)
        		tmp = Float64(fma(z, fma(z, Float64(0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x);
        	else
        		tmp = fma(z, fma(z, Float64(Float64(Float64(0.0 - 9.259259259259444e-5) - fma(-0.0069444444444443885, fma(y, 144.00000000000117, 0.11428561142857531), -9.259259259259444e-5)) / x), Float64(-0.0027777777777778 / x)), Float64(0.083333333333333 / x));
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := If[LessEqual[x, 1.95e+118], N[(N[(z * N[(z * N[(0.0007936500793651 + y), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(z * N[(z * N[(N[(N[(0.0 - 9.259259259259444e-5), $MachinePrecision] - N[(-0.0069444444444443885 * N[(y * 144.00000000000117 + 0.11428561142857531), $MachinePrecision] + -9.259259259259444e-5), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(-0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq 1.95 \cdot 10^{+118}:\\
        \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 1.95e118

          1. Initial program 99.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
          4. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
            2. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) + \frac{83333333333333}{1000000000000000}}}{x} \]
            3. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}, \frac{83333333333333}{1000000000000000}\right)}}{x} \]
            4. sub-negN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            5. metadata-evalN/A

              \[\leadsto \frac{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \color{blue}{\frac{-13888888888889}{5000000000000000}}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            6. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000} + y, \frac{-13888888888889}{5000000000000000}\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
            7. +-lowering-+.f6482.2

              \[\leadsto \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{0.0007936500793651 + y}, -0.0027777777777778\right), 0.083333333333333\right)}{x} \]
          5. Simplified82.2%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}} \]

          if 1.95e118 < x

          1. Initial program 85.0%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr62.5%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified2.0%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \frac{z \cdot \left(\frac{192901234567904320987654321}{2083333333333325000000000000000} + \frac{-6944444444444388888888888889}{1000000000000000000000000000000} \cdot \left(\frac{7716049382716172839506172840000000000000}{578703703703696759259259259287037037037037} + \frac{1000000000000000000000000000000}{6944444444444388888888888889} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)\right)\right)}{x} - \frac{13888888888889}{5000000000000000} \cdot \frac{1}{x}\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}} \]
          9. Simplified19.5%

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{9.259259259259444 \cdot 10^{-5} + \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{0 - x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification60.1%

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 1.95 \cdot 10^{+118}:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{\left(0 - 9.259259259259444 \cdot 10^{-5}\right) - \mathsf{fma}\left(-0.0069444444444443885, \mathsf{fma}\left(y, 144.00000000000117, 0.11428561142857531\right), -9.259259259259444 \cdot 10^{-5}\right)}{x}, \frac{-0.0027777777777778}{x}\right), \frac{0.083333333333333}{x}\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 10: 62.2% accurate, 2.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;t\_0 \leq 0.0005:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(0.0007936500793651 + y\right) \cdot \left(z \cdot z\right)}{x}\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (let* ((t_0 (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778))))
           (if (<= t_0 -5e+54)
             (* y (/ (* z z) x))
             (if (<= t_0 0.0005)
               (/ (fma -0.0027777777777778 z 0.083333333333333) x)
               (/ (* (+ 0.0007936500793651 y) (* z z)) x)))))
        double code(double x, double y, double z) {
        	double t_0 = z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778);
        	double tmp;
        	if (t_0 <= -5e+54) {
        		tmp = y * ((z * z) / x);
        	} else if (t_0 <= 0.0005) {
        		tmp = fma(-0.0027777777777778, z, 0.083333333333333) / x;
        	} else {
        		tmp = ((0.0007936500793651 + y) * (z * z)) / x;
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	t_0 = Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))
        	tmp = 0.0
        	if (t_0 <= -5e+54)
        		tmp = Float64(y * Float64(Float64(z * z) / x));
        	elseif (t_0 <= 0.0005)
        		tmp = Float64(fma(-0.0027777777777778, z, 0.083333333333333) / x);
        	else
        		tmp = Float64(Float64(Float64(0.0007936500793651 + y) * Float64(z * z)) / x);
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+54], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 0.0005], N[(N[(-0.0027777777777778 * z + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(0.0007936500793651 + y), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\
        \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\
        \;\;\;\;y \cdot \frac{z \cdot z}{x}\\
        
        \mathbf{elif}\;t\_0 \leq 0.0005:\\
        \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{\left(0.0007936500793651 + y\right) \cdot \left(z \cdot z\right)}{x}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < -5.00000000000000005e54

          1. Initial program 84.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in y around inf

            \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            3. /-lowering-/.f64N/A

              \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
            4. unpow2N/A

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
            5. *-lowering-*.f6472.7

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
          5. Simplified72.7%

            \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

          if -5.00000000000000005e54 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < 5.0000000000000001e-4

          1. Initial program 99.5%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr99.5%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified41.0%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \frac{\color{blue}{\frac{83333333333333}{1000000000000000} + \frac{-13888888888889}{5000000000000000} \cdot z}}{x} \]
          9. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{\frac{-13888888888889}{5000000000000000} \cdot z + \frac{83333333333333}{1000000000000000}}}{x} \]
            2. accelerator-lowering-fma.f6440.5

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
          10. Simplified40.5%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]

          if 5.0000000000000001e-4 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z)

          1. Initial program 92.6%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr29.4%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified27.9%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around inf

            \[\leadsto \frac{\color{blue}{{z}^{2} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}}{x} \]
          9. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \frac{\color{blue}{\left(\frac{7936500793651}{10000000000000000} + y\right) \cdot {z}^{2}}}{x} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\frac{7936500793651}{10000000000000000} + y\right) \cdot {z}^{2}}}{x} \]
            3. +-lowering-+.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\frac{7936500793651}{10000000000000000} + y\right)} \cdot {z}^{2}}{x} \]
            4. unpow2N/A

              \[\leadsto \frac{\left(\frac{7936500793651}{10000000000000000} + y\right) \cdot \color{blue}{\left(z \cdot z\right)}}{x} \]
            5. *-lowering-*.f6474.4

              \[\leadsto \frac{\left(0.0007936500793651 + y\right) \cdot \color{blue}{\left(z \cdot z\right)}}{x} \]
          10. Simplified74.4%

            \[\leadsto \frac{\color{blue}{\left(0.0007936500793651 + y\right) \cdot \left(z \cdot z\right)}}{x} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification57.8%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq 0.0005:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(0.0007936500793651 + y\right) \cdot \left(z \cdot z\right)}{x}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 11: 62.4% accurate, 2.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;t\_0 \leq 0.0005:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.0007936500793651 + y}{x} \cdot \left(z \cdot z\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (let* ((t_0 (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778))))
           (if (<= t_0 -5e+54)
             (* y (/ (* z z) x))
             (if (<= t_0 0.0005)
               (/ (fma -0.0027777777777778 z 0.083333333333333) x)
               (* (/ (+ 0.0007936500793651 y) x) (* z z))))))
        double code(double x, double y, double z) {
        	double t_0 = z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778);
        	double tmp;
        	if (t_0 <= -5e+54) {
        		tmp = y * ((z * z) / x);
        	} else if (t_0 <= 0.0005) {
        		tmp = fma(-0.0027777777777778, z, 0.083333333333333) / x;
        	} else {
        		tmp = ((0.0007936500793651 + y) / x) * (z * z);
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	t_0 = Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))
        	tmp = 0.0
        	if (t_0 <= -5e+54)
        		tmp = Float64(y * Float64(Float64(z * z) / x));
        	elseif (t_0 <= 0.0005)
        		tmp = Float64(fma(-0.0027777777777778, z, 0.083333333333333) / x);
        	else
        		tmp = Float64(Float64(Float64(0.0007936500793651 + y) / x) * Float64(z * z));
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+54], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 0.0005], N[(N[(-0.0027777777777778 * z + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(0.0007936500793651 + y), $MachinePrecision] / x), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\
        \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\
        \;\;\;\;y \cdot \frac{z \cdot z}{x}\\
        
        \mathbf{elif}\;t\_0 \leq 0.0005:\\
        \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{0.0007936500793651 + y}{x} \cdot \left(z \cdot z\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < -5.00000000000000005e54

          1. Initial program 84.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in y around inf

            \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            3. /-lowering-/.f64N/A

              \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
            4. unpow2N/A

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
            5. *-lowering-*.f6472.7

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
          5. Simplified72.7%

            \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

          if -5.00000000000000005e54 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < 5.0000000000000001e-4

          1. Initial program 99.5%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr99.5%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified41.0%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \frac{\color{blue}{\frac{83333333333333}{1000000000000000} + \frac{-13888888888889}{5000000000000000} \cdot z}}{x} \]
          9. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{\frac{-13888888888889}{5000000000000000} \cdot z + \frac{83333333333333}{1000000000000000}}}{x} \]
            2. accelerator-lowering-fma.f6440.5

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
          10. Simplified40.5%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]

          if 5.0000000000000001e-4 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z)

          1. Initial program 92.6%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr29.4%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified27.9%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around inf

            \[\leadsto \color{blue}{\frac{{z}^{2} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)}{x}} \]
          9. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{{z}^{2} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{{z}^{2} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
            3. unpow2N/A

              \[\leadsto \color{blue}{\left(z \cdot z\right)} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x} \]
            4. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\left(z \cdot z\right)} \cdot \frac{\frac{7936500793651}{10000000000000000} + y}{x} \]
            5. /-lowering-/.f64N/A

              \[\leadsto \left(z \cdot z\right) \cdot \color{blue}{\frac{\frac{7936500793651}{10000000000000000} + y}{x}} \]
            6. +-lowering-+.f6474.4

              \[\leadsto \left(z \cdot z\right) \cdot \frac{\color{blue}{0.0007936500793651 + y}}{x} \]
          10. Simplified74.4%

            \[\leadsto \color{blue}{\left(z \cdot z\right) \cdot \frac{0.0007936500793651 + y}{x}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification57.8%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq 0.0005:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.0007936500793651 + y}{x} \cdot \left(z \cdot z\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 12: 57.9% accurate, 2.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;t\_0 \leq 0.0005:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.0007936500793651 \cdot \left(z \cdot z\right)}{x}\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (let* ((t_0 (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778))))
           (if (<= t_0 -5e+54)
             (* y (/ (* z z) x))
             (if (<= t_0 0.0005)
               (/ (fma -0.0027777777777778 z 0.083333333333333) x)
               (/ (* 0.0007936500793651 (* z z)) x)))))
        double code(double x, double y, double z) {
        	double t_0 = z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778);
        	double tmp;
        	if (t_0 <= -5e+54) {
        		tmp = y * ((z * z) / x);
        	} else if (t_0 <= 0.0005) {
        		tmp = fma(-0.0027777777777778, z, 0.083333333333333) / x;
        	} else {
        		tmp = (0.0007936500793651 * (z * z)) / x;
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	t_0 = Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))
        	tmp = 0.0
        	if (t_0 <= -5e+54)
        		tmp = Float64(y * Float64(Float64(z * z) / x));
        	elseif (t_0 <= 0.0005)
        		tmp = Float64(fma(-0.0027777777777778, z, 0.083333333333333) / x);
        	else
        		tmp = Float64(Float64(0.0007936500793651 * Float64(z * z)) / x);
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+54], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 0.0005], N[(N[(-0.0027777777777778 * z + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], N[(N[(0.0007936500793651 * N[(z * z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\
        \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\
        \;\;\;\;y \cdot \frac{z \cdot z}{x}\\
        
        \mathbf{elif}\;t\_0 \leq 0.0005:\\
        \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{0.0007936500793651 \cdot \left(z \cdot z\right)}{x}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < -5.00000000000000005e54

          1. Initial program 84.7%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in y around inf

            \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            3. /-lowering-/.f64N/A

              \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
            4. unpow2N/A

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
            5. *-lowering-*.f6472.7

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
          5. Simplified72.7%

            \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

          if -5.00000000000000005e54 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < 5.0000000000000001e-4

          1. Initial program 99.5%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr99.5%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified41.0%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \frac{\color{blue}{\frac{83333333333333}{1000000000000000} + \frac{-13888888888889}{5000000000000000} \cdot z}}{x} \]
          9. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{\frac{-13888888888889}{5000000000000000} \cdot z + \frac{83333333333333}{1000000000000000}}}{x} \]
            2. accelerator-lowering-fma.f6440.5

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
          10. Simplified40.5%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]

          if 5.0000000000000001e-4 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z)

          1. Initial program 92.6%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr29.4%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in y around 0

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{{z}^{2} \cdot {\left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)}^{2} - \frac{6944444444444388888888888889}{1000000000000000000000000000000}}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{{z}^{2} \cdot {\left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)}^{2} - \frac{6944444444444388888888888889}{1000000000000000000000000000000}}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)}} \]
            2. sub-negN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{{z}^{2} \cdot {\left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)}^{2} + \left(\mathsf{neg}\left(\frac{6944444444444388888888888889}{1000000000000000000000000000000}\right)\right)}}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            3. unpow2N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\left(z \cdot z\right)} \cdot {\left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)}^{2} + \left(\mathsf{neg}\left(\frac{6944444444444388888888888889}{1000000000000000000000000000000}\right)\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            4. unpow2N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\left(z \cdot z\right) \cdot \color{blue}{\left(\left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)\right)} + \left(\mathsf{neg}\left(\frac{6944444444444388888888888889}{1000000000000000000000000000000}\right)\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            5. unswap-sqrN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)\right) \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)\right)} + \left(\mathsf{neg}\left(\frac{6944444444444388888888888889}{1000000000000000000000000000000}\right)\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            6. metadata-evalN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)\right) \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)\right) + \color{blue}{\frac{-6944444444444388888888888889}{1000000000000000000000000000000}}}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            7. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\mathsf{fma}\left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            8. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(\color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)}, z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            9. sub-negN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \color{blue}{\left(\frac{7936500793651}{10000000000000000} \cdot z + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)\right)}, z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            10. *-commutativeN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \left(\color{blue}{z \cdot \frac{7936500793651}{10000000000000000}} + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)\right), z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            11. metadata-evalN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \left(z \cdot \frac{7936500793651}{10000000000000000} + \color{blue}{\frac{-13888888888889}{5000000000000000}}\right), z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            12. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right)}, z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            13. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), \color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right)}, \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            14. sub-negN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), z \cdot \color{blue}{\left(\frac{7936500793651}{10000000000000000} \cdot z + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)\right)}, \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            15. *-commutativeN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), z \cdot \left(\color{blue}{z \cdot \frac{7936500793651}{10000000000000000}} + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            16. metadata-evalN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), z \cdot \left(z \cdot \frac{7936500793651}{10000000000000000} + \color{blue}{\frac{-13888888888889}{5000000000000000}}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            17. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), z \cdot \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right)}, \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)} \]
            18. *-lowering-*.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), z \cdot \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000}, \frac{-13888888888889}{5000000000000000}\right), \frac{-6944444444444388888888888889}{1000000000000000000000000000000}\right)}{\color{blue}{x \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} \cdot z - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}\right)}} \]
          7. Simplified35.2%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z \cdot \mathsf{fma}\left(z, 0.0007936500793651, -0.0027777777777778\right), z \cdot \mathsf{fma}\left(z, 0.0007936500793651, -0.0027777777777778\right), -0.0069444444444443885\right)}{x \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          8. Taylor expanded in z around inf

            \[\leadsto \color{blue}{\frac{7936500793651}{10000000000000000} \cdot \frac{{z}^{2}}{x}} \]
          9. Step-by-step derivation
            1. associate-*r/N/A

              \[\leadsto \color{blue}{\frac{\frac{7936500793651}{10000000000000000} \cdot {z}^{2}}{x}} \]
            2. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{7936500793651}{10000000000000000} \cdot {z}^{2}}{x}} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \frac{\color{blue}{\frac{7936500793651}{10000000000000000} \cdot {z}^{2}}}{x} \]
            4. unpow2N/A

              \[\leadsto \frac{\frac{7936500793651}{10000000000000000} \cdot \color{blue}{\left(z \cdot z\right)}}{x} \]
            5. *-lowering-*.f6464.7

              \[\leadsto \frac{0.0007936500793651 \cdot \color{blue}{\left(z \cdot z\right)}}{x} \]
          10. Simplified64.7%

            \[\leadsto \color{blue}{\frac{0.0007936500793651 \cdot \left(z \cdot z\right)}{x}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification54.4%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq 0.0005:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.0007936500793651 \cdot \left(z \cdot z\right)}{x}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 13: 52.6% accurate, 2.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\ t_1 := y \cdot \frac{z \cdot z}{x}\\ \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 10000000:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (let* ((t_0 (* z (- (* z (+ 0.0007936500793651 y)) 0.0027777777777778)))
                (t_1 (* y (/ (* z z) x))))
           (if (<= t_0 -5e+54)
             t_1
             (if (<= t_0 10000000.0)
               (/ (fma -0.0027777777777778 z 0.083333333333333) x)
               t_1))))
        double code(double x, double y, double z) {
        	double t_0 = z * ((z * (0.0007936500793651 + y)) - 0.0027777777777778);
        	double t_1 = y * ((z * z) / x);
        	double tmp;
        	if (t_0 <= -5e+54) {
        		tmp = t_1;
        	} else if (t_0 <= 10000000.0) {
        		tmp = fma(-0.0027777777777778, z, 0.083333333333333) / x;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z)
        	t_0 = Float64(z * Float64(Float64(z * Float64(0.0007936500793651 + y)) - 0.0027777777777778))
        	t_1 = Float64(y * Float64(Float64(z * z) / x))
        	tmp = 0.0
        	if (t_0 <= -5e+54)
        		tmp = t_1;
        	elseif (t_0 <= 10000000.0)
        		tmp = Float64(fma(-0.0027777777777778, z, 0.083333333333333) / x);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -5e+54], t$95$1, If[LessEqual[t$95$0, 10000000.0], N[(N[(-0.0027777777777778 * z + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right)\\
        t_1 := y \cdot \frac{z \cdot z}{x}\\
        \mathbf{if}\;t\_0 \leq -5 \cdot 10^{+54}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t\_0 \leq 10000000:\\
        \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < -5.00000000000000005e54 or 1e7 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z)

          1. Initial program 89.8%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in y around inf

            \[\leadsto \color{blue}{\frac{y \cdot {z}^{2}}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{y \cdot \frac{{z}^{2}}{x}} \]
            3. /-lowering-/.f64N/A

              \[\leadsto y \cdot \color{blue}{\frac{{z}^{2}}{x}} \]
            4. unpow2N/A

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
            5. *-lowering-*.f6454.3

              \[\leadsto y \cdot \frac{\color{blue}{z \cdot z}}{x} \]
          5. Simplified54.3%

            \[\leadsto \color{blue}{y \cdot \frac{z \cdot z}{x}} \]

          if -5.00000000000000005e54 < (*.f64 (-.f64 (*.f64 (+.f64 y #s(literal 7936500793651/10000000000000000 binary64)) z) #s(literal 13888888888889/5000000000000000 binary64)) z) < 1e7

          1. Initial program 99.5%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr99.5%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified41.1%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \frac{\color{blue}{\frac{83333333333333}{1000000000000000} + \frac{-13888888888889}{5000000000000000} \cdot z}}{x} \]
          9. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{\frac{-13888888888889}{5000000000000000} \cdot z + \frac{83333333333333}{1000000000000000}}}{x} \]
            2. accelerator-lowering-fma.f6439.9

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
          10. Simplified39.9%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification47.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq -5 \cdot 10^{+54}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \mathbf{elif}\;z \cdot \left(z \cdot \left(0.0007936500793651 + y\right) - 0.0027777777777778\right) \leq 10000000:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z \cdot z}{x}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 14: 64.3% accurate, 3.0× speedup?

        \[\begin{array}{l} \\ \mathsf{fma}\left(z, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(144.00000000000117, 0.0007936500793651 + y, 0.013333333333333707\right), 0.0069444444444443885, -9.259259259259444 \cdot 10^{-5}\right), -0.0027777777777778\right)}{x}, \frac{0.083333333333333}{x}\right) \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (fma
          z
          (/
           (fma
            z
            (fma
             (fma 144.00000000000117 (+ 0.0007936500793651 y) 0.013333333333333707)
             0.0069444444444443885
             -9.259259259259444e-5)
            -0.0027777777777778)
           x)
          (/ 0.083333333333333 x)))
        double code(double x, double y, double z) {
        	return fma(z, (fma(z, fma(fma(144.00000000000117, (0.0007936500793651 + y), 0.013333333333333707), 0.0069444444444443885, -9.259259259259444e-5), -0.0027777777777778) / x), (0.083333333333333 / x));
        }
        
        function code(x, y, z)
        	return fma(z, Float64(fma(z, fma(fma(144.00000000000117, Float64(0.0007936500793651 + y), 0.013333333333333707), 0.0069444444444443885, -9.259259259259444e-5), -0.0027777777777778) / x), Float64(0.083333333333333 / x))
        end
        
        code[x_, y_, z_] := N[(z * N[(N[(z * N[(N[(144.00000000000117 * N[(0.0007936500793651 + y), $MachinePrecision] + 0.013333333333333707), $MachinePrecision] * 0.0069444444444443885 + -9.259259259259444e-5), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] / x), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \mathsf{fma}\left(z, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(144.00000000000117, 0.0007936500793651 + y, 0.013333333333333707\right), 0.0069444444444443885, -9.259259259259444 \cdot 10^{-5}\right), -0.0027777777777778\right)}{x}, \frac{0.083333333333333}{x}\right)
        \end{array}
        
        Derivation
        1. Initial program 94.6%

          \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. div-invN/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
          2. flip-+N/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
          3. associate-*l/N/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. /-lowering-/.f64N/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
        4. Applied egg-rr62.0%

          \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
        5. Taylor expanded in x around 0

          \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
        6. Step-by-step derivation
          1. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
        7. Simplified32.9%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
        8. Step-by-step derivation
          1. +-lowering-+.f64N/A

            \[\leadsto \frac{\color{blue}{\left(z \cdot z\right) \cdot \frac{\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \frac{-13888888888889}{5000000000000000}\right) \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \frac{-13888888888889}{5000000000000000}\right)}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \frac{-13888888888889}{5000000000000000}\right) + \frac{-83333333333333}{1000000000000000}} + \frac{\frac{-6944444444444388888888888889}{1000000000000000000000000000000}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \frac{-13888888888889}{5000000000000000}\right) + \frac{-83333333333333}{1000000000000000}}}}{x} \]
        9. Applied egg-rr32.2%

          \[\leadsto \frac{\color{blue}{\frac{\left(\left(z \cdot z\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)} + \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}}}{x} \]
        10. Taylor expanded in z around 0

          \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \frac{z \cdot \left(\frac{192901234567904320987654321}{2083333333333325000000000000000} + \frac{-6944444444444388888888888889}{1000000000000000000000000000000} \cdot \left(\frac{7716049382716172839506172840000000000000}{578703703703696759259259259287037037037037} + \frac{1000000000000000000000000000000}{6944444444444388888888888889} \cdot \left(\frac{7936500793651}{10000000000000000} + y\right)\right)\right)}{x} - \frac{13888888888889}{5000000000000000} \cdot \frac{1}{x}\right) + \frac{83333333333333}{1000000000000000} \cdot \frac{1}{x}} \]
        11. Simplified58.0%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(144.00000000000117, 0.0007936500793651 + y, 0.013333333333333707\right), 0.0069444444444443885, -9.259259259259444 \cdot 10^{-5}\right), -0.0027777777777778\right)}{x}, \frac{0.083333333333333}{x}\right)} \]
        12. Add Preprocessing

        Alternative 15: 63.0% accurate, 5.5× speedup?

        \[\begin{array}{l} \\ \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (/
          (fma
           z
           (fma z (+ 0.0007936500793651 y) -0.0027777777777778)
           0.083333333333333)
          x))
        double code(double x, double y, double z) {
        	return fma(z, fma(z, (0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x;
        }
        
        function code(x, y, z)
        	return Float64(fma(z, fma(z, Float64(0.0007936500793651 + y), -0.0027777777777778), 0.083333333333333) / x)
        end
        
        code[x_, y_, z_] := N[(N[(z * N[(z * N[(0.0007936500793651 + y), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}
        \end{array}
        
        Derivation
        1. Initial program 94.6%

          \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
        4. Step-by-step derivation
          1. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000} + z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}{x}} \]
          2. +-commutativeN/A

            \[\leadsto \frac{\color{blue}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) + \frac{83333333333333}{1000000000000000}}}{x} \]
          3. accelerator-lowering-fma.f64N/A

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}, \frac{83333333333333}{1000000000000000}\right)}}{x} \]
          4. sub-negN/A

            \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \left(\mathsf{neg}\left(\frac{13888888888889}{5000000000000000}\right)\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
          5. metadata-evalN/A

            \[\leadsto \frac{\mathsf{fma}\left(z, z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) + \color{blue}{\frac{-13888888888889}{5000000000000000}}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
          6. accelerator-lowering-fma.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000} + y, \frac{-13888888888889}{5000000000000000}\right)}, \frac{83333333333333}{1000000000000000}\right)}{x} \]
          7. +-lowering-+.f6457.4

            \[\leadsto \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{0.0007936500793651 + y}, -0.0027777777777778\right), 0.083333333333333\right)}{x} \]
        5. Simplified57.4%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), 0.083333333333333\right)}{x}} \]
        6. Add Preprocessing

        Alternative 16: 62.4% accurate, 5.7× speedup?

        \[\begin{array}{l} \\ \frac{\mathsf{fma}\left(z \cdot z, 0.0007936500793651 + y, 0.083333333333333\right)}{x} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (/ (fma (* z z) (+ 0.0007936500793651 y) 0.083333333333333) x))
        double code(double x, double y, double z) {
        	return fma((z * z), (0.0007936500793651 + y), 0.083333333333333) / x;
        }
        
        function code(x, y, z)
        	return Float64(fma(Float64(z * z), Float64(0.0007936500793651 + y), 0.083333333333333) / x)
        end
        
        code[x_, y_, z_] := N[(N[(N[(z * z), $MachinePrecision] * N[(0.0007936500793651 + y), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \frac{\mathsf{fma}\left(z \cdot z, 0.0007936500793651 + y, 0.083333333333333\right)}{x}
        \end{array}
        
        Derivation
        1. Initial program 94.6%

          \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. div-invN/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
          2. flip-+N/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
          3. associate-*l/N/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. /-lowering-/.f64N/A

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
        4. Applied egg-rr62.0%

          \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
        5. Taylor expanded in x around 0

          \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
        6. Step-by-step derivation
          1. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
        7. Simplified32.9%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
        8. Taylor expanded in z around inf

          \[\leadsto \frac{\mathsf{fma}\left(z \cdot z, \color{blue}{\frac{7936500793651}{10000000000000000} + y}, \frac{\frac{-6944444444444388888888888889}{1000000000000000000000000000000}}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{7936500793651}{10000000000000000} + y, \frac{-13888888888889}{5000000000000000}\right), \frac{-83333333333333}{1000000000000000}\right)}\right)}{x} \]
        9. Step-by-step derivation
          1. +-lowering-+.f6456.8

            \[\leadsto \frac{\mathsf{fma}\left(z \cdot z, \color{blue}{0.0007936500793651 + y}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x} \]
        10. Simplified56.8%

          \[\leadsto \frac{\mathsf{fma}\left(z \cdot z, \color{blue}{0.0007936500793651 + y}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x} \]
        11. Taylor expanded in z around 0

          \[\leadsto \frac{\mathsf{fma}\left(z \cdot z, \frac{7936500793651}{10000000000000000} + y, \color{blue}{\frac{83333333333333}{1000000000000000}}\right)}{x} \]
        12. Step-by-step derivation
          1. Simplified56.4%

            \[\leadsto \frac{\mathsf{fma}\left(z \cdot z, 0.0007936500793651 + y, \color{blue}{0.083333333333333}\right)}{x} \]
          2. Add Preprocessing

          Alternative 17: 29.0% accurate, 8.2× speedup?

          \[\begin{array}{l} \\ \frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x} \end{array} \]
          (FPCore (x y z)
           :precision binary64
           (/ (fma -0.0027777777777778 z 0.083333333333333) x))
          double code(double x, double y, double z) {
          	return fma(-0.0027777777777778, z, 0.083333333333333) / x;
          }
          
          function code(x, y, z)
          	return Float64(fma(-0.0027777777777778, z, 0.083333333333333) / x)
          end
          
          code[x_, y_, z_] := N[(N[(-0.0027777777777778 * z + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \frac{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}{x}
          \end{array}
          
          Derivation
          1. Initial program 94.6%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. div-invN/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z + \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}} \]
            2. flip-+N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \cdot \frac{1}{x} \]
            3. associate-*l/N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \color{blue}{\frac{\left(\left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) \cdot \left(\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z\right) - \frac{83333333333333}{1000000000000000} \cdot \frac{83333333333333}{1000000000000000}\right) \cdot \frac{1}{x}}{\left(\left(y + \frac{7936500793651}{10000000000000000}\right) \cdot z - \frac{13888888888889}{5000000000000000}\right) \cdot z - \frac{83333333333333}{1000000000000000}}} \]
          4. Applied egg-rr62.0%

            \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right) \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right), -0.0069444444444443885\right) \cdot \frac{1}{x}}{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), -0.083333333333333\right)}} \]
          5. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          6. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{{z}^{2} \cdot {\left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right)}^{2}}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}} - \frac{6944444444444388888888888889}{1000000000000000000000000000000} \cdot \frac{1}{z \cdot \left(z \cdot \left(\frac{7936500793651}{10000000000000000} + y\right) - \frac{13888888888889}{5000000000000000}\right) - \frac{83333333333333}{1000000000000000}}}{x}} \]
          7. Simplified32.9%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z \cdot z, \frac{\mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right) \cdot \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}, \frac{-0.0069444444444443885}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0007936500793651 + y, -0.0027777777777778\right), -0.083333333333333\right)}\right)}{x}} \]
          8. Taylor expanded in z around 0

            \[\leadsto \frac{\color{blue}{\frac{83333333333333}{1000000000000000} + \frac{-13888888888889}{5000000000000000} \cdot z}}{x} \]
          9. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \frac{\color{blue}{\frac{-13888888888889}{5000000000000000} \cdot z + \frac{83333333333333}{1000000000000000}}}{x} \]
            2. accelerator-lowering-fma.f6427.6

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
          10. Simplified27.6%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.0027777777777778, z, 0.083333333333333\right)}}{x} \]
          11. Add Preprocessing

          Alternative 18: 23.4% accurate, 8.7× speedup?

          \[\begin{array}{l} \\ \frac{1}{x \cdot 12.000000000000048} \end{array} \]
          (FPCore (x y z) :precision binary64 (/ 1.0 (* x 12.000000000000048)))
          double code(double x, double y, double z) {
          	return 1.0 / (x * 12.000000000000048);
          }
          
          real(8) function code(x, y, z)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              code = 1.0d0 / (x * 12.000000000000048d0)
          end function
          
          public static double code(double x, double y, double z) {
          	return 1.0 / (x * 12.000000000000048);
          }
          
          def code(x, y, z):
          	return 1.0 / (x * 12.000000000000048)
          
          function code(x, y, z)
          	return Float64(1.0 / Float64(x * 12.000000000000048))
          end
          
          function tmp = code(x, y, z)
          	tmp = 1.0 / (x * 12.000000000000048);
          end
          
          code[x_, y_, z_] := N[(1.0 / N[(x * 12.000000000000048), $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \frac{1}{x \cdot 12.000000000000048}
          \end{array}
          
          Derivation
          1. Initial program 94.6%

            \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
          2. Add Preprocessing
          3. Taylor expanded in z around 0

            \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\frac{83333333333333}{1000000000000000}}}{x} \]
          4. Step-by-step derivation
            1. Simplified60.0%

              \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\color{blue}{0.083333333333333}}{x} \]
            2. Taylor expanded in x around 0

              \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000}}{x}} \]
            3. Step-by-step derivation
              1. /-lowering-/.f6420.8

                \[\leadsto \color{blue}{\frac{0.083333333333333}{x}} \]
            4. Simplified20.8%

              \[\leadsto \color{blue}{\frac{0.083333333333333}{x}} \]
            5. Step-by-step derivation
              1. clear-numN/A

                \[\leadsto \color{blue}{\frac{1}{\frac{x}{\frac{83333333333333}{1000000000000000}}}} \]
              2. clear-numN/A

                \[\leadsto \color{blue}{\frac{1}{\frac{\frac{x}{\frac{83333333333333}{1000000000000000}}}{1}}} \]
              3. div-invN/A

                \[\leadsto \frac{1}{\frac{\color{blue}{x \cdot \frac{1}{\frac{83333333333333}{1000000000000000}}}}{1}} \]
              4. metadata-evalN/A

                \[\leadsto \frac{1}{\frac{x \cdot \color{blue}{\frac{1000000000000000}{83333333333333}}}{1}} \]
              5. /-lowering-/.f64N/A

                \[\leadsto \color{blue}{\frac{1}{\frac{x \cdot \frac{1000000000000000}{83333333333333}}{1}}} \]
              6. associate-/l*N/A

                \[\leadsto \frac{1}{\color{blue}{x \cdot \frac{\frac{1000000000000000}{83333333333333}}{1}}} \]
              7. metadata-evalN/A

                \[\leadsto \frac{1}{x \cdot \color{blue}{\frac{1000000000000000}{83333333333333}}} \]
              8. *-lowering-*.f6420.8

                \[\leadsto \frac{1}{\color{blue}{x \cdot 12.000000000000048}} \]
            6. Applied egg-rr20.8%

              \[\leadsto \color{blue}{\frac{1}{x \cdot 12.000000000000048}} \]
            7. Add Preprocessing

            Alternative 19: 23.4% accurate, 12.3× speedup?

            \[\begin{array}{l} \\ \frac{0.083333333333333}{x} \end{array} \]
            (FPCore (x y z) :precision binary64 (/ 0.083333333333333 x))
            double code(double x, double y, double z) {
            	return 0.083333333333333 / x;
            }
            
            real(8) function code(x, y, z)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                code = 0.083333333333333d0 / x
            end function
            
            public static double code(double x, double y, double z) {
            	return 0.083333333333333 / x;
            }
            
            def code(x, y, z):
            	return 0.083333333333333 / x
            
            function code(x, y, z)
            	return Float64(0.083333333333333 / x)
            end
            
            function tmp = code(x, y, z)
            	tmp = 0.083333333333333 / x;
            end
            
            code[x_, y_, z_] := N[(0.083333333333333 / x), $MachinePrecision]
            
            \begin{array}{l}
            
            \\
            \frac{0.083333333333333}{x}
            \end{array}
            
            Derivation
            1. Initial program 94.6%

              \[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x} \]
            2. Add Preprocessing
            3. Taylor expanded in z around 0

              \[\leadsto \left(\left(\left(x - \frac{1}{2}\right) \cdot \log x - x\right) + \frac{91893853320467}{100000000000000}\right) + \frac{\color{blue}{\frac{83333333333333}{1000000000000000}}}{x} \]
            4. Step-by-step derivation
              1. Simplified60.0%

                \[\leadsto \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\color{blue}{0.083333333333333}}{x} \]
              2. Taylor expanded in x around 0

                \[\leadsto \color{blue}{\frac{\frac{83333333333333}{1000000000000000}}{x}} \]
              3. Step-by-step derivation
                1. /-lowering-/.f6420.8

                  \[\leadsto \color{blue}{\frac{0.083333333333333}{x}} \]
              4. Simplified20.8%

                \[\leadsto \color{blue}{\frac{0.083333333333333}{x}} \]
              5. Add Preprocessing

              Developer Target 1: 98.4% accurate, 0.9× speedup?

              \[\begin{array}{l} \\ \left(\left(\left(x - 0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333}{x}\right) + \frac{z}{x} \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right) \end{array} \]
              (FPCore (x y z)
               :precision binary64
               (+
                (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x))
                (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
              double code(double x, double y, double z) {
              	return ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
              }
              
              real(8) function code(x, y, z)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  code = ((((x - 0.5d0) * log(x)) + (0.91893853320467d0 - x)) + (0.083333333333333d0 / x)) + ((z / x) * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))
              end function
              
              public static double code(double x, double y, double z) {
              	return ((((x - 0.5) * Math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
              }
              
              def code(x, y, z):
              	return ((((x - 0.5) * math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))
              
              function code(x, y, z)
              	return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) + Float64(0.91893853320467 - x)) + Float64(0.083333333333333 / x)) + Float64(Float64(z / x) * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)))
              end
              
              function tmp = code(x, y, z)
              	tmp = ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
              end
              
              code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z / x), $MachinePrecision] * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \left(\left(\left(x - 0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333}{x}\right) + \frac{z}{x} \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)
              \end{array}
              

              Reproduce

              ?
              herbie shell --seed 2024196 
              (FPCore (x y z)
                :name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
                :precision binary64
              
                :alt
                (! :herbie-platform default (+ (+ (+ (* (- x 1/2) (log x)) (- 91893853320467/100000000000000 x)) (/ 83333333333333/1000000000000000 x)) (* (/ z x) (- (* z (+ y 7936500793651/10000000000000000)) 13888888888889/5000000000000000))))
              
                (+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (/ (+ (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z) 0.083333333333333) x)))