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

Percentage Accurate: 94.5% → 97.9%
Time: 7.1s
Alternatives: 13
Speedup: 0.3×

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 13 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.5% 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: 97.9% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z} - \frac{t}{1 - z}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\left(\left(-y\right) \cdot x\right) \cdot \frac{-1}{z}\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+281}:\\ \;\;\;\;x \cdot t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (/ y z) (/ t (- 1.0 z)))))
   (if (<= t_1 (- INFINITY))
     (* (* (- y) x) (/ -1.0 z))
     (if (<= t_1 2e+281) (* x t_1) (* (/ x z) y)))))
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 = (-y * x) * (-1.0 / z);
	} else if (t_1 <= 2e+281) {
		tmp = x * t_1;
	} else {
		tmp = (x / z) * y;
	}
	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 = (-y * x) * (-1.0 / z);
	} else if (t_1 <= 2e+281) {
		tmp = x * t_1;
	} else {
		tmp = (x / z) * y;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (y / z) - (t / (1.0 - z))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = (-y * x) * (-1.0 / z)
	elif t_1 <= 2e+281:
		tmp = x * t_1
	else:
		tmp = (x / z) * y
	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(Float64(-y) * x) * Float64(-1.0 / z));
	elseif (t_1 <= 2e+281)
		tmp = Float64(x * t_1);
	else
		tmp = Float64(Float64(x / z) * y);
	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 = (-y * x) * (-1.0 / z);
	elseif (t_1 <= 2e+281)
		tmp = x * t_1;
	else
		tmp = (x / z) * y;
	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[((-y) * x), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+281], N[(x * t$95$1), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+281}:\\
\;\;\;\;x \cdot t\_1\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot y\\


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

    1. Initial program 60.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\left(-y\right) \cdot x\right) \cdot \frac{-1}{z} \]
      3. Step-by-step derivation
        1. Applied rewrites99.9%

          \[\leadsto \left(\left(-y\right) \cdot x\right) \cdot \frac{-1}{z} \]

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

        1. Initial program 97.7%

          \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
        2. Add Preprocessing

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

        1. Initial program 60.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{z} \cdot y \]
        8. Recombined 3 regimes into one program.
        9. Add Preprocessing

        Alternative 2: 77.9% accurate, 0.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{elif}\;z \leq -92000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.45 \cdot 10^{-68}:\\ \;\;\;\;\frac{t \cdot x}{-1 + z}\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{-20}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (let* ((t_1 (/ (* (+ t y) x) z)))
           (if (<= z -4.5e+237)
             (* (/ x z) (+ t y))
             (if (<= z -92000000.0)
               t_1
               (if (<= z -1.45e-68)
                 (/ (* t x) (+ -1.0 z))
                 (if (<= z 6.6e-20) (/ (* y x) z) t_1))))))
        double code(double x, double y, double z, double t) {
        	double t_1 = ((t + y) * x) / z;
        	double tmp;
        	if (z <= -4.5e+237) {
        		tmp = (x / z) * (t + y);
        	} else if (z <= -92000000.0) {
        		tmp = t_1;
        	} else if (z <= -1.45e-68) {
        		tmp = (t * x) / (-1.0 + z);
        	} else if (z <= 6.6e-20) {
        		tmp = (y * x) / 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 = ((t + y) * x) / z
            if (z <= (-4.5d+237)) then
                tmp = (x / z) * (t + y)
            else if (z <= (-92000000.0d0)) then
                tmp = t_1
            else if (z <= (-1.45d-68)) then
                tmp = (t * x) / ((-1.0d0) + z)
            else if (z <= 6.6d-20) then
                tmp = (y * x) / 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 = ((t + y) * x) / z;
        	double tmp;
        	if (z <= -4.5e+237) {
        		tmp = (x / z) * (t + y);
        	} else if (z <= -92000000.0) {
        		tmp = t_1;
        	} else if (z <= -1.45e-68) {
        		tmp = (t * x) / (-1.0 + z);
        	} else if (z <= 6.6e-20) {
        		tmp = (y * x) / z;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	t_1 = ((t + y) * x) / z
        	tmp = 0
        	if z <= -4.5e+237:
        		tmp = (x / z) * (t + y)
        	elif z <= -92000000.0:
        		tmp = t_1
        	elif z <= -1.45e-68:
        		tmp = (t * x) / (-1.0 + z)
        	elif z <= 6.6e-20:
        		tmp = (y * x) / z
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t)
        	t_1 = Float64(Float64(Float64(t + y) * x) / z)
        	tmp = 0.0
        	if (z <= -4.5e+237)
        		tmp = Float64(Float64(x / z) * Float64(t + y));
        	elseif (z <= -92000000.0)
        		tmp = t_1;
        	elseif (z <= -1.45e-68)
        		tmp = Float64(Float64(t * x) / Float64(-1.0 + z));
        	elseif (z <= 6.6e-20)
        		tmp = Float64(Float64(y * x) / z);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t)
        	t_1 = ((t + y) * x) / z;
        	tmp = 0.0;
        	if (z <= -4.5e+237)
        		tmp = (x / z) * (t + y);
        	elseif (z <= -92000000.0)
        		tmp = t_1;
        	elseif (z <= -1.45e-68)
        		tmp = (t * x) / (-1.0 + z);
        	elseif (z <= 6.6e-20)
        		tmp = (y * x) / z;
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -4.5e+237], N[(N[(x / z), $MachinePrecision] * N[(t + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -92000000.0], t$95$1, If[LessEqual[z, -1.45e-68], N[(N[(t * x), $MachinePrecision] / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-20], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{\left(t + y\right) \cdot x}{z}\\
        \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\
        \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\
        
        \mathbf{elif}\;z \leq -92000000:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;z \leq -1.45 \cdot 10^{-68}:\\
        \;\;\;\;\frac{t \cdot x}{-1 + z}\\
        
        \mathbf{elif}\;z \leq 6.6 \cdot 10^{-20}:\\
        \;\;\;\;\frac{y \cdot x}{z}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if z < -4.49999999999999964e237

          1. Initial program 99.8%

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

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

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

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

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

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

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

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

              \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
            8. lower-+.f6452.5

              \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
          5. Applied rewrites52.5%

            \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
          6. Step-by-step derivation
            1. Applied rewrites85.2%

              \[\leadsto \frac{x}{z} \cdot \color{blue}{\left(t + y\right)} \]

            if -4.49999999999999964e237 < z < -9.2e7 or 6.6e-20 < 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 \color{blue}{\frac{x \cdot \left(y - -1 \cdot t\right)}{z}} \]
            4. Step-by-step derivation
              1. lower-/.f64N/A

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

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

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

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

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

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

                \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
              8. lower-+.f6490.5

                \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
            5. Applied rewrites90.5%

              \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]

            if -9.2e7 < z < -1.45e-68

            1. Initial program 99.9%

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

              \[\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. *-lft-identityN/A

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

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

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

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

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

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

                \[\leadsto \frac{t \cdot x}{-1 + \color{blue}{z}} \]
              12. lower-+.f6476.3

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

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

            if -1.45e-68 < z < 6.6e-20

            1. Initial program 87.1%

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

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

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

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

                \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
              4. lower-/.f6468.6

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

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

                \[\leadsto \frac{y \cdot x}{\color{blue}{z}} \]
            7. Recombined 4 regimes into one program.
            8. Add Preprocessing

            Alternative 3: 89.9% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{elif}\;z \leq -1 \lor \neg \left(z \leq 6.6 \cdot 10^{-20}\right):\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \left(y - t \cdot z\right)}{z}\\ \end{array} \end{array} \]
            (FPCore (x y z t)
             :precision binary64
             (if (<= z -4.5e+237)
               (* (/ x z) (+ t y))
               (if (or (<= z -1.0) (not (<= z 6.6e-20)))
                 (/ (* (+ t y) x) z)
                 (/ (* x (- y (* t z))) z))))
            double code(double x, double y, double z, double t) {
            	double tmp;
            	if (z <= -4.5e+237) {
            		tmp = (x / z) * (t + y);
            	} else if ((z <= -1.0) || !(z <= 6.6e-20)) {
            		tmp = ((t + y) * x) / z;
            	} else {
            		tmp = (x * (y - (t * z))) / z;
            	}
            	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 <= (-4.5d+237)) then
                    tmp = (x / z) * (t + y)
                else if ((z <= (-1.0d0)) .or. (.not. (z <= 6.6d-20))) then
                    tmp = ((t + y) * x) / z
                else
                    tmp = (x * (y - (t * z))) / z
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t) {
            	double tmp;
            	if (z <= -4.5e+237) {
            		tmp = (x / z) * (t + y);
            	} else if ((z <= -1.0) || !(z <= 6.6e-20)) {
            		tmp = ((t + y) * x) / z;
            	} else {
            		tmp = (x * (y - (t * z))) / z;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t):
            	tmp = 0
            	if z <= -4.5e+237:
            		tmp = (x / z) * (t + y)
            	elif (z <= -1.0) or not (z <= 6.6e-20):
            		tmp = ((t + y) * x) / z
            	else:
            		tmp = (x * (y - (t * z))) / z
            	return tmp
            
            function code(x, y, z, t)
            	tmp = 0.0
            	if (z <= -4.5e+237)
            		tmp = Float64(Float64(x / z) * Float64(t + y));
            	elseif ((z <= -1.0) || !(z <= 6.6e-20))
            		tmp = Float64(Float64(Float64(t + y) * x) / z);
            	else
            		tmp = Float64(Float64(x * Float64(y - Float64(t * z))) / z);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t)
            	tmp = 0.0;
            	if (z <= -4.5e+237)
            		tmp = (x / z) * (t + y);
            	elseif ((z <= -1.0) || ~((z <= 6.6e-20)))
            		tmp = ((t + y) * x) / z;
            	else
            		tmp = (x * (y - (t * z))) / z;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_] := If[LessEqual[z, -4.5e+237], N[(N[(x / z), $MachinePrecision] * N[(t + y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 6.6e-20]], $MachinePrecision]], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], N[(N[(x * N[(y - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\
            \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\
            
            \mathbf{elif}\;z \leq -1 \lor \neg \left(z \leq 6.6 \cdot 10^{-20}\right):\\
            \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{x \cdot \left(y - t \cdot z\right)}{z}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -4.49999999999999964e237

              1. Initial program 99.8%

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                8. lower-+.f6452.5

                  \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
              5. Applied rewrites52.5%

                \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
              6. Step-by-step derivation
                1. Applied rewrites85.2%

                  \[\leadsto \frac{x}{z} \cdot \color{blue}{\left(t + y\right)} \]

                if -4.49999999999999964e237 < z < -1 or 6.6e-20 < z

                1. Initial program 96.1%

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

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

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

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

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

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

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

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

                    \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                  8. lower-+.f6489.8

                    \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                5. Applied rewrites89.8%

                  \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]

                if -1 < z < 6.6e-20

                1. Initial program 88.6%

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \frac{x \cdot \left(y + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot z\right)}{z} \]
                  12. fp-cancel-sub-signN/A

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

                    \[\leadsto \frac{x \cdot \color{blue}{\left(y - t \cdot z\right)}}{z} \]
                  14. lower-*.f6495.5

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

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - t \cdot z\right)}{z}} \]
              7. Recombined 3 regimes into one program.
              8. Final simplification92.1%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{elif}\;z \leq -1 \lor \neg \left(z \leq 6.6 \cdot 10^{-20}\right):\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \left(y - t \cdot z\right)}{z}\\ \end{array} \]
              9. Add Preprocessing

              Alternative 4: 88.8% accurate, 0.9× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{elif}\;z \leq -0.9 \lor \neg \left(z \leq 400\right):\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (if (<= z -4.5e+237)
                 (* (/ x z) (+ t y))
                 (if (or (<= z -0.9) (not (<= z 400.0)))
                   (/ (* (+ t y) x) z)
                   (* x (- (/ y z) t)))))
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if (z <= -4.5e+237) {
              		tmp = (x / z) * (t + y);
              	} else if ((z <= -0.9) || !(z <= 400.0)) {
              		tmp = ((t + y) * x) / z;
              	} else {
              		tmp = x * ((y / z) - t);
              	}
              	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 <= (-4.5d+237)) then
                      tmp = (x / z) * (t + y)
                  else if ((z <= (-0.9d0)) .or. (.not. (z <= 400.0d0))) then
                      tmp = ((t + y) * x) / z
                  else
                      tmp = x * ((y / z) - t)
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double tmp;
              	if (z <= -4.5e+237) {
              		tmp = (x / z) * (t + y);
              	} else if ((z <= -0.9) || !(z <= 400.0)) {
              		tmp = ((t + y) * x) / z;
              	} else {
              		tmp = x * ((y / z) - t);
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	tmp = 0
              	if z <= -4.5e+237:
              		tmp = (x / z) * (t + y)
              	elif (z <= -0.9) or not (z <= 400.0):
              		tmp = ((t + y) * x) / z
              	else:
              		tmp = x * ((y / z) - t)
              	return tmp
              
              function code(x, y, z, t)
              	tmp = 0.0
              	if (z <= -4.5e+237)
              		tmp = Float64(Float64(x / z) * Float64(t + y));
              	elseif ((z <= -0.9) || !(z <= 400.0))
              		tmp = Float64(Float64(Float64(t + y) * x) / z);
              	else
              		tmp = Float64(x * Float64(Float64(y / z) - t));
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	tmp = 0.0;
              	if (z <= -4.5e+237)
              		tmp = (x / z) * (t + y);
              	elseif ((z <= -0.9) || ~((z <= 400.0)))
              		tmp = ((t + y) * x) / z;
              	else
              		tmp = x * ((y / z) - t);
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := If[LessEqual[z, -4.5e+237], N[(N[(x / z), $MachinePrecision] * N[(t + y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -0.9], N[Not[LessEqual[z, 400.0]], $MachinePrecision]], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\
              \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\
              
              \mathbf{elif}\;z \leq -0.9 \lor \neg \left(z \leq 400\right):\\
              \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
              
              \mathbf{else}:\\
              \;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if z < -4.49999999999999964e237

                1. Initial program 99.8%

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

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

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

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

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

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

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

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

                    \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                  8. lower-+.f6452.5

                    \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                5. Applied rewrites52.5%

                  \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                6. Step-by-step derivation
                  1. Applied rewrites85.2%

                    \[\leadsto \frac{x}{z} \cdot \color{blue}{\left(t + y\right)} \]

                  if -4.49999999999999964e237 < z < -0.900000000000000022 or 400 < z

                  1. Initial program 95.9%

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                    8. lower-+.f6489.2

                      \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                  5. Applied rewrites89.2%

                    \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]

                  if -0.900000000000000022 < z < 400

                  1. Initial program 89.2%

                    \[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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

                    \[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} - t\right)} \]
                7. Recombined 3 regimes into one program.
                8. Final simplification88.5%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+237}:\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{elif}\;z \leq -0.9 \lor \neg \left(z \leq 400\right):\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\ \end{array} \]
                9. Add Preprocessing

                Alternative 5: 77.9% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{if}\;z \leq -92000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.45 \cdot 10^{-68}:\\ \;\;\;\;\frac{t \cdot x}{-1 + z}\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{-20}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (let* ((t_1 (* (/ x z) (+ t y))))
                   (if (<= z -92000000.0)
                     t_1
                     (if (<= z -1.45e-68)
                       (/ (* t x) (+ -1.0 z))
                       (if (<= z 5.5e-20) (/ (* y x) z) t_1)))))
                double code(double x, double y, double z, double t) {
                	double t_1 = (x / z) * (t + y);
                	double tmp;
                	if (z <= -92000000.0) {
                		tmp = t_1;
                	} else if (z <= -1.45e-68) {
                		tmp = (t * x) / (-1.0 + z);
                	} else if (z <= 5.5e-20) {
                		tmp = (y * x) / 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) * (t + y)
                    if (z <= (-92000000.0d0)) then
                        tmp = t_1
                    else if (z <= (-1.45d-68)) then
                        tmp = (t * x) / ((-1.0d0) + z)
                    else if (z <= 5.5d-20) then
                        tmp = (y * x) / 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) * (t + y);
                	double tmp;
                	if (z <= -92000000.0) {
                		tmp = t_1;
                	} else if (z <= -1.45e-68) {
                		tmp = (t * x) / (-1.0 + z);
                	} else if (z <= 5.5e-20) {
                		tmp = (y * x) / z;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t):
                	t_1 = (x / z) * (t + y)
                	tmp = 0
                	if z <= -92000000.0:
                		tmp = t_1
                	elif z <= -1.45e-68:
                		tmp = (t * x) / (-1.0 + z)
                	elif z <= 5.5e-20:
                		tmp = (y * x) / z
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t)
                	t_1 = Float64(Float64(x / z) * Float64(t + y))
                	tmp = 0.0
                	if (z <= -92000000.0)
                		tmp = t_1;
                	elseif (z <= -1.45e-68)
                		tmp = Float64(Float64(t * x) / Float64(-1.0 + z));
                	elseif (z <= 5.5e-20)
                		tmp = Float64(Float64(y * x) / z);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t)
                	t_1 = (x / z) * (t + y);
                	tmp = 0.0;
                	if (z <= -92000000.0)
                		tmp = t_1;
                	elseif (z <= -1.45e-68)
                		tmp = (t * x) / (-1.0 + z);
                	elseif (z <= 5.5e-20)
                		tmp = (y * x) / z;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * N[(t + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -92000000.0], t$95$1, If[LessEqual[z, -1.45e-68], N[(N[(t * x), $MachinePrecision] / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e-20], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{x}{z} \cdot \left(t + y\right)\\
                \mathbf{if}\;z \leq -92000000:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq -1.45 \cdot 10^{-68}:\\
                \;\;\;\;\frac{t \cdot x}{-1 + z}\\
                
                \mathbf{elif}\;z \leq 5.5 \cdot 10^{-20}:\\
                \;\;\;\;\frac{y \cdot x}{z}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -9.2e7 or 5.4999999999999996e-20 < z

                  1. Initial program 96.4%

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                    8. lower-+.f6486.6

                      \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                  5. Applied rewrites86.6%

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

                      \[\leadsto \frac{x}{z} \cdot \color{blue}{\left(t + y\right)} \]

                    if -9.2e7 < z < -1.45e-68

                    1. Initial program 99.9%

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

                      \[\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. *-lft-identityN/A

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

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

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

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

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

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

                        \[\leadsto \frac{t \cdot x}{-1 + \color{blue}{z}} \]
                      12. lower-+.f6476.3

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

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

                    if -1.45e-68 < z < 5.4999999999999996e-20

                    1. Initial program 87.1%

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

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

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

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

                        \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                      4. lower-/.f6468.6

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

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

                        \[\leadsto \frac{y \cdot x}{\color{blue}{z}} \]
                    7. Recombined 3 regimes into one program.
                    8. Add Preprocessing

                    Alternative 6: 78.6% accurate, 1.1× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.8 \cdot 10^{-70} \lor \neg \left(z \leq 5.5 \cdot 10^{-20}\right):\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \end{array} \]
                    (FPCore (x y z t)
                     :precision binary64
                     (if (or (<= z -4.8e-70) (not (<= z 5.5e-20)))
                       (* (/ x z) (+ t y))
                       (/ (* y x) z)))
                    double code(double x, double y, double z, double t) {
                    	double tmp;
                    	if ((z <= -4.8e-70) || !(z <= 5.5e-20)) {
                    		tmp = (x / z) * (t + y);
                    	} else {
                    		tmp = (y * x) / z;
                    	}
                    	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 <= (-4.8d-70)) .or. (.not. (z <= 5.5d-20))) then
                            tmp = (x / z) * (t + y)
                        else
                            tmp = (y * x) / z
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t) {
                    	double tmp;
                    	if ((z <= -4.8e-70) || !(z <= 5.5e-20)) {
                    		tmp = (x / z) * (t + y);
                    	} else {
                    		tmp = (y * x) / z;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t):
                    	tmp = 0
                    	if (z <= -4.8e-70) or not (z <= 5.5e-20):
                    		tmp = (x / z) * (t + y)
                    	else:
                    		tmp = (y * x) / z
                    	return tmp
                    
                    function code(x, y, z, t)
                    	tmp = 0.0
                    	if ((z <= -4.8e-70) || !(z <= 5.5e-20))
                    		tmp = Float64(Float64(x / z) * Float64(t + y));
                    	else
                    		tmp = Float64(Float64(y * x) / z);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t)
                    	tmp = 0.0;
                    	if ((z <= -4.8e-70) || ~((z <= 5.5e-20)))
                    		tmp = (x / z) * (t + y);
                    	else
                    		tmp = (y * x) / z;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.8e-70], N[Not[LessEqual[z, 5.5e-20]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * N[(t + y), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;z \leq -4.8 \cdot 10^{-70} \lor \neg \left(z \leq 5.5 \cdot 10^{-20}\right):\\
                    \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{y \cdot x}{z}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if z < -4.8000000000000002e-70 or 5.4999999999999996e-20 < z

                      1. Initial program 96.7%

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                      5. Applied rewrites82.1%

                        \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                      6. Step-by-step derivation
                        1. Applied rewrites79.7%

                          \[\leadsto \frac{x}{z} \cdot \color{blue}{\left(t + y\right)} \]

                        if -4.8000000000000002e-70 < z < 5.4999999999999996e-20

                        1. Initial program 87.1%

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

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

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

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

                            \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                          4. lower-/.f6468.6

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

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

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.8 \cdot 10^{-70} \lor \neg \left(z \leq 5.5 \cdot 10^{-20}\right):\\ \;\;\;\;\frac{x}{z} \cdot \left(t + y\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 7: 67.8% accurate, 1.2× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{+73} \lor \neg \left(t \leq 5.4 \cdot 10^{+70}\right):\\ \;\;\;\;x \cdot \frac{t}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \end{array} \]
                        (FPCore (x y z t)
                         :precision binary64
                         (if (or (<= t -1.3e+73) (not (<= t 5.4e+70))) (* x (/ t z)) (/ (* y x) z)))
                        double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if ((t <= -1.3e+73) || !(t <= 5.4e+70)) {
                        		tmp = x * (t / z);
                        	} else {
                        		tmp = (y * x) / z;
                        	}
                        	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 ((t <= (-1.3d+73)) .or. (.not. (t <= 5.4d+70))) then
                                tmp = x * (t / z)
                            else
                                tmp = (y * x) / z
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if ((t <= -1.3e+73) || !(t <= 5.4e+70)) {
                        		tmp = x * (t / z);
                        	} else {
                        		tmp = (y * x) / z;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t):
                        	tmp = 0
                        	if (t <= -1.3e+73) or not (t <= 5.4e+70):
                        		tmp = x * (t / z)
                        	else:
                        		tmp = (y * x) / z
                        	return tmp
                        
                        function code(x, y, z, t)
                        	tmp = 0.0
                        	if ((t <= -1.3e+73) || !(t <= 5.4e+70))
                        		tmp = Float64(x * Float64(t / z));
                        	else
                        		tmp = Float64(Float64(y * x) / z);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t)
                        	tmp = 0.0;
                        	if ((t <= -1.3e+73) || ~((t <= 5.4e+70)))
                        		tmp = x * (t / z);
                        	else
                        		tmp = (y * x) / z;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.3e+73], N[Not[LessEqual[t, 5.4e+70]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;t \leq -1.3 \cdot 10^{+73} \lor \neg \left(t \leq 5.4 \cdot 10^{+70}\right):\\
                        \;\;\;\;x \cdot \frac{t}{z}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{y \cdot x}{z}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if t < -1.3e73 or 5.3999999999999999e70 < t

                          1. Initial program 95.9%

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

                            \[\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. *-lft-identityN/A

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

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

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

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

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

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

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

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

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

                            \[\leadsto x \cdot \frac{t}{\color{blue}{z}} \]
                          7. Step-by-step derivation
                            1. Applied rewrites63.4%

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

                            if -1.3e73 < t < 5.3999999999999999e70

                            1. Initial program 91.0%

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

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

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

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

                                \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                              4. lower-/.f6477.6

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

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{+73} \lor \neg \left(t \leq 5.4 \cdot 10^{+70}\right):\\ \;\;\;\;x \cdot \frac{t}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \]
                            9. Add Preprocessing

                            Alternative 8: 65.3% accurate, 1.2× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.7 \cdot 10^{+50} \lor \neg \left(t \leq 5.4 \cdot 10^{+70}\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \end{array} \end{array} \]
                            (FPCore (x y z t)
                             :precision binary64
                             (if (or (<= t -3.7e+50) (not (<= t 5.4e+70))) (* (/ x z) t) (* (/ y z) x)))
                            double code(double x, double y, double z, double t) {
                            	double tmp;
                            	if ((t <= -3.7e+50) || !(t <= 5.4e+70)) {
                            		tmp = (x / z) * t;
                            	} else {
                            		tmp = (y / z) * x;
                            	}
                            	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 ((t <= (-3.7d+50)) .or. (.not. (t <= 5.4d+70))) then
                                    tmp = (x / z) * t
                                else
                                    tmp = (y / z) * x
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t) {
                            	double tmp;
                            	if ((t <= -3.7e+50) || !(t <= 5.4e+70)) {
                            		tmp = (x / z) * t;
                            	} else {
                            		tmp = (y / z) * x;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t):
                            	tmp = 0
                            	if (t <= -3.7e+50) or not (t <= 5.4e+70):
                            		tmp = (x / z) * t
                            	else:
                            		tmp = (y / z) * x
                            	return tmp
                            
                            function code(x, y, z, t)
                            	tmp = 0.0
                            	if ((t <= -3.7e+50) || !(t <= 5.4e+70))
                            		tmp = Float64(Float64(x / z) * t);
                            	else
                            		tmp = Float64(Float64(y / z) * x);
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t)
                            	tmp = 0.0;
                            	if ((t <= -3.7e+50) || ~((t <= 5.4e+70)))
                            		tmp = (x / z) * t;
                            	else
                            		tmp = (y / z) * x;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_] := If[Or[LessEqual[t, -3.7e+50], N[Not[LessEqual[t, 5.4e+70]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;t \leq -3.7 \cdot 10^{+50} \lor \neg \left(t \leq 5.4 \cdot 10^{+70}\right):\\
                            \;\;\;\;\frac{x}{z} \cdot t\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\frac{y}{z} \cdot x\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t < -3.7000000000000001e50 or 5.3999999999999999e70 < t

                              1. Initial program 95.2%

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                8. lower-+.f6458.6

                                  \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                              5. Applied rewrites58.6%

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

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

                                  \[\leadsto \frac{t \cdot x}{\color{blue}{z}} \]
                                3. Step-by-step derivation
                                  1. Applied rewrites50.4%

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

                                  if -3.7000000000000001e50 < t < 5.3999999999999999e70

                                  1. Initial program 91.4%

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

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

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

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

                                      \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                                    4. lower-/.f6478.9

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.7 \cdot 10^{+50} \lor \neg \left(t \leq 5.4 \cdot 10^{+70}\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \end{array} \]
                                6. Add Preprocessing

                                Alternative 9: 64.9% accurate, 1.2× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5.7 \cdot 10^{+87} \lor \neg \left(t \leq 8 \cdot 10^{+70}\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \end{array} \]
                                (FPCore (x y z t)
                                 :precision binary64
                                 (if (or (<= t -5.7e+87) (not (<= t 8e+70))) (* (/ x z) t) (* (/ x z) y)))
                                double code(double x, double y, double z, double t) {
                                	double tmp;
                                	if ((t <= -5.7e+87) || !(t <= 8e+70)) {
                                		tmp = (x / z) * t;
                                	} else {
                                		tmp = (x / z) * 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 ((t <= (-5.7d+87)) .or. (.not. (t <= 8d+70))) then
                                        tmp = (x / z) * t
                                    else
                                        tmp = (x / z) * y
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t) {
                                	double tmp;
                                	if ((t <= -5.7e+87) || !(t <= 8e+70)) {
                                		tmp = (x / z) * t;
                                	} else {
                                		tmp = (x / z) * y;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t):
                                	tmp = 0
                                	if (t <= -5.7e+87) or not (t <= 8e+70):
                                		tmp = (x / z) * t
                                	else:
                                		tmp = (x / z) * y
                                	return tmp
                                
                                function code(x, y, z, t)
                                	tmp = 0.0
                                	if ((t <= -5.7e+87) || !(t <= 8e+70))
                                		tmp = Float64(Float64(x / z) * t);
                                	else
                                		tmp = Float64(Float64(x / z) * y);
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t)
                                	tmp = 0.0;
                                	if ((t <= -5.7e+87) || ~((t <= 8e+70)))
                                		tmp = (x / z) * t;
                                	else
                                		tmp = (x / z) * y;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_] := If[Or[LessEqual[t, -5.7e+87], N[Not[LessEqual[t, 8e+70]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;t \leq -5.7 \cdot 10^{+87} \lor \neg \left(t \leq 8 \cdot 10^{+70}\right):\\
                                \;\;\;\;\frac{x}{z} \cdot t\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\frac{x}{z} \cdot y\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -5.70000000000000039e87 or 8.00000000000000058e70 < t

                                  1. Initial program 95.9%

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

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

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

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

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

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

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

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

                                      \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                    8. lower-+.f6457.5

                                      \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                  5. Applied rewrites57.5%

                                    \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                                  6. Step-by-step derivation
                                    1. Applied rewrites21.5%

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

                                      \[\leadsto \frac{t \cdot x}{\color{blue}{z}} \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites50.7%

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

                                      if -5.70000000000000039e87 < t < 8.00000000000000058e70

                                      1. Initial program 91.1%

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(-1 \cdot \frac{x}{z} + \frac{t \cdot x}{y \cdot \left(1 - z\right)}\right)\right) \cdot y} \]
                                      5. Applied rewrites78.3%

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

                                        \[\leadsto \frac{x}{z} \cdot y \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites74.3%

                                          \[\leadsto \frac{x}{z} \cdot y \]
                                      8. Recombined 2 regimes into one program.
                                      9. Final simplification65.5%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.7 \cdot 10^{+87} \lor \neg \left(t \leq 8 \cdot 10^{+70}\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 10: 42.3% accurate, 1.2× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -0.75 \lor \neg \left(z \leq 0.084\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(-\mathsf{fma}\left(t, z, t\right)\right)\\ \end{array} \end{array} \]
                                      (FPCore (x y z t)
                                       :precision binary64
                                       (if (or (<= z -0.75) (not (<= z 0.084))) (* (/ x z) t) (* x (- (fma t z t)))))
                                      double code(double x, double y, double z, double t) {
                                      	double tmp;
                                      	if ((z <= -0.75) || !(z <= 0.084)) {
                                      		tmp = (x / z) * t;
                                      	} else {
                                      		tmp = x * -fma(t, z, t);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t)
                                      	tmp = 0.0
                                      	if ((z <= -0.75) || !(z <= 0.084))
                                      		tmp = Float64(Float64(x / z) * t);
                                      	else
                                      		tmp = Float64(x * Float64(-fma(t, z, t)));
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_] := If[Or[LessEqual[z, -0.75], N[Not[LessEqual[z, 0.084]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], N[(x * (-N[(t * z + t), $MachinePrecision])), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;z \leq -0.75 \lor \neg \left(z \leq 0.084\right):\\
                                      \;\;\;\;\frac{x}{z} \cdot t\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;x \cdot \left(-\mathsf{fma}\left(t, z, t\right)\right)\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if z < -0.75 or 0.0840000000000000052 < z

                                        1. Initial program 96.3%

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

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

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

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

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

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

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

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

                                            \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                          8. lower-+.f6485.6

                                            \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                        5. Applied rewrites85.6%

                                          \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                                        6. Step-by-step derivation
                                          1. Applied rewrites43.8%

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

                                            \[\leadsto \frac{t \cdot x}{\color{blue}{z}} \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites52.7%

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

                                            if -0.75 < z < 0.0840000000000000052

                                            1. Initial program 89.0%

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

                                              \[\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. *-lft-identityN/A

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

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

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

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

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

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

                                                \[\leadsto x \cdot \frac{t}{-1 + \color{blue}{z}} \]
                                              11. lower-+.f6428.4

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

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

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

                                                \[\leadsto x \cdot \left(-\mathsf{fma}\left(t, z, t\right)\right) \]
                                            8. Recombined 2 regimes into one program.
                                            9. Final simplification40.8%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -0.75 \lor \neg \left(z \leq 0.084\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(-\mathsf{fma}\left(t, z, t\right)\right)\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 11: 64.9% accurate, 1.2× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.1 \cdot 10^{+73}:\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{elif}\;t \leq 8.6 \cdot 10^{+70}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot x}{z}\\ \end{array} \end{array} \]
                                            (FPCore (x y z t)
                                             :precision binary64
                                             (if (<= t -2.1e+73)
                                               (* (/ x z) t)
                                               (if (<= t 8.6e+70) (/ (* y x) z) (/ (* t x) z))))
                                            double code(double x, double y, double z, double t) {
                                            	double tmp;
                                            	if (t <= -2.1e+73) {
                                            		tmp = (x / z) * t;
                                            	} else if (t <= 8.6e+70) {
                                            		tmp = (y * x) / z;
                                            	} else {
                                            		tmp = (t * x) / z;
                                            	}
                                            	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 (t <= (-2.1d+73)) then
                                                    tmp = (x / z) * t
                                                else if (t <= 8.6d+70) then
                                                    tmp = (y * x) / z
                                                else
                                                    tmp = (t * x) / z
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t) {
                                            	double tmp;
                                            	if (t <= -2.1e+73) {
                                            		tmp = (x / z) * t;
                                            	} else if (t <= 8.6e+70) {
                                            		tmp = (y * x) / z;
                                            	} else {
                                            		tmp = (t * x) / z;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t):
                                            	tmp = 0
                                            	if t <= -2.1e+73:
                                            		tmp = (x / z) * t
                                            	elif t <= 8.6e+70:
                                            		tmp = (y * x) / z
                                            	else:
                                            		tmp = (t * x) / z
                                            	return tmp
                                            
                                            function code(x, y, z, t)
                                            	tmp = 0.0
                                            	if (t <= -2.1e+73)
                                            		tmp = Float64(Float64(x / z) * t);
                                            	elseif (t <= 8.6e+70)
                                            		tmp = Float64(Float64(y * x) / z);
                                            	else
                                            		tmp = Float64(Float64(t * x) / z);
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t)
                                            	tmp = 0.0;
                                            	if (t <= -2.1e+73)
                                            		tmp = (x / z) * t;
                                            	elseif (t <= 8.6e+70)
                                            		tmp = (y * x) / z;
                                            	else
                                            		tmp = (t * x) / z;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_] := If[LessEqual[t, -2.1e+73], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 8.6e+70], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], N[(N[(t * x), $MachinePrecision] / z), $MachinePrecision]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;t \leq -2.1 \cdot 10^{+73}:\\
                                            \;\;\;\;\frac{x}{z} \cdot t\\
                                            
                                            \mathbf{elif}\;t \leq 8.6 \cdot 10^{+70}:\\
                                            \;\;\;\;\frac{y \cdot x}{z}\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\frac{t \cdot x}{z}\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if t < -2.1000000000000001e73

                                              1. Initial program 94.4%

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                              5. Applied rewrites54.1%

                                                \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                                              6. Step-by-step derivation
                                                1. Applied rewrites21.2%

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

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

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

                                                  if -2.1000000000000001e73 < t < 8.6000000000000002e70

                                                  1. Initial program 91.0%

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

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

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

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

                                                      \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                                                    4. lower-/.f6477.6

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

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

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

                                                    if 8.6000000000000002e70 < t

                                                    1. Initial program 97.7%

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

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

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

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

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

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

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

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

                                                        \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                                      8. lower-+.f6462.4

                                                        \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                                    5. Applied rewrites62.4%

                                                      \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                                                    6. Taylor expanded in y around 0

                                                      \[\leadsto \frac{t \cdot x}{z} \]
                                                    7. Step-by-step derivation
                                                      1. Applied rewrites53.7%

                                                        \[\leadsto \frac{t \cdot x}{z} \]
                                                    8. Recombined 3 regimes into one program.
                                                    9. Add Preprocessing

                                                    Alternative 12: 65.3% accurate, 1.2× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.7 \cdot 10^{+50}:\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{elif}\;t \leq 5.4 \cdot 10^{+70}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot x}{z}\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t)
                                                     :precision binary64
                                                     (if (<= t -3.7e+50)
                                                       (* (/ x z) t)
                                                       (if (<= t 5.4e+70) (* (/ y z) x) (/ (* t x) z))))
                                                    double code(double x, double y, double z, double t) {
                                                    	double tmp;
                                                    	if (t <= -3.7e+50) {
                                                    		tmp = (x / z) * t;
                                                    	} else if (t <= 5.4e+70) {
                                                    		tmp = (y / z) * x;
                                                    	} else {
                                                    		tmp = (t * x) / z;
                                                    	}
                                                    	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 (t <= (-3.7d+50)) then
                                                            tmp = (x / z) * t
                                                        else if (t <= 5.4d+70) then
                                                            tmp = (y / z) * x
                                                        else
                                                            tmp = (t * x) / z
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y, double z, double t) {
                                                    	double tmp;
                                                    	if (t <= -3.7e+50) {
                                                    		tmp = (x / z) * t;
                                                    	} else if (t <= 5.4e+70) {
                                                    		tmp = (y / z) * x;
                                                    	} else {
                                                    		tmp = (t * x) / z;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t):
                                                    	tmp = 0
                                                    	if t <= -3.7e+50:
                                                    		tmp = (x / z) * t
                                                    	elif t <= 5.4e+70:
                                                    		tmp = (y / z) * x
                                                    	else:
                                                    		tmp = (t * x) / z
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t)
                                                    	tmp = 0.0
                                                    	if (t <= -3.7e+50)
                                                    		tmp = Float64(Float64(x / z) * t);
                                                    	elseif (t <= 5.4e+70)
                                                    		tmp = Float64(Float64(y / z) * x);
                                                    	else
                                                    		tmp = Float64(Float64(t * x) / z);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t)
                                                    	tmp = 0.0;
                                                    	if (t <= -3.7e+50)
                                                    		tmp = (x / z) * t;
                                                    	elseif (t <= 5.4e+70)
                                                    		tmp = (y / z) * x;
                                                    	else
                                                    		tmp = (t * x) / z;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_] := If[LessEqual[t, -3.7e+50], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 5.4e+70], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], N[(N[(t * x), $MachinePrecision] / z), $MachinePrecision]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;t \leq -3.7 \cdot 10^{+50}:\\
                                                    \;\;\;\;\frac{x}{z} \cdot t\\
                                                    
                                                    \mathbf{elif}\;t \leq 5.4 \cdot 10^{+70}:\\
                                                    \;\;\;\;\frac{y}{z} \cdot x\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\frac{t \cdot x}{z}\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if t < -3.7000000000000001e50

                                                      1. Initial program 93.2%

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

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

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

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

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

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

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

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

                                                          \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                                        8. lower-+.f6455.6

                                                          \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                                      5. Applied rewrites55.6%

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

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

                                                          \[\leadsto \frac{t \cdot x}{\color{blue}{z}} \]
                                                        3. Step-by-step derivation
                                                          1. Applied rewrites54.6%

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

                                                          if -3.7000000000000001e50 < t < 5.3999999999999999e70

                                                          1. Initial program 91.4%

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

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

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

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

                                                              \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                                                            4. lower-/.f6478.9

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

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

                                                          if 5.3999999999999999e70 < t

                                                          1. Initial program 97.7%

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

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

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

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

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

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

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

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

                                                              \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                                            8. lower-+.f6462.4

                                                              \[\leadsto \frac{\color{blue}{\left(t + y\right)} \cdot x}{z} \]
                                                          5. Applied rewrites62.4%

                                                            \[\leadsto \color{blue}{\frac{\left(t + y\right) \cdot x}{z}} \]
                                                          6. Taylor expanded in y around 0

                                                            \[\leadsto \frac{t \cdot x}{z} \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites53.7%

                                                              \[\leadsto \frac{t \cdot x}{z} \]
                                                          8. Recombined 3 regimes into one program.
                                                          9. Add Preprocessing

                                                          Alternative 13: 22.8% accurate, 4.3× speedup?

                                                          \[\begin{array}{l} \\ x \cdot \left(-t\right) \end{array} \]
                                                          (FPCore (x y z t) :precision binary64 (* x (- t)))
                                                          double code(double x, double y, double z, double t) {
                                                          	return x * -t;
                                                          }
                                                          
                                                          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 * -t
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t) {
                                                          	return x * -t;
                                                          }
                                                          
                                                          def code(x, y, z, t):
                                                          	return x * -t
                                                          
                                                          function code(x, y, z, t)
                                                          	return Float64(x * Float64(-t))
                                                          end
                                                          
                                                          function tmp = code(x, y, z, t)
                                                          	tmp = x * -t;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_] := N[(x * (-t)), $MachinePrecision]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          x \cdot \left(-t\right)
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Initial program 92.9%

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

                                                            \[\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. *-lft-identityN/A

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

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

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

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

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

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

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

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

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

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

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

                                                            Developer Target 1: 94.9% 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 2024320 
                                                            (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)))))