Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C

Percentage Accurate: 94.4% → 96.4%
Time: 7.7s
Alternatives: 10
Speedup: 0.5×

Specification

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

\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 10 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: 94.4% accurate, 1.0× speedup?

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

\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}

Alternative 1: 96.4% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z} - \frac{t}{1 - z}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;x \cdot t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (/ y z) (/ t (- 1.0 z)))))
   (if (<= t_1 (- INFINITY)) (* (/ x z) y) (* x t_1))))
double code(double x, double y, double z, double t) {
	double t_1 = (y / z) - (t / (1.0 - z));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = (x / z) * y;
	} else {
		tmp = x * t_1;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = (y / z) - (t / (1.0 - z));
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = (x / z) * y;
	} else {
		tmp = x * t_1;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (y / z) - (t / (1.0 - z))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = (x / z) * y
	else:
		tmp = x * t_1
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(x / z) * y);
	else
		tmp = Float64(x * t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (y / z) - (t / (1.0 - z));
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = (x / z) * y;
	else
		tmp = x * t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], N[(x * t$95$1), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{x}{z} \cdot y\\

\mathbf{else}:\\
\;\;\;\;x \cdot t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < -inf.0

    1. Initial program 75.9%

      \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0

      \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

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

        \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
      3. lower-*.f6499.9

        \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
    5. Applied rewrites99.9%

      \[\leadsto \color{blue}{\frac{y \cdot x}{z}} \]
    6. Step-by-step derivation
      1. Applied rewrites99.9%

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

      if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z)))

      1. Initial program 96.1%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
    7. Recombined 2 regimes into one program.
    8. Add Preprocessing

    Alternative 2: 93.8% accurate, 0.8× speedup?

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

      1. Initial program 95.1%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
      3. Taylor expanded in z around inf

        \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
      4. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
        2. cancel-sign-sub-invN/A

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

          \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
        4. *-lft-identityN/A

          \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
        5. +-commutativeN/A

          \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
        6. lower-+.f6494.4

          \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
      5. Applied rewrites94.4%

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

      if -3100 < z < 0.00182

      1. Initial program 93.4%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
      3. Taylor expanded in z around 0

        \[\leadsto x \cdot \left(\frac{y}{z} - \color{blue}{\left(t + z \cdot \left(t \cdot z - -1 \cdot t\right)\right)}\right) \]
      4. Step-by-step derivation
        1. +-commutativeN/A

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

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

          \[\leadsto x \cdot \left(\frac{y}{z} - \left(\color{blue}{\left(t \cdot z + \left(\mathsf{neg}\left(-1 \cdot t\right)\right)\right)} \cdot z + t\right)\right) \]
        4. mul-1-negN/A

          \[\leadsto x \cdot \left(\frac{y}{z} - \left(\left(t \cdot z + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right)\right) \cdot z + t\right)\right) \]
        5. remove-double-negN/A

          \[\leadsto x \cdot \left(\frac{y}{z} - \left(\left(t \cdot z + \color{blue}{t}\right) \cdot z + t\right)\right) \]
        6. +-commutativeN/A

          \[\leadsto x \cdot \left(\frac{y}{z} - \left(\color{blue}{\left(t + t \cdot z\right)} \cdot z + t\right)\right) \]
        7. lower-fma.f64N/A

          \[\leadsto x \cdot \left(\frac{y}{z} - \color{blue}{\mathsf{fma}\left(t + t \cdot z, z, t\right)}\right) \]
        8. +-commutativeN/A

          \[\leadsto x \cdot \left(\frac{y}{z} - \mathsf{fma}\left(\color{blue}{t \cdot z + t}, z, t\right)\right) \]
        9. lower-fma.f6493.5

          \[\leadsto x \cdot \left(\frac{y}{z} - \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, z, t\right)}, z, t\right)\right) \]
      5. Applied rewrites93.5%

        \[\leadsto x \cdot \left(\frac{y}{z} - \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(t, z, t\right), z, t\right)}\right) \]

      if 0.00182 < z

      1. Initial program 96.5%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
        2. lift--.f64N/A

          \[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
        3. flip--N/A

          \[\leadsto x \cdot \color{blue}{\frac{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}{\frac{y}{z} + \frac{t}{1 - z}}} \]
        4. clear-numN/A

          \[\leadsto x \cdot \color{blue}{\frac{1}{\frac{\frac{y}{z} + \frac{t}{1 - z}}{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}}} \]
        5. un-div-invN/A

          \[\leadsto \color{blue}{\frac{x}{\frac{\frac{y}{z} + \frac{t}{1 - z}}{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}}} \]
        6. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{x}{\frac{\frac{y}{z} + \frac{t}{1 - z}}{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}}} \]
        7. clear-numN/A

          \[\leadsto \frac{x}{\color{blue}{\frac{1}{\frac{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}{\frac{y}{z} + \frac{t}{1 - z}}}}} \]
        8. flip--N/A

          \[\leadsto \frac{x}{\frac{1}{\color{blue}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
        9. lift--.f64N/A

          \[\leadsto \frac{x}{\frac{1}{\color{blue}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
        10. lower-/.f6496.5

          \[\leadsto \frac{x}{\color{blue}{\frac{1}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
      4. Applied rewrites96.5%

        \[\leadsto \color{blue}{\frac{x}{\frac{1}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
      5. Taylor expanded in z around inf

        \[\leadsto \frac{x}{\color{blue}{\frac{z}{y - -1 \cdot t}}} \]
      6. Step-by-step derivation
        1. sub-negN/A

          \[\leadsto \frac{x}{\frac{z}{\color{blue}{y + \left(\mathsf{neg}\left(-1 \cdot t\right)\right)}}} \]
        2. mul-1-negN/A

          \[\leadsto \frac{x}{\frac{z}{y + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right)}} \]
        3. remove-double-negN/A

          \[\leadsto \frac{x}{\frac{z}{y + \color{blue}{t}}} \]
        4. +-commutativeN/A

          \[\leadsto \frac{x}{\frac{z}{\color{blue}{t + y}}} \]
        5. lower-/.f64N/A

          \[\leadsto \frac{x}{\color{blue}{\frac{z}{t + y}}} \]
        6. lower-+.f6495.2

          \[\leadsto \frac{x}{\frac{z}{\color{blue}{t + y}}} \]
      7. Applied rewrites95.2%

        \[\leadsto \frac{x}{\color{blue}{\frac{z}{t + y}}} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification94.1%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3100:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\left(\frac{y}{z} - \mathsf{fma}\left(\mathsf{fma}\left(t, z, t\right), z, t\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{z}{t + y}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 3: 82.5% accurate, 0.8× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t + y}{z} \cdot x\\ \mathbf{if}\;z \leq -1.25 \cdot 10^{-22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -5.2 \cdot 10^{-84}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (* (/ (+ t y) z) x)))
       (if (<= z -1.25e-22)
         t_1
         (if (<= z -5.2e-84)
           (* (fma (fma x z x) z x) (- t))
           (if (<= z 0.00182) (/ y (/ z x)) t_1)))))
    double code(double x, double y, double z, double t) {
    	double t_1 = ((t + y) / z) * x;
    	double tmp;
    	if (z <= -1.25e-22) {
    		tmp = t_1;
    	} else if (z <= -5.2e-84) {
    		tmp = fma(fma(x, z, x), z, x) * -t;
    	} else if (z <= 0.00182) {
    		tmp = y / (z / x);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t)
    	t_1 = Float64(Float64(Float64(t + y) / z) * x)
    	tmp = 0.0
    	if (z <= -1.25e-22)
    		tmp = t_1;
    	elseif (z <= -5.2e-84)
    		tmp = Float64(fma(fma(x, z, x), z, x) * Float64(-t));
    	elseif (z <= 0.00182)
    		tmp = Float64(y / Float64(z / x));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -1.25e-22], t$95$1, If[LessEqual[z, -5.2e-84], N[(N[(N[(x * z + x), $MachinePrecision] * z + x), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[z, 0.00182], N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{t + y}{z} \cdot x\\
    \mathbf{if}\;z \leq -1.25 \cdot 10^{-22}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq -5.2 \cdot 10^{-84}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \cdot \left(-t\right)\\
    
    \mathbf{elif}\;z \leq 0.00182:\\
    \;\;\;\;\frac{y}{\frac{z}{x}}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -1.24999999999999988e-22 or 0.00182 < z

      1. Initial program 96.0%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
      3. Taylor expanded in z around inf

        \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
      4. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
        2. cancel-sign-sub-invN/A

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

          \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
        4. *-lft-identityN/A

          \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
        5. +-commutativeN/A

          \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
        6. lower-+.f6495.0

          \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
      5. Applied rewrites95.0%

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

      if -1.24999999999999988e-22 < z < -5.2e-84

      1. Initial program 100.0%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right) \cdot x} \]
        3. lift--.f64N/A

          \[\leadsto \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right)} \cdot x \]
        4. lift-/.f64N/A

          \[\leadsto \left(\color{blue}{\frac{y}{z}} - \frac{t}{1 - z}\right) \cdot x \]
        5. lift-/.f64N/A

          \[\leadsto \left(\frac{y}{z} - \color{blue}{\frac{t}{1 - z}}\right) \cdot x \]
        6. frac-subN/A

          \[\leadsto \color{blue}{\frac{y \cdot \left(1 - z\right) - z \cdot t}{z \cdot \left(1 - z\right)}} \cdot x \]
        7. associate-*l/N/A

          \[\leadsto \color{blue}{\frac{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)}} \]
        8. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)}} \]
        9. lower-*.f64N/A

          \[\leadsto \frac{\color{blue}{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}}{z \cdot \left(1 - z\right)} \]
        10. cancel-sign-sub-invN/A

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

          \[\leadsto \frac{\left(\color{blue}{\left(1 - z\right) \cdot y} + \left(\mathsf{neg}\left(z\right)\right) \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)} \]
        12. lower-fma.f64N/A

          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(1 - z, y, \left(\mathsf{neg}\left(z\right)\right) \cdot t\right)} \cdot x}{z \cdot \left(1 - z\right)} \]
        13. lower-*.f64N/A

          \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot t}\right) \cdot x}{z \cdot \left(1 - z\right)} \]
        14. lower-neg.f64N/A

          \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \color{blue}{\left(-z\right)} \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)} \]
        15. *-commutativeN/A

          \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right) \cdot x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
        16. lower-*.f6499.5

          \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right) \cdot x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
      4. Applied rewrites99.5%

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

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

          \[\leadsto -1 \cdot \color{blue}{\left(t \cdot \frac{x}{1 - z}\right)} \]
        2. associate-*r*N/A

          \[\leadsto \color{blue}{\left(-1 \cdot t\right) \cdot \frac{x}{1 - z}} \]
        3. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-1 \cdot t\right) \cdot \frac{x}{1 - z}} \]
        4. mul-1-negN/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot \frac{x}{1 - z} \]
        5. lower-neg.f64N/A

          \[\leadsto \color{blue}{\left(-t\right)} \cdot \frac{x}{1 - z} \]
        6. lower-/.f64N/A

          \[\leadsto \left(-t\right) \cdot \color{blue}{\frac{x}{1 - z}} \]
        7. lower--.f6484.1

          \[\leadsto \left(-t\right) \cdot \frac{x}{\color{blue}{1 - z}} \]
      7. Applied rewrites84.1%

        \[\leadsto \color{blue}{\left(-t\right) \cdot \frac{x}{1 - z}} \]
      8. Taylor expanded in z around 0

        \[\leadsto \left(-t\right) \cdot \left(x + \color{blue}{z \cdot \left(x \cdot z - -1 \cdot x\right)}\right) \]
      9. Step-by-step derivation
        1. Applied rewrites84.1%

          \[\leadsto \left(-t\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), \color{blue}{z}, x\right) \]

        if -5.2e-84 < z < 0.00182

        1. Initial program 92.4%

          \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
        2. Add Preprocessing
        3. Taylor expanded in t around 0

          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
        4. Step-by-step derivation
          1. lower-/.f64N/A

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

            \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
          3. lower-*.f6481.1

            \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
        5. Applied rewrites81.1%

          \[\leadsto \color{blue}{\frac{y \cdot x}{z}} \]
        6. Step-by-step derivation
          1. Applied rewrites81.2%

            \[\leadsto \frac{x}{z} \cdot \color{blue}{y} \]
          2. Step-by-step derivation
            1. Applied rewrites81.9%

              \[\leadsto \frac{y}{\color{blue}{\frac{z}{x}}} \]
          3. Recombined 3 regimes into one program.
          4. Final simplification88.7%

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{-22}:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \mathbf{elif}\;z \leq -5.2 \cdot 10^{-84}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \end{array} \]
          5. Add Preprocessing

          Alternative 4: 82.4% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t + y}{z} \cdot x\\ \mathbf{if}\;z \leq -1.25 \cdot 10^{-22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -5.2 \cdot 10^{-84}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (let* ((t_1 (* (/ (+ t y) z) x)))
             (if (<= z -1.25e-22)
               t_1
               (if (<= z -5.2e-84)
                 (* (fma (fma x z x) z x) (- t))
                 (if (<= z 0.00182) (* (/ x z) y) t_1)))))
          double code(double x, double y, double z, double t) {
          	double t_1 = ((t + y) / z) * x;
          	double tmp;
          	if (z <= -1.25e-22) {
          		tmp = t_1;
          	} else if (z <= -5.2e-84) {
          		tmp = fma(fma(x, z, x), z, x) * -t;
          	} else if (z <= 0.00182) {
          		tmp = (x / z) * y;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t)
          	t_1 = Float64(Float64(Float64(t + y) / z) * x)
          	tmp = 0.0
          	if (z <= -1.25e-22)
          		tmp = t_1;
          	elseif (z <= -5.2e-84)
          		tmp = Float64(fma(fma(x, z, x), z, x) * Float64(-t));
          	elseif (z <= 0.00182)
          		tmp = Float64(Float64(x / z) * y);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -1.25e-22], t$95$1, If[LessEqual[z, -5.2e-84], N[(N[(N[(x * z + x), $MachinePrecision] * z + x), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[z, 0.00182], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \frac{t + y}{z} \cdot x\\
          \mathbf{if}\;z \leq -1.25 \cdot 10^{-22}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq -5.2 \cdot 10^{-84}:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \cdot \left(-t\right)\\
          
          \mathbf{elif}\;z \leq 0.00182:\\
          \;\;\;\;\frac{x}{z} \cdot y\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if z < -1.24999999999999988e-22 or 0.00182 < z

            1. Initial program 96.0%

              \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
            2. Add Preprocessing
            3. Taylor expanded in z around inf

              \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
            4. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
              2. cancel-sign-sub-invN/A

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

                \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
              4. *-lft-identityN/A

                \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
              5. +-commutativeN/A

                \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
              6. lower-+.f6495.0

                \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
            5. Applied rewrites95.0%

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

            if -1.24999999999999988e-22 < z < -5.2e-84

            1. Initial program 100.0%

              \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. lift-*.f64N/A

                \[\leadsto \color{blue}{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right) \cdot x} \]
              3. lift--.f64N/A

                \[\leadsto \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right)} \cdot x \]
              4. lift-/.f64N/A

                \[\leadsto \left(\color{blue}{\frac{y}{z}} - \frac{t}{1 - z}\right) \cdot x \]
              5. lift-/.f64N/A

                \[\leadsto \left(\frac{y}{z} - \color{blue}{\frac{t}{1 - z}}\right) \cdot x \]
              6. frac-subN/A

                \[\leadsto \color{blue}{\frac{y \cdot \left(1 - z\right) - z \cdot t}{z \cdot \left(1 - z\right)}} \cdot x \]
              7. associate-*l/N/A

                \[\leadsto \color{blue}{\frac{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)}} \]
              8. lower-/.f64N/A

                \[\leadsto \color{blue}{\frac{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)}} \]
              9. lower-*.f64N/A

                \[\leadsto \frac{\color{blue}{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}}{z \cdot \left(1 - z\right)} \]
              10. cancel-sign-sub-invN/A

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

                \[\leadsto \frac{\left(\color{blue}{\left(1 - z\right) \cdot y} + \left(\mathsf{neg}\left(z\right)\right) \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)} \]
              12. lower-fma.f64N/A

                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(1 - z, y, \left(\mathsf{neg}\left(z\right)\right) \cdot t\right)} \cdot x}{z \cdot \left(1 - z\right)} \]
              13. lower-*.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot t}\right) \cdot x}{z \cdot \left(1 - z\right)} \]
              14. lower-neg.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \color{blue}{\left(-z\right)} \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)} \]
              15. *-commutativeN/A

                \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right) \cdot x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
              16. lower-*.f6499.5

                \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right) \cdot x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
            4. Applied rewrites99.5%

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

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

                \[\leadsto -1 \cdot \color{blue}{\left(t \cdot \frac{x}{1 - z}\right)} \]
              2. associate-*r*N/A

                \[\leadsto \color{blue}{\left(-1 \cdot t\right) \cdot \frac{x}{1 - z}} \]
              3. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(-1 \cdot t\right) \cdot \frac{x}{1 - z}} \]
              4. mul-1-negN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot \frac{x}{1 - z} \]
              5. lower-neg.f64N/A

                \[\leadsto \color{blue}{\left(-t\right)} \cdot \frac{x}{1 - z} \]
              6. lower-/.f64N/A

                \[\leadsto \left(-t\right) \cdot \color{blue}{\frac{x}{1 - z}} \]
              7. lower--.f6484.1

                \[\leadsto \left(-t\right) \cdot \frac{x}{\color{blue}{1 - z}} \]
            7. Applied rewrites84.1%

              \[\leadsto \color{blue}{\left(-t\right) \cdot \frac{x}{1 - z}} \]
            8. Taylor expanded in z around 0

              \[\leadsto \left(-t\right) \cdot \left(x + \color{blue}{z \cdot \left(x \cdot z - -1 \cdot x\right)}\right) \]
            9. Step-by-step derivation
              1. Applied rewrites84.1%

                \[\leadsto \left(-t\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), \color{blue}{z}, x\right) \]

              if -5.2e-84 < z < 0.00182

              1. Initial program 92.4%

                \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
              2. Add Preprocessing
              3. Taylor expanded in t around 0

                \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
              4. Step-by-step derivation
                1. lower-/.f64N/A

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

                  \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
                3. lower-*.f6481.1

                  \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
              5. Applied rewrites81.1%

                \[\leadsto \color{blue}{\frac{y \cdot x}{z}} \]
              6. Step-by-step derivation
                1. Applied rewrites81.2%

                  \[\leadsto \frac{x}{z} \cdot \color{blue}{y} \]
              7. Recombined 3 regimes into one program.
              8. Final simplification88.4%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{-22}:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \mathbf{elif}\;z \leq -5.2 \cdot 10^{-84}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \end{array} \]
              9. Add Preprocessing

              Alternative 5: 93.5% accurate, 0.9× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3100:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{z}{t + y}}\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (if (<= z -3100.0)
                 (* (/ (+ t y) z) x)
                 (if (<= z 0.00182) (* (/ (- y (* t z)) z) x) (/ x (/ z (+ t y))))))
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if (z <= -3100.0) {
              		tmp = ((t + y) / z) * x;
              	} else if (z <= 0.00182) {
              		tmp = ((y - (t * z)) / z) * x;
              	} else {
              		tmp = x / (z / (t + y));
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: tmp
                  if (z <= (-3100.0d0)) then
                      tmp = ((t + y) / z) * x
                  else if (z <= 0.00182d0) then
                      tmp = ((y - (t * z)) / z) * x
                  else
                      tmp = x / (z / (t + y))
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double tmp;
              	if (z <= -3100.0) {
              		tmp = ((t + y) / z) * x;
              	} else if (z <= 0.00182) {
              		tmp = ((y - (t * z)) / z) * x;
              	} else {
              		tmp = x / (z / (t + y));
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	tmp = 0
              	if z <= -3100.0:
              		tmp = ((t + y) / z) * x
              	elif z <= 0.00182:
              		tmp = ((y - (t * z)) / z) * x
              	else:
              		tmp = x / (z / (t + y))
              	return tmp
              
              function code(x, y, z, t)
              	tmp = 0.0
              	if (z <= -3100.0)
              		tmp = Float64(Float64(Float64(t + y) / z) * x);
              	elseif (z <= 0.00182)
              		tmp = Float64(Float64(Float64(y - Float64(t * z)) / z) * x);
              	else
              		tmp = Float64(x / Float64(z / Float64(t + y)));
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	tmp = 0.0;
              	if (z <= -3100.0)
              		tmp = ((t + y) / z) * x;
              	elseif (z <= 0.00182)
              		tmp = ((y - (t * z)) / z) * x;
              	else
              		tmp = x / (z / (t + y));
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := If[LessEqual[z, -3100.0], N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 0.00182], N[(N[(N[(y - N[(t * z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], N[(x / N[(z / N[(t + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -3100:\\
              \;\;\;\;\frac{t + y}{z} \cdot x\\
              
              \mathbf{elif}\;z \leq 0.00182:\\
              \;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{x}{\frac{z}{t + y}}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if z < -3100

                1. Initial program 95.1%

                  \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                2. Add Preprocessing
                3. Taylor expanded in z around inf

                  \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
                  2. cancel-sign-sub-invN/A

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

                    \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
                  4. *-lft-identityN/A

                    \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
                  5. +-commutativeN/A

                    \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
                  6. lower-+.f6494.4

                    \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
                5. Applied rewrites94.4%

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

                if -3100 < z < 0.00182

                1. Initial program 93.4%

                  \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                2. Add Preprocessing
                3. Taylor expanded in z around 0

                  \[\leadsto x \cdot \color{blue}{\frac{y + -1 \cdot \left(t \cdot z\right)}{z}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

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

                    \[\leadsto x \cdot \frac{y + \color{blue}{\left(\mathsf{neg}\left(t \cdot z\right)\right)}}{z} \]
                  3. unsub-negN/A

                    \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                  4. lower--.f64N/A

                    \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                  5. lower-*.f6493.1

                    \[\leadsto x \cdot \frac{y - \color{blue}{t \cdot z}}{z} \]
                5. Applied rewrites93.1%

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

                if 0.00182 < z

                1. Initial program 96.5%

                  \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto \color{blue}{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
                  2. lift--.f64N/A

                    \[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
                  3. flip--N/A

                    \[\leadsto x \cdot \color{blue}{\frac{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}{\frac{y}{z} + \frac{t}{1 - z}}} \]
                  4. clear-numN/A

                    \[\leadsto x \cdot \color{blue}{\frac{1}{\frac{\frac{y}{z} + \frac{t}{1 - z}}{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}}} \]
                  5. un-div-invN/A

                    \[\leadsto \color{blue}{\frac{x}{\frac{\frac{y}{z} + \frac{t}{1 - z}}{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}}} \]
                  6. lower-/.f64N/A

                    \[\leadsto \color{blue}{\frac{x}{\frac{\frac{y}{z} + \frac{t}{1 - z}}{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}}} \]
                  7. clear-numN/A

                    \[\leadsto \frac{x}{\color{blue}{\frac{1}{\frac{\frac{y}{z} \cdot \frac{y}{z} - \frac{t}{1 - z} \cdot \frac{t}{1 - z}}{\frac{y}{z} + \frac{t}{1 - z}}}}} \]
                  8. flip--N/A

                    \[\leadsto \frac{x}{\frac{1}{\color{blue}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
                  9. lift--.f64N/A

                    \[\leadsto \frac{x}{\frac{1}{\color{blue}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
                  10. lower-/.f6496.5

                    \[\leadsto \frac{x}{\color{blue}{\frac{1}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
                4. Applied rewrites96.5%

                  \[\leadsto \color{blue}{\frac{x}{\frac{1}{\frac{y}{z} - \frac{t}{1 - z}}}} \]
                5. Taylor expanded in z around inf

                  \[\leadsto \frac{x}{\color{blue}{\frac{z}{y - -1 \cdot t}}} \]
                6. Step-by-step derivation
                  1. sub-negN/A

                    \[\leadsto \frac{x}{\frac{z}{\color{blue}{y + \left(\mathsf{neg}\left(-1 \cdot t\right)\right)}}} \]
                  2. mul-1-negN/A

                    \[\leadsto \frac{x}{\frac{z}{y + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right)}} \]
                  3. remove-double-negN/A

                    \[\leadsto \frac{x}{\frac{z}{y + \color{blue}{t}}} \]
                  4. +-commutativeN/A

                    \[\leadsto \frac{x}{\frac{z}{\color{blue}{t + y}}} \]
                  5. lower-/.f64N/A

                    \[\leadsto \frac{x}{\color{blue}{\frac{z}{t + y}}} \]
                  6. lower-+.f6495.2

                    \[\leadsto \frac{x}{\frac{z}{\color{blue}{t + y}}} \]
                7. Applied rewrites95.2%

                  \[\leadsto \frac{x}{\color{blue}{\frac{z}{t + y}}} \]
              3. Recombined 3 regimes into one program.
              4. Final simplification93.9%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3100:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{z}{t + y}}\\ \end{array} \]
              5. Add Preprocessing

              Alternative 6: 93.6% accurate, 0.9× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t + y}{z} \cdot x\\ \mathbf{if}\;z \leq -3100:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (let* ((t_1 (* (/ (+ t y) z) x)))
                 (if (<= z -3100.0) t_1 (if (<= z 0.00182) (* (/ (- y (* t z)) z) x) t_1))))
              double code(double x, double y, double z, double t) {
              	double t_1 = ((t + y) / z) * x;
              	double tmp;
              	if (z <= -3100.0) {
              		tmp = t_1;
              	} else if (z <= 0.00182) {
              		tmp = ((y - (t * z)) / z) * x;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = ((t + y) / z) * x
                  if (z <= (-3100.0d0)) then
                      tmp = t_1
                  else if (z <= 0.00182d0) then
                      tmp = ((y - (t * z)) / z) * x
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double t_1 = ((t + y) / z) * x;
              	double tmp;
              	if (z <= -3100.0) {
              		tmp = t_1;
              	} else if (z <= 0.00182) {
              		tmp = ((y - (t * z)) / z) * x;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	t_1 = ((t + y) / z) * x
              	tmp = 0
              	if z <= -3100.0:
              		tmp = t_1
              	elif z <= 0.00182:
              		tmp = ((y - (t * z)) / z) * x
              	else:
              		tmp = t_1
              	return tmp
              
              function code(x, y, z, t)
              	t_1 = Float64(Float64(Float64(t + y) / z) * x)
              	tmp = 0.0
              	if (z <= -3100.0)
              		tmp = t_1;
              	elseif (z <= 0.00182)
              		tmp = Float64(Float64(Float64(y - Float64(t * z)) / z) * x);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	t_1 = ((t + y) / z) * x;
              	tmp = 0.0;
              	if (z <= -3100.0)
              		tmp = t_1;
              	elseif (z <= 0.00182)
              		tmp = ((y - (t * z)) / z) * x;
              	else
              		tmp = t_1;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -3100.0], t$95$1, If[LessEqual[z, 0.00182], N[(N[(N[(y - N[(t * z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{t + y}{z} \cdot x\\
              \mathbf{if}\;z \leq -3100:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 0.00182:\\
              \;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -3100 or 0.00182 < z

                1. Initial program 95.8%

                  \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                2. Add Preprocessing
                3. Taylor expanded in z around inf

                  \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
                  2. cancel-sign-sub-invN/A

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

                    \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
                  4. *-lft-identityN/A

                    \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
                  5. +-commutativeN/A

                    \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
                  6. lower-+.f6494.7

                    \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
                5. Applied rewrites94.7%

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

                if -3100 < z < 0.00182

                1. Initial program 93.4%

                  \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                2. Add Preprocessing
                3. Taylor expanded in z around 0

                  \[\leadsto x \cdot \color{blue}{\frac{y + -1 \cdot \left(t \cdot z\right)}{z}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

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

                    \[\leadsto x \cdot \frac{y + \color{blue}{\left(\mathsf{neg}\left(t \cdot z\right)\right)}}{z} \]
                  3. unsub-negN/A

                    \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                  4. lower--.f64N/A

                    \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                  5. lower-*.f6493.1

                    \[\leadsto x \cdot \frac{y - \color{blue}{t \cdot z}}{z} \]
                5. Applied rewrites93.1%

                  \[\leadsto x \cdot \color{blue}{\frac{y - t \cdot z}{z}} \]
              3. Recombined 2 regimes into one program.
              4. Final simplification93.9%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3100:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \mathbf{elif}\;z \leq 0.00182:\\ \;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y}{z} \cdot x\\ \end{array} \]
              5. Add Preprocessing

              Alternative 7: 72.8% accurate, 1.1× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{z} \cdot y\\ \mathbf{if}\;y \leq -8.6 \cdot 10^{-98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.25 \cdot 10^{-108}:\\ \;\;\;\;\frac{x \cdot t}{z - 1}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (let* ((t_1 (* (/ x z) y)))
                 (if (<= y -8.6e-98) t_1 (if (<= y 1.25e-108) (/ (* x t) (- z 1.0)) t_1))))
              double code(double x, double y, double z, double t) {
              	double t_1 = (x / z) * y;
              	double tmp;
              	if (y <= -8.6e-98) {
              		tmp = t_1;
              	} else if (y <= 1.25e-108) {
              		tmp = (x * t) / (z - 1.0);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = (x / z) * y
                  if (y <= (-8.6d-98)) then
                      tmp = t_1
                  else if (y <= 1.25d-108) then
                      tmp = (x * t) / (z - 1.0d0)
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double t_1 = (x / z) * y;
              	double tmp;
              	if (y <= -8.6e-98) {
              		tmp = t_1;
              	} else if (y <= 1.25e-108) {
              		tmp = (x * t) / (z - 1.0);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	t_1 = (x / z) * y
              	tmp = 0
              	if y <= -8.6e-98:
              		tmp = t_1
              	elif y <= 1.25e-108:
              		tmp = (x * t) / (z - 1.0)
              	else:
              		tmp = t_1
              	return tmp
              
              function code(x, y, z, t)
              	t_1 = Float64(Float64(x / z) * y)
              	tmp = 0.0
              	if (y <= -8.6e-98)
              		tmp = t_1;
              	elseif (y <= 1.25e-108)
              		tmp = Float64(Float64(x * t) / Float64(z - 1.0));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	t_1 = (x / z) * y;
              	tmp = 0.0;
              	if (y <= -8.6e-98)
              		tmp = t_1;
              	elseif (y <= 1.25e-108)
              		tmp = (x * t) / (z - 1.0);
              	else
              		tmp = t_1;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -8.6e-98], t$95$1, If[LessEqual[y, 1.25e-108], N[(N[(x * t), $MachinePrecision] / N[(z - 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{x}{z} \cdot y\\
              \mathbf{if}\;y \leq -8.6 \cdot 10^{-98}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;y \leq 1.25 \cdot 10^{-108}:\\
              \;\;\;\;\frac{x \cdot t}{z - 1}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if y < -8.59999999999999977e-98 or 1.25e-108 < y

                1. Initial program 94.3%

                  \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                2. Add Preprocessing
                3. Taylor expanded in t around 0

                  \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

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

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

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

                  \[\leadsto \color{blue}{\frac{y \cdot x}{z}} \]
                6. Step-by-step derivation
                  1. Applied rewrites76.8%

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

                  if -8.59999999999999977e-98 < y < 1.25e-108

                  1. Initial program 95.2%

                    \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                  2. Add Preprocessing
                  3. Taylor expanded in t around inf

                    \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot x}{1 - z}} \]
                  4. Step-by-step derivation
                    1. mul-1-negN/A

                      \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t \cdot x}{1 - z}\right)} \]
                    2. distribute-neg-frac2N/A

                      \[\leadsto \color{blue}{\frac{t \cdot x}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                    3. lower-/.f64N/A

                      \[\leadsto \color{blue}{\frac{t \cdot x}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                    4. lower-*.f64N/A

                      \[\leadsto \frac{\color{blue}{t \cdot x}}{\mathsf{neg}\left(\left(1 - z\right)\right)} \]
                    5. sub-negN/A

                      \[\leadsto \frac{t \cdot x}{\mathsf{neg}\left(\color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \]
                    6. mul-1-negN/A

                      \[\leadsto \frac{t \cdot x}{\mathsf{neg}\left(\left(1 + \color{blue}{-1 \cdot z}\right)\right)} \]
                    7. +-commutativeN/A

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

                      \[\leadsto \frac{t \cdot x}{\color{blue}{\left(\mathsf{neg}\left(-1 \cdot z\right)\right) + \left(\mathsf{neg}\left(1\right)\right)}} \]
                    9. mul-1-negN/A

                      \[\leadsto \frac{t \cdot x}{\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right) + \left(\mathsf{neg}\left(1\right)\right)} \]
                    10. remove-double-negN/A

                      \[\leadsto \frac{t \cdot x}{\color{blue}{z} + \left(\mathsf{neg}\left(1\right)\right)} \]
                    11. sub-negN/A

                      \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
                    12. lower--.f6482.2

                      \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
                  5. Applied rewrites82.2%

                    \[\leadsto \color{blue}{\frac{t \cdot x}{z - 1}} \]
                7. Recombined 2 regimes into one program.
                8. Final simplification78.6%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.6 \cdot 10^{-98}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{elif}\;y \leq 1.25 \cdot 10^{-108}:\\ \;\;\;\;\frac{x \cdot t}{z - 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \]
                9. Add Preprocessing

                Alternative 8: 64.8% accurate, 1.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{z} \cdot y\\ \mathbf{if}\;y \leq -2.6 \cdot 10^{-183}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{-110}:\\ \;\;\;\;\frac{x \cdot t}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (let* ((t_1 (* (/ x z) y)))
                   (if (<= y -2.6e-183) t_1 (if (<= y 2.55e-110) (/ (* x t) z) t_1))))
                double code(double x, double y, double z, double t) {
                	double t_1 = (x / z) * y;
                	double tmp;
                	if (y <= -2.6e-183) {
                		tmp = t_1;
                	} else if (y <= 2.55e-110) {
                		tmp = (x * t) / z;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8) :: t_1
                    real(8) :: tmp
                    t_1 = (x / z) * y
                    if (y <= (-2.6d-183)) then
                        tmp = t_1
                    else if (y <= 2.55d-110) then
                        tmp = (x * t) / z
                    else
                        tmp = t_1
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t) {
                	double t_1 = (x / z) * y;
                	double tmp;
                	if (y <= -2.6e-183) {
                		tmp = t_1;
                	} else if (y <= 2.55e-110) {
                		tmp = (x * t) / z;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t):
                	t_1 = (x / z) * y
                	tmp = 0
                	if y <= -2.6e-183:
                		tmp = t_1
                	elif y <= 2.55e-110:
                		tmp = (x * t) / z
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t)
                	t_1 = Float64(Float64(x / z) * y)
                	tmp = 0.0
                	if (y <= -2.6e-183)
                		tmp = t_1;
                	elseif (y <= 2.55e-110)
                		tmp = Float64(Float64(x * t) / z);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t)
                	t_1 = (x / z) * y;
                	tmp = 0.0;
                	if (y <= -2.6e-183)
                		tmp = t_1;
                	elseif (y <= 2.55e-110)
                		tmp = (x * t) / z;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -2.6e-183], t$95$1, If[LessEqual[y, 2.55e-110], N[(N[(x * t), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{x}{z} \cdot y\\
                \mathbf{if}\;y \leq -2.6 \cdot 10^{-183}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;y \leq 2.55 \cdot 10^{-110}:\\
                \;\;\;\;\frac{x \cdot t}{z}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if y < -2.5999999999999999e-183 or 2.5500000000000001e-110 < y

                  1. Initial program 94.7%

                    \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                  2. Add Preprocessing
                  3. Taylor expanded in t around 0

                    \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                  4. Step-by-step derivation
                    1. lower-/.f64N/A

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

                      \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
                    3. lower-*.f6470.4

                      \[\leadsto \frac{\color{blue}{y \cdot x}}{z} \]
                  5. Applied rewrites70.4%

                    \[\leadsto \color{blue}{\frac{y \cdot x}{z}} \]
                  6. Step-by-step derivation
                    1. Applied rewrites74.4%

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

                    if -2.5999999999999999e-183 < y < 2.5500000000000001e-110

                    1. Initial program 94.4%

                      \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right) \cdot x} \]
                      3. lift--.f64N/A

                        \[\leadsto \color{blue}{\left(\frac{y}{z} - \frac{t}{1 - z}\right)} \cdot x \]
                      4. lift-/.f64N/A

                        \[\leadsto \left(\color{blue}{\frac{y}{z}} - \frac{t}{1 - z}\right) \cdot x \]
                      5. lift-/.f64N/A

                        \[\leadsto \left(\frac{y}{z} - \color{blue}{\frac{t}{1 - z}}\right) \cdot x \]
                      6. frac-subN/A

                        \[\leadsto \color{blue}{\frac{y \cdot \left(1 - z\right) - z \cdot t}{z \cdot \left(1 - z\right)}} \cdot x \]
                      7. associate-*l/N/A

                        \[\leadsto \color{blue}{\frac{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)}} \]
                      8. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)}} \]
                      9. lower-*.f64N/A

                        \[\leadsto \frac{\color{blue}{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot x}}{z \cdot \left(1 - z\right)} \]
                      10. cancel-sign-sub-invN/A

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

                        \[\leadsto \frac{\left(\color{blue}{\left(1 - z\right) \cdot y} + \left(\mathsf{neg}\left(z\right)\right) \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)} \]
                      12. lower-fma.f64N/A

                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(1 - z, y, \left(\mathsf{neg}\left(z\right)\right) \cdot t\right)} \cdot x}{z \cdot \left(1 - z\right)} \]
                      13. lower-*.f64N/A

                        \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot t}\right) \cdot x}{z \cdot \left(1 - z\right)} \]
                      14. lower-neg.f64N/A

                        \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \color{blue}{\left(-z\right)} \cdot t\right) \cdot x}{z \cdot \left(1 - z\right)} \]
                      15. *-commutativeN/A

                        \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right) \cdot x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
                      16. lower-*.f6469.0

                        \[\leadsto \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right) \cdot x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
                    4. Applied rewrites69.0%

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

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

                        \[\leadsto -1 \cdot \color{blue}{\left(t \cdot \frac{x}{1 - z}\right)} \]
                      2. associate-*r*N/A

                        \[\leadsto \color{blue}{\left(-1 \cdot t\right) \cdot \frac{x}{1 - z}} \]
                      3. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(-1 \cdot t\right) \cdot \frac{x}{1 - z}} \]
                      4. mul-1-negN/A

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot \frac{x}{1 - z} \]
                      5. lower-neg.f64N/A

                        \[\leadsto \color{blue}{\left(-t\right)} \cdot \frac{x}{1 - z} \]
                      6. lower-/.f64N/A

                        \[\leadsto \left(-t\right) \cdot \color{blue}{\frac{x}{1 - z}} \]
                      7. lower--.f6477.7

                        \[\leadsto \left(-t\right) \cdot \frac{x}{\color{blue}{1 - z}} \]
                    7. Applied rewrites77.7%

                      \[\leadsto \color{blue}{\left(-t\right) \cdot \frac{x}{1 - z}} \]
                    8. Taylor expanded in z around inf

                      \[\leadsto \frac{t \cdot x}{\color{blue}{z}} \]
                    9. Step-by-step derivation
                      1. Applied rewrites66.8%

                        \[\leadsto \frac{t \cdot x}{\color{blue}{z}} \]
                    10. Recombined 2 regimes into one program.
                    11. Final simplification72.2%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.6 \cdot 10^{-183}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{-110}:\\ \;\;\;\;\frac{x \cdot t}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \]
                    12. Add Preprocessing

                    Alternative 9: 64.0% accurate, 1.2× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-t\right) \cdot x\\ \mathbf{if}\;t \leq -3.9 \cdot 10^{+207}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.25 \cdot 10^{+184}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t)
                     :precision binary64
                     (let* ((t_1 (* (- t) x)))
                       (if (<= t -3.9e+207) t_1 (if (<= t 2.25e+184) (* (/ x z) y) t_1))))
                    double code(double x, double y, double z, double t) {
                    	double t_1 = -t * x;
                    	double tmp;
                    	if (t <= -3.9e+207) {
                    		tmp = t_1;
                    	} else if (t <= 2.25e+184) {
                    		tmp = (x / z) * y;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = -t * x
                        if (t <= (-3.9d+207)) then
                            tmp = t_1
                        else if (t <= 2.25d+184) then
                            tmp = (x / z) * y
                        else
                            tmp = t_1
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t) {
                    	double t_1 = -t * x;
                    	double tmp;
                    	if (t <= -3.9e+207) {
                    		tmp = t_1;
                    	} else if (t <= 2.25e+184) {
                    		tmp = (x / z) * y;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t):
                    	t_1 = -t * x
                    	tmp = 0
                    	if t <= -3.9e+207:
                    		tmp = t_1
                    	elif t <= 2.25e+184:
                    		tmp = (x / z) * y
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t)
                    	t_1 = Float64(Float64(-t) * x)
                    	tmp = 0.0
                    	if (t <= -3.9e+207)
                    		tmp = t_1;
                    	elseif (t <= 2.25e+184)
                    		tmp = Float64(Float64(x / z) * y);
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t)
                    	t_1 = -t * x;
                    	tmp = 0.0;
                    	if (t <= -3.9e+207)
                    		tmp = t_1;
                    	elseif (t <= 2.25e+184)
                    		tmp = (x / z) * y;
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-t) * x), $MachinePrecision]}, If[LessEqual[t, -3.9e+207], t$95$1, If[LessEqual[t, 2.25e+184], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \left(-t\right) \cdot x\\
                    \mathbf{if}\;t \leq -3.9 \cdot 10^{+207}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t \leq 2.25 \cdot 10^{+184}:\\
                    \;\;\;\;\frac{x}{z} \cdot y\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if t < -3.89999999999999972e207 or 2.25000000000000018e184 < t

                      1. Initial program 99.8%

                        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                      2. Add Preprocessing
                      3. Taylor expanded in t around inf

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

                          \[\leadsto x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{t}{1 - z}\right)\right)} \]
                        2. distribute-neg-frac2N/A

                          \[\leadsto x \cdot \color{blue}{\frac{t}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                        3. lower-/.f64N/A

                          \[\leadsto x \cdot \color{blue}{\frac{t}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                        4. sub-negN/A

                          \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \]
                        5. mul-1-negN/A

                          \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 + \color{blue}{-1 \cdot z}\right)\right)} \]
                        6. +-commutativeN/A

                          \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\color{blue}{\left(-1 \cdot z + 1\right)}\right)} \]
                        7. distribute-neg-inN/A

                          \[\leadsto x \cdot \frac{t}{\color{blue}{\left(\mathsf{neg}\left(-1 \cdot z\right)\right) + \left(\mathsf{neg}\left(1\right)\right)}} \]
                        8. mul-1-negN/A

                          \[\leadsto x \cdot \frac{t}{\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right) + \left(\mathsf{neg}\left(1\right)\right)} \]
                        9. remove-double-negN/A

                          \[\leadsto x \cdot \frac{t}{\color{blue}{z} + \left(\mathsf{neg}\left(1\right)\right)} \]
                        10. sub-negN/A

                          \[\leadsto x \cdot \frac{t}{\color{blue}{z - 1}} \]
                        11. lower--.f6486.3

                          \[\leadsto x \cdot \frac{t}{\color{blue}{z - 1}} \]
                      5. Applied rewrites86.3%

                        \[\leadsto x \cdot \color{blue}{\frac{t}{z - 1}} \]
                      6. Taylor expanded in z around 0

                        \[\leadsto x \cdot \left(-1 \cdot \color{blue}{t}\right) \]
                      7. Step-by-step derivation
                        1. Applied rewrites52.9%

                          \[\leadsto x \cdot \left(-t\right) \]

                        if -3.89999999999999972e207 < t < 2.25000000000000018e184

                        1. Initial program 93.5%

                          \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                        2. Add Preprocessing
                        3. Taylor expanded in t around 0

                          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                        4. Step-by-step derivation
                          1. lower-/.f64N/A

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

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

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

                          \[\leadsto \color{blue}{\frac{y \cdot x}{z}} \]
                        6. Step-by-step derivation
                          1. Applied rewrites69.2%

                            \[\leadsto \frac{x}{z} \cdot \color{blue}{y} \]
                        7. Recombined 2 regimes into one program.
                        8. Final simplification66.4%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.9 \cdot 10^{+207}:\\ \;\;\;\;\left(-t\right) \cdot x\\ \mathbf{elif}\;t \leq 2.25 \cdot 10^{+184}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(-t\right) \cdot x\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 10: 23.1% accurate, 4.3× speedup?

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

                          \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                        2. Add Preprocessing
                        3. Taylor expanded in t around inf

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

                            \[\leadsto x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{t}{1 - z}\right)\right)} \]
                          2. distribute-neg-frac2N/A

                            \[\leadsto x \cdot \color{blue}{\frac{t}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                          3. lower-/.f64N/A

                            \[\leadsto x \cdot \color{blue}{\frac{t}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                          4. sub-negN/A

                            \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \]
                          5. mul-1-negN/A

                            \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 + \color{blue}{-1 \cdot z}\right)\right)} \]
                          6. +-commutativeN/A

                            \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\color{blue}{\left(-1 \cdot z + 1\right)}\right)} \]
                          7. distribute-neg-inN/A

                            \[\leadsto x \cdot \frac{t}{\color{blue}{\left(\mathsf{neg}\left(-1 \cdot z\right)\right) + \left(\mathsf{neg}\left(1\right)\right)}} \]
                          8. mul-1-negN/A

                            \[\leadsto x \cdot \frac{t}{\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right) + \left(\mathsf{neg}\left(1\right)\right)} \]
                          9. remove-double-negN/A

                            \[\leadsto x \cdot \frac{t}{\color{blue}{z} + \left(\mathsf{neg}\left(1\right)\right)} \]
                          10. sub-negN/A

                            \[\leadsto x \cdot \frac{t}{\color{blue}{z - 1}} \]
                          11. lower--.f6446.5

                            \[\leadsto x \cdot \frac{t}{\color{blue}{z - 1}} \]
                        5. Applied rewrites46.5%

                          \[\leadsto x \cdot \color{blue}{\frac{t}{z - 1}} \]
                        6. Taylor expanded in z around 0

                          \[\leadsto x \cdot \left(-1 \cdot \color{blue}{t}\right) \]
                        7. Step-by-step derivation
                          1. Applied rewrites22.4%

                            \[\leadsto x \cdot \left(-t\right) \]
                          2. Final simplification22.4%

                            \[\leadsto \left(-t\right) \cdot x \]
                          3. Add Preprocessing

                          Developer Target 1: 94.8% accurate, 0.3× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\ t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\ \mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\ \;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t)
                           :precision binary64
                           (let* ((t_1 (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))))
                                  (t_2 (* x (- (/ y z) (/ t (- 1.0 z))))))
                             (if (< t_2 -7.623226303312042e-196)
                               t_1
                               (if (< t_2 1.4133944927702302e-211)
                                 (+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z))))
                                 t_1))))
                          double code(double x, double y, double z, double t) {
                          	double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                          	double t_2 = x * ((y / z) - (t / (1.0 - z)));
                          	double tmp;
                          	if (t_2 < -7.623226303312042e-196) {
                          		tmp = t_1;
                          	} else if (t_2 < 1.4133944927702302e-211) {
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8) :: t_1
                              real(8) :: t_2
                              real(8) :: tmp
                              t_1 = x * ((y / z) - (t * (1.0d0 / (1.0d0 - z))))
                              t_2 = x * ((y / z) - (t / (1.0d0 - z)))
                              if (t_2 < (-7.623226303312042d-196)) then
                                  tmp = t_1
                              else if (t_2 < 1.4133944927702302d-211) then
                                  tmp = ((y * x) / z) + -((t * x) / (1.0d0 - z))
                              else
                                  tmp = t_1
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                          	double t_2 = x * ((y / z) - (t / (1.0 - z)));
                          	double tmp;
                          	if (t_2 < -7.623226303312042e-196) {
                          		tmp = t_1;
                          	} else if (t_2 < 1.4133944927702302e-211) {
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t):
                          	t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))))
                          	t_2 = x * ((y / z) - (t / (1.0 - z)))
                          	tmp = 0
                          	if t_2 < -7.623226303312042e-196:
                          		tmp = t_1
                          	elif t_2 < 1.4133944927702302e-211:
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z))
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t)
                          	t_1 = Float64(x * Float64(Float64(y / z) - Float64(t * Float64(1.0 / Float64(1.0 - z)))))
                          	t_2 = Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
                          	tmp = 0.0
                          	if (t_2 < -7.623226303312042e-196)
                          		tmp = t_1;
                          	elseif (t_2 < 1.4133944927702302e-211)
                          		tmp = Float64(Float64(Float64(y * x) / z) + Float64(-Float64(Float64(t * x) / Float64(1.0 - z))));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t)
                          	t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                          	t_2 = x * ((y / z) - (t / (1.0 - z)));
                          	tmp = 0.0;
                          	if (t_2 < -7.623226303312042e-196)
                          		tmp = t_1;
                          	elseif (t_2 < 1.4133944927702302e-211)
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                          	else
                          		tmp = t_1;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t * N[(1.0 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -7.623226303312042e-196], t$95$1, If[Less[t$95$2, 1.4133944927702302e-211], N[(N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision] + (-N[(N[(t * x), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], t$95$1]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\
                          t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\
                          \mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\
                          \;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          

                          Reproduce

                          ?
                          herbie shell --seed 2024277 
                          (FPCore (x y z t)
                            :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C"
                            :precision binary64
                          
                            :alt
                            (! :herbie-platform default (if (< (* x (- (/ y z) (/ t (- 1 z)))) -3811613151656021/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* x (- (/ y z) (* t (/ 1 (- 1 z))))) (if (< (* x (- (/ y z) (/ t (- 1 z)))) 7066972463851151/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (/ (* y x) z) (- (/ (* t x) (- 1 z)))) (* x (- (/ y z) (* t (/ 1 (- 1 z))))))))
                          
                            (* x (- (/ y z) (/ t (- 1.0 z)))))