
(FPCore (x y z t) :precision binary64 (+ x (/ (* y (- z x)) t)))
double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / 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 - x)) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
def code(x, y, z, t): return x + ((y * (z - x)) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(y * Float64(z - x)) / t)) end
function tmp = code(x, y, z, t) tmp = x + ((y * (z - x)) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - x\right)}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (/ (* y (- z x)) t)))
double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / 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 - x)) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
def code(x, y, z, t): return x + ((y * (z - x)) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(y * Float64(z - x)) / t)) end
function tmp = code(x, y, z, t) tmp = x + ((y * (z - x)) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - x\right)}{t}
\end{array}
(FPCore (x y z t) :precision binary64 (fma (/ y t) (- z x) x))
double code(double x, double y, double z, double t) {
return fma((y / t), (z - x), x);
}
function code(x, y, z, t) return fma(Float64(y / t), Float64(z - x), x) end
code[x_, y_, z_, t_] := N[(N[(y / t), $MachinePrecision] * N[(z - x), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\frac{y}{t}, z - x, x\right)
\end{array}
Initial program 92.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6498.4
Applied rewrites98.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (/ (* (- z x) y) t) x)))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+308)))
(* (- z x) (/ y t))
(+ (/ (* z y) t) x))))
double code(double x, double y, double z, double t) {
double t_1 = (((z - x) * y) / t) + x;
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+308)) {
tmp = (z - x) * (y / t);
} else {
tmp = ((z * y) / t) + x;
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = (((z - x) * y) / t) + x;
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 1e+308)) {
tmp = (z - x) * (y / t);
} else {
tmp = ((z * y) / t) + x;
}
return tmp;
}
def code(x, y, z, t): t_1 = (((z - x) * y) / t) + x tmp = 0 if (t_1 <= -math.inf) or not (t_1 <= 1e+308): tmp = (z - x) * (y / t) else: tmp = ((z * y) / t) + x return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(Float64(z - x) * y) / t) + x) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+308)) tmp = Float64(Float64(z - x) * Float64(y / t)); else tmp = Float64(Float64(Float64(z * y) / t) + x); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (((z - x) * y) / t) + x; tmp = 0.0; if ((t_1 <= -Inf) || ~((t_1 <= 1e+308))) tmp = (z - x) * (y / t); else tmp = ((z * y) / t) + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(N[(z - x), $MachinePrecision] * y), $MachinePrecision] / t), $MachinePrecision] + x), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+308]], $MachinePrecision]], N[(N[(z - x), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * y), $MachinePrecision] / t), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(z - x\right) \cdot y}{t} + x\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+308}\right):\\
\;\;\;\;\left(z - x\right) \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) < -inf.0 or 1e308 < (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) Initial program 79.0%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6479.0
Applied rewrites79.0%
Applied rewrites93.7%
if -inf.0 < (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) < 1e308Initial program 99.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f6484.9
Applied rewrites84.9%
Final simplification88.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (/ (* (- z x) y) t) x)))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+308)))
(* (- z x) (/ y t))
(fma (/ z t) y x))))
double code(double x, double y, double z, double t) {
double t_1 = (((z - x) * y) / t) + x;
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+308)) {
tmp = (z - x) * (y / t);
} else {
tmp = fma((z / t), y, x);
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(Float64(Float64(z - x) * y) / t) + x) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+308)) tmp = Float64(Float64(z - x) * Float64(y / t)); else tmp = fma(Float64(z / t), y, x); end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(N[(z - x), $MachinePrecision] * y), $MachinePrecision] / t), $MachinePrecision] + x), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+308]], $MachinePrecision]], N[(N[(z - x), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(z - x\right) \cdot y}{t} + x\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+308}\right):\\
\;\;\;\;\left(z - x\right) \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) < -inf.0 or 1e308 < (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) Initial program 79.0%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6479.0
Applied rewrites79.0%
Applied rewrites93.7%
if -inf.0 < (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) < 1e308Initial program 99.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6489.7
Applied rewrites89.7%
Taylor expanded in z around inf
lower-/.f6480.4
Applied rewrites80.4%
Final simplification85.1%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.12e-92) (not (<= t 1.6e-73))) (fma (/ z t) y x) (/ (* (- z x) y) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.12e-92) || !(t <= 1.6e-73)) {
tmp = fma((z / t), y, x);
} else {
tmp = ((z - x) * y) / t;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.12e-92) || !(t <= 1.6e-73)) tmp = fma(Float64(z / t), y, x); else tmp = Float64(Float64(Float64(z - x) * y) / t); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.12e-92], N[Not[LessEqual[t, 1.6e-73]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(z - x), $MachinePrecision] * y), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.12 \cdot 10^{-92} \lor \neg \left(t \leq 1.6 \cdot 10^{-73}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(z - x\right) \cdot y}{t}\\
\end{array}
\end{array}
if t < -1.11999999999999999e-92 or 1.59999999999999993e-73 < t Initial program 88.7%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6496.5
Applied rewrites96.5%
Taylor expanded in z around inf
lower-/.f6483.0
Applied rewrites83.0%
if -1.11999999999999999e-92 < t < 1.59999999999999993e-73Initial program 99.3%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6489.5
Applied rewrites89.5%
Final simplification85.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.45e-7) (not (<= z 2.4e-65))) (fma (/ z t) y x) (- x (/ (* x y) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.45e-7) || !(z <= 2.4e-65)) {
tmp = fma((z / t), y, x);
} else {
tmp = x - ((x * y) / t);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.45e-7) || !(z <= 2.4e-65)) tmp = fma(Float64(z / t), y, x); else tmp = Float64(x - Float64(Float64(x * y) / t)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.45e-7], N[Not[LessEqual[z, 2.4e-65]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision], N[(x - N[(N[(x * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{-7} \lor \neg \left(z \leq 2.4 \cdot 10^{-65}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x \cdot y}{t}\\
\end{array}
\end{array}
if z < -1.4499999999999999e-7 or 2.4000000000000002e-65 < z Initial program 91.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6494.3
Applied rewrites94.3%
Taylor expanded in z around inf
lower-/.f6484.9
Applied rewrites84.9%
if -1.4499999999999999e-7 < z < 2.4000000000000002e-65Initial program 94.0%
Taylor expanded in z around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6485.4
Applied rewrites85.4%
Final simplification85.1%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.4e-299) (not (<= t 7.8e-119))) (fma (/ z t) y x) (/ (* (- x) y) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.4e-299) || !(t <= 7.8e-119)) {
tmp = fma((z / t), y, x);
} else {
tmp = (-x * y) / t;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.4e-299) || !(t <= 7.8e-119)) tmp = fma(Float64(z / t), y, x); else tmp = Float64(Float64(Float64(-x) * y) / t); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.4e-299], N[Not[LessEqual[t, 7.8e-119]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision], N[(N[((-x) * y), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-299} \lor \neg \left(t \leq 7.8 \cdot 10^{-119}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(-x\right) \cdot y}{t}\\
\end{array}
\end{array}
if t < -1.4000000000000001e-299 or 7.7999999999999998e-119 < t Initial program 91.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6492.9
Applied rewrites92.9%
Taylor expanded in z around inf
lower-/.f6478.0
Applied rewrites78.0%
if -1.4000000000000001e-299 < t < 7.7999999999999998e-119Initial program 98.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6491.7
Applied rewrites91.7%
Taylor expanded in z around 0
Applied rewrites76.1%
Final simplification77.7%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.4e-299) (not (<= t 7.8e-119))) (fma (/ z t) y x) (* (- x) (/ y t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.4e-299) || !(t <= 7.8e-119)) {
tmp = fma((z / t), y, x);
} else {
tmp = -x * (y / t);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.4e-299) || !(t <= 7.8e-119)) tmp = fma(Float64(z / t), y, x); else tmp = Float64(Float64(-x) * Float64(y / t)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.4e-299], N[Not[LessEqual[t, 7.8e-119]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision], N[((-x) * N[(y / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-299} \lor \neg \left(t \leq 7.8 \cdot 10^{-119}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-x\right) \cdot \frac{y}{t}\\
\end{array}
\end{array}
if t < -1.4000000000000001e-299 or 7.7999999999999998e-119 < t Initial program 91.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6492.9
Applied rewrites92.9%
Taylor expanded in z around inf
lower-/.f6478.0
Applied rewrites78.0%
if -1.4000000000000001e-299 < t < 7.7999999999999998e-119Initial program 98.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6491.7
Applied rewrites91.7%
Taylor expanded in z around 0
Applied rewrites76.1%
Applied rewrites73.8%
Final simplification77.4%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.4e-299) (not (<= t 7.8e-119))) (fma (/ z t) y x) (* (/ (- x) t) y)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.4e-299) || !(t <= 7.8e-119)) {
tmp = fma((z / t), y, x);
} else {
tmp = (-x / t) * y;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.4e-299) || !(t <= 7.8e-119)) tmp = fma(Float64(z / t), y, x); else tmp = Float64(Float64(Float64(-x) / t) * y); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.4e-299], N[Not[LessEqual[t, 7.8e-119]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision], N[(N[((-x) / t), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-299} \lor \neg \left(t \leq 7.8 \cdot 10^{-119}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{t} \cdot y\\
\end{array}
\end{array}
if t < -1.4000000000000001e-299 or 7.7999999999999998e-119 < t Initial program 91.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6492.9
Applied rewrites92.9%
Taylor expanded in z around inf
lower-/.f6478.0
Applied rewrites78.0%
if -1.4000000000000001e-299 < t < 7.7999999999999998e-119Initial program 98.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6491.7
Applied rewrites91.7%
Taylor expanded in z around 0
Applied rewrites71.4%
Final simplification77.0%
(FPCore (x y z t) :precision binary64 (fma (/ z t) y x))
double code(double x, double y, double z, double t) {
return fma((z / t), y, x);
}
function code(x, y, z, t) return fma(Float64(z / t), y, x) end
code[x_, y_, z_, t_] := N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\frac{z}{t}, y, x\right)
\end{array}
Initial program 92.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6493.3
Applied rewrites93.3%
Taylor expanded in z around inf
lower-/.f6473.6
Applied rewrites73.6%
(FPCore (x y z t) :precision binary64 (* z (/ y t)))
double code(double x, double y, double z, double t) {
return 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 = z * (y / t)
end function
public static double code(double x, double y, double z, double t) {
return z * (y / t);
}
def code(x, y, z, t): return z * (y / t)
function code(x, y, z, t) return Float64(z * Float64(y / t)) end
function tmp = code(x, y, z, t) tmp = z * (y / t); end
code[x_, y_, z_, t_] := N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \frac{y}{t}
\end{array}
Initial program 92.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6493.3
Applied rewrites93.3%
Taylor expanded in z around inf
associate-*l/N/A
lower-*.f64N/A
lower-/.f6439.0
Applied rewrites39.0%
Final simplification39.0%
(FPCore (x y z t) :precision binary64 (* (/ z t) y))
double code(double x, double y, double z, double t) {
return (z / t) * 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 = (z / t) * y
end function
public static double code(double x, double y, double z, double t) {
return (z / t) * y;
}
def code(x, y, z, t): return (z / t) * y
function code(x, y, z, t) return Float64(Float64(z / t) * y) end
function tmp = code(x, y, z, t) tmp = (z / t) * y; end
code[x_, y_, z_, t_] := N[(N[(z / t), $MachinePrecision] * y), $MachinePrecision]
\begin{array}{l}
\\
\frac{z}{t} \cdot y
\end{array}
Initial program 92.3%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f6435.7
Applied rewrites35.7%
Applied rewrites36.7%
Final simplification36.7%
(FPCore (x y z t) :precision binary64 (- x (+ (* x (/ y t)) (* (- z) (/ y t)))))
double code(double x, double y, double z, double t) {
return x - ((x * (y / t)) + (-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 - ((x * (y / t)) + (-z * (y / t)))
end function
public static double code(double x, double y, double z, double t) {
return x - ((x * (y / t)) + (-z * (y / t)));
}
def code(x, y, z, t): return x - ((x * (y / t)) + (-z * (y / t)))
function code(x, y, z, t) return Float64(x - Float64(Float64(x * Float64(y / t)) + Float64(Float64(-z) * Float64(y / t)))) end
function tmp = code(x, y, z, t) tmp = x - ((x * (y / t)) + (-z * (y / t))); end
code[x_, y_, z_, t_] := N[(x - N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] + N[((-z) * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \left(x \cdot \frac{y}{t} + \left(-z\right) \cdot \frac{y}{t}\right)
\end{array}
herbie shell --seed 2024271
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, D"
:precision binary64
:alt
(! :herbie-platform default (- x (+ (* x (/ y t)) (* (- z) (/ y t)))))
(+ x (/ (* y (- z x)) t)))