Numeric.Signal.Multichannel:$cput from hsignal-0.2.7.1

Percentage Accurate: 96.9% → 96.9%
Time: 9.3s
Alternatives: 12
Speedup: 1.0×

Specification

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

\\
\frac{x - y}{z - y} \cdot t
\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 12 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: 96.9% accurate, 1.0× speedup?

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

\\
\frac{x - y}{z - y} \cdot t
\end{array}

Alternative 1: 96.9% accurate, 1.0× speedup?

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

\\
\frac{t}{\frac{z - y}{x - y}}
\end{array}
Derivation
  1. Initial program 97.2%

    \[\frac{x - y}{z - y} \cdot t \]
  2. Step-by-step derivation
    1. associate-*l/88.7%

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

      \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
  3. Simplified78.0%

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

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

      \[\leadsto \color{blue}{\frac{x - y}{z - y} \cdot t} \]
    3. *-commutative97.2%

      \[\leadsto \color{blue}{t \cdot \frac{x - y}{z - y}} \]
    4. clear-num97.1%

      \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{z - y}{x - y}}} \]
    5. un-div-inv97.2%

      \[\leadsto \color{blue}{\frac{t}{\frac{z - y}{x - y}}} \]
  5. Applied egg-rr97.2%

    \[\leadsto \color{blue}{\frac{t}{\frac{z - y}{x - y}}} \]
  6. Final simplification97.2%

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

Alternative 2: 66.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{t}{z - y}\\ \mathbf{if}\;y \leq -3.5 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq -3 \cdot 10^{-61}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{-20}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{t}{z}\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+58}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 5.1 \cdot 10^{+95}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (* x (/ t (- z y)))))
   (if (<= y -3.5e+89)
     t
     (if (<= y -3e-61)
       t_1
       (if (<= y 1.8e-20)
         (* (- x y) (/ t z))
         (if (<= y 2.6e+58) t (if (<= y 5.1e+95) t_1 t)))))))
double code(double x, double y, double z, double t) {
	double t_1 = x * (t / (z - y));
	double tmp;
	if (y <= -3.5e+89) {
		tmp = t;
	} else if (y <= -3e-61) {
		tmp = t_1;
	} else if (y <= 1.8e-20) {
		tmp = (x - y) * (t / z);
	} else if (y <= 2.6e+58) {
		tmp = t;
	} else if (y <= 5.1e+95) {
		tmp = t_1;
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x * (t / (z - y))
    if (y <= (-3.5d+89)) then
        tmp = t
    else if (y <= (-3d-61)) then
        tmp = t_1
    else if (y <= 1.8d-20) then
        tmp = (x - y) * (t / z)
    else if (y <= 2.6d+58) then
        tmp = t
    else if (y <= 5.1d+95) then
        tmp = t_1
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = x * (t / (z - y));
	double tmp;
	if (y <= -3.5e+89) {
		tmp = t;
	} else if (y <= -3e-61) {
		tmp = t_1;
	} else if (y <= 1.8e-20) {
		tmp = (x - y) * (t / z);
	} else if (y <= 2.6e+58) {
		tmp = t;
	} else if (y <= 5.1e+95) {
		tmp = t_1;
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = x * (t / (z - y))
	tmp = 0
	if y <= -3.5e+89:
		tmp = t
	elif y <= -3e-61:
		tmp = t_1
	elif y <= 1.8e-20:
		tmp = (x - y) * (t / z)
	elif y <= 2.6e+58:
		tmp = t
	elif y <= 5.1e+95:
		tmp = t_1
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	t_1 = Float64(x * Float64(t / Float64(z - y)))
	tmp = 0.0
	if (y <= -3.5e+89)
		tmp = t;
	elseif (y <= -3e-61)
		tmp = t_1;
	elseif (y <= 1.8e-20)
		tmp = Float64(Float64(x - y) * Float64(t / z));
	elseif (y <= 2.6e+58)
		tmp = t;
	elseif (y <= 5.1e+95)
		tmp = t_1;
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = x * (t / (z - y));
	tmp = 0.0;
	if (y <= -3.5e+89)
		tmp = t;
	elseif (y <= -3e-61)
		tmp = t_1;
	elseif (y <= 1.8e-20)
		tmp = (x - y) * (t / z);
	elseif (y <= 2.6e+58)
		tmp = t;
	elseif (y <= 5.1e+95)
		tmp = t_1;
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+89], t, If[LessEqual[y, -3e-61], t$95$1, If[LessEqual[y, 1.8e-20], N[(N[(x - y), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+58], t, If[LessEqual[y, 5.1e+95], t$95$1, t]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \frac{t}{z - y}\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+89}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq -3 \cdot 10^{-61}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;y \leq 2.6 \cdot 10^{+58}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 5.1 \cdot 10^{+95}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.5000000000000001e89 or 1.79999999999999987e-20 < y < 2.59999999999999988e58 or 5.10000000000000003e95 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/82.6%

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

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

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

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

    if -3.5000000000000001e89 < y < -3.00000000000000012e-61 or 2.59999999999999988e58 < y < 5.10000000000000003e95

    1. Initial program 97.6%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/87.6%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified87.9%

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

      \[\leadsto \color{blue}{\frac{t \cdot x}{z - y}} \]
    5. Step-by-step derivation
      1. associate-*l/56.5%

        \[\leadsto \color{blue}{\frac{t}{z - y} \cdot x} \]
      2. *-commutative56.5%

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

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

    if -3.00000000000000012e-61 < y < 1.79999999999999987e-20

    1. Initial program 94.1%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/95.9%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified88.6%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq -3 \cdot 10^{-61}:\\ \;\;\;\;x \cdot \frac{t}{z - y}\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{-20}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{t}{z}\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+58}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 5.1 \cdot 10^{+95}:\\ \;\;\;\;x \cdot \frac{t}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 3: 67.5% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.8 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{-20} \lor \neg \left(y \leq 2.6 \cdot 10^{+64}\right) \land y \leq 4.9 \cdot 10^{+95}:\\ \;\;\;\;x \cdot \frac{t}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -3.8e+89)
   t
   (if (or (<= y 1.6e-20) (and (not (<= y 2.6e+64)) (<= y 4.9e+95)))
     (* x (/ t (- z y)))
     t)))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -3.8e+89) {
		tmp = t;
	} else if ((y <= 1.6e-20) || (!(y <= 2.6e+64) && (y <= 4.9e+95))) {
		tmp = x * (t / (z - y));
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-3.8d+89)) then
        tmp = t
    else if ((y <= 1.6d-20) .or. (.not. (y <= 2.6d+64)) .and. (y <= 4.9d+95)) then
        tmp = x * (t / (z - y))
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -3.8e+89) {
		tmp = t;
	} else if ((y <= 1.6e-20) || (!(y <= 2.6e+64) && (y <= 4.9e+95))) {
		tmp = x * (t / (z - y));
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -3.8e+89:
		tmp = t
	elif (y <= 1.6e-20) or (not (y <= 2.6e+64) and (y <= 4.9e+95)):
		tmp = x * (t / (z - y))
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -3.8e+89)
		tmp = t;
	elseif ((y <= 1.6e-20) || (!(y <= 2.6e+64) && (y <= 4.9e+95)))
		tmp = Float64(x * Float64(t / Float64(z - y)));
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -3.8e+89)
		tmp = t;
	elseif ((y <= 1.6e-20) || (~((y <= 2.6e+64)) && (y <= 4.9e+95)))
		tmp = x * (t / (z - y));
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.8e+89], t, If[Or[LessEqual[y, 1.6e-20], And[N[Not[LessEqual[y, 2.6e+64]], $MachinePrecision], LessEqual[y, 4.9e+95]]], N[(x * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+89}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 1.6 \cdot 10^{-20} \lor \neg \left(y \leq 2.6 \cdot 10^{+64}\right) \land y \leq 4.9 \cdot 10^{+95}:\\
\;\;\;\;x \cdot \frac{t}{z - y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.80000000000000023e89 or 1.59999999999999985e-20 < y < 2.59999999999999997e64 or 4.8999999999999999e95 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/82.6%

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

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

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

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

    if -3.80000000000000023e89 < y < 1.59999999999999985e-20 or 2.59999999999999997e64 < y < 4.8999999999999999e95

    1. Initial program 95.2%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/93.3%

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

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

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

      \[\leadsto \color{blue}{\frac{t \cdot x}{z - y}} \]
    5. Step-by-step derivation
      1. associate-*l/64.7%

        \[\leadsto \color{blue}{\frac{t}{z - y} \cdot x} \]
      2. *-commutative64.7%

        \[\leadsto \color{blue}{x \cdot \frac{t}{z - y}} \]
    6. Simplified64.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.8 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{-20} \lor \neg \left(y \leq 2.6 \cdot 10^{+64}\right) \land y \leq 4.9 \cdot 10^{+95}:\\ \;\;\;\;x \cdot \frac{t}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 4: 68.1% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{-20} \lor \neg \left(y \leq 9.8 \cdot 10^{+61}\right) \land y \leq 1.05 \cdot 10^{+97}:\\ \;\;\;\;t \cdot \frac{x}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -7.2e+89)
   t
   (if (or (<= y 1.9e-20) (and (not (<= y 9.8e+61)) (<= y 1.05e+97)))
     (* t (/ x (- z y)))
     t)))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -7.2e+89) {
		tmp = t;
	} else if ((y <= 1.9e-20) || (!(y <= 9.8e+61) && (y <= 1.05e+97))) {
		tmp = t * (x / (z - y));
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-7.2d+89)) then
        tmp = t
    else if ((y <= 1.9d-20) .or. (.not. (y <= 9.8d+61)) .and. (y <= 1.05d+97)) then
        tmp = t * (x / (z - y))
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -7.2e+89) {
		tmp = t;
	} else if ((y <= 1.9e-20) || (!(y <= 9.8e+61) && (y <= 1.05e+97))) {
		tmp = t * (x / (z - y));
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -7.2e+89:
		tmp = t
	elif (y <= 1.9e-20) or (not (y <= 9.8e+61) and (y <= 1.05e+97)):
		tmp = t * (x / (z - y))
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -7.2e+89)
		tmp = t;
	elseif ((y <= 1.9e-20) || (!(y <= 9.8e+61) && (y <= 1.05e+97)))
		tmp = Float64(t * Float64(x / Float64(z - y)));
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -7.2e+89)
		tmp = t;
	elseif ((y <= 1.9e-20) || (~((y <= 9.8e+61)) && (y <= 1.05e+97)))
		tmp = t * (x / (z - y));
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -7.2e+89], t, If[Or[LessEqual[y, 1.9e-20], And[N[Not[LessEqual[y, 9.8e+61]], $MachinePrecision], LessEqual[y, 1.05e+97]]], N[(t * N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+89}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 1.9 \cdot 10^{-20} \lor \neg \left(y \leq 9.8 \cdot 10^{+61}\right) \land y \leq 1.05 \cdot 10^{+97}:\\
\;\;\;\;t \cdot \frac{x}{z - y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -7.2e89 or 1.8999999999999999e-20 < y < 9.8000000000000005e61 or 1.05000000000000006e97 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/82.6%

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

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

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

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

    if -7.2e89 < y < 1.8999999999999999e-20 or 9.8000000000000005e61 < y < 1.05000000000000006e97

    1. Initial program 95.2%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in x around inf 71.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{-20} \lor \neg \left(y \leq 9.8 \cdot 10^{+61}\right) \land y \leq 1.05 \cdot 10^{+97}:\\ \;\;\;\;t \cdot \frac{x}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 5: 61.6% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -4.3 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq -3.4 \cdot 10^{+50}:\\ \;\;\;\;x \cdot \left(-\frac{t}{y}\right)\\ \mathbf{elif}\;y \leq -2 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-22}:\\ \;\;\;\;t \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -4.3e+89)
   t
   (if (<= y -3.4e+50)
     (* x (- (/ t y)))
     (if (<= y -2e+24) t (if (<= y 9e-22) (* t (/ x z)) t)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -4.3e+89) {
		tmp = t;
	} else if (y <= -3.4e+50) {
		tmp = x * -(t / y);
	} else if (y <= -2e+24) {
		tmp = t;
	} else if (y <= 9e-22) {
		tmp = t * (x / z);
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-4.3d+89)) then
        tmp = t
    else if (y <= (-3.4d+50)) then
        tmp = x * -(t / y)
    else if (y <= (-2d+24)) then
        tmp = t
    else if (y <= 9d-22) then
        tmp = t * (x / z)
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -4.3e+89) {
		tmp = t;
	} else if (y <= -3.4e+50) {
		tmp = x * -(t / y);
	} else if (y <= -2e+24) {
		tmp = t;
	} else if (y <= 9e-22) {
		tmp = t * (x / z);
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -4.3e+89:
		tmp = t
	elif y <= -3.4e+50:
		tmp = x * -(t / y)
	elif y <= -2e+24:
		tmp = t
	elif y <= 9e-22:
		tmp = t * (x / z)
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -4.3e+89)
		tmp = t;
	elseif (y <= -3.4e+50)
		tmp = Float64(x * Float64(-Float64(t / y)));
	elseif (y <= -2e+24)
		tmp = t;
	elseif (y <= 9e-22)
		tmp = Float64(t * Float64(x / z));
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -4.3e+89)
		tmp = t;
	elseif (y <= -3.4e+50)
		tmp = x * -(t / y);
	elseif (y <= -2e+24)
		tmp = t;
	elseif (y <= 9e-22)
		tmp = t * (x / z);
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -4.3e+89], t, If[LessEqual[y, -3.4e+50], N[(x * (-N[(t / y), $MachinePrecision])), $MachinePrecision], If[LessEqual[y, -2e+24], t, If[LessEqual[y, 9e-22], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.3 \cdot 10^{+89}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq -3.4 \cdot 10^{+50}:\\
\;\;\;\;x \cdot \left(-\frac{t}{y}\right)\\

\mathbf{elif}\;y \leq -2 \cdot 10^{+24}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 9 \cdot 10^{-22}:\\
\;\;\;\;t \cdot \frac{x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.3000000000000002e89 or -3.3999999999999998e50 < y < -2e24 or 8.99999999999999973e-22 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/83.2%

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

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

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

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

    if -4.3000000000000002e89 < y < -3.3999999999999998e50

    1. Initial program 99.6%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/82.8%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified94.7%

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

      \[\leadsto \color{blue}{\frac{t \cdot x}{z - y}} \]
    5. Step-by-step derivation
      1. associate-*l/66.5%

        \[\leadsto \color{blue}{\frac{t}{z - y} \cdot x} \]
      2. *-commutative66.5%

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

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

      \[\leadsto x \cdot \color{blue}{\left(-1 \cdot \frac{t}{y}\right)} \]
    8. Step-by-step derivation
      1. associate-*r/54.2%

        \[\leadsto x \cdot \color{blue}{\frac{-1 \cdot t}{y}} \]
      2. neg-mul-154.2%

        \[\leadsto x \cdot \frac{\color{blue}{-t}}{y} \]
    9. Simplified54.2%

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

    if -2e24 < y < 8.99999999999999973e-22

    1. Initial program 94.2%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in y around 0 63.6%

      \[\leadsto \color{blue}{\frac{x}{z}} \cdot t \]
  3. Recombined 3 regimes into one program.
  4. Final simplification64.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.3 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq -3.4 \cdot 10^{+50}:\\ \;\;\;\;x \cdot \left(-\frac{t}{y}\right)\\ \mathbf{elif}\;y \leq -2 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-22}:\\ \;\;\;\;t \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 6: 61.6% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq -8.2 \cdot 10^{+49}:\\ \;\;\;\;\frac{-t}{\frac{y}{x}}\\ \mathbf{elif}\;y \leq -2.3 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 1.06 \cdot 10^{-21}:\\ \;\;\;\;t \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -7e+89)
   t
   (if (<= y -8.2e+49)
     (/ (- t) (/ y x))
     (if (<= y -2.3e+24) t (if (<= y 1.06e-21) (* t (/ x z)) t)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -7e+89) {
		tmp = t;
	} else if (y <= -8.2e+49) {
		tmp = -t / (y / x);
	} else if (y <= -2.3e+24) {
		tmp = t;
	} else if (y <= 1.06e-21) {
		tmp = t * (x / z);
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-7d+89)) then
        tmp = t
    else if (y <= (-8.2d+49)) then
        tmp = -t / (y / x)
    else if (y <= (-2.3d+24)) then
        tmp = t
    else if (y <= 1.06d-21) then
        tmp = t * (x / z)
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -7e+89) {
		tmp = t;
	} else if (y <= -8.2e+49) {
		tmp = -t / (y / x);
	} else if (y <= -2.3e+24) {
		tmp = t;
	} else if (y <= 1.06e-21) {
		tmp = t * (x / z);
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -7e+89:
		tmp = t
	elif y <= -8.2e+49:
		tmp = -t / (y / x)
	elif y <= -2.3e+24:
		tmp = t
	elif y <= 1.06e-21:
		tmp = t * (x / z)
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -7e+89)
		tmp = t;
	elseif (y <= -8.2e+49)
		tmp = Float64(Float64(-t) / Float64(y / x));
	elseif (y <= -2.3e+24)
		tmp = t;
	elseif (y <= 1.06e-21)
		tmp = Float64(t * Float64(x / z));
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -7e+89)
		tmp = t;
	elseif (y <= -8.2e+49)
		tmp = -t / (y / x);
	elseif (y <= -2.3e+24)
		tmp = t;
	elseif (y <= 1.06e-21)
		tmp = t * (x / z);
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -7e+89], t, If[LessEqual[y, -8.2e+49], N[((-t) / N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.3e+24], t, If[LessEqual[y, 1.06e-21], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+89}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq -8.2 \cdot 10^{+49}:\\
\;\;\;\;\frac{-t}{\frac{y}{x}}\\

\mathbf{elif}\;y \leq -2.3 \cdot 10^{+24}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 1.06 \cdot 10^{-21}:\\
\;\;\;\;t \cdot \frac{x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -7.0000000000000001e89 or -8.2e49 < y < -2.2999999999999999e24 or 1.05999999999999994e-21 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/83.2%

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

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

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

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

    if -7.0000000000000001e89 < y < -8.2e49

    1. Initial program 99.6%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/82.8%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified94.7%

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

      \[\leadsto \color{blue}{\frac{t \cdot x}{z - y}} \]
    5. Step-by-step derivation
      1. associate-*l/66.5%

        \[\leadsto \color{blue}{\frac{t}{z - y} \cdot x} \]
      2. *-commutative66.5%

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

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

      \[\leadsto x \cdot \color{blue}{\left(-1 \cdot \frac{t}{y}\right)} \]
    8. Step-by-step derivation
      1. associate-*r/54.2%

        \[\leadsto x \cdot \color{blue}{\frac{-1 \cdot t}{y}} \]
      2. neg-mul-154.2%

        \[\leadsto x \cdot \frac{\color{blue}{-t}}{y} \]
    9. Simplified54.2%

      \[\leadsto x \cdot \color{blue}{\frac{-t}{y}} \]
    10. Taylor expanded in x around 0 45.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot x}{y}} \]
    11. Step-by-step derivation
      1. mul-1-neg45.3%

        \[\leadsto \color{blue}{-\frac{t \cdot x}{y}} \]
      2. associate-/l*54.2%

        \[\leadsto -\color{blue}{\frac{t}{\frac{y}{x}}} \]
      3. distribute-neg-frac54.2%

        \[\leadsto \color{blue}{\frac{-t}{\frac{y}{x}}} \]
    12. Simplified54.2%

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

    if -2.2999999999999999e24 < y < 1.05999999999999994e-21

    1. Initial program 94.2%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in y around 0 63.6%

      \[\leadsto \color{blue}{\frac{x}{z}} \cdot t \]
  3. Recombined 3 regimes into one program.
  4. Final simplification64.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+89}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq -8.2 \cdot 10^{+49}:\\ \;\;\;\;\frac{-t}{\frac{y}{x}}\\ \mathbf{elif}\;y \leq -2.3 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 1.06 \cdot 10^{-21}:\\ \;\;\;\;t \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 7: 89.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{+92}:\\ \;\;\;\;\frac{t}{\frac{-y}{x - y}}\\ \mathbf{elif}\;y \leq 9.8 \cdot 10^{+148}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{t}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{y - z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -6.8e+92)
   (/ t (/ (- y) (- x y)))
   (if (<= y 9.8e+148) (* (- x y) (/ t (- z y))) (* t (/ y (- y z))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -6.8e+92) {
		tmp = t / (-y / (x - y));
	} else if (y <= 9.8e+148) {
		tmp = (x - y) * (t / (z - y));
	} else {
		tmp = t * (y / (y - z));
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-6.8d+92)) then
        tmp = t / (-y / (x - y))
    else if (y <= 9.8d+148) then
        tmp = (x - y) * (t / (z - y))
    else
        tmp = t * (y / (y - z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -6.8e+92) {
		tmp = t / (-y / (x - y));
	} else if (y <= 9.8e+148) {
		tmp = (x - y) * (t / (z - y));
	} else {
		tmp = t * (y / (y - z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -6.8e+92:
		tmp = t / (-y / (x - y))
	elif y <= 9.8e+148:
		tmp = (x - y) * (t / (z - y))
	else:
		tmp = t * (y / (y - z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -6.8e+92)
		tmp = Float64(t / Float64(Float64(-y) / Float64(x - y)));
	elseif (y <= 9.8e+148)
		tmp = Float64(Float64(x - y) * Float64(t / Float64(z - y)));
	else
		tmp = Float64(t * Float64(y / Float64(y - z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -6.8e+92)
		tmp = t / (-y / (x - y));
	elseif (y <= 9.8e+148)
		tmp = (x - y) * (t / (z - y));
	else
		tmp = t * (y / (y - z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -6.8e+92], N[(t / N[((-y) / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.8e+148], N[(N[(x - y), $MachinePrecision] * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+92}:\\
\;\;\;\;\frac{t}{\frac{-y}{x - y}}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -6.7999999999999996e92

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/83.1%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified57.4%

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

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

        \[\leadsto \color{blue}{\frac{x - y}{z - y} \cdot t} \]
      3. *-commutative99.8%

        \[\leadsto \color{blue}{t \cdot \frac{x - y}{z - y}} \]
      4. clear-num99.8%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{z - y}{x - y}}} \]
      5. un-div-inv99.8%

        \[\leadsto \color{blue}{\frac{t}{\frac{z - y}{x - y}}} \]
    5. Applied egg-rr99.8%

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

      \[\leadsto \frac{t}{\color{blue}{-1 \cdot \frac{y}{x - y}}} \]
    7. Step-by-step derivation
      1. neg-mul-187.7%

        \[\leadsto \frac{t}{\color{blue}{-\frac{y}{x - y}}} \]
      2. distribute-neg-frac87.7%

        \[\leadsto \frac{t}{\color{blue}{\frac{-y}{x - y}}} \]
    8. Simplified87.7%

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

    if -6.7999999999999996e92 < y < 9.8e148

    1. Initial program 96.0%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/92.9%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified89.4%

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

    if 9.8e148 < y

    1. Initial program 99.9%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in x around 0 90.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \frac{y}{z - y}\right)} \cdot t \]
    3. Step-by-step derivation
      1. neg-mul-190.6%

        \[\leadsto \color{blue}{\left(-\frac{y}{z - y}\right)} \cdot t \]
      2. distribute-neg-frac90.6%

        \[\leadsto \color{blue}{\frac{-y}{z - y}} \cdot t \]
    4. Simplified90.6%

      \[\leadsto \color{blue}{\frac{-y}{z - y}} \cdot t \]
    5. Step-by-step derivation
      1. frac-2neg90.6%

        \[\leadsto \color{blue}{\frac{-\left(-y\right)}{-\left(z - y\right)}} \cdot t \]
      2. div-inv90.4%

        \[\leadsto \color{blue}{\left(\left(-\left(-y\right)\right) \cdot \frac{1}{-\left(z - y\right)}\right)} \cdot t \]
      3. remove-double-neg90.4%

        \[\leadsto \left(\color{blue}{y} \cdot \frac{1}{-\left(z - y\right)}\right) \cdot t \]
      4. sub-neg90.4%

        \[\leadsto \left(y \cdot \frac{1}{-\color{blue}{\left(z + \left(-y\right)\right)}}\right) \cdot t \]
      5. distribute-neg-in90.4%

        \[\leadsto \left(y \cdot \frac{1}{\color{blue}{\left(-z\right) + \left(-\left(-y\right)\right)}}\right) \cdot t \]
      6. remove-double-neg90.4%

        \[\leadsto \left(y \cdot \frac{1}{\left(-z\right) + \color{blue}{y}}\right) \cdot t \]
    6. Applied egg-rr90.4%

      \[\leadsto \color{blue}{\left(y \cdot \frac{1}{\left(-z\right) + y}\right)} \cdot t \]
    7. Step-by-step derivation
      1. associate-*r/90.6%

        \[\leadsto \color{blue}{\frac{y \cdot 1}{\left(-z\right) + y}} \cdot t \]
      2. *-rgt-identity90.6%

        \[\leadsto \frac{\color{blue}{y}}{\left(-z\right) + y} \cdot t \]
      3. +-commutative90.6%

        \[\leadsto \frac{y}{\color{blue}{y + \left(-z\right)}} \cdot t \]
      4. unsub-neg90.6%

        \[\leadsto \frac{y}{\color{blue}{y - z}} \cdot t \]
    8. Simplified90.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{+92}:\\ \;\;\;\;\frac{t}{\frac{-y}{x - y}}\\ \mathbf{elif}\;y \leq 9.8 \cdot 10^{+148}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{t}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{y - z}\\ \end{array} \]

Alternative 8: 76.0% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.25 \cdot 10^{+22} \lor \neg \left(x \leq 1.6 \cdot 10^{+53}\right):\\ \;\;\;\;t \cdot \frac{x}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{y - z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= x -1.25e+22) (not (<= x 1.6e+53)))
   (* t (/ x (- z y)))
   (* t (/ y (- y z)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((x <= -1.25e+22) || !(x <= 1.6e+53)) {
		tmp = t * (x / (z - y));
	} else {
		tmp = t * (y / (y - z));
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if ((x <= (-1.25d+22)) .or. (.not. (x <= 1.6d+53))) then
        tmp = t * (x / (z - y))
    else
        tmp = t * (y / (y - z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((x <= -1.25e+22) || !(x <= 1.6e+53)) {
		tmp = t * (x / (z - y));
	} else {
		tmp = t * (y / (y - z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (x <= -1.25e+22) or not (x <= 1.6e+53):
		tmp = t * (x / (z - y))
	else:
		tmp = t * (y / (y - z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((x <= -1.25e+22) || !(x <= 1.6e+53))
		tmp = Float64(t * Float64(x / Float64(z - y)));
	else
		tmp = Float64(t * Float64(y / Float64(y - z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((x <= -1.25e+22) || ~((x <= 1.6e+53)))
		tmp = t * (x / (z - y));
	else
		tmp = t * (y / (y - z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.25e+22], N[Not[LessEqual[x, 1.6e+53]], $MachinePrecision]], N[(t * N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{+22} \lor \neg \left(x \leq 1.6 \cdot 10^{+53}\right):\\
\;\;\;\;t \cdot \frac{x}{z - y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.2499999999999999e22 or 1.6e53 < x

    1. Initial program 97.9%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in x around inf 77.6%

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

    if -1.2499999999999999e22 < x < 1.6e53

    1. Initial program 96.7%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in x around 0 80.8%

      \[\leadsto \color{blue}{\left(-1 \cdot \frac{y}{z - y}\right)} \cdot t \]
    3. Step-by-step derivation
      1. neg-mul-180.8%

        \[\leadsto \color{blue}{\left(-\frac{y}{z - y}\right)} \cdot t \]
      2. distribute-neg-frac80.8%

        \[\leadsto \color{blue}{\frac{-y}{z - y}} \cdot t \]
    4. Simplified80.8%

      \[\leadsto \color{blue}{\frac{-y}{z - y}} \cdot t \]
    5. Step-by-step derivation
      1. frac-2neg80.8%

        \[\leadsto \color{blue}{\frac{-\left(-y\right)}{-\left(z - y\right)}} \cdot t \]
      2. div-inv80.7%

        \[\leadsto \color{blue}{\left(\left(-\left(-y\right)\right) \cdot \frac{1}{-\left(z - y\right)}\right)} \cdot t \]
      3. remove-double-neg80.7%

        \[\leadsto \left(\color{blue}{y} \cdot \frac{1}{-\left(z - y\right)}\right) \cdot t \]
      4. sub-neg80.7%

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

        \[\leadsto \left(y \cdot \frac{1}{\color{blue}{\left(-z\right) + \left(-\left(-y\right)\right)}}\right) \cdot t \]
      6. remove-double-neg80.7%

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

      \[\leadsto \color{blue}{\left(y \cdot \frac{1}{\left(-z\right) + y}\right)} \cdot t \]
    7. Step-by-step derivation
      1. associate-*r/80.8%

        \[\leadsto \color{blue}{\frac{y \cdot 1}{\left(-z\right) + y}} \cdot t \]
      2. *-rgt-identity80.8%

        \[\leadsto \frac{\color{blue}{y}}{\left(-z\right) + y} \cdot t \]
      3. +-commutative80.8%

        \[\leadsto \frac{y}{\color{blue}{y + \left(-z\right)}} \cdot t \]
      4. unsub-neg80.8%

        \[\leadsto \frac{y}{\color{blue}{y - z}} \cdot t \]
    8. Simplified80.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.25 \cdot 10^{+22} \lor \neg \left(x \leq 1.6 \cdot 10^{+53}\right):\\ \;\;\;\;t \cdot \frac{x}{z - y}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{y - z}\\ \end{array} \]

Alternative 9: 59.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.3 \cdot 10^{+25}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-107}:\\ \;\;\;\;x \cdot \frac{t}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -3.3e+25) t (if (<= y 2.9e-107) (* x (/ t z)) t)))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -3.3e+25) {
		tmp = t;
	} else if (y <= 2.9e-107) {
		tmp = x * (t / z);
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-3.3d+25)) then
        tmp = t
    else if (y <= 2.9d-107) then
        tmp = x * (t / z)
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -3.3e+25) {
		tmp = t;
	} else if (y <= 2.9e-107) {
		tmp = x * (t / z);
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -3.3e+25:
		tmp = t
	elif y <= 2.9e-107:
		tmp = x * (t / z)
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -3.3e+25)
		tmp = t;
	elseif (y <= 2.9e-107)
		tmp = Float64(x * Float64(t / z));
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -3.3e+25)
		tmp = t;
	elseif (y <= 2.9e-107)
		tmp = x * (t / z);
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.3e+25], t, If[LessEqual[y, 2.9e-107], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+25}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 2.9 \cdot 10^{-107}:\\
\;\;\;\;x \cdot \frac{t}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.3000000000000001e25 or 2.8999999999999998e-107 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/84.8%

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

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

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

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

    if -3.3000000000000001e25 < y < 2.8999999999999998e-107

    1. Initial program 93.5%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/94.4%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified89.2%

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

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

        \[\leadsto \color{blue}{\frac{x - y}{z - y} \cdot t} \]
      3. *-commutative93.5%

        \[\leadsto \color{blue}{t \cdot \frac{x - y}{z - y}} \]
      4. clear-num93.3%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{z - y}{x - y}}} \]
      5. un-div-inv93.4%

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

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

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

        \[\leadsto \color{blue}{\frac{t}{z} \cdot x} \]
      2. *-commutative65.0%

        \[\leadsto \color{blue}{x \cdot \frac{t}{z}} \]
    8. Simplified65.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.3 \cdot 10^{+25}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-107}:\\ \;\;\;\;x \cdot \frac{t}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 10: 61.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.6 \cdot 10^{+26}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 8.4 \cdot 10^{-22}:\\ \;\;\;\;t \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -1.6e+26) t (if (<= y 8.4e-22) (* t (/ x z)) t)))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -1.6e+26) {
		tmp = t;
	} else if (y <= 8.4e-22) {
		tmp = t * (x / z);
	} else {
		tmp = t;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if (y <= (-1.6d+26)) then
        tmp = t
    else if (y <= 8.4d-22) then
        tmp = t * (x / z)
    else
        tmp = t
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -1.6e+26) {
		tmp = t;
	} else if (y <= 8.4e-22) {
		tmp = t * (x / z);
	} else {
		tmp = t;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -1.6e+26:
		tmp = t
	elif y <= 8.4e-22:
		tmp = t * (x / z)
	else:
		tmp = t
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -1.6e+26)
		tmp = t;
	elseif (y <= 8.4e-22)
		tmp = Float64(t * Float64(x / z));
	else
		tmp = t;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -1.6e+26)
		tmp = t;
	elseif (y <= 8.4e-22)
		tmp = t * (x / z);
	else
		tmp = t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.6e+26], t, If[LessEqual[y, 8.4e-22], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+26}:\\
\;\;\;\;t\\

\mathbf{elif}\;y \leq 8.4 \cdot 10^{-22}:\\
\;\;\;\;t \cdot \frac{x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.60000000000000014e26 or 8.40000000000000031e-22 < y

    1. Initial program 99.8%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Step-by-step derivation
      1. associate-*l/83.2%

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

        \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
    3. Simplified68.4%

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

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

    if -1.60000000000000014e26 < y < 8.40000000000000031e-22

    1. Initial program 94.2%

      \[\frac{x - y}{z - y} \cdot t \]
    2. Taylor expanded in y around 0 63.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.6 \cdot 10^{+26}:\\ \;\;\;\;t\\ \mathbf{elif}\;y \leq 8.4 \cdot 10^{-22}:\\ \;\;\;\;t \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]

Alternative 11: 96.9% accurate, 1.0× speedup?

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

\\
t \cdot \frac{x - y}{z - y}
\end{array}
Derivation
  1. Initial program 97.2%

    \[\frac{x - y}{z - y} \cdot t \]
  2. Final simplification97.2%

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

Alternative 12: 35.2% accurate, 9.0× speedup?

\[\begin{array}{l} \\ t \end{array} \]
(FPCore (x y z t) :precision binary64 t)
double code(double x, double y, double z, double t) {
	return t;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = t
end function
public static double code(double x, double y, double z, double t) {
	return t;
}
def code(x, y, z, t):
	return t
function code(x, y, z, t)
	return t
end
function tmp = code(x, y, z, t)
	tmp = t;
end
code[x_, y_, z_, t_] := t
\begin{array}{l}

\\
t
\end{array}
Derivation
  1. Initial program 97.2%

    \[\frac{x - y}{z - y} \cdot t \]
  2. Step-by-step derivation
    1. associate-*l/88.7%

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

      \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{t}{z - y}} \]
  3. Simplified78.0%

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

    \[\leadsto \color{blue}{t} \]
  5. Final simplification38.9%

    \[\leadsto t \]

Developer target: 96.9% accurate, 1.0× speedup?

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

\\
\frac{t}{\frac{z - y}{x - y}}
\end{array}

Reproduce

?
herbie shell --seed 2023230 
(FPCore (x y z t)
  :name "Numeric.Signal.Multichannel:$cput from hsignal-0.2.7.1"
  :precision binary64

  :herbie-target
  (/ t (/ (- z y) (- x y)))

  (* (/ (- x y) (- z y)) t))