Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3

Percentage Accurate: 84.7% → 97.2%
Time: 9.6s
Alternatives: 9
Speedup: 0.6×

Specification

?
\[\begin{array}{l} \\ \frac{x \cdot \left(y - z\right)}{t - z} \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(Float64(x * 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[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

\[\begin{array}{l} \\ \frac{x \cdot \left(y - z\right)}{t - z} \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(Float64(x * 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[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 97.2% accurate, 0.6× 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}\;x\_m \leq 2 \cdot 10^{-8}:\\ \;\;\;\;\frac{x\_m \cdot \left(y - z\right)}{t - z}\\ \mathbf{else}:\\ \;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - 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 (<= x_m 2e-8) (/ (* x_m (- y z)) (- t z)) (* (- y z) (/ x_m (- 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) {
	double tmp;
	if (x_m <= 2e-8) {
		tmp = (x_m * (y - z)) / (t - z);
	} else {
		tmp = (y - z) * (x_m / (t - 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 (x_m <= 2d-8) then
        tmp = (x_m * (y - z)) / (t - z)
    else
        tmp = (y - z) * (x_m / (t - 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 (x_m <= 2e-8) {
		tmp = (x_m * (y - z)) / (t - z);
	} else {
		tmp = (y - z) * (x_m / (t - 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 x_m <= 2e-8:
		tmp = (x_m * (y - z)) / (t - z)
	else:
		tmp = (y - z) * (x_m / (t - 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 (x_m <= 2e-8)
		tmp = Float64(Float64(x_m * Float64(y - z)) / Float64(t - z));
	else
		tmp = Float64(Float64(y - z) * Float64(x_m / Float64(t - 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 (x_m <= 2e-8)
		tmp = (x_m * (y - z)) / (t - z);
	else
		tmp = (y - z) * (x_m / (t - 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[x$95$m, 2e-8], N[(N[(x$95$m * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(x$95$m / N[(t - z), $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}\;x\_m \leq 2 \cdot 10^{-8}:\\
\;\;\;\;\frac{x\_m \cdot \left(y - z\right)}{t - z}\\

\mathbf{else}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 2e-8

    1. Initial program 87.4%

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

    if 2e-8 < x

    1. Initial program 73.4%

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

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

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

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

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

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

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

        \[\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-rr95.0%

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

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

Alternative 2: 74.7% 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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -2.85 \cdot 10^{+48}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-147}:\\ \;\;\;\;y \cdot \frac{x\_m}{t - z}\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{+54}:\\ \;\;\;\;\frac{x\_m \cdot \left(y - z\right)}{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 (- 1.0 (/ y z)))))
   (*
    x_s
    (if (<= z -2.85e+48)
      t_1
      (if (<= z 1.5e-147)
        (* y (/ x_m (- t z)))
        (if (<= z 1.12e+54) (/ (* x_m (- y 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 * (1.0 - (y / z));
	double tmp;
	if (z <= -2.85e+48) {
		tmp = t_1;
	} else if (z <= 1.5e-147) {
		tmp = y * (x_m / (t - z));
	} else if (z <= 1.12e+54) {
		tmp = (x_m * (y - 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 * (1.0d0 - (y / z))
    if (z <= (-2.85d+48)) then
        tmp = t_1
    else if (z <= 1.5d-147) then
        tmp = y * (x_m / (t - z))
    else if (z <= 1.12d+54) then
        tmp = (x_m * (y - 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 * (1.0 - (y / z));
	double tmp;
	if (z <= -2.85e+48) {
		tmp = t_1;
	} else if (z <= 1.5e-147) {
		tmp = y * (x_m / (t - z));
	} else if (z <= 1.12e+54) {
		tmp = (x_m * (y - 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 * (1.0 - (y / z))
	tmp = 0
	if z <= -2.85e+48:
		tmp = t_1
	elif z <= 1.5e-147:
		tmp = y * (x_m / (t - z))
	elif z <= 1.12e+54:
		tmp = (x_m * (y - 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(x_m * Float64(1.0 - Float64(y / z)))
	tmp = 0.0
	if (z <= -2.85e+48)
		tmp = t_1;
	elseif (z <= 1.5e-147)
		tmp = Float64(y * Float64(x_m / Float64(t - z)));
	elseif (z <= 1.12e+54)
		tmp = Float64(Float64(x_m * Float64(y - 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 * (1.0 - (y / z));
	tmp = 0.0;
	if (z <= -2.85e+48)
		tmp = t_1;
	elseif (z <= 1.5e-147)
		tmp = y * (x_m / (t - z));
	elseif (z <= 1.12e+54)
		tmp = (x_m * (y - 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[(x$95$m * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -2.85e+48], t$95$1, If[LessEqual[z, 1.5e-147], N[(y * N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.12e+54], N[(N[(x$95$m * N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -2.85 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.5 \cdot 10^{-147}:\\
\;\;\;\;y \cdot \frac{x\_m}{t - z}\\

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

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


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.84999999999999984e48 or 1.12e54 < z

    1. Initial program 68.6%

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

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

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

        \[\leadsto \mathsf{neg}\left(x \cdot \frac{y - z}{z}\right) \]
      3. distribute-rgt-neg-inN/A

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

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

        \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \color{blue}{\frac{y - z}{z}}\right)\right) \]
      6. div-subN/A

        \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - \color{blue}{\frac{z}{z}}\right)\right)\right) \]
      7. *-inversesN/A

        \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - 1\right)\right)\right) \]
      8. associate-+l-N/A

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

        \[\leadsto \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + 1\right)\right) \]
      10. mul-1-negN/A

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

        \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
      12. mul-1-negN/A

        \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
      13. unsub-negN/A

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

        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
      15. /-lowering-/.f6482.7%

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

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

    if -2.84999999999999984e48 < z < 1.5000000000000001e-147

    1. Initial program 94.9%

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

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

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

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

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

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

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

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

    if 1.5000000000000001e-147 < z < 1.12e54

    1. Initial program 97.9%

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

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

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

    Alternative 3: 75.0% 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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.8 \cdot 10^{+50}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\ \;\;\;\;y \cdot \frac{x\_m}{t - z}\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{+56}:\\ \;\;\;\;x\_m \cdot \frac{y - z}{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 (- 1.0 (/ y z)))))
       (*
        x_s
        (if (<= z -1.8e+50)
          t_1
          (if (<= z 1.45e-148)
            (* y (/ x_m (- t z)))
            (if (<= z 1.5e+56) (* x_m (/ (- y 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 * (1.0 - (y / z));
    	double tmp;
    	if (z <= -1.8e+50) {
    		tmp = t_1;
    	} else if (z <= 1.45e-148) {
    		tmp = y * (x_m / (t - z));
    	} else if (z <= 1.5e+56) {
    		tmp = x_m * ((y - 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 * (1.0d0 - (y / z))
        if (z <= (-1.8d+50)) then
            tmp = t_1
        else if (z <= 1.45d-148) then
            tmp = y * (x_m / (t - z))
        else if (z <= 1.5d+56) then
            tmp = x_m * ((y - 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 * (1.0 - (y / z));
    	double tmp;
    	if (z <= -1.8e+50) {
    		tmp = t_1;
    	} else if (z <= 1.45e-148) {
    		tmp = y * (x_m / (t - z));
    	} else if (z <= 1.5e+56) {
    		tmp = x_m * ((y - 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 * (1.0 - (y / z))
    	tmp = 0
    	if z <= -1.8e+50:
    		tmp = t_1
    	elif z <= 1.45e-148:
    		tmp = y * (x_m / (t - z))
    	elif z <= 1.5e+56:
    		tmp = x_m * ((y - 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(x_m * Float64(1.0 - Float64(y / z)))
    	tmp = 0.0
    	if (z <= -1.8e+50)
    		tmp = t_1;
    	elseif (z <= 1.45e-148)
    		tmp = Float64(y * Float64(x_m / Float64(t - z)));
    	elseif (z <= 1.5e+56)
    		tmp = Float64(x_m * Float64(Float64(y - 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 * (1.0 - (y / z));
    	tmp = 0.0;
    	if (z <= -1.8e+50)
    		tmp = t_1;
    	elseif (z <= 1.45e-148)
    		tmp = y * (x_m / (t - z));
    	elseif (z <= 1.5e+56)
    		tmp = x_m * ((y - 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[(x$95$m * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -1.8e+50], t$95$1, If[LessEqual[z, 1.45e-148], N[(y * N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+56], N[(x$95$m * N[(N[(y - z), $MachinePrecision] / 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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -1.8 \cdot 10^{+50}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\
    \;\;\;\;y \cdot \frac{x\_m}{t - z}\\
    
    \mathbf{elif}\;z \leq 1.5 \cdot 10^{+56}:\\
    \;\;\;\;x\_m \cdot \frac{y - z}{t}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -1.79999999999999993e50 or 1.50000000000000003e56 < z

      1. Initial program 68.6%

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

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

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

          \[\leadsto \mathsf{neg}\left(x \cdot \frac{y - z}{z}\right) \]
        3. distribute-rgt-neg-inN/A

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

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \color{blue}{\frac{y - z}{z}}\right)\right) \]
        6. div-subN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - \color{blue}{\frac{z}{z}}\right)\right)\right) \]
        7. *-inversesN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - 1\right)\right)\right) \]
        8. associate-+l-N/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + 1\right)\right) \]
        10. mul-1-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
        12. mul-1-negN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
        13. unsub-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
        15. /-lowering-/.f6482.7%

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

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

      if -1.79999999999999993e50 < z < 1.4499999999999999e-148

      1. Initial program 94.8%

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

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

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

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

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

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

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

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

      if 1.4499999999999999e-148 < z < 1.50000000000000003e56

      1. Initial program 97.9%

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

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

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

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

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

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

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

    Alternative 4: 90.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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.62 \cdot 10^{+142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.95 \cdot 10^{+158}:\\ \;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{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 (- 1.0 (/ y z)))))
       (*
        x_s
        (if (<= z -1.62e+142)
          t_1
          (if (<= z 1.95e+158) (* (- y z) (/ x_m (- 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 * (1.0 - (y / z));
    	double tmp;
    	if (z <= -1.62e+142) {
    		tmp = t_1;
    	} else if (z <= 1.95e+158) {
    		tmp = (y - z) * (x_m / (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 * (1.0d0 - (y / z))
        if (z <= (-1.62d+142)) then
            tmp = t_1
        else if (z <= 1.95d+158) then
            tmp = (y - z) * (x_m / (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 * (1.0 - (y / z));
    	double tmp;
    	if (z <= -1.62e+142) {
    		tmp = t_1;
    	} else if (z <= 1.95e+158) {
    		tmp = (y - z) * (x_m / (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 * (1.0 - (y / z))
    	tmp = 0
    	if z <= -1.62e+142:
    		tmp = t_1
    	elif z <= 1.95e+158:
    		tmp = (y - z) * (x_m / (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(x_m * Float64(1.0 - Float64(y / z)))
    	tmp = 0.0
    	if (z <= -1.62e+142)
    		tmp = t_1;
    	elseif (z <= 1.95e+158)
    		tmp = Float64(Float64(y - z) * Float64(x_m / 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 * (1.0 - (y / z));
    	tmp = 0.0;
    	if (z <= -1.62e+142)
    		tmp = t_1;
    	elseif (z <= 1.95e+158)
    		tmp = (y - z) * (x_m / (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[(x$95$m * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -1.62e+142], t$95$1, If[LessEqual[z, 1.95e+158], N[(N[(y - z), $MachinePrecision] * N[(x$95$m / 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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -1.62 \cdot 10^{+142}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 1.95 \cdot 10^{+158}:\\
    \;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - z}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -1.62000000000000006e142 or 1.95e158 < z

      1. Initial program 62.0%

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

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

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

          \[\leadsto \mathsf{neg}\left(x \cdot \frac{y - z}{z}\right) \]
        3. distribute-rgt-neg-inN/A

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

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \color{blue}{\frac{y - z}{z}}\right)\right) \]
        6. div-subN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - \color{blue}{\frac{z}{z}}\right)\right)\right) \]
        7. *-inversesN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - 1\right)\right)\right) \]
        8. associate-+l-N/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + 1\right)\right) \]
        10. mul-1-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
        12. mul-1-negN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
        13. unsub-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
        15. /-lowering-/.f6490.8%

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

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

      if -1.62000000000000006e142 < z < 1.95e158

      1. Initial program 92.7%

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

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

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

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

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

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

          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(x, \mathsf{\_.f64}\left(t, z\right)\right), \left(y - z\right)\right) \]
        7. --lowering--.f6494.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-rr94.2%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.62 \cdot 10^{+142}:\\ \;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\ \mathbf{elif}\;z \leq 1.95 \cdot 10^{+158}:\\ \;\;\;\;\left(y - z\right) \cdot \frac{x}{t - z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 5: 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 := x\_m \cdot \frac{y - z}{t}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t \leq -9 \cdot 10^{+86}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{+54}:\\ \;\;\;\;x\_m \cdot \left(1 - \frac{y}{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 (/ (- y z) t))))
       (*
        x_s
        (if (<= t -9e+86) t_1 (if (<= t 5.2e+54) (* x_m (- 1.0 (/ y 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 * ((y - z) / t);
    	double tmp;
    	if (t <= -9e+86) {
    		tmp = t_1;
    	} else if (t <= 5.2e+54) {
    		tmp = x_m * (1.0 - (y / 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 * ((y - z) / t)
        if (t <= (-9d+86)) then
            tmp = t_1
        else if (t <= 5.2d+54) then
            tmp = x_m * (1.0d0 - (y / 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 * ((y - z) / t);
    	double tmp;
    	if (t <= -9e+86) {
    		tmp = t_1;
    	} else if (t <= 5.2e+54) {
    		tmp = x_m * (1.0 - (y / 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 * ((y - z) / t)
    	tmp = 0
    	if t <= -9e+86:
    		tmp = t_1
    	elif t <= 5.2e+54:
    		tmp = x_m * (1.0 - (y / 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(x_m * Float64(Float64(y - z) / t))
    	tmp = 0.0
    	if (t <= -9e+86)
    		tmp = t_1;
    	elseif (t <= 5.2e+54)
    		tmp = Float64(x_m * Float64(1.0 - Float64(y / 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 * ((y - z) / t);
    	tmp = 0.0;
    	if (t <= -9e+86)
    		tmp = t_1;
    	elseif (t <= 5.2e+54)
    		tmp = x_m * (1.0 - (y / 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[(x$95$m * N[(N[(y - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t, -9e+86], t$95$1, If[LessEqual[t, 5.2e+54], N[(x$95$m * N[(1.0 - N[(y / 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 := x\_m \cdot \frac{y - z}{t}\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;t \leq -9 \cdot 10^{+86}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 5.2 \cdot 10^{+54}:\\
    \;\;\;\;x\_m \cdot \left(1 - \frac{y}{z}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if t < -8.99999999999999986e86 or 5.20000000000000013e54 < t

      1. Initial program 84.1%

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

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

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

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

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

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

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

      if -8.99999999999999986e86 < t < 5.20000000000000013e54

      1. Initial program 84.4%

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

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

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

          \[\leadsto \mathsf{neg}\left(x \cdot \frac{y - z}{z}\right) \]
        3. distribute-rgt-neg-inN/A

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

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \color{blue}{\frac{y - z}{z}}\right)\right) \]
        6. div-subN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - \color{blue}{\frac{z}{z}}\right)\right)\right) \]
        7. *-inversesN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - 1\right)\right)\right) \]
        8. associate-+l-N/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + 1\right)\right) \]
        10. mul-1-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
        12. mul-1-negN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
        13. unsub-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
        15. /-lowering-/.f6477.0%

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
      5. Simplified77.0%

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

    Alternative 6: 69.9% 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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -8 \cdot 10^{-82}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.48 \cdot 10^{-33}:\\ \;\;\;\;\frac{x\_m \cdot y}{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 (- 1.0 (/ y z)))))
       (* x_s (if (<= z -8e-82) t_1 (if (<= z 1.48e-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 * (1.0 - (y / z));
    	double tmp;
    	if (z <= -8e-82) {
    		tmp = t_1;
    	} else if (z <= 1.48e-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 * (1.0d0 - (y / z))
        if (z <= (-8d-82)) then
            tmp = t_1
        else if (z <= 1.48d-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 * (1.0 - (y / z));
    	double tmp;
    	if (z <= -8e-82) {
    		tmp = t_1;
    	} else if (z <= 1.48e-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 * (1.0 - (y / z))
    	tmp = 0
    	if z <= -8e-82:
    		tmp = t_1
    	elif z <= 1.48e-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(1.0 - Float64(y / z)))
    	tmp = 0.0
    	if (z <= -8e-82)
    		tmp = t_1;
    	elseif (z <= 1.48e-33)
    		tmp = Float64(Float64(x_m * 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 * (1.0 - (y / z));
    	tmp = 0.0;
    	if (z <= -8e-82)
    		tmp = t_1;
    	elseif (z <= 1.48e-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[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -8e-82], t$95$1, If[LessEqual[z, 1.48e-33], N[(N[(x$95$m * y), $MachinePrecision] / t), $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 := x\_m \cdot \left(1 - \frac{y}{z}\right)\\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;z \leq -8 \cdot 10^{-82}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 1.48 \cdot 10^{-33}:\\
    \;\;\;\;\frac{x\_m \cdot y}{t}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -8e-82 or 1.47999999999999995e-33 < z

      1. Initial program 76.4%

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

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

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

          \[\leadsto \mathsf{neg}\left(x \cdot \frac{y - z}{z}\right) \]
        3. distribute-rgt-neg-inN/A

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

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \color{blue}{\frac{y - z}{z}}\right)\right) \]
        6. div-subN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - \color{blue}{\frac{z}{z}}\right)\right)\right) \]
        7. *-inversesN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(0 - \left(\frac{y}{z} - 1\right)\right)\right) \]
        8. associate-+l-N/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + 1\right)\right) \]
        10. mul-1-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
        12. mul-1-negN/A

          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
        13. unsub-negN/A

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

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
        15. /-lowering-/.f6472.0%

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
      5. Simplified72.0%

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

      if -8e-82 < z < 1.47999999999999995e-33

      1. Initial program 96.1%

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

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

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

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

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

    Alternative 7: 60.6% accurate, 0.6× 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}\;z \leq -1.16 \cdot 10^{+47}:\\ \;\;\;\;x\_m\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{+65}:\\ \;\;\;\;y \cdot \frac{x\_m}{t}\\ \mathbf{else}:\\ \;\;\;\;x\_m\\ \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 (<= z -1.16e+47) x_m (if (<= z 1.6e+65) (* y (/ x_m t)) x_m))))
    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 (z <= -1.16e+47) {
    		tmp = x_m;
    	} else if (z <= 1.6e+65) {
    		tmp = y * (x_m / t);
    	} else {
    		tmp = x_m;
    	}
    	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 (z <= (-1.16d+47)) then
            tmp = x_m
        else if (z <= 1.6d+65) then
            tmp = y * (x_m / t)
        else
            tmp = x_m
        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 (z <= -1.16e+47) {
    		tmp = x_m;
    	} else if (z <= 1.6e+65) {
    		tmp = y * (x_m / t);
    	} else {
    		tmp = x_m;
    	}
    	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 z <= -1.16e+47:
    		tmp = x_m
    	elif z <= 1.6e+65:
    		tmp = y * (x_m / t)
    	else:
    		tmp = x_m
    	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 (z <= -1.16e+47)
    		tmp = x_m;
    	elseif (z <= 1.6e+65)
    		tmp = Float64(y * Float64(x_m / t));
    	else
    		tmp = x_m;
    	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 (z <= -1.16e+47)
    		tmp = x_m;
    	elseif (z <= 1.6e+65)
    		tmp = y * (x_m / t);
    	else
    		tmp = x_m;
    	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[z, -1.16e+47], x$95$m, If[LessEqual[z, 1.6e+65], N[(y * N[(x$95$m / t), $MachinePrecision]), $MachinePrecision], x$95$m]]), $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}\;z \leq -1.16 \cdot 10^{+47}:\\
    \;\;\;\;x\_m\\
    
    \mathbf{elif}\;z \leq 1.6 \cdot 10^{+65}:\\
    \;\;\;\;y \cdot \frac{x\_m}{t}\\
    
    \mathbf{else}:\\
    \;\;\;\;x\_m\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -1.1600000000000001e47 or 1.60000000000000003e65 < z

      1. Initial program 68.1%

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

        \[\leadsto \color{blue}{x} \]
      4. Step-by-step derivation
        1. Simplified65.4%

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

        if -1.1600000000000001e47 < z < 1.60000000000000003e65

        1. Initial program 96.0%

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

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

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

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

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

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

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

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

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

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

        Alternative 8: 96.9% accurate, 0.6× 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}\;x\_m \leq 1.5 \cdot 10^{-21}:\\ \;\;\;\;\frac{x\_m}{\frac{t - z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - 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 (<= x_m 1.5e-21)
            (/ x_m (/ (- t z) (- y z)))
            (* (- y z) (/ x_m (- 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) {
        	double tmp;
        	if (x_m <= 1.5e-21) {
        		tmp = x_m / ((t - z) / (y - z));
        	} else {
        		tmp = (y - z) * (x_m / (t - 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 (x_m <= 1.5d-21) then
                tmp = x_m / ((t - z) / (y - z))
            else
                tmp = (y - z) * (x_m / (t - 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 (x_m <= 1.5e-21) {
        		tmp = x_m / ((t - z) / (y - z));
        	} else {
        		tmp = (y - z) * (x_m / (t - 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 x_m <= 1.5e-21:
        		tmp = x_m / ((t - z) / (y - z))
        	else:
        		tmp = (y - z) * (x_m / (t - 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 (x_m <= 1.5e-21)
        		tmp = Float64(x_m / Float64(Float64(t - z) / Float64(y - z)));
        	else
        		tmp = Float64(Float64(y - z) * Float64(x_m / Float64(t - 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 (x_m <= 1.5e-21)
        		tmp = x_m / ((t - z) / (y - z));
        	else
        		tmp = (y - z) * (x_m / (t - 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[x$95$m, 1.5e-21], N[(x$95$m / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(x$95$m / N[(t - z), $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}\;x\_m \leq 1.5 \cdot 10^{-21}:\\
        \;\;\;\;\frac{x\_m}{\frac{t - z}{y - z}}\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - z}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 1.49999999999999996e-21

          1. Initial program 87.1%

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

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

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

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

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

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

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

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

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

          if 1.49999999999999996e-21 < x

          1. Initial program 75.5%

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

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

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

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

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

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

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

              \[\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-rr95.4%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 1.5 \cdot 10^{-21}:\\ \;\;\;\;\frac{x}{\frac{t - z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;\left(y - z\right) \cdot \frac{x}{t - z}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 9: 35.0% accurate, 9.0× speedup?

        \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot x\_m \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))
        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;
        }
        
        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
        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;
        }
        
        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
        
        x\_m = abs(x)
        x\_s = copysign(1.0, x)
        function code(x_s, x_m, y, z, t)
        	return Float64(x_s * x_m)
        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;
        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 * x$95$m), $MachinePrecision]
        
        \begin{array}{l}
        x\_m = \left|x\right|
        \\
        x\_s = \mathsf{copysign}\left(1, x\right)
        
        \\
        x\_s \cdot x\_m
        \end{array}
        
        Derivation
        1. Initial program 84.3%

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

          \[\leadsto \color{blue}{x} \]
        4. Step-by-step derivation
          1. Simplified35.0%

            \[\leadsto \color{blue}{x} \]
          2. Add Preprocessing

          Developer Target 1: 97.1% accurate, 1.0× speedup?

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

          Reproduce

          ?
          herbie shell --seed 2024158 
          (FPCore (x y z t)
            :name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
            :precision binary64
          
            :alt
            (! :herbie-platform default (/ x (/ (- t z) (- y z))))
          
            (/ (* x (- y z)) (- t z)))