
(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:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
(FPCore (x y z t) :precision binary64 (/ t (/ (- y z) (- y x))))
double code(double x, double y, double z, double t) {
return t / ((y - z) / (y - x));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = t / ((y - z) / (y - x))
end function
public static double code(double x, double y, double z, double t) {
return t / ((y - z) / (y - x));
}
def code(x, y, z, t): return t / ((y - z) / (y - x))
function code(x, y, z, t) return Float64(t / Float64(Float64(y - z) / Float64(y - x))) end
function tmp = code(x, y, z, t) tmp = t / ((y - z) / (y - x)); end
code[x_, y_, z_, t_] := N[(t / N[(N[(y - z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{t}{\frac{y - z}{y - x}}
\end{array}
Initial program 98.0%
*-commutative98.0%
associate-*r/84.4%
associate-/l*98.1%
sub-neg98.1%
+-commutative98.1%
neg-sub098.1%
associate-+l-98.1%
sub0-neg98.1%
neg-mul-198.1%
associate-/r*98.1%
Simplified98.1%
Final simplification98.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.3e+39)
t
(if (<= y 8.5e-14)
(/ t (/ z x))
(if (<= y 5.5e+44)
(* (/ t z) (- y))
(if (<= y 6.4e+81) t (if (<= y 5.5e+91) (* (/ x y) (- t)) t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.3e+39) {
tmp = t;
} else if (y <= 8.5e-14) {
tmp = t / (z / x);
} else if (y <= 5.5e+44) {
tmp = (t / z) * -y;
} else if (y <= 6.4e+81) {
tmp = t;
} else if (y <= 5.5e+91) {
tmp = (x / y) * -t;
} 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.3d+39)) then
tmp = t
else if (y <= 8.5d-14) then
tmp = t / (z / x)
else if (y <= 5.5d+44) then
tmp = (t / z) * -y
else if (y <= 6.4d+81) then
tmp = t
else if (y <= 5.5d+91) then
tmp = (x / y) * -t
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.3e+39) {
tmp = t;
} else if (y <= 8.5e-14) {
tmp = t / (z / x);
} else if (y <= 5.5e+44) {
tmp = (t / z) * -y;
} else if (y <= 6.4e+81) {
tmp = t;
} else if (y <= 5.5e+91) {
tmp = (x / y) * -t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.3e+39: tmp = t elif y <= 8.5e-14: tmp = t / (z / x) elif y <= 5.5e+44: tmp = (t / z) * -y elif y <= 6.4e+81: tmp = t elif y <= 5.5e+91: tmp = (x / y) * -t else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.3e+39) tmp = t; elseif (y <= 8.5e-14) tmp = Float64(t / Float64(z / x)); elseif (y <= 5.5e+44) tmp = Float64(Float64(t / z) * Float64(-y)); elseif (y <= 6.4e+81) tmp = t; elseif (y <= 5.5e+91) tmp = Float64(Float64(x / y) * Float64(-t)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.3e+39) tmp = t; elseif (y <= 8.5e-14) tmp = t / (z / x); elseif (y <= 5.5e+44) tmp = (t / z) * -y; elseif (y <= 6.4e+81) tmp = t; elseif (y <= 5.5e+91) tmp = (x / y) * -t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.3e+39], t, If[LessEqual[y, 8.5e-14], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e+44], N[(N[(t / z), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, 6.4e+81], t, If[LessEqual[y, 5.5e+91], N[(N[(x / y), $MachinePrecision] * (-t)), $MachinePrecision], t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+39}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-14}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+44}:\\
\;\;\;\;\frac{t}{z} \cdot \left(-y\right)\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+81}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{y} \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.3e39 or 5.5000000000000001e44 < y < 6.4e81 or 5.4999999999999998e91 < y Initial program 99.9%
Taylor expanded in y around inf 64.7%
if -1.3e39 < y < 8.50000000000000038e-14Initial program 96.4%
Taylor expanded in y around 0 63.3%
associate-/l*64.9%
Simplified64.9%
if 8.50000000000000038e-14 < y < 5.5000000000000001e44Initial program 99.3%
*-commutative99.3%
associate-*r/99.5%
associate-/l*99.5%
sub-neg99.5%
+-commutative99.5%
neg-sub099.5%
associate-+l-99.5%
sub0-neg99.5%
neg-mul-199.5%
associate-/r*99.5%
Simplified99.5%
Taylor expanded in x around 0 54.8%
associate-/r/54.7%
Applied egg-rr54.7%
Taylor expanded in y around 0 51.6%
associate-*r/51.6%
neg-mul-151.6%
Simplified51.6%
if 6.4e81 < y < 5.4999999999999998e91Initial program 100.0%
Taylor expanded in x around inf 99.2%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in z around 0 99.2%
mul-1-neg99.2%
associate-*r/100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Final simplification64.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -6.8e+38)
t
(if (<= y 7.8e-11)
(/ t (/ z x))
(if (<= y 1.55e+45)
(* t (/ (- y) z))
(if (<= y 5.2e+81) t (if (<= y 5.5e+91) (* (/ x y) (- t)) t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.8e+38) {
tmp = t;
} else if (y <= 7.8e-11) {
tmp = t / (z / x);
} else if (y <= 1.55e+45) {
tmp = t * (-y / z);
} else if (y <= 5.2e+81) {
tmp = t;
} else if (y <= 5.5e+91) {
tmp = (x / y) * -t;
} 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 <= (-6.8d+38)) then
tmp = t
else if (y <= 7.8d-11) then
tmp = t / (z / x)
else if (y <= 1.55d+45) then
tmp = t * (-y / z)
else if (y <= 5.2d+81) then
tmp = t
else if (y <= 5.5d+91) then
tmp = (x / y) * -t
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 <= -6.8e+38) {
tmp = t;
} else if (y <= 7.8e-11) {
tmp = t / (z / x);
} else if (y <= 1.55e+45) {
tmp = t * (-y / z);
} else if (y <= 5.2e+81) {
tmp = t;
} else if (y <= 5.5e+91) {
tmp = (x / y) * -t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6.8e+38: tmp = t elif y <= 7.8e-11: tmp = t / (z / x) elif y <= 1.55e+45: tmp = t * (-y / z) elif y <= 5.2e+81: tmp = t elif y <= 5.5e+91: tmp = (x / y) * -t else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6.8e+38) tmp = t; elseif (y <= 7.8e-11) tmp = Float64(t / Float64(z / x)); elseif (y <= 1.55e+45) tmp = Float64(t * Float64(Float64(-y) / z)); elseif (y <= 5.2e+81) tmp = t; elseif (y <= 5.5e+91) tmp = Float64(Float64(x / y) * Float64(-t)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6.8e+38) tmp = t; elseif (y <= 7.8e-11) tmp = t / (z / x); elseif (y <= 1.55e+45) tmp = t * (-y / z); elseif (y <= 5.2e+81) tmp = t; elseif (y <= 5.5e+91) tmp = (x / y) * -t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6.8e+38], t, If[LessEqual[y, 7.8e-11], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e+45], N[(t * N[((-y) / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+81], t, If[LessEqual[y, 5.5e+91], N[(N[(x / y), $MachinePrecision] * (-t)), $MachinePrecision], t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+38}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{-11}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+45}:\\
\;\;\;\;t \cdot \frac{-y}{z}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+81}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{y} \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -6.79999999999999992e38 or 1.54999999999999994e45 < y < 5.19999999999999984e81 or 5.4999999999999998e91 < y Initial program 99.9%
Taylor expanded in y around inf 64.7%
if -6.79999999999999992e38 < y < 7.80000000000000021e-11Initial program 96.4%
Taylor expanded in y around 0 63.3%
associate-/l*64.9%
Simplified64.9%
if 7.80000000000000021e-11 < y < 1.54999999999999994e45Initial program 99.3%
Taylor expanded in z around inf 57.1%
Taylor expanded in x around 0 51.9%
neg-mul-151.9%
distribute-neg-frac51.9%
Simplified51.9%
if 5.19999999999999984e81 < y < 5.4999999999999998e91Initial program 100.0%
Taylor expanded in x around inf 99.2%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in z around 0 99.2%
mul-1-neg99.2%
associate-*r/100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Final simplification64.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (/ t (- y z)))))
(if (<= y -1.12e+201)
t
(if (<= y -4.4e-31)
t_1
(if (<= y 3.5e-28) (/ t (/ z x)) (if (<= y 7.8e+178) t_1 t))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t / (y - z));
double tmp;
if (y <= -1.12e+201) {
tmp = t;
} else if (y <= -4.4e-31) {
tmp = t_1;
} else if (y <= 3.5e-28) {
tmp = t / (z / x);
} else if (y <= 7.8e+178) {
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 = y * (t / (y - z))
if (y <= (-1.12d+201)) then
tmp = t
else if (y <= (-4.4d-31)) then
tmp = t_1
else if (y <= 3.5d-28) then
tmp = t / (z / x)
else if (y <= 7.8d+178) 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 = y * (t / (y - z));
double tmp;
if (y <= -1.12e+201) {
tmp = t;
} else if (y <= -4.4e-31) {
tmp = t_1;
} else if (y <= 3.5e-28) {
tmp = t / (z / x);
} else if (y <= 7.8e+178) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t / (y - z)) tmp = 0 if y <= -1.12e+201: tmp = t elif y <= -4.4e-31: tmp = t_1 elif y <= 3.5e-28: tmp = t / (z / x) elif y <= 7.8e+178: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t / Float64(y - z))) tmp = 0.0 if (y <= -1.12e+201) tmp = t; elseif (y <= -4.4e-31) tmp = t_1; elseif (y <= 3.5e-28) tmp = Float64(t / Float64(z / x)); elseif (y <= 7.8e+178) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t / (y - z)); tmp = 0.0; if (y <= -1.12e+201) tmp = t; elseif (y <= -4.4e-31) tmp = t_1; elseif (y <= 3.5e-28) tmp = t / (z / x); elseif (y <= 7.8e+178) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+201], t, If[LessEqual[y, -4.4e-31], t$95$1, If[LessEqual[y, 3.5e-28], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e+178], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{y - z}\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+201}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-28}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+178}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.11999999999999994e201 or 7.7999999999999995e178 < y Initial program 99.9%
Taylor expanded in y around inf 84.4%
if -1.11999999999999994e201 < y < -4.40000000000000019e-31 or 3.5e-28 < y < 7.7999999999999995e178Initial program 99.8%
*-commutative99.8%
associate-*r/79.1%
associate-/l*99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 53.9%
associate-*l/63.3%
*-commutative63.3%
Simplified63.3%
if -4.40000000000000019e-31 < y < 3.5e-28Initial program 95.9%
Taylor expanded in y around 0 68.1%
associate-/l*69.9%
Simplified69.9%
Final simplification70.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (/ t (- y z)))))
(if (<= y -1.12e+201)
t
(if (<= y -2.1e-28)
t_1
(if (<= y 1.05e-27) (* (- x y) (/ t z)) (if (<= y 7.8e+178) t_1 t))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t / (y - z));
double tmp;
if (y <= -1.12e+201) {
tmp = t;
} else if (y <= -2.1e-28) {
tmp = t_1;
} else if (y <= 1.05e-27) {
tmp = (x - y) * (t / z);
} else if (y <= 7.8e+178) {
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 = y * (t / (y - z))
if (y <= (-1.12d+201)) then
tmp = t
else if (y <= (-2.1d-28)) then
tmp = t_1
else if (y <= 1.05d-27) then
tmp = (x - y) * (t / z)
else if (y <= 7.8d+178) 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 = y * (t / (y - z));
double tmp;
if (y <= -1.12e+201) {
tmp = t;
} else if (y <= -2.1e-28) {
tmp = t_1;
} else if (y <= 1.05e-27) {
tmp = (x - y) * (t / z);
} else if (y <= 7.8e+178) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t / (y - z)) tmp = 0 if y <= -1.12e+201: tmp = t elif y <= -2.1e-28: tmp = t_1 elif y <= 1.05e-27: tmp = (x - y) * (t / z) elif y <= 7.8e+178: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t / Float64(y - z))) tmp = 0.0 if (y <= -1.12e+201) tmp = t; elseif (y <= -2.1e-28) tmp = t_1; elseif (y <= 1.05e-27) tmp = Float64(Float64(x - y) * Float64(t / z)); elseif (y <= 7.8e+178) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t / (y - z)); tmp = 0.0; if (y <= -1.12e+201) tmp = t; elseif (y <= -2.1e-28) tmp = t_1; elseif (y <= 1.05e-27) tmp = (x - y) * (t / z); elseif (y <= 7.8e+178) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+201], t, If[LessEqual[y, -2.1e-28], t$95$1, If[LessEqual[y, 1.05e-27], N[(N[(x - y), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e+178], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{y - z}\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+201}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-27}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{t}{z}\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+178}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.11999999999999994e201 or 7.7999999999999995e178 < y Initial program 99.9%
Taylor expanded in y around inf 84.4%
if -1.11999999999999994e201 < y < -2.10000000000000006e-28 or 1.05000000000000008e-27 < y < 7.7999999999999995e178Initial program 99.8%
*-commutative99.8%
associate-*r/79.1%
associate-/l*99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 53.9%
associate-*l/63.3%
*-commutative63.3%
Simplified63.3%
if -2.10000000000000006e-28 < y < 1.05000000000000008e-27Initial program 95.9%
Taylor expanded in z around inf 75.3%
associate-/l*76.7%
Simplified76.7%
Taylor expanded in t around 0 75.3%
associate-/l*76.7%
associate-/r/75.2%
Simplified75.2%
Final simplification72.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (/ t (- y z)))))
(if (<= y -1.12e+201)
t
(if (<= y -3.7e-26)
t_1
(if (<= y 3.6e-28) (* t (/ (- x y) z)) (if (<= y 9.5e+178) t_1 t))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t / (y - z));
double tmp;
if (y <= -1.12e+201) {
tmp = t;
} else if (y <= -3.7e-26) {
tmp = t_1;
} else if (y <= 3.6e-28) {
tmp = t * ((x - y) / z);
} else if (y <= 9.5e+178) {
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 = y * (t / (y - z))
if (y <= (-1.12d+201)) then
tmp = t
else if (y <= (-3.7d-26)) then
tmp = t_1
else if (y <= 3.6d-28) then
tmp = t * ((x - y) / z)
else if (y <= 9.5d+178) 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 = y * (t / (y - z));
double tmp;
if (y <= -1.12e+201) {
tmp = t;
} else if (y <= -3.7e-26) {
tmp = t_1;
} else if (y <= 3.6e-28) {
tmp = t * ((x - y) / z);
} else if (y <= 9.5e+178) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t / (y - z)) tmp = 0 if y <= -1.12e+201: tmp = t elif y <= -3.7e-26: tmp = t_1 elif y <= 3.6e-28: tmp = t * ((x - y) / z) elif y <= 9.5e+178: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t / Float64(y - z))) tmp = 0.0 if (y <= -1.12e+201) tmp = t; elseif (y <= -3.7e-26) tmp = t_1; elseif (y <= 3.6e-28) tmp = Float64(t * Float64(Float64(x - y) / z)); elseif (y <= 9.5e+178) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t / (y - z)); tmp = 0.0; if (y <= -1.12e+201) tmp = t; elseif (y <= -3.7e-26) tmp = t_1; elseif (y <= 3.6e-28) tmp = t * ((x - y) / z); elseif (y <= 9.5e+178) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+201], t, If[LessEqual[y, -3.7e-26], t$95$1, If[LessEqual[y, 3.6e-28], N[(t * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e+178], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{y - z}\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+201}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-28}:\\
\;\;\;\;t \cdot \frac{x - y}{z}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{+178}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.11999999999999994e201 or 9.5e178 < y Initial program 99.9%
Taylor expanded in y around inf 84.4%
if -1.11999999999999994e201 < y < -3.6999999999999999e-26 or 3.5999999999999999e-28 < y < 9.5e178Initial program 99.8%
*-commutative99.8%
associate-*r/79.1%
associate-/l*99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 53.9%
associate-*l/63.3%
*-commutative63.3%
Simplified63.3%
if -3.6999999999999999e-26 < y < 3.5999999999999999e-28Initial program 95.9%
Taylor expanded in z around inf 76.5%
Final simplification73.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.08e+191) (not (<= y 2.3e+207))) (/ t (/ (- y z) y)) (* (- y x) (/ t (- y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.08e+191) || !(y <= 2.3e+207)) {
tmp = t / ((y - z) / y);
} else {
tmp = (y - x) * (t / (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 <= (-1.08d+191)) .or. (.not. (y <= 2.3d+207))) then
tmp = t / ((y - z) / y)
else
tmp = (y - x) * (t / (y - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.08e+191) || !(y <= 2.3e+207)) {
tmp = t / ((y - z) / y);
} else {
tmp = (y - x) * (t / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.08e+191) or not (y <= 2.3e+207): tmp = t / ((y - z) / y) else: tmp = (y - x) * (t / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.08e+191) || !(y <= 2.3e+207)) tmp = Float64(t / Float64(Float64(y - z) / y)); else tmp = Float64(Float64(y - x) * Float64(t / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.08e+191) || ~((y <= 2.3e+207))) tmp = t / ((y - z) / y); else tmp = (y - x) * (t / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.08e+191], N[Not[LessEqual[y, 2.3e+207]], $MachinePrecision]], N[(t / N[(N[(y - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.08 \cdot 10^{+191} \lor \neg \left(y \leq 2.3 \cdot 10^{+207}\right):\\
\;\;\;\;\frac{t}{\frac{y - z}{y}}\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{t}{y - z}\\
\end{array}
\end{array}
if y < -1.08000000000000002e191 or 2.29999999999999995e207 < y Initial program 99.8%
*-commutative99.8%
associate-*r/74.0%
associate-/l*99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 97.8%
if -1.08000000000000002e191 < y < 2.29999999999999995e207Initial program 97.6%
*-commutative97.6%
associate-*r/86.3%
associate-/l*97.8%
sub-neg97.8%
+-commutative97.8%
neg-sub097.8%
associate-+l-97.8%
sub0-neg97.8%
neg-mul-197.8%
associate-/r*97.8%
Simplified97.8%
associate-/r/92.4%
Applied egg-rr92.4%
Final simplification93.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -6e-27) (not (<= z 0.115))) (* t (/ (- x y) z)) (* t (/ (- y x) y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6e-27) || !(z <= 0.115)) {
tmp = t * ((x - y) / z);
} else {
tmp = t * ((y - x) / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-6d-27)) .or. (.not. (z <= 0.115d0))) then
tmp = t * ((x - y) / z)
else
tmp = t * ((y - x) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6e-27) || !(z <= 0.115)) {
tmp = t * ((x - y) / z);
} else {
tmp = t * ((y - x) / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -6e-27) or not (z <= 0.115): tmp = t * ((x - y) / z) else: tmp = t * ((y - x) / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -6e-27) || !(z <= 0.115)) tmp = Float64(t * Float64(Float64(x - y) / z)); else tmp = Float64(t * Float64(Float64(y - x) / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -6e-27) || ~((z <= 0.115))) tmp = t * ((x - y) / z); else tmp = t * ((y - x) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -6e-27], N[Not[LessEqual[z, 0.115]], $MachinePrecision]], N[(t * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{-27} \lor \neg \left(z \leq 0.115\right):\\
\;\;\;\;t \cdot \frac{x - y}{z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - x}{y}\\
\end{array}
\end{array}
if z < -6.0000000000000002e-27 or 0.115000000000000005 < z Initial program 97.6%
Taylor expanded in z around inf 74.7%
if -6.0000000000000002e-27 < z < 0.115000000000000005Initial program 98.4%
Taylor expanded in z around 0 81.4%
associate-*r/81.4%
neg-mul-181.4%
neg-sub081.4%
associate--r-81.4%
neg-sub081.4%
+-commutative81.4%
sub-neg81.4%
Simplified81.4%
Final simplification77.9%
(FPCore (x y z t) :precision binary64 (if (<= y -2.1e-9) (/ t (/ (- y z) y)) (if (<= y 9e-26) (/ t (/ (- z y) x)) (- t (/ t (/ y x))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.1e-9) {
tmp = t / ((y - z) / y);
} else if (y <= 9e-26) {
tmp = t / ((z - y) / x);
} else {
tmp = t - (t / (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.1d-9)) then
tmp = t / ((y - z) / y)
else if (y <= 9d-26) then
tmp = t / ((z - y) / x)
else
tmp = t - (t / (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.1e-9) {
tmp = t / ((y - z) / y);
} else if (y <= 9e-26) {
tmp = t / ((z - y) / x);
} else {
tmp = t - (t / (y / x));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.1e-9: tmp = t / ((y - z) / y) elif y <= 9e-26: tmp = t / ((z - y) / x) else: tmp = t - (t / (y / x)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.1e-9) tmp = Float64(t / Float64(Float64(y - z) / y)); elseif (y <= 9e-26) tmp = Float64(t / Float64(Float64(z - y) / x)); else tmp = Float64(t - Float64(t / Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.1e-9) tmp = t / ((y - z) / y); elseif (y <= 9e-26) tmp = t / ((z - y) / x); else tmp = t - (t / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.1e-9], N[(t / N[(N[(y - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e-26], N[(t / N[(N[(z - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(t - N[(t / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{-9}:\\
\;\;\;\;\frac{t}{\frac{y - z}{y}}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-26}:\\
\;\;\;\;\frac{t}{\frac{z - y}{x}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t}{\frac{y}{x}}\\
\end{array}
\end{array}
if y < -2.10000000000000019e-9Initial program 99.9%
*-commutative99.9%
associate-*r/73.4%
associate-/l*99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
neg-mul-199.9%
associate-/r*99.9%
Simplified99.9%
Taylor expanded in x around 0 81.4%
if -2.10000000000000019e-9 < y < 8.9999999999999998e-26Initial program 96.2%
Taylor expanded in x around inf 80.2%
associate-/l*82.3%
Simplified82.3%
if 8.9999999999999998e-26 < y Initial program 99.8%
Taylor expanded in z around 0 62.5%
associate-*r/62.5%
*-commutative62.5%
neg-mul-162.5%
distribute-lft-neg-in62.5%
associate-/l*54.9%
neg-sub054.9%
associate--r-54.9%
neg-sub054.9%
+-commutative54.9%
sub-neg54.9%
Simplified54.9%
Taylor expanded in y around 0 76.6%
mul-1-neg76.6%
unsub-neg76.6%
associate-/l*76.5%
Simplified76.5%
Final simplification80.5%
(FPCore (x y z t) :precision binary64 (if (<= y -1.3e+38) t (if (<= y 9.5e-26) (* x (/ t z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.3e+38) {
tmp = t;
} else if (y <= 9.5e-26) {
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 <= (-1.3d+38)) then
tmp = t
else if (y <= 9.5d-26) 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 <= -1.3e+38) {
tmp = t;
} else if (y <= 9.5e-26) {
tmp = x * (t / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.3e+38: tmp = t elif y <= 9.5e-26: tmp = x * (t / z) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.3e+38) tmp = t; elseif (y <= 9.5e-26) 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 <= -1.3e+38) tmp = t; elseif (y <= 9.5e-26) tmp = x * (t / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.3e+38], t, If[LessEqual[y, 9.5e-26], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+38}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.3e38 or 9.4999999999999995e-26 < y Initial program 99.8%
Taylor expanded in y around inf 58.4%
if -1.3e38 < y < 9.4999999999999995e-26Initial program 96.4%
Taylor expanded in y around 0 64.2%
associate-/l*65.7%
Simplified65.7%
associate-/r/64.1%
Applied egg-rr64.1%
Final simplification61.4%
(FPCore (x y z t) :precision binary64 (if (<= y -3.25e+38) t (if (<= y 3e-26) (* t (/ x z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.25e+38) {
tmp = t;
} else if (y <= 3e-26) {
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 <= (-3.25d+38)) then
tmp = t
else if (y <= 3d-26) 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 <= -3.25e+38) {
tmp = t;
} else if (y <= 3e-26) {
tmp = t * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.25e+38: tmp = t elif y <= 3e-26: tmp = t * (x / z) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.25e+38) tmp = t; elseif (y <= 3e-26) 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 <= -3.25e+38) tmp = t; elseif (y <= 3e-26) tmp = t * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.25e+38], t, If[LessEqual[y, 3e-26], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.25 \cdot 10^{+38}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-26}:\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -3.25e38 or 3.00000000000000012e-26 < y Initial program 99.8%
Taylor expanded in y around inf 58.4%
if -3.25e38 < y < 3.00000000000000012e-26Initial program 96.4%
Taylor expanded in y around 0 65.5%
Final simplification62.2%
(FPCore (x y z t) :precision binary64 (if (<= y -2.5e+38) t (if (<= y 6e-26) (/ t (/ z x)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.5e+38) {
tmp = t;
} else if (y <= 6e-26) {
tmp = t / (z / x);
} 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 <= (-2.5d+38)) then
tmp = t
else if (y <= 6d-26) then
tmp = t / (z / x)
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 <= -2.5e+38) {
tmp = t;
} else if (y <= 6e-26) {
tmp = t / (z / x);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.5e+38: tmp = t elif y <= 6e-26: tmp = t / (z / x) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.5e+38) tmp = t; elseif (y <= 6e-26) tmp = Float64(t / Float64(z / x)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.5e+38) tmp = t; elseif (y <= 6e-26) tmp = t / (z / x); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.5e+38], t, If[LessEqual[y, 6e-26], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+38}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-26}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -2.49999999999999985e38 or 6.00000000000000023e-26 < y Initial program 99.8%
Taylor expanded in y around inf 58.4%
if -2.49999999999999985e38 < y < 6.00000000000000023e-26Initial program 96.4%
Taylor expanded in y around 0 64.2%
associate-/l*65.7%
Simplified65.7%
Final simplification62.3%
(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}
Initial program 98.0%
Final simplification98.0%
(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}
Initial program 98.0%
Taylor expanded in y around inf 33.5%
Final simplification33.5%
(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}
herbie shell --seed 2023290
(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))