
(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 10 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 91.7%
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f64N/A
--lowering--.f6498.7
Applied egg-rr98.7%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (+ x (/ (* y (- z x)) t))) (t_2 (* y (/ (- z x) t)))) (if (<= t_1 -1e+307) t_2 (if (<= t_1 5e+305) (+ x (/ (* y z) t)) t_2))))
double code(double x, double y, double z, double t) {
double t_1 = x + ((y * (z - x)) / t);
double t_2 = y * ((z - x) / t);
double tmp;
if (t_1 <= -1e+307) {
tmp = t_2;
} else if (t_1 <= 5e+305) {
tmp = x + ((y * z) / t);
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x + ((y * (z - x)) / t)
t_2 = y * ((z - x) / t)
if (t_1 <= (-1d+307)) then
tmp = t_2
else if (t_1 <= 5d+305) then
tmp = x + ((y * z) / t)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y * (z - x)) / t);
double t_2 = y * ((z - x) / t);
double tmp;
if (t_1 <= -1e+307) {
tmp = t_2;
} else if (t_1 <= 5e+305) {
tmp = x + ((y * z) / t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + ((y * (z - x)) / t) t_2 = y * ((z - x) / t) tmp = 0 if t_1 <= -1e+307: tmp = t_2 elif t_1 <= 5e+305: tmp = x + ((y * z) / t) else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(y * Float64(z - x)) / t)) t_2 = Float64(y * Float64(Float64(z - x) / t)) tmp = 0.0 if (t_1 <= -1e+307) tmp = t_2; elseif (t_1 <= 5e+305) tmp = Float64(x + Float64(Float64(y * z) / t)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + ((y * (z - x)) / t); t_2 = y * ((z - x) / t); tmp = 0.0; if (t_1 <= -1e+307) tmp = t_2; elseif (t_1 <= 5e+305) tmp = x + ((y * z) / t); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(z - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+307], t$95$2, If[LessEqual[t$95$1, 5e+305], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot \left(z - x\right)}{t}\\
t_2 := y \cdot \frac{z - x}{t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+307}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) < -9.99999999999999986e306 or 5.00000000000000009e305 < (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) Initial program 78.4%
Taylor expanded in y around inf
div-subN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6492.4
Simplified92.4%
if -9.99999999999999986e306 < (+.f64 x (/.f64 (*.f64 y (-.f64 z x)) t)) < 5.00000000000000009e305Initial program 99.7%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6483.0
Simplified83.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (fma (/ y t) z x))) (if (<= z -3.8e-33) t_1 (if (<= z 3.4e+75) (fma (/ y t) (- x) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma((y / t), z, x);
double tmp;
if (z <= -3.8e-33) {
tmp = t_1;
} else if (z <= 3.4e+75) {
tmp = fma((y / t), -x, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(Float64(y / t), z, x) tmp = 0.0 if (z <= -3.8e-33) tmp = t_1; elseif (z <= 3.4e+75) tmp = fma(Float64(y / t), Float64(-x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / t), $MachinePrecision] * z + x), $MachinePrecision]}, If[LessEqual[z, -3.8e-33], t$95$1, If[LessEqual[z, 3.4e+75], N[(N[(y / t), $MachinePrecision] * (-x) + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{y}{t}, z, x\right)\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{t}, -x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.79999999999999994e-33 or 3.40000000000000011e75 < z Initial program 88.1%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6483.5
Simplified83.5%
+-commutativeN/A
*-rgt-identityN/A
times-fracN/A
/-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6492.9
Applied egg-rr92.9%
if -3.79999999999999994e-33 < z < 3.40000000000000011e75Initial program 95.0%
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f64N/A
--lowering--.f6497.8
Applied egg-rr97.8%
Taylor expanded in z around 0
mul-1-negN/A
neg-lowering-neg.f6490.0
Simplified90.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (fma (/ y t) z x))) (if (<= z -9e-34) t_1 (if (<= z 52000000000.0) (- x (/ (* y x) t)) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma((y / t), z, x);
double tmp;
if (z <= -9e-34) {
tmp = t_1;
} else if (z <= 52000000000.0) {
tmp = x - ((y * x) / t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(Float64(y / t), z, x) tmp = 0.0 if (z <= -9e-34) tmp = t_1; elseif (z <= 52000000000.0) tmp = Float64(x - Float64(Float64(y * x) / t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / t), $MachinePrecision] * z + x), $MachinePrecision]}, If[LessEqual[z, -9e-34], t$95$1, If[LessEqual[z, 52000000000.0], N[(x - N[(N[(y * x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{y}{t}, z, x\right)\\
\mathbf{if}\;z \leq -9 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 52000000000:\\
\;\;\;\;x - \frac{y \cdot x}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.00000000000000085e-34 or 5.2e10 < z Initial program 88.8%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6481.2
Simplified81.2%
+-commutativeN/A
*-rgt-identityN/A
times-fracN/A
/-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6489.6
Applied egg-rr89.6%
if -9.00000000000000085e-34 < z < 5.2e10Initial program 95.2%
Taylor expanded in x around inf
mul-1-negN/A
unsub-negN/A
distribute-lft-out--N/A
*-rgt-identityN/A
associate-/l*N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6488.2
Simplified88.2%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* y (/ (- z x) t)))) (if (<= y -4.6e+174) t_1 (if (<= y 6.4e+51) (fma (/ y t) z x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = y * ((z - x) / t);
double tmp;
if (y <= -4.6e+174) {
tmp = t_1;
} else if (y <= 6.4e+51) {
tmp = fma((y / t), z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(y * Float64(Float64(z - x) / t)) tmp = 0.0 if (y <= -4.6e+174) tmp = t_1; elseif (y <= 6.4e+51) tmp = fma(Float64(y / t), z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(N[(z - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.6e+174], t$95$1, If[LessEqual[y, 6.4e+51], N[(N[(y / t), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - x}{t}\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{+174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{t}, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.5999999999999996e174 or 6.4000000000000005e51 < y Initial program 80.9%
Taylor expanded in y around inf
div-subN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6491.0
Simplified91.0%
if -4.5999999999999996e174 < y < 6.4000000000000005e51Initial program 97.0%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6481.2
Simplified81.2%
+-commutativeN/A
*-rgt-identityN/A
times-fracN/A
/-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6484.1
Applied egg-rr84.1%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ y t) z))) (if (<= z -3e-32) t_1 (if (<= z 2.75e+76) x t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (y / t) * z;
double tmp;
if (z <= -3e-32) {
tmp = t_1;
} else if (z <= 2.75e+76) {
tmp = x;
} else {
tmp = t_1;
}
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) * z
if (z <= (-3d-32)) then
tmp = t_1
else if (z <= 2.75d+76) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y / t) * z;
double tmp;
if (z <= -3e-32) {
tmp = t_1;
} else if (z <= 2.75e+76) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / t) * z tmp = 0 if z <= -3e-32: tmp = t_1 elif z <= 2.75e+76: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / t) * z) tmp = 0.0 if (z <= -3e-32) tmp = t_1; elseif (z <= 2.75e+76) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / t) * z; tmp = 0.0; if (z <= -3e-32) tmp = t_1; elseif (z <= 2.75e+76) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3e-32], t$95$1, If[LessEqual[z, 2.75e+76], x, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{t} \cdot z\\
\mathbf{if}\;z \leq -3 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.75 \cdot 10^{+76}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3e-32 or 2.75e76 < z Initial program 88.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f6465.2
Simplified65.2%
*-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6471.6
Applied egg-rr71.6%
if -3e-32 < z < 2.75e76Initial program 95.0%
Taylor expanded in y around 0
Simplified45.5%
(FPCore (x y z t) :precision binary64 (if (<= y -4.5e+174) (* (/ y t) (- x)) (fma (/ y t) z x)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.5e+174) {
tmp = (y / t) * -x;
} else {
tmp = fma((y / t), z, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -4.5e+174) tmp = Float64(Float64(y / t) * Float64(-x)); else tmp = fma(Float64(y / t), z, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -4.5e+174], N[(N[(y / t), $MachinePrecision] * (-x)), $MachinePrecision], N[(N[(y / t), $MachinePrecision] * z + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+174}:\\
\;\;\;\;\frac{y}{t} \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{t}, z, x\right)\\
\end{array}
\end{array}
if y < -4.50000000000000042e174Initial program 75.3%
Taylor expanded in y around inf
div-subN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6496.8
Simplified96.8%
Taylor expanded in z around 0
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6471.2
Simplified71.2%
clear-numN/A
un-div-invN/A
frac-2negN/A
remove-double-negN/A
associate-/r/N/A
frac-2negN/A
remove-double-negN/A
*-lowering-*.f64N/A
frac-2negN/A
remove-double-negN/A
/-lowering-/.f64N/A
neg-lowering-neg.f6476.7
Applied egg-rr76.7%
if -4.50000000000000042e174 < y Initial program 94.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6475.1
Simplified75.1%
+-commutativeN/A
*-rgt-identityN/A
times-fracN/A
/-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6480.3
Applied egg-rr80.3%
Final simplification79.8%
(FPCore (x y z t) :precision binary64 (if (<= y -1.45e+175) (* y (/ (- x) t)) (fma (/ y t) z x)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.45e+175) {
tmp = y * (-x / t);
} else {
tmp = fma((y / t), z, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -1.45e+175) tmp = Float64(y * Float64(Float64(-x) / t)); else tmp = fma(Float64(y / t), z, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.45e+175], N[(y * N[((-x) / t), $MachinePrecision]), $MachinePrecision], N[(N[(y / t), $MachinePrecision] * z + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+175}:\\
\;\;\;\;y \cdot \frac{-x}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{t}, z, x\right)\\
\end{array}
\end{array}
if y < -1.45e175Initial program 75.3%
Taylor expanded in y around inf
div-subN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6496.8
Simplified96.8%
Taylor expanded in z around 0
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6471.2
Simplified71.2%
if -1.45e175 < y Initial program 94.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6475.1
Simplified75.1%
+-commutativeN/A
*-rgt-identityN/A
times-fracN/A
/-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6480.3
Applied egg-rr80.3%
(FPCore (x y z t) :precision binary64 (fma (/ y t) z x))
double code(double x, double y, double z, double t) {
return fma((y / t), z, x);
}
function code(x, y, z, t) return fma(Float64(y / t), z, x) end
code[x_, y_, z_, t_] := N[(N[(y / t), $MachinePrecision] * z + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\frac{y}{t}, z, x\right)
\end{array}
Initial program 91.7%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f6469.0
Simplified69.0%
+-commutativeN/A
*-rgt-identityN/A
times-fracN/A
/-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6475.7
Applied egg-rr75.7%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return 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 = x
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 91.7%
Taylor expanded in y around 0
Simplified35.1%
(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 2024198
(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)))