
(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 7 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
(let* ((t_1 (/ (- x y) (- z y))))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 2e+179)))
(/ (* x t) (- z y))
(* t_1 t))))
double code(double x, double y, double z, double t) {
double t_1 = (x - y) / (z - y);
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 2e+179)) {
tmp = (x * t) / (z - y);
} else {
tmp = t_1 * t;
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = (x - y) / (z - y);
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 2e+179)) {
tmp = (x * t) / (z - y);
} else {
tmp = t_1 * t;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x - y) / (z - y) tmp = 0 if (t_1 <= -math.inf) or not (t_1 <= 2e+179): tmp = (x * t) / (z - y) else: tmp = t_1 * t return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x - y) / Float64(z - y)) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 2e+179)) tmp = Float64(Float64(x * t) / Float64(z - y)); else tmp = Float64(t_1 * t); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x - y) / (z - y); tmp = 0.0; if ((t_1 <= -Inf) || ~((t_1 <= 2e+179))) tmp = (x * t) / (z - y); else tmp = t_1 * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 2e+179]], $MachinePrecision]], N[(N[(x * t), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x - y}{z - y}\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 2 \cdot 10^{+179}\right):\\
\;\;\;\;\frac{x \cdot t}{z - y}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot t\\
\end{array}
\end{array}
if (/.f64 (-.f64 x y) (-.f64 z y)) < -inf.0 or 1.99999999999999996e179 < (/.f64 (-.f64 x y) (-.f64 z y)) Initial program 55.2%
associate-*l/99.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 99.9%
if -inf.0 < (/.f64 (-.f64 x y) (-.f64 z y)) < 1.99999999999999996e179Initial program 97.9%
Final simplification98.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (/ t (- y z)))))
(if (<= y -6.5e+240)
t
(if (<= y -1.55e-113)
t_1
(if (<= y 8e-23) (* x (/ t (- z y))) (if (<= y 5.2e+157) t_1 t))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t / (y - z));
double tmp;
if (y <= -6.5e+240) {
tmp = t;
} else if (y <= -1.55e-113) {
tmp = t_1;
} else if (y <= 8e-23) {
tmp = x * (t / (z - y));
} else if (y <= 5.2e+157) {
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 <= (-6.5d+240)) then
tmp = t
else if (y <= (-1.55d-113)) then
tmp = t_1
else if (y <= 8d-23) then
tmp = x * (t / (z - y))
else if (y <= 5.2d+157) 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 <= -6.5e+240) {
tmp = t;
} else if (y <= -1.55e-113) {
tmp = t_1;
} else if (y <= 8e-23) {
tmp = x * (t / (z - y));
} else if (y <= 5.2e+157) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t / (y - z)) tmp = 0 if y <= -6.5e+240: tmp = t elif y <= -1.55e-113: tmp = t_1 elif y <= 8e-23: tmp = x * (t / (z - y)) elif y <= 5.2e+157: 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 <= -6.5e+240) tmp = t; elseif (y <= -1.55e-113) tmp = t_1; elseif (y <= 8e-23) tmp = Float64(x * Float64(t / Float64(z - y))); elseif (y <= 5.2e+157) 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 <= -6.5e+240) tmp = t; elseif (y <= -1.55e-113) tmp = t_1; elseif (y <= 8e-23) tmp = x * (t / (z - y)); elseif (y <= 5.2e+157) 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, -6.5e+240], t, If[LessEqual[y, -1.55e-113], t$95$1, If[LessEqual[y, 8e-23], N[(x * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+157], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{y - z}\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+240}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{-113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-23}:\\
\;\;\;\;x \cdot \frac{t}{z - y}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+157}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -6.50000000000000018e240 or 5.20000000000000022e157 < y Initial program 99.9%
associate-*l/67.5%
associate-/l*53.1%
Simplified53.1%
Taylor expanded in y around inf 81.2%
if -6.50000000000000018e240 < y < -1.55000000000000006e-113 or 7.99999999999999968e-23 < y < 5.20000000000000022e157Initial program 99.1%
associate-*l/80.4%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in x around 0 58.9%
associate-*r/58.9%
mul-1-neg58.9%
distribute-rgt-neg-out58.9%
associate-*l/64.6%
*-commutative64.6%
distribute-lft-neg-out64.6%
distribute-rgt-neg-in64.6%
distribute-frac-neg264.6%
neg-sub064.6%
sub-neg64.6%
+-commutative64.6%
associate--r+64.6%
neg-sub064.6%
remove-double-neg64.6%
Simplified64.6%
if -1.55000000000000006e-113 < y < 7.99999999999999968e-23Initial program 85.3%
associate-*l/93.0%
associate-/l*91.7%
Simplified91.7%
Taylor expanded in x around inf 81.5%
(FPCore (x y z t) :precision binary64 (if (<= y -6.5e+240) (* t (/ (- y x) y)) (if (<= y 4.6e+127) (* (- x y) (/ t (- z y))) (* t (/ y (- y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.5e+240) {
tmp = t * ((y - x) / y);
} else if (y <= 4.6e+127) {
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.5d+240)) then
tmp = t * ((y - x) / y)
else if (y <= 4.6d+127) 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.5e+240) {
tmp = t * ((y - x) / y);
} else if (y <= 4.6e+127) {
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.5e+240: tmp = t * ((y - x) / y) elif y <= 4.6e+127: 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.5e+240) tmp = Float64(t * Float64(Float64(y - x) / y)); elseif (y <= 4.6e+127) 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.5e+240) tmp = t * ((y - x) / y); elseif (y <= 4.6e+127) 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.5e+240], N[(t * N[(N[(y - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+127], 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.5 \cdot 10^{+240}:\\
\;\;\;\;t \cdot \frac{y - x}{y}\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+127}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{t}{z - y}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\end{array}
\end{array}
if y < -6.50000000000000018e240Initial program 100.0%
Taylor expanded in z around 0 100.0%
associate-*r/100.0%
neg-mul-1100.0%
neg-sub0100.0%
sub-neg100.0%
+-commutative100.0%
associate--r+100.0%
neg-sub0100.0%
remove-double-neg100.0%
Simplified100.0%
if -6.50000000000000018e240 < y < 4.6000000000000003e127Initial program 92.1%
associate-*l/88.1%
associate-/l*90.7%
Simplified90.7%
if 4.6000000000000003e127 < y Initial program 99.9%
Taylor expanded in x around 0 91.9%
neg-mul-191.9%
distribute-neg-frac291.9%
neg-sub091.9%
sub-neg91.9%
+-commutative91.9%
associate--r+91.9%
neg-sub091.9%
remove-double-neg91.9%
Simplified91.9%
Final simplification91.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.55e-113) (not (<= y 6e-17))) (* t (/ y (- y z))) (* x (/ t (- z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.55e-113) || !(y <= 6e-17)) {
tmp = t * (y / (y - z));
} else {
tmp = x * (t / (z - y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.55d-113)) .or. (.not. (y <= 6d-17))) then
tmp = t * (y / (y - z))
else
tmp = x * (t / (z - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.55e-113) || !(y <= 6e-17)) {
tmp = t * (y / (y - z));
} else {
tmp = x * (t / (z - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.55e-113) or not (y <= 6e-17): tmp = t * (y / (y - z)) else: tmp = x * (t / (z - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.55e-113) || !(y <= 6e-17)) tmp = Float64(t * Float64(y / Float64(y - z))); else tmp = Float64(x * Float64(t / Float64(z - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.55e-113) || ~((y <= 6e-17))) tmp = t * (y / (y - z)); else tmp = x * (t / (z - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.55e-113], N[Not[LessEqual[y, 6e-17]], $MachinePrecision]], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{-113} \lor \neg \left(y \leq 6 \cdot 10^{-17}\right):\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{t}{z - y}\\
\end{array}
\end{array}
if y < -1.55000000000000006e-113 or 6.00000000000000012e-17 < y Initial program 99.4%
Taylor expanded in x around 0 78.5%
neg-mul-178.5%
distribute-neg-frac278.5%
neg-sub078.5%
sub-neg78.5%
+-commutative78.5%
associate--r+78.5%
neg-sub078.5%
remove-double-neg78.5%
Simplified78.5%
if -1.55000000000000006e-113 < y < 6.00000000000000012e-17Initial program 85.3%
associate-*l/93.0%
associate-/l*91.7%
Simplified91.7%
Taylor expanded in x around inf 81.5%
Final simplification79.6%
(FPCore (x y z t) :precision binary64 (if (<= y -1.65e-55) t (if (<= y 3.4e+61) (* x (/ t (- z y))) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.65e-55) {
tmp = t;
} else if (y <= 3.4e+61) {
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 <= (-1.65d-55)) then
tmp = t
else if (y <= 3.4d+61) 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 <= -1.65e-55) {
tmp = t;
} else if (y <= 3.4e+61) {
tmp = x * (t / (z - y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.65e-55: tmp = t elif y <= 3.4e+61: tmp = x * (t / (z - y)) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.65e-55) tmp = t; elseif (y <= 3.4e+61) 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 <= -1.65e-55) tmp = t; elseif (y <= 3.4e+61) tmp = x * (t / (z - y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.65e-55], t, If[LessEqual[y, 3.4e+61], N[(x * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{-55}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+61}:\\
\;\;\;\;x \cdot \frac{t}{z - y}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.65e-55 or 3.40000000000000026e61 < y Initial program 99.3%
associate-*l/71.7%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in y around inf 65.0%
if -1.65e-55 < y < 3.40000000000000026e61Initial program 88.6%
associate-*l/93.1%
associate-/l*92.1%
Simplified92.1%
Taylor expanded in x around inf 74.4%
(FPCore (x y z t) :precision binary64 (if (<= y -2.3e-57) t (if (<= y 7.2e+27) (* x (/ t z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.3e-57) {
tmp = t;
} else if (y <= 7.2e+27) {
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 <= (-2.3d-57)) then
tmp = t
else if (y <= 7.2d+27) 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 <= -2.3e-57) {
tmp = t;
} else if (y <= 7.2e+27) {
tmp = x * (t / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.3e-57: tmp = t elif y <= 7.2e+27: tmp = x * (t / z) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.3e-57) tmp = t; elseif (y <= 7.2e+27) 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 <= -2.3e-57) tmp = t; elseif (y <= 7.2e+27) tmp = x * (t / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.3e-57], t, If[LessEqual[y, 7.2e+27], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{-57}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+27}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -2.3e-57 or 7.19999999999999966e27 < y Initial program 99.3%
associate-*l/71.6%
associate-/l*73.5%
Simplified73.5%
Taylor expanded in y around inf 64.4%
if -2.3e-57 < y < 7.19999999999999966e27Initial program 88.1%
associate-*l/94.3%
associate-/l*92.5%
Simplified92.5%
associate-*r/94.3%
associate-*l/88.1%
*-commutative88.1%
clear-num87.9%
un-div-inv89.5%
Applied egg-rr89.5%
Taylor expanded in y around 0 59.0%
associate-/r/60.6%
Applied egg-rr60.6%
Final simplification62.6%
(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 94.1%
associate-*l/82.2%
associate-/l*82.4%
Simplified82.4%
Taylor expanded in y around inf 39.7%
(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 2024144
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cput from hsignal-0.2.7.1"
:precision binary64
:alt
(! :herbie-platform default (/ t (/ (- z y) (- x y))))
(* (/ (- x y) (- z y)) t))