Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B

Percentage Accurate: 89.3% → 97.9%
Time: 10.9s
Alternatives: 14
Speedup: 1.0×

Specification

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

\\
\frac{x}{\left(y - z\right) \cdot \left(t - 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 14 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: 89.3% accurate, 1.0× speedup?

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

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

Alternative 1: 97.9% accurate, 0.4× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{x\_m}{\left(y - z\right) \cdot \left(t - z\right)}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -5 \cdot 10^{-270}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x\_m}{t - z}}{y - z}\\ \end{array} \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (let* ((t_1 (/ x_m (* (- y z) (- t z)))))
   (* x_s (if (<= t_1 -5e-270) t_1 (/ (/ x_m (- t z)) (- y z))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = x_m / ((y - z) * (t - z));
	double tmp;
	if (t_1 <= -5e-270) {
		tmp = t_1;
	} else {
		tmp = (x_m / (t - z)) / (y - z);
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
    real(8), intent (in) :: x_s
    real(8), intent (in) :: x_m
    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_m / ((y - z) * (t - z))
    if (t_1 <= (-5d-270)) then
        tmp = t_1
    else
        tmp = (x_m / (t - z)) / (y - z)
    end if
    code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = x_m / ((y - z) * (t - z));
	double tmp;
	if (t_1 <= -5e-270) {
		tmp = t_1;
	} else {
		tmp = (x_m / (t - z)) / (y - z);
	}
	return x_s * tmp;
}
x\_m = math.fabs(x)
x\_s = math.copysign(1.0, x)
def code(x_s, x_m, y, z, t):
	t_1 = x_m / ((y - z) * (t - z))
	tmp = 0
	if t_1 <= -5e-270:
		tmp = t_1
	else:
		tmp = (x_m / (t - z)) / (y - z)
	return x_s * tmp
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	t_1 = Float64(x_m / Float64(Float64(y - z) * Float64(t - z)))
	tmp = 0.0
	if (t_1 <= -5e-270)
		tmp = t_1;
	else
		tmp = Float64(Float64(x_m / Float64(t - z)) / Float64(y - z));
	end
	return Float64(x_s * tmp)
end
x\_m = abs(x);
x\_s = sign(x) * abs(1.0);
function tmp_2 = code(x_s, x_m, y, z, t)
	t_1 = x_m / ((y - z) * (t - z));
	tmp = 0.0;
	if (t_1 <= -5e-270)
		tmp = t_1;
	else
		tmp = (x_m / (t - z)) / (y - z);
	end
	tmp_2 = x_s * tmp;
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, -5e-270], t$95$1, N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

\\
\begin{array}{l}
t_1 := \frac{x\_m}{\left(y - z\right) \cdot \left(t - z\right)}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-270}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{t - z}}{y - z}\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 x (*.f64 (-.f64 y z) (-.f64 t z))) < -4.9999999999999998e-270

    1. Initial program 96.9%

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

    if -4.9999999999999998e-270 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 t z)))

    1. Initial program 87.9%

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

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

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{t - z}\right), \color{blue}{\left(y - z\right)}\right) \]
      3. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(t - z\right)\right), \left(\color{blue}{y} - z\right)\right) \]
      4. --lowering--.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(t, z\right)\right), \left(y - z\right)\right) \]
      5. --lowering--.f6497.2%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(t, z\right)\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right) \]
    4. Applied egg-rr97.2%

      \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 2: 92.8% accurate, 0.3× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \left(y - z\right) \cdot \left(t - z\right)\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\frac{\frac{x\_m}{y - z}}{t}\\ \mathbf{elif}\;t\_1 \leq 10^{+298}:\\ \;\;\;\;\frac{x\_m}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x\_m}{z}}{z - t}\\ \end{array} \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (let* ((t_1 (* (- y z) (- t z))))
   (*
    x_s
    (if (<= t_1 (- INFINITY))
      (/ (/ x_m (- y z)) t)
      (if (<= t_1 1e+298) (/ x_m t_1) (/ (/ x_m z) (- z t)))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = (y - z) * (t - z);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = (x_m / (y - z)) / t;
	} else if (t_1 <= 1e+298) {
		tmp = x_m / t_1;
	} else {
		tmp = (x_m / z) / (z - t);
	}
	return x_s * tmp;
}
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = (y - z) * (t - z);
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = (x_m / (y - z)) / t;
	} else if (t_1 <= 1e+298) {
		tmp = x_m / t_1;
	} else {
		tmp = (x_m / z) / (z - t);
	}
	return x_s * tmp;
}
x\_m = math.fabs(x)
x\_s = math.copysign(1.0, x)
def code(x_s, x_m, y, z, t):
	t_1 = (y - z) * (t - z)
	tmp = 0
	if t_1 <= -math.inf:
		tmp = (x_m / (y - z)) / t
	elif t_1 <= 1e+298:
		tmp = x_m / t_1
	else:
		tmp = (x_m / z) / (z - t)
	return x_s * tmp
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	t_1 = Float64(Float64(y - z) * Float64(t - z))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(x_m / Float64(y - z)) / t);
	elseif (t_1 <= 1e+298)
		tmp = Float64(x_m / t_1);
	else
		tmp = Float64(Float64(x_m / z) / Float64(z - t));
	end
	return Float64(x_s * tmp)
end
x\_m = abs(x);
x\_s = sign(x) * abs(1.0);
function tmp_2 = code(x_s, x_m, y, z, t)
	t_1 = (y - z) * (t - z);
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = (x_m / (y - z)) / t;
	elseif (t_1 <= 1e+298)
		tmp = x_m / t_1;
	else
		tmp = (x_m / z) / (z - t);
	end
	tmp_2 = x_s * tmp;
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, (-Infinity)], N[(N[(x$95$m / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 1e+298], N[(x$95$m / t$95$1), $MachinePrecision], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

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

\mathbf{elif}\;t\_1 \leq 10^{+298}:\\
\;\;\;\;\frac{x\_m}{t\_1}\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - t}\\


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

    1. Initial program 65.7%

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

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

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

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

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{t}\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), t\right) \]
      5. --lowering--.f6492.9%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), t\right) \]
    5. Simplified92.9%

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

    if -inf.0 < (*.f64 (-.f64 y z) (-.f64 t z)) < 9.9999999999999996e297

    1. Initial program 98.5%

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

    if 9.9999999999999996e297 < (*.f64 (-.f64 y z) (-.f64 t z))

    1. Initial program 78.5%

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

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

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
      3. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
      4. --lowering--.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
      5. --lowering--.f6499.9%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
    4. Applied egg-rr99.9%

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

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

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

        \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
      3. distribute-neg-frac2N/A

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

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

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
      6. neg-lowering-neg.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
      7. --lowering--.f6494.5%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
    7. Simplified94.5%

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

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{z}\right), \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right) \]
      2. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
      3. neg-sub0N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \color{blue}{\left(t - z\right)}\right)\right) \]
      4. sub-negN/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right) \]
      5. +-commutativeN/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right) \]
      6. associate--r+N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right) \]
      7. neg-sub0N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right) \]
      8. remove-double-negN/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(z - t\right)\right) \]
      9. --lowering--.f6494.5%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right) \]
    9. Applied egg-rr94.5%

      \[\leadsto \color{blue}{\frac{\frac{x}{z}}{z - t}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 3: 74.4% accurate, 0.3× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\frac{x\_m}{z}}{z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.05 \cdot 10^{-193}:\\ \;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{+43}:\\ \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+128}:\\ \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (let* ((t_1 (/ (/ x_m z) z)))
   (*
    x_s
    (if (<= z -1.3e+72)
      t_1
      (if (<= z -2.05e-193)
        (/ x_m (* (- y z) t))
        (if (<= z 8.5e+43)
          (/ x_m (* y (- t z)))
          (if (<= z 5e+128) (/ x_m (* z (- z t))) t_1)))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = (x_m / z) / z;
	double tmp;
	if (z <= -1.3e+72) {
		tmp = t_1;
	} else if (z <= -2.05e-193) {
		tmp = x_m / ((y - z) * t);
	} else if (z <= 8.5e+43) {
		tmp = x_m / (y * (t - z));
	} else if (z <= 5e+128) {
		tmp = x_m / (z * (z - t));
	} else {
		tmp = t_1;
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
    real(8), intent (in) :: x_s
    real(8), intent (in) :: x_m
    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_m / z) / z
    if (z <= (-1.3d+72)) then
        tmp = t_1
    else if (z <= (-2.05d-193)) then
        tmp = x_m / ((y - z) * t)
    else if (z <= 8.5d+43) then
        tmp = x_m / (y * (t - z))
    else if (z <= 5d+128) then
        tmp = x_m / (z * (z - t))
    else
        tmp = t_1
    end if
    code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = (x_m / z) / z;
	double tmp;
	if (z <= -1.3e+72) {
		tmp = t_1;
	} else if (z <= -2.05e-193) {
		tmp = x_m / ((y - z) * t);
	} else if (z <= 8.5e+43) {
		tmp = x_m / (y * (t - z));
	} else if (z <= 5e+128) {
		tmp = x_m / (z * (z - t));
	} else {
		tmp = t_1;
	}
	return x_s * tmp;
}
x\_m = math.fabs(x)
x\_s = math.copysign(1.0, x)
def code(x_s, x_m, y, z, t):
	t_1 = (x_m / z) / z
	tmp = 0
	if z <= -1.3e+72:
		tmp = t_1
	elif z <= -2.05e-193:
		tmp = x_m / ((y - z) * t)
	elif z <= 8.5e+43:
		tmp = x_m / (y * (t - z))
	elif z <= 5e+128:
		tmp = x_m / (z * (z - t))
	else:
		tmp = t_1
	return x_s * tmp
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	t_1 = Float64(Float64(x_m / z) / z)
	tmp = 0.0
	if (z <= -1.3e+72)
		tmp = t_1;
	elseif (z <= -2.05e-193)
		tmp = Float64(x_m / Float64(Float64(y - z) * t));
	elseif (z <= 8.5e+43)
		tmp = Float64(x_m / Float64(y * Float64(t - z)));
	elseif (z <= 5e+128)
		tmp = Float64(x_m / Float64(z * Float64(z - t)));
	else
		tmp = t_1;
	end
	return Float64(x_s * tmp)
end
x\_m = abs(x);
x\_s = sign(x) * abs(1.0);
function tmp_2 = code(x_s, x_m, y, z, t)
	t_1 = (x_m / z) / z;
	tmp = 0.0;
	if (z <= -1.3e+72)
		tmp = t_1;
	elseif (z <= -2.05e-193)
		tmp = x_m / ((y - z) * t);
	elseif (z <= 8.5e+43)
		tmp = x_m / (y * (t - z));
	elseif (z <= 5e+128)
		tmp = x_m / (z * (z - t));
	else
		tmp = t_1;
	end
	tmp_2 = x_s * tmp;
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m / z), $MachinePrecision] / z), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -1.3e+72], t$95$1, If[LessEqual[z, -2.05e-193], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e+43], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+128], N[(x$95$m / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

\\
\begin{array}{l}
t_1 := \frac{\frac{x\_m}{z}}{z}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -2.05 \cdot 10^{-193}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\

\mathbf{elif}\;z \leq 8.5 \cdot 10^{+43}:\\
\;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\

\mathbf{elif}\;z \leq 5 \cdot 10^{+128}:\\
\;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\

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


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.29999999999999991e72 or 5e128 < z

    1. Initial program 78.7%

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

      \[\leadsto \color{blue}{\frac{x}{{z}^{2}}} \]
    4. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left({z}^{2}\right)}\right) \]
      2. unpow2N/A

        \[\leadsto \mathsf{/.f64}\left(x, \left(z \cdot \color{blue}{z}\right)\right) \]
      3. *-lowering-*.f6478.7%

        \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{z}\right)\right) \]
    5. Simplified78.7%

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

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

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{z}\right), \color{blue}{z}\right) \]
      3. /-lowering-/.f6490.5%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), z\right) \]
    7. Applied egg-rr90.5%

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

    if -1.29999999999999991e72 < z < -2.05000000000000001e-193

    1. Initial program 92.9%

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

      \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \color{blue}{t}\right)\right) \]
    4. Step-by-step derivation
      1. Simplified62.4%

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

      if -2.05000000000000001e-193 < z < 8.5e43

      1. Initial program 97.1%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6478.2%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified78.2%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6475.6%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr75.6%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(y \cdot \color{blue}{\left(t - z\right)}\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(t - z\right)}\right)\right) \]
        5. --lowering--.f6478.2%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
      9. Applied egg-rr78.2%

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

      if 8.5e43 < z < 5e128

      1. Initial program 99.7%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
        5. --lowering--.f6499.5%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      4. Applied egg-rr99.5%

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

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

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
        3. distribute-neg-frac2N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
        7. --lowering--.f6470.5%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
      7. Simplified70.5%

        \[\leadsto \color{blue}{\frac{\frac{x}{z}}{-\left(t - z\right)}} \]
      8. Step-by-step derivation
        1. associate-/l/N/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\left(t - z\right)\right)\right) \cdot z\right)}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right)\right) \]
        5. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right)\right) \]
        7. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right)\right) \]
        8. associate--r+N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right)\right) \]
        9. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right)\right) \]
        10. remove-double-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(z - t\right)\right)\right) \]
        11. --lowering--.f6470.5%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right)\right) \]
      9. Applied egg-rr70.5%

        \[\leadsto \color{blue}{\frac{x}{z \cdot \left(z - t\right)}} \]
    5. Recombined 4 regimes into one program.
    6. Add Preprocessing

    Alternative 4: 77.6% accurate, 0.4× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\frac{x\_m}{z}}{z - t}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-163}:\\ \;\;\;\;\frac{\frac{x\_m}{y - z}}{t}\\ \mathbf{elif}\;z \leq 4.6 \cdot 10^{+44}:\\ \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (let* ((t_1 (/ (/ x_m z) (- z t))))
       (*
        x_s
        (if (<= z -1.3e+72)
          t_1
          (if (<= z -4.2e-163)
            (/ (/ x_m (- y z)) t)
            (if (<= z 4.6e+44) (/ x_m (* y (- t z))) t_1))))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / (z - t);
    	double tmp;
    	if (z <= -1.3e+72) {
    		tmp = t_1;
    	} else if (z <= -4.2e-163) {
    		tmp = (x_m / (y - z)) / t;
    	} else if (z <= 4.6e+44) {
    		tmp = x_m / (y * (t - z));
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        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_m / z) / (z - t)
        if (z <= (-1.3d+72)) then
            tmp = t_1
        else if (z <= (-4.2d-163)) then
            tmp = (x_m / (y - z)) / t
        else if (z <= 4.6d+44) then
            tmp = x_m / (y * (t - z))
        else
            tmp = t_1
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / (z - t);
    	double tmp;
    	if (z <= -1.3e+72) {
    		tmp = t_1;
    	} else if (z <= -4.2e-163) {
    		tmp = (x_m / (y - z)) / t;
    	} else if (z <= 4.6e+44) {
    		tmp = x_m / (y * (t - z));
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	t_1 = (x_m / z) / (z - t)
    	tmp = 0
    	if z <= -1.3e+72:
    		tmp = t_1
    	elif z <= -4.2e-163:
    		tmp = (x_m / (y - z)) / t
    	elif z <= 4.6e+44:
    		tmp = x_m / (y * (t - z))
    	else:
    		tmp = t_1
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	t_1 = Float64(Float64(x_m / z) / Float64(z - t))
    	tmp = 0.0
    	if (z <= -1.3e+72)
    		tmp = t_1;
    	elseif (z <= -4.2e-163)
    		tmp = Float64(Float64(x_m / Float64(y - z)) / t);
    	elseif (z <= 4.6e+44)
    		tmp = Float64(x_m / Float64(y * Float64(t - z)));
    	else
    		tmp = t_1;
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	t_1 = (x_m / z) / (z - t);
    	tmp = 0.0;
    	if (z <= -1.3e+72)
    		tmp = t_1;
    	elseif (z <= -4.2e-163)
    		tmp = (x_m / (y - z)) / t;
    	elseif (z <= 4.6e+44)
    		tmp = x_m / (y * (t - z));
    	else
    		tmp = t_1;
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -1.3e+72], t$95$1, If[LessEqual[z, -4.2e-163], N[(N[(x$95$m / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 4.6e+44], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]), $MachinePrecision]]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    \begin{array}{l}
    t_1 := \frac{\frac{x\_m}{z}}{z - t}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -1.3 \cdot 10^{+72}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq -4.2 \cdot 10^{-163}:\\
    \;\;\;\;\frac{\frac{x\_m}{y - z}}{t}\\
    
    \mathbf{elif}\;z \leq 4.6 \cdot 10^{+44}:\\
    \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -1.29999999999999991e72 or 4.60000000000000009e44 < z

      1. Initial program 80.9%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
        5. --lowering--.f6499.9%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      4. Applied egg-rr99.9%

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

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

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
        3. distribute-neg-frac2N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
        7. --lowering--.f6495.8%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
      7. Simplified95.8%

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{z}\right), \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right) \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        3. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \color{blue}{\left(t - z\right)}\right)\right) \]
        4. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right) \]
        5. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right) \]
        6. associate--r+N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right) \]
        7. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right) \]
        8. remove-double-negN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(z - t\right)\right) \]
        9. --lowering--.f6495.8%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right) \]
      9. Applied egg-rr95.8%

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

      if -1.29999999999999991e72 < z < -4.19999999999999996e-163

      1. Initial program 91.9%

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

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{t}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), t\right) \]
        5. --lowering--.f6468.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), t\right) \]
      5. Simplified68.7%

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

      if -4.19999999999999996e-163 < z < 4.60000000000000009e44

      1. Initial program 97.2%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6478.6%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified78.6%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6475.4%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr75.4%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(y \cdot \color{blue}{\left(t - z\right)}\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(t - z\right)}\right)\right) \]
        5. --lowering--.f6478.6%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
      9. Applied egg-rr78.6%

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

    Alternative 5: 77.2% accurate, 0.4× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\frac{x\_m}{z}}{z - t}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.7 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-209}:\\ \;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\ \mathbf{elif}\;z \leq 1.3 \cdot 10^{+44}:\\ \;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (let* ((t_1 (/ (/ x_m z) (- z t))))
       (*
        x_s
        (if (<= z -1.7e+72)
          t_1
          (if (<= z -3e-209)
            (/ (/ x_m t) (- y z))
            (if (<= z 1.3e+44) (/ (/ x_m y) (- t z)) t_1))))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / (z - t);
    	double tmp;
    	if (z <= -1.7e+72) {
    		tmp = t_1;
    	} else if (z <= -3e-209) {
    		tmp = (x_m / t) / (y - z);
    	} else if (z <= 1.3e+44) {
    		tmp = (x_m / y) / (t - z);
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        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_m / z) / (z - t)
        if (z <= (-1.7d+72)) then
            tmp = t_1
        else if (z <= (-3d-209)) then
            tmp = (x_m / t) / (y - z)
        else if (z <= 1.3d+44) then
            tmp = (x_m / y) / (t - z)
        else
            tmp = t_1
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / (z - t);
    	double tmp;
    	if (z <= -1.7e+72) {
    		tmp = t_1;
    	} else if (z <= -3e-209) {
    		tmp = (x_m / t) / (y - z);
    	} else if (z <= 1.3e+44) {
    		tmp = (x_m / y) / (t - z);
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	t_1 = (x_m / z) / (z - t)
    	tmp = 0
    	if z <= -1.7e+72:
    		tmp = t_1
    	elif z <= -3e-209:
    		tmp = (x_m / t) / (y - z)
    	elif z <= 1.3e+44:
    		tmp = (x_m / y) / (t - z)
    	else:
    		tmp = t_1
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	t_1 = Float64(Float64(x_m / z) / Float64(z - t))
    	tmp = 0.0
    	if (z <= -1.7e+72)
    		tmp = t_1;
    	elseif (z <= -3e-209)
    		tmp = Float64(Float64(x_m / t) / Float64(y - z));
    	elseif (z <= 1.3e+44)
    		tmp = Float64(Float64(x_m / y) / Float64(t - z));
    	else
    		tmp = t_1;
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	t_1 = (x_m / z) / (z - t);
    	tmp = 0.0;
    	if (z <= -1.7e+72)
    		tmp = t_1;
    	elseif (z <= -3e-209)
    		tmp = (x_m / t) / (y - z);
    	elseif (z <= 1.3e+44)
    		tmp = (x_m / y) / (t - z);
    	else
    		tmp = t_1;
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -1.7e+72], t$95$1, If[LessEqual[z, -3e-209], N[(N[(x$95$m / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+44], N[(N[(x$95$m / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]), $MachinePrecision]]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    \begin{array}{l}
    t_1 := \frac{\frac{x\_m}{z}}{z - t}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -1.7 \cdot 10^{+72}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq -3 \cdot 10^{-209}:\\
    \;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\
    
    \mathbf{elif}\;z \leq 1.3 \cdot 10^{+44}:\\
    \;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -1.6999999999999999e72 or 1.3e44 < z

      1. Initial program 80.9%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
        5. --lowering--.f6499.9%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      4. Applied egg-rr99.9%

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

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

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
        3. distribute-neg-frac2N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
        7. --lowering--.f6495.8%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
      7. Simplified95.8%

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{z}\right), \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right) \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        3. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \color{blue}{\left(t - z\right)}\right)\right) \]
        4. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right) \]
        5. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right) \]
        6. associate--r+N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right) \]
        7. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right) \]
        8. remove-double-negN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(z - t\right)\right) \]
        9. --lowering--.f6495.8%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right) \]
      9. Applied egg-rr95.8%

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

      if -1.6999999999999999e72 < z < -2.9999999999999999e-209

      1. Initial program 93.2%

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

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{t}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), t\right) \]
        5. --lowering--.f6469.3%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), t\right) \]
      5. Simplified69.3%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{t}\right), \color{blue}{\left(y - z\right)}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), \left(\color{blue}{y} - z\right)\right) \]
        5. --lowering--.f6464.8%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr64.8%

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

      if -2.9999999999999999e-209 < z < 1.3e44

      1. Initial program 97.0%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6477.6%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified77.6%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6474.9%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr74.9%

        \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 6: 72.4% accurate, 0.5× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-118}:\\ \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\ \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (*
      x_s
      (if (<= y -4.2e-99)
        (/ (/ x_m y) (- t z))
        (if (<= y 2.3e-118) (/ x_m (* z (- z t))) (/ (/ x_m t) (- y z))))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -4.2e-99) {
    		tmp = (x_m / y) / (t - z);
    	} else if (y <= 2.3e-118) {
    		tmp = x_m / (z * (z - t));
    	} else {
    		tmp = (x_m / t) / (y - z);
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8) :: tmp
        if (y <= (-4.2d-99)) then
            tmp = (x_m / y) / (t - z)
        else if (y <= 2.3d-118) then
            tmp = x_m / (z * (z - t))
        else
            tmp = (x_m / t) / (y - z)
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -4.2e-99) {
    		tmp = (x_m / y) / (t - z);
    	} else if (y <= 2.3e-118) {
    		tmp = x_m / (z * (z - t));
    	} else {
    		tmp = (x_m / t) / (y - z);
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	tmp = 0
    	if y <= -4.2e-99:
    		tmp = (x_m / y) / (t - z)
    	elif y <= 2.3e-118:
    		tmp = x_m / (z * (z - t))
    	else:
    		tmp = (x_m / t) / (y - z)
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	tmp = 0.0
    	if (y <= -4.2e-99)
    		tmp = Float64(Float64(x_m / y) / Float64(t - z));
    	elseif (y <= 2.3e-118)
    		tmp = Float64(x_m / Float64(z * Float64(z - t)));
    	else
    		tmp = Float64(Float64(x_m / t) / Float64(y - z));
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	tmp = 0.0;
    	if (y <= -4.2e-99)
    		tmp = (x_m / y) / (t - z);
    	elseif (y <= 2.3e-118)
    		tmp = x_m / (z * (z - t));
    	else
    		tmp = (x_m / t) / (y - z);
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -4.2e-99], N[(N[(x$95$m / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-118], N[(x$95$m / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;y \leq -4.2 \cdot 10^{-99}:\\
    \;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\
    
    \mathbf{elif}\;y \leq 2.3 \cdot 10^{-118}:\\
    \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < -4.19999999999999968e-99

      1. Initial program 92.0%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6480.8%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified80.8%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6479.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr79.7%

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

      if -4.19999999999999968e-99 < y < 2.30000000000000021e-118

      1. Initial program 87.4%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
        5. --lowering--.f6496.5%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      4. Applied egg-rr96.5%

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

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

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
        3. distribute-neg-frac2N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
        7. --lowering--.f6482.3%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
      7. Simplified82.3%

        \[\leadsto \color{blue}{\frac{\frac{x}{z}}{-\left(t - z\right)}} \]
      8. Step-by-step derivation
        1. associate-/l/N/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\left(t - z\right)\right)\right) \cdot z\right)}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right)\right) \]
        5. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right)\right) \]
        7. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right)\right) \]
        8. associate--r+N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right)\right) \]
        9. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right)\right) \]
        10. remove-double-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(z - t\right)\right)\right) \]
        11. --lowering--.f6473.2%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right)\right) \]
      9. Applied egg-rr73.2%

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

      if 2.30000000000000021e-118 < y

      1. Initial program 91.1%

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

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{t}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), t\right) \]
        5. --lowering--.f6460.6%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), t\right) \]
      5. Simplified60.6%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{t}\right), \color{blue}{\left(y - z\right)}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), \left(\color{blue}{y} - z\right)\right) \]
        5. --lowering--.f6458.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr58.7%

        \[\leadsto \color{blue}{\frac{\frac{x}{t}}{y - z}} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 7: 71.6% accurate, 0.5× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{-101}:\\ \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq 2.45 \cdot 10^{-116}:\\ \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\ \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (*
      x_s
      (if (<= y -9.5e-101)
        (/ x_m (* y (- t z)))
        (if (<= y 2.45e-116) (/ x_m (* z (- z t))) (/ (/ x_m t) (- y z))))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -9.5e-101) {
    		tmp = x_m / (y * (t - z));
    	} else if (y <= 2.45e-116) {
    		tmp = x_m / (z * (z - t));
    	} else {
    		tmp = (x_m / t) / (y - z);
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8) :: tmp
        if (y <= (-9.5d-101)) then
            tmp = x_m / (y * (t - z))
        else if (y <= 2.45d-116) then
            tmp = x_m / (z * (z - t))
        else
            tmp = (x_m / t) / (y - z)
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -9.5e-101) {
    		tmp = x_m / (y * (t - z));
    	} else if (y <= 2.45e-116) {
    		tmp = x_m / (z * (z - t));
    	} else {
    		tmp = (x_m / t) / (y - z);
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	tmp = 0
    	if y <= -9.5e-101:
    		tmp = x_m / (y * (t - z))
    	elif y <= 2.45e-116:
    		tmp = x_m / (z * (z - t))
    	else:
    		tmp = (x_m / t) / (y - z)
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	tmp = 0.0
    	if (y <= -9.5e-101)
    		tmp = Float64(x_m / Float64(y * Float64(t - z)));
    	elseif (y <= 2.45e-116)
    		tmp = Float64(x_m / Float64(z * Float64(z - t)));
    	else
    		tmp = Float64(Float64(x_m / t) / Float64(y - z));
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	tmp = 0.0;
    	if (y <= -9.5e-101)
    		tmp = x_m / (y * (t - z));
    	elseif (y <= 2.45e-116)
    		tmp = x_m / (z * (z - t));
    	else
    		tmp = (x_m / t) / (y - z);
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -9.5e-101], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.45e-116], N[(x$95$m / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;y \leq -9.5 \cdot 10^{-101}:\\
    \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\
    
    \mathbf{elif}\;y \leq 2.45 \cdot 10^{-116}:\\
    \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < -9.49999999999999994e-101

      1. Initial program 92.0%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6480.8%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified80.8%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6479.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr79.7%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(y \cdot \color{blue}{\left(t - z\right)}\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(t - z\right)}\right)\right) \]
        5. --lowering--.f6480.8%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
      9. Applied egg-rr80.8%

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

      if -9.49999999999999994e-101 < y < 2.44999999999999989e-116

      1. Initial program 87.4%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
        5. --lowering--.f6496.5%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      4. Applied egg-rr96.5%

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

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

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
        3. distribute-neg-frac2N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
        7. --lowering--.f6482.3%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
      7. Simplified82.3%

        \[\leadsto \color{blue}{\frac{\frac{x}{z}}{-\left(t - z\right)}} \]
      8. Step-by-step derivation
        1. associate-/l/N/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\left(t - z\right)\right)\right) \cdot z\right)}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right)\right) \]
        5. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right)\right) \]
        7. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right)\right) \]
        8. associate--r+N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right)\right) \]
        9. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right)\right) \]
        10. remove-double-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(z - t\right)\right)\right) \]
        11. --lowering--.f6473.2%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right)\right) \]
      9. Applied egg-rr73.2%

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

      if 2.44999999999999989e-116 < y

      1. Initial program 91.1%

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

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{t}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), t\right) \]
        5. --lowering--.f6460.6%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), t\right) \]
      5. Simplified60.6%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{t}\right), \color{blue}{\left(y - z\right)}\right) \]
        4. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), \left(\color{blue}{y} - z\right)\right) \]
        5. --lowering--.f6458.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr58.7%

        \[\leadsto \color{blue}{\frac{\frac{x}{t}}{y - z}} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 8: 73.3% accurate, 0.5× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\frac{x\_m}{z}}{z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -6.4 \cdot 10^{+71}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+58}:\\ \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (let* ((t_1 (/ (/ x_m z) z)))
       (*
        x_s
        (if (<= z -6.4e+71) t_1 (if (<= z 3.8e+58) (/ x_m (* y (- t z))) t_1)))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / z;
    	double tmp;
    	if (z <= -6.4e+71) {
    		tmp = t_1;
    	} else if (z <= 3.8e+58) {
    		tmp = x_m / (y * (t - z));
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        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_m / z) / z
        if (z <= (-6.4d+71)) then
            tmp = t_1
        else if (z <= 3.8d+58) then
            tmp = x_m / (y * (t - z))
        else
            tmp = t_1
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / z;
    	double tmp;
    	if (z <= -6.4e+71) {
    		tmp = t_1;
    	} else if (z <= 3.8e+58) {
    		tmp = x_m / (y * (t - z));
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	t_1 = (x_m / z) / z
    	tmp = 0
    	if z <= -6.4e+71:
    		tmp = t_1
    	elif z <= 3.8e+58:
    		tmp = x_m / (y * (t - z))
    	else:
    		tmp = t_1
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	t_1 = Float64(Float64(x_m / z) / z)
    	tmp = 0.0
    	if (z <= -6.4e+71)
    		tmp = t_1;
    	elseif (z <= 3.8e+58)
    		tmp = Float64(x_m / Float64(y * Float64(t - z)));
    	else
    		tmp = t_1;
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	t_1 = (x_m / z) / z;
    	tmp = 0.0;
    	if (z <= -6.4e+71)
    		tmp = t_1;
    	elseif (z <= 3.8e+58)
    		tmp = x_m / (y * (t - z));
    	else
    		tmp = t_1;
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m / z), $MachinePrecision] / z), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -6.4e+71], t$95$1, If[LessEqual[z, 3.8e+58], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    \begin{array}{l}
    t_1 := \frac{\frac{x\_m}{z}}{z}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -6.4 \cdot 10^{+71}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 3.8 \cdot 10^{+58}:\\
    \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -6.40000000000000046e71 or 3.7999999999999999e58 < z

      1. Initial program 80.5%

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

        \[\leadsto \color{blue}{\frac{x}{{z}^{2}}} \]
      4. Step-by-step derivation
        1. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left({z}^{2}\right)}\right) \]
        2. unpow2N/A

          \[\leadsto \mathsf{/.f64}\left(x, \left(z \cdot \color{blue}{z}\right)\right) \]
        3. *-lowering-*.f6476.4%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{z}\right)\right) \]
      5. Simplified76.4%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{z}\right), \color{blue}{z}\right) \]
        3. /-lowering-/.f6487.2%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), z\right) \]
      7. Applied egg-rr87.2%

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

      if -6.40000000000000046e71 < z < 3.7999999999999999e58

      1. Initial program 95.7%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6471.4%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified71.4%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6470.3%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr70.3%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(y \cdot \color{blue}{\left(t - z\right)}\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(t - z\right)}\right)\right) \]
        5. --lowering--.f6471.4%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
      9. Applied egg-rr71.4%

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

    Alternative 9: 66.4% accurate, 0.6× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\frac{x\_m}{z}}{z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+69}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 10^{+52}:\\ \;\;\;\;\frac{\frac{x\_m}{t}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (let* ((t_1 (/ (/ x_m z) z)))
       (* x_s (if (<= z -3e+69) t_1 (if (<= z 1e+52) (/ (/ x_m t) y) t_1)))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / z;
    	double tmp;
    	if (z <= -3e+69) {
    		tmp = t_1;
    	} else if (z <= 1e+52) {
    		tmp = (x_m / t) / y;
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        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_m / z) / z
        if (z <= (-3d+69)) then
            tmp = t_1
        else if (z <= 1d+52) then
            tmp = (x_m / t) / y
        else
            tmp = t_1
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = (x_m / z) / z;
    	double tmp;
    	if (z <= -3e+69) {
    		tmp = t_1;
    	} else if (z <= 1e+52) {
    		tmp = (x_m / t) / y;
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	t_1 = (x_m / z) / z
    	tmp = 0
    	if z <= -3e+69:
    		tmp = t_1
    	elif z <= 1e+52:
    		tmp = (x_m / t) / y
    	else:
    		tmp = t_1
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	t_1 = Float64(Float64(x_m / z) / z)
    	tmp = 0.0
    	if (z <= -3e+69)
    		tmp = t_1;
    	elseif (z <= 1e+52)
    		tmp = Float64(Float64(x_m / t) / y);
    	else
    		tmp = t_1;
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	t_1 = (x_m / z) / z;
    	tmp = 0.0;
    	if (z <= -3e+69)
    		tmp = t_1;
    	elseif (z <= 1e+52)
    		tmp = (x_m / t) / y;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m / z), $MachinePrecision] / z), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -3e+69], t$95$1, If[LessEqual[z, 1e+52], N[(N[(x$95$m / t), $MachinePrecision] / y), $MachinePrecision], t$95$1]]), $MachinePrecision]]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    \begin{array}{l}
    t_1 := \frac{\frac{x\_m}{z}}{z}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -3 \cdot 10^{+69}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 10^{+52}:\\
    \;\;\;\;\frac{\frac{x\_m}{t}}{y}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -2.99999999999999983e69 or 9.9999999999999999e51 < z

      1. Initial program 80.5%

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

        \[\leadsto \color{blue}{\frac{x}{{z}^{2}}} \]
      4. Step-by-step derivation
        1. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left({z}^{2}\right)}\right) \]
        2. unpow2N/A

          \[\leadsto \mathsf{/.f64}\left(x, \left(z \cdot \color{blue}{z}\right)\right) \]
        3. *-lowering-*.f6476.4%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{z}\right)\right) \]
      5. Simplified76.4%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{z}\right), \color{blue}{z}\right) \]
        3. /-lowering-/.f6487.2%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), z\right) \]
      7. Applied egg-rr87.2%

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

      if -2.99999999999999983e69 < z < 9.9999999999999999e51

      1. Initial program 95.7%

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(t \cdot y\right)}\right) \]
        2. *-lowering-*.f6458.0%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(t, \color{blue}{y}\right)\right) \]
      5. Simplified58.0%

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

          \[\leadsto \frac{\frac{x}{t}}{\color{blue}{y}} \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{t}\right), \color{blue}{y}\right) \]
        3. /-lowering-/.f6460.1%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), y\right) \]
      7. Applied egg-rr60.1%

        \[\leadsto \color{blue}{\frac{\frac{x}{t}}{y}} \]
    3. Recombined 2 regimes into one program.
    4. Add Preprocessing

    Alternative 10: 62.9% accurate, 0.6× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{x\_m}{z \cdot z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{+69}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+51}:\\ \;\;\;\;\frac{\frac{x\_m}{t}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (let* ((t_1 (/ x_m (* z z))))
       (* x_s (if (<= z -4.4e+69) t_1 (if (<= z 2.25e+51) (/ (/ x_m t) y) t_1)))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = x_m / (z * z);
    	double tmp;
    	if (z <= -4.4e+69) {
    		tmp = t_1;
    	} else if (z <= 2.25e+51) {
    		tmp = (x_m / t) / y;
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        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_m / (z * z)
        if (z <= (-4.4d+69)) then
            tmp = t_1
        else if (z <= 2.25d+51) then
            tmp = (x_m / t) / y
        else
            tmp = t_1
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = x_m / (z * z);
    	double tmp;
    	if (z <= -4.4e+69) {
    		tmp = t_1;
    	} else if (z <= 2.25e+51) {
    		tmp = (x_m / t) / y;
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	t_1 = x_m / (z * z)
    	tmp = 0
    	if z <= -4.4e+69:
    		tmp = t_1
    	elif z <= 2.25e+51:
    		tmp = (x_m / t) / y
    	else:
    		tmp = t_1
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	t_1 = Float64(x_m / Float64(z * z))
    	tmp = 0.0
    	if (z <= -4.4e+69)
    		tmp = t_1;
    	elseif (z <= 2.25e+51)
    		tmp = Float64(Float64(x_m / t) / y);
    	else
    		tmp = t_1;
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	t_1 = x_m / (z * z);
    	tmp = 0.0;
    	if (z <= -4.4e+69)
    		tmp = t_1;
    	elseif (z <= 2.25e+51)
    		tmp = (x_m / t) / y;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m / N[(z * z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -4.4e+69], t$95$1, If[LessEqual[z, 2.25e+51], N[(N[(x$95$m / t), $MachinePrecision] / y), $MachinePrecision], t$95$1]]), $MachinePrecision]]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    \begin{array}{l}
    t_1 := \frac{x\_m}{z \cdot z}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -4.4 \cdot 10^{+69}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 2.25 \cdot 10^{+51}:\\
    \;\;\;\;\frac{\frac{x\_m}{t}}{y}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -4.4000000000000003e69 or 2.25e51 < z

      1. Initial program 80.5%

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

        \[\leadsto \color{blue}{\frac{x}{{z}^{2}}} \]
      4. Step-by-step derivation
        1. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left({z}^{2}\right)}\right) \]
        2. unpow2N/A

          \[\leadsto \mathsf{/.f64}\left(x, \left(z \cdot \color{blue}{z}\right)\right) \]
        3. *-lowering-*.f6476.4%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{z}\right)\right) \]
      5. Simplified76.4%

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

      if -4.4000000000000003e69 < z < 2.25e51

      1. Initial program 95.7%

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(t \cdot y\right)}\right) \]
        2. *-lowering-*.f6458.0%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(t, \color{blue}{y}\right)\right) \]
      5. Simplified58.0%

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

          \[\leadsto \frac{\frac{x}{t}}{\color{blue}{y}} \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{t}\right), \color{blue}{y}\right) \]
        3. /-lowering-/.f6460.1%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, t\right), y\right) \]
      7. Applied egg-rr60.1%

        \[\leadsto \color{blue}{\frac{\frac{x}{t}}{y}} \]
    3. Recombined 2 regimes into one program.
    4. Add Preprocessing

    Alternative 11: 61.8% accurate, 0.6× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{x\_m}{z \cdot z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -7 \cdot 10^{+35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{-33}:\\ \;\;\;\;\frac{x\_m}{y \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (let* ((t_1 (/ x_m (* z z))))
       (* x_s (if (<= z -7e+35) t_1 (if (<= z 2.7e-33) (/ x_m (* y t)) t_1)))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = x_m / (z * z);
    	double tmp;
    	if (z <= -7e+35) {
    		tmp = t_1;
    	} else if (z <= 2.7e-33) {
    		tmp = x_m / (y * t);
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        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_m / (z * z)
        if (z <= (-7d+35)) then
            tmp = t_1
        else if (z <= 2.7d-33) then
            tmp = x_m / (y * t)
        else
            tmp = t_1
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double t_1 = x_m / (z * z);
    	double tmp;
    	if (z <= -7e+35) {
    		tmp = t_1;
    	} else if (z <= 2.7e-33) {
    		tmp = x_m / (y * t);
    	} else {
    		tmp = t_1;
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	t_1 = x_m / (z * z)
    	tmp = 0
    	if z <= -7e+35:
    		tmp = t_1
    	elif z <= 2.7e-33:
    		tmp = x_m / (y * t)
    	else:
    		tmp = t_1
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	t_1 = Float64(x_m / Float64(z * z))
    	tmp = 0.0
    	if (z <= -7e+35)
    		tmp = t_1;
    	elseif (z <= 2.7e-33)
    		tmp = Float64(x_m / Float64(y * t));
    	else
    		tmp = t_1;
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	t_1 = x_m / (z * z);
    	tmp = 0.0;
    	if (z <= -7e+35)
    		tmp = t_1;
    	elseif (z <= 2.7e-33)
    		tmp = x_m / (y * t);
    	else
    		tmp = t_1;
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m / N[(z * z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -7e+35], t$95$1, If[LessEqual[z, 2.7e-33], N[(x$95$m / N[(y * t), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    \begin{array}{l}
    t_1 := \frac{x\_m}{z \cdot z}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -7 \cdot 10^{+35}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 2.7 \cdot 10^{-33}:\\
    \;\;\;\;\frac{x\_m}{y \cdot t}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -7.0000000000000001e35 or 2.7000000000000001e-33 < z

      1. Initial program 83.5%

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

        \[\leadsto \color{blue}{\frac{x}{{z}^{2}}} \]
      4. Step-by-step derivation
        1. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left({z}^{2}\right)}\right) \]
        2. unpow2N/A

          \[\leadsto \mathsf{/.f64}\left(x, \left(z \cdot \color{blue}{z}\right)\right) \]
        3. *-lowering-*.f6466.8%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{z}\right)\right) \]
      5. Simplified66.8%

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

      if -7.0000000000000001e35 < z < 2.7000000000000001e-33

      1. Initial program 95.7%

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(t \cdot y\right)}\right) \]
        2. *-lowering-*.f6463.4%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(t, \color{blue}{y}\right)\right) \]
      5. Simplified63.4%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7 \cdot 10^{+35}:\\ \;\;\;\;\frac{x}{z \cdot z}\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{-33}:\\ \;\;\;\;\frac{x}{y \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z \cdot z}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 12: 65.0% accurate, 0.7× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{-95}:\\ \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\ \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (* x_s (if (<= y -2.4e-95) (/ x_m (* y (- t z))) (/ x_m (* z (- z t))))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -2.4e-95) {
    		tmp = x_m / (y * (t - z));
    	} else {
    		tmp = x_m / (z * (z - t));
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8) :: tmp
        if (y <= (-2.4d-95)) then
            tmp = x_m / (y * (t - z))
        else
            tmp = x_m / (z * (z - t))
        end if
        code = x_s * tmp
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -2.4e-95) {
    		tmp = x_m / (y * (t - z));
    	} else {
    		tmp = x_m / (z * (z - t));
    	}
    	return x_s * tmp;
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	tmp = 0
    	if y <= -2.4e-95:
    		tmp = x_m / (y * (t - z))
    	else:
    		tmp = x_m / (z * (z - t))
    	return x_s * tmp
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	tmp = 0.0
    	if (y <= -2.4e-95)
    		tmp = Float64(x_m / Float64(y * Float64(t - z)));
    	else
    		tmp = Float64(x_m / Float64(z * Float64(z - t)));
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp_2 = code(x_s, x_m, y, z, t)
    	tmp = 0.0;
    	if (y <= -2.4e-95)
    		tmp = x_m / (y * (t - z));
    	else
    		tmp = x_m / (z * (z - t));
    	end
    	tmp_2 = x_s * tmp;
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -2.4e-95], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;y \leq -2.4 \cdot 10^{-95}:\\
    \;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{x\_m}{z \cdot \left(z - t\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -2.4e-95

      1. Initial program 92.0%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(\left(t - z\right) \cdot \color{blue}{y}\right)\right) \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\left(t - z\right), \color{blue}{y}\right)\right) \]
        4. --lowering--.f6480.8%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, z\right), y\right)\right) \]
      5. Simplified80.8%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f6479.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, y\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      7. Applied egg-rr79.7%

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

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

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

          \[\leadsto \mathsf{/.f64}\left(x, \left(y \cdot \color{blue}{\left(t - z\right)}\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \color{blue}{\left(t - z\right)}\right)\right) \]
        5. --lowering--.f6480.8%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
      9. Applied egg-rr80.8%

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

      if -2.4e-95 < y

      1. Initial program 89.3%

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

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

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
        5. --lowering--.f6496.0%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
      4. Applied egg-rr96.0%

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

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

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{x}{z}}{t - z}\right) \]
        3. distribute-neg-frac2N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\mathsf{neg}\left(\color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\left(t - z\right)\right)\right) \]
        7. --lowering--.f6465.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(t, z\right)\right)\right) \]
      7. Simplified65.7%

        \[\leadsto \color{blue}{\frac{\frac{x}{z}}{-\left(t - z\right)}} \]
      8. Step-by-step derivation
        1. associate-/l/N/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(\left(\mathsf{neg}\left(\left(t - z\right)\right)\right) \cdot z\right)}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(\mathsf{neg}\left(\left(t - z\right)\right)\right)}\right)\right) \]
        5. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \color{blue}{\left(t - z\right)}\right)\right)\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(t + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)\right)\right) \]
        7. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(0 - \left(\left(\mathsf{neg}\left(z\right)\right) + \color{blue}{t}\right)\right)\right)\right) \]
        8. associate--r+N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - \color{blue}{t}\right)\right)\right) \]
        9. neg-sub0N/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t\right)\right)\right) \]
        10. remove-double-negN/A

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \left(z - t\right)\right)\right) \]
        11. --lowering--.f6459.0%

          \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{\_.f64}\left(z, \color{blue}{t}\right)\right)\right) \]
      9. Applied egg-rr59.0%

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

    Alternative 13: 96.9% accurate, 1.0× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \frac{\frac{x\_m}{y - z}}{t - z} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (* x_s (/ (/ x_m (- y z)) (- t z))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	return x_s * ((x_m / (y - z)) / (t - z));
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        code = x_s * ((x_m / (y - z)) / (t - z))
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	return x_s * ((x_m / (y - z)) / (t - z));
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	return x_s * ((x_m / (y - z)) / (t - z))
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	return Float64(x_s * Float64(Float64(x_m / Float64(y - z)) / Float64(t - z)))
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp = code(x_s, x_m, y, z, t)
    	tmp = x_s * ((x_m / (y - z)) / (t - z));
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * N[(N[(x$95$m / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    x\_s \cdot \frac{\frac{x\_m}{y - z}}{t - z}
    \end{array}
    
    Derivation
    1. Initial program 90.2%

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

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

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{x}{y - z}\right), \color{blue}{\left(t - z\right)}\right) \]
      3. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \left(y - z\right)\right), \left(\color{blue}{t} - z\right)\right) \]
      4. --lowering--.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \left(t - z\right)\right) \]
      5. --lowering--.f6496.1%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(t, \color{blue}{z}\right)\right) \]
    4. Applied egg-rr96.1%

      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
    5. Add Preprocessing

    Alternative 14: 39.5% accurate, 1.8× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \frac{x\_m}{y \cdot t} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t) :precision binary64 (* x_s (/ x_m (* y t))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	return x_s * (x_m / (y * t));
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0d0, x)
    real(8) function code(x_s, x_m, y, z, t)
        real(8), intent (in) :: x_s
        real(8), intent (in) :: x_m
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        code = x_s * (x_m / (y * t))
    end function
    
    x\_m = Math.abs(x);
    x\_s = Math.copySign(1.0, x);
    public static double code(double x_s, double x_m, double y, double z, double t) {
    	return x_s * (x_m / (y * t));
    }
    
    x\_m = math.fabs(x)
    x\_s = math.copysign(1.0, x)
    def code(x_s, x_m, y, z, t):
    	return x_s * (x_m / (y * t))
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	return Float64(x_s * Float64(x_m / Float64(y * t)))
    end
    
    x\_m = abs(x);
    x\_s = sign(x) * abs(1.0);
    function tmp = code(x_s, x_m, y, z, t)
    	tmp = x_s * (x_m / (y * t));
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * N[(x$95$m / N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    x\_s \cdot \frac{x\_m}{y \cdot t}
    \end{array}
    
    Derivation
    1. Initial program 90.2%

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

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

        \[\leadsto \mathsf{/.f64}\left(x, \color{blue}{\left(t \cdot y\right)}\right) \]
      2. *-lowering-*.f6444.3%

        \[\leadsto \mathsf{/.f64}\left(x, \mathsf{*.f64}\left(t, \color{blue}{y}\right)\right) \]
    5. Simplified44.3%

      \[\leadsto \color{blue}{\frac{x}{t \cdot y}} \]
    6. Final simplification44.3%

      \[\leadsto \frac{x}{y \cdot t} \]
    7. Add Preprocessing

    Developer Target 1: 88.0% accurate, 0.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - z\right) \cdot \left(t - z\right)\\ \mathbf{if}\;\frac{x}{t\_1} < 0:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{1}{t\_1}\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (* (- y z) (- t z))))
       (if (< (/ x t_1) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 t_1)))))
    double code(double x, double y, double z, double t) {
    	double t_1 = (y - z) * (t - z);
    	double tmp;
    	if ((x / t_1) < 0.0) {
    		tmp = (x / (y - z)) / (t - z);
    	} else {
    		tmp = x * (1.0 / 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 = (y - z) * (t - z)
        if ((x / t_1) < 0.0d0) then
            tmp = (x / (y - z)) / (t - z)
        else
            tmp = x * (1.0d0 / t_1)
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t) {
    	double t_1 = (y - z) * (t - z);
    	double tmp;
    	if ((x / t_1) < 0.0) {
    		tmp = (x / (y - z)) / (t - z);
    	} else {
    		tmp = x * (1.0 / t_1);
    	}
    	return tmp;
    }
    
    def code(x, y, z, t):
    	t_1 = (y - z) * (t - z)
    	tmp = 0
    	if (x / t_1) < 0.0:
    		tmp = (x / (y - z)) / (t - z)
    	else:
    		tmp = x * (1.0 / t_1)
    	return tmp
    
    function code(x, y, z, t)
    	t_1 = Float64(Float64(y - z) * Float64(t - z))
    	tmp = 0.0
    	if (Float64(x / t_1) < 0.0)
    		tmp = Float64(Float64(x / Float64(y - z)) / Float64(t - z));
    	else
    		tmp = Float64(x * Float64(1.0 / t_1));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t)
    	t_1 = (y - z) * (t - z);
    	tmp = 0.0;
    	if ((x / t_1) < 0.0)
    		tmp = (x / (y - z)) / (t - z);
    	else
    		tmp = x * (1.0 / t_1);
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Less[N[(x / t$95$1), $MachinePrecision], 0.0], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
    \mathbf{if}\;\frac{x}{t\_1} < 0:\\
    \;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\
    
    \mathbf{else}:\\
    \;\;\;\;x \cdot \frac{1}{t\_1}\\
    
    
    \end{array}
    \end{array}
    

    Reproduce

    ?
    herbie shell --seed 2024138 
    (FPCore (x y z t)
      :name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
      :precision binary64
    
      :alt
      (! :herbie-platform default (if (< (/ x (* (- y z) (- t z))) 0) (/ (/ x (- y z)) (- t z)) (* x (/ 1 (* (- y z) (- t z))))))
    
      (/ x (* (- y z) (- t z))))