
(FPCore (x y) :precision binary64 (let* ((t_0 (/ x (* y 2.0)))) (/ (tan t_0) (sin t_0))))
double code(double x, double y) {
double t_0 = x / (y * 2.0);
return tan(t_0) / sin(t_0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
t_0 = x / (y * 2.0d0)
code = tan(t_0) / sin(t_0)
end function
public static double code(double x, double y) {
double t_0 = x / (y * 2.0);
return Math.tan(t_0) / Math.sin(t_0);
}
def code(x, y): t_0 = x / (y * 2.0) return math.tan(t_0) / math.sin(t_0)
function code(x, y) t_0 = Float64(x / Float64(y * 2.0)) return Float64(tan(t_0) / sin(t_0)) end
function tmp = code(x, y) t_0 = x / (y * 2.0); tmp = tan(t_0) / sin(t_0); end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y * 2.0), $MachinePrecision]), $MachinePrecision]}, N[(N[Tan[t$95$0], $MachinePrecision] / N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y \cdot 2}\\
\frac{\tan t\_0}{\sin t\_0}
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 4 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (let* ((t_0 (/ x (* y 2.0)))) (/ (tan t_0) (sin t_0))))
double code(double x, double y) {
double t_0 = x / (y * 2.0);
return tan(t_0) / sin(t_0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
t_0 = x / (y * 2.0d0)
code = tan(t_0) / sin(t_0)
end function
public static double code(double x, double y) {
double t_0 = x / (y * 2.0);
return Math.tan(t_0) / Math.sin(t_0);
}
def code(x, y): t_0 = x / (y * 2.0) return math.tan(t_0) / math.sin(t_0)
function code(x, y) t_0 = Float64(x / Float64(y * 2.0)) return Float64(tan(t_0) / sin(t_0)) end
function tmp = code(x, y) t_0 = x / (y * 2.0); tmp = tan(t_0) / sin(t_0); end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y * 2.0), $MachinePrecision]), $MachinePrecision]}, N[(N[Tan[t$95$0], $MachinePrecision] / N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y \cdot 2}\\
\frac{\tan t\_0}{\sin t\_0}
\end{array}
\end{array}
x_m = (fabs.f64 x) y_m = (fabs.f64 y) (FPCore (x_m y_m) :precision binary64 (let* ((t_0 (sqrt (* y_m 2.0)))) (if (<= (/ x_m (* y_m 2.0)) 1e+228) (/ 1.0 (cos (/ (/ x_m t_0) t_0))) 1.0)))
x_m = fabs(x);
y_m = fabs(y);
double code(double x_m, double y_m) {
double t_0 = sqrt((y_m * 2.0));
double tmp;
if ((x_m / (y_m * 2.0)) <= 1e+228) {
tmp = 1.0 / cos(((x_m / t_0) / t_0));
} else {
tmp = 1.0;
}
return tmp;
}
x_m = abs(x)
y_m = abs(y)
real(8) function code(x_m, y_m)
real(8), intent (in) :: x_m
real(8), intent (in) :: y_m
real(8) :: t_0
real(8) :: tmp
t_0 = sqrt((y_m * 2.0d0))
if ((x_m / (y_m * 2.0d0)) <= 1d+228) then
tmp = 1.0d0 / cos(((x_m / t_0) / t_0))
else
tmp = 1.0d0
end if
code = tmp
end function
x_m = Math.abs(x);
y_m = Math.abs(y);
public static double code(double x_m, double y_m) {
double t_0 = Math.sqrt((y_m * 2.0));
double tmp;
if ((x_m / (y_m * 2.0)) <= 1e+228) {
tmp = 1.0 / Math.cos(((x_m / t_0) / t_0));
} else {
tmp = 1.0;
}
return tmp;
}
x_m = math.fabs(x) y_m = math.fabs(y) def code(x_m, y_m): t_0 = math.sqrt((y_m * 2.0)) tmp = 0 if (x_m / (y_m * 2.0)) <= 1e+228: tmp = 1.0 / math.cos(((x_m / t_0) / t_0)) else: tmp = 1.0 return tmp
x_m = abs(x) y_m = abs(y) function code(x_m, y_m) t_0 = sqrt(Float64(y_m * 2.0)) tmp = 0.0 if (Float64(x_m / Float64(y_m * 2.0)) <= 1e+228) tmp = Float64(1.0 / cos(Float64(Float64(x_m / t_0) / t_0))); else tmp = 1.0; end return tmp end
x_m = abs(x); y_m = abs(y); function tmp_2 = code(x_m, y_m) t_0 = sqrt((y_m * 2.0)); tmp = 0.0; if ((x_m / (y_m * 2.0)) <= 1e+228) tmp = 1.0 / cos(((x_m / t_0) / t_0)); else tmp = 1.0; end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision]
y_m = N[Abs[y], $MachinePrecision]
code[x$95$m_, y$95$m_] := Block[{t$95$0 = N[Sqrt[N[(y$95$m * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(x$95$m / N[(y$95$m * 2.0), $MachinePrecision]), $MachinePrecision], 1e+228], N[(1.0 / N[Cos[N[(N[(x$95$m / t$95$0), $MachinePrecision] / t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
x_m = \left|x\right|
\\
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \sqrt{y\_m \cdot 2}\\
\mathbf{if}\;\frac{x\_m}{y\_m \cdot 2} \leq 10^{+228}:\\
\;\;\;\;\frac{1}{\cos \left(\frac{\frac{x\_m}{t\_0}}{t\_0}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (*.f64 y #s(literal 2 binary64))) < 9.9999999999999992e227Initial program 48.0%
remove-double-neg48.0%
distribute-frac-neg48.0%
tan-neg48.0%
distribute-frac-neg248.0%
distribute-lft-neg-out48.0%
distribute-frac-neg248.0%
distribute-lft-neg-out48.0%
distribute-frac-neg248.0%
distribute-frac-neg48.0%
neg-mul-148.0%
*-commutative48.0%
associate-/l*47.8%
*-commutative47.8%
associate-/r*47.8%
metadata-eval47.8%
sin-neg47.8%
distribute-frac-neg47.8%
Simplified47.7%
Taylor expanded in x around inf 61.7%
associate-*r/61.7%
*-commutative61.7%
associate-*r/61.4%
Simplified61.4%
associate-*r/61.7%
clear-num61.6%
Applied egg-rr61.6%
clear-num61.7%
associate-*r/61.4%
add-sqr-sqrt39.2%
sqrt-unprod60.2%
associate-*r/60.5%
*-commutative60.5%
associate-*r/60.5%
associate-*r/60.6%
*-commutative60.6%
associate-*r/60.6%
swap-sqr60.6%
metadata-eval60.6%
metadata-eval60.6%
swap-sqr60.6%
sqrt-unprod36.6%
add-sqr-sqrt61.7%
metadata-eval61.7%
times-frac61.7%
*-commutative61.7%
add-sqr-sqrt28.6%
times-frac28.9%
Applied egg-rr28.9%
associate-*l/28.9%
*-lft-identity28.9%
*-commutative28.9%
*-commutative28.9%
Simplified28.9%
if 9.9999999999999992e227 < (/.f64 x (*.f64 y #s(literal 2 binary64))) Initial program 4.7%
remove-double-neg4.7%
distribute-frac-neg4.7%
tan-neg4.7%
distribute-frac-neg24.7%
distribute-lft-neg-out4.7%
distribute-frac-neg24.7%
distribute-lft-neg-out4.7%
distribute-frac-neg24.7%
distribute-frac-neg4.7%
neg-mul-14.7%
*-commutative4.7%
associate-/l*5.4%
*-commutative5.4%
associate-/r*5.4%
metadata-eval5.4%
sin-neg5.4%
distribute-frac-neg5.4%
Simplified5.7%
Taylor expanded in x around 0 15.1%
Final simplification27.6%
x_m = (fabs.f64 x) y_m = (fabs.f64 y) (FPCore (x_m y_m) :precision binary64 (if (<= (/ x_m (* y_m 2.0)) 4.5e+134) (/ 1.0 (cos (expm1 (log1p (/ (* x_m 0.5) y_m))))) 1.0))
x_m = fabs(x);
y_m = fabs(y);
double code(double x_m, double y_m) {
double tmp;
if ((x_m / (y_m * 2.0)) <= 4.5e+134) {
tmp = 1.0 / cos(expm1(log1p(((x_m * 0.5) / y_m))));
} else {
tmp = 1.0;
}
return tmp;
}
x_m = Math.abs(x);
y_m = Math.abs(y);
public static double code(double x_m, double y_m) {
double tmp;
if ((x_m / (y_m * 2.0)) <= 4.5e+134) {
tmp = 1.0 / Math.cos(Math.expm1(Math.log1p(((x_m * 0.5) / y_m))));
} else {
tmp = 1.0;
}
return tmp;
}
x_m = math.fabs(x) y_m = math.fabs(y) def code(x_m, y_m): tmp = 0 if (x_m / (y_m * 2.0)) <= 4.5e+134: tmp = 1.0 / math.cos(math.expm1(math.log1p(((x_m * 0.5) / y_m)))) else: tmp = 1.0 return tmp
x_m = abs(x) y_m = abs(y) function code(x_m, y_m) tmp = 0.0 if (Float64(x_m / Float64(y_m * 2.0)) <= 4.5e+134) tmp = Float64(1.0 / cos(expm1(log1p(Float64(Float64(x_m * 0.5) / y_m))))); else tmp = 1.0; end return tmp end
x_m = N[Abs[x], $MachinePrecision] y_m = N[Abs[y], $MachinePrecision] code[x$95$m_, y$95$m_] := If[LessEqual[N[(x$95$m / N[(y$95$m * 2.0), $MachinePrecision]), $MachinePrecision], 4.5e+134], N[(1.0 / N[Cos[N[(Exp[N[Log[1 + N[(N[(x$95$m * 0.5), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
x_m = \left|x\right|
\\
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;\frac{x\_m}{y\_m \cdot 2} \leq 4.5 \cdot 10^{+134}:\\
\;\;\;\;\frac{1}{\cos \left(\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x\_m \cdot 0.5}{y\_m}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (*.f64 y #s(literal 2 binary64))) < 4.4999999999999997e134Initial program 50.1%
remove-double-neg50.1%
distribute-frac-neg50.1%
tan-neg50.1%
distribute-frac-neg250.1%
distribute-lft-neg-out50.1%
distribute-frac-neg250.1%
distribute-lft-neg-out50.1%
distribute-frac-neg250.1%
distribute-frac-neg50.1%
neg-mul-150.1%
*-commutative50.1%
associate-/l*50.0%
*-commutative50.0%
associate-/r*50.0%
metadata-eval50.0%
sin-neg50.0%
distribute-frac-neg50.0%
Simplified49.8%
Taylor expanded in x around inf 64.6%
associate-*r/64.6%
*-commutative64.6%
associate-*r/64.3%
Simplified64.3%
associate-*r/64.6%
add-sqr-sqrt29.9%
associate-/r*29.9%
Applied egg-rr29.9%
associate-/l/29.9%
*-commutative29.9%
add-sqr-sqrt64.6%
associate-*l/64.3%
add-sqr-sqrt34.1%
sqrt-unprod59.9%
frac-times59.9%
metadata-eval59.9%
metadata-eval59.9%
frac-times59.9%
sqrt-unprod29.9%
add-sqr-sqrt64.3%
associate-*l/64.6%
expm1-log1p-u62.5%
associate-*r/62.5%
expm1-undefine62.4%
Applied egg-rr62.4%
expm1-define62.5%
*-commutative62.5%
associate-*l/62.5%
Simplified62.5%
if 4.4999999999999997e134 < (/.f64 x (*.f64 y #s(literal 2 binary64))) Initial program 5.9%
remove-double-neg5.9%
distribute-frac-neg5.9%
tan-neg5.9%
distribute-frac-neg25.9%
distribute-lft-neg-out5.9%
distribute-frac-neg25.9%
distribute-lft-neg-out5.9%
distribute-frac-neg25.9%
distribute-frac-neg5.9%
neg-mul-15.9%
*-commutative5.9%
associate-/l*6.4%
*-commutative6.4%
associate-/r*6.4%
metadata-eval6.4%
sin-neg6.4%
distribute-frac-neg6.4%
Simplified6.6%
Taylor expanded in x around 0 12.2%
x_m = (fabs.f64 x) y_m = (fabs.f64 y) (FPCore (x_m y_m) :precision binary64 (if (<= (/ x_m (* y_m 2.0)) 5e+56) (/ 1.0 (cos (/ 1.0 (* y_m (/ 2.0 x_m))))) 1.0))
x_m = fabs(x);
y_m = fabs(y);
double code(double x_m, double y_m) {
double tmp;
if ((x_m / (y_m * 2.0)) <= 5e+56) {
tmp = 1.0 / cos((1.0 / (y_m * (2.0 / x_m))));
} else {
tmp = 1.0;
}
return tmp;
}
x_m = abs(x)
y_m = abs(y)
real(8) function code(x_m, y_m)
real(8), intent (in) :: x_m
real(8), intent (in) :: y_m
real(8) :: tmp
if ((x_m / (y_m * 2.0d0)) <= 5d+56) then
tmp = 1.0d0 / cos((1.0d0 / (y_m * (2.0d0 / x_m))))
else
tmp = 1.0d0
end if
code = tmp
end function
x_m = Math.abs(x);
y_m = Math.abs(y);
public static double code(double x_m, double y_m) {
double tmp;
if ((x_m / (y_m * 2.0)) <= 5e+56) {
tmp = 1.0 / Math.cos((1.0 / (y_m * (2.0 / x_m))));
} else {
tmp = 1.0;
}
return tmp;
}
x_m = math.fabs(x) y_m = math.fabs(y) def code(x_m, y_m): tmp = 0 if (x_m / (y_m * 2.0)) <= 5e+56: tmp = 1.0 / math.cos((1.0 / (y_m * (2.0 / x_m)))) else: tmp = 1.0 return tmp
x_m = abs(x) y_m = abs(y) function code(x_m, y_m) tmp = 0.0 if (Float64(x_m / Float64(y_m * 2.0)) <= 5e+56) tmp = Float64(1.0 / cos(Float64(1.0 / Float64(y_m * Float64(2.0 / x_m))))); else tmp = 1.0; end return tmp end
x_m = abs(x); y_m = abs(y); function tmp_2 = code(x_m, y_m) tmp = 0.0; if ((x_m / (y_m * 2.0)) <= 5e+56) tmp = 1.0 / cos((1.0 / (y_m * (2.0 / x_m)))); else tmp = 1.0; end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision] y_m = N[Abs[y], $MachinePrecision] code[x$95$m_, y$95$m_] := If[LessEqual[N[(x$95$m / N[(y$95$m * 2.0), $MachinePrecision]), $MachinePrecision], 5e+56], N[(1.0 / N[Cos[N[(1.0 / N[(y$95$m * N[(2.0 / x$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
x_m = \left|x\right|
\\
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;\frac{x\_m}{y\_m \cdot 2} \leq 5 \cdot 10^{+56}:\\
\;\;\;\;\frac{1}{\cos \left(\frac{1}{y\_m \cdot \frac{2}{x\_m}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (*.f64 y #s(literal 2 binary64))) < 5.00000000000000024e56Initial program 53.2%
remove-double-neg53.2%
distribute-frac-neg53.2%
tan-neg53.2%
distribute-frac-neg253.2%
distribute-lft-neg-out53.2%
distribute-frac-neg253.2%
distribute-lft-neg-out53.2%
distribute-frac-neg253.2%
distribute-frac-neg53.2%
neg-mul-153.2%
*-commutative53.2%
associate-/l*53.0%
*-commutative53.0%
associate-/r*53.0%
metadata-eval53.0%
sin-neg53.0%
distribute-frac-neg53.0%
Simplified53.0%
Taylor expanded in x around inf 68.8%
associate-*r/68.8%
*-commutative68.8%
associate-*r/68.5%
Simplified68.5%
associate-*r/68.8%
add-sqr-sqrt31.9%
associate-/r*32.0%
Applied egg-rr32.0%
associate-/l/31.9%
add-sqr-sqrt68.8%
associate-*r/68.5%
add-sqr-sqrt36.2%
sqrt-unprod63.7%
frac-times63.7%
metadata-eval63.7%
metadata-eval63.7%
frac-times63.7%
sqrt-unprod32.0%
add-sqr-sqrt68.5%
metadata-eval68.5%
associate-/r*68.5%
*-commutative68.5%
div-inv68.8%
clear-num68.8%
inv-pow68.8%
associate-/l*68.9%
Applied egg-rr68.9%
unpow-168.9%
Simplified68.9%
if 5.00000000000000024e56 < (/.f64 x (*.f64 y #s(literal 2 binary64))) Initial program 6.5%
remove-double-neg6.5%
distribute-frac-neg6.5%
tan-neg6.5%
distribute-frac-neg26.5%
distribute-lft-neg-out6.5%
distribute-frac-neg26.5%
distribute-lft-neg-out6.5%
distribute-frac-neg26.5%
distribute-frac-neg6.5%
neg-mul-16.5%
*-commutative6.5%
associate-/l*7.0%
*-commutative7.0%
associate-/r*7.0%
metadata-eval7.0%
sin-neg7.0%
distribute-frac-neg7.0%
Simplified6.5%
Taylor expanded in x around 0 12.0%
x_m = (fabs.f64 x) y_m = (fabs.f64 y) (FPCore (x_m y_m) :precision binary64 1.0)
x_m = fabs(x);
y_m = fabs(y);
double code(double x_m, double y_m) {
return 1.0;
}
x_m = abs(x)
y_m = abs(y)
real(8) function code(x_m, y_m)
real(8), intent (in) :: x_m
real(8), intent (in) :: y_m
code = 1.0d0
end function
x_m = Math.abs(x);
y_m = Math.abs(y);
public static double code(double x_m, double y_m) {
return 1.0;
}
x_m = math.fabs(x) y_m = math.fabs(y) def code(x_m, y_m): return 1.0
x_m = abs(x) y_m = abs(y) function code(x_m, y_m) return 1.0 end
x_m = abs(x); y_m = abs(y); function tmp = code(x_m, y_m) tmp = 1.0; end
x_m = N[Abs[x], $MachinePrecision] y_m = N[Abs[y], $MachinePrecision] code[x$95$m_, y$95$m_] := 1.0
\begin{array}{l}
x_m = \left|x\right|
\\
y_m = \left|y\right|
\\
1
\end{array}
Initial program 44.1%
remove-double-neg44.1%
distribute-frac-neg44.1%
tan-neg44.1%
distribute-frac-neg244.1%
distribute-lft-neg-out44.1%
distribute-frac-neg244.1%
distribute-lft-neg-out44.1%
distribute-frac-neg244.1%
distribute-frac-neg44.1%
neg-mul-144.1%
*-commutative44.1%
associate-/l*44.0%
*-commutative44.0%
associate-/r*44.0%
metadata-eval44.0%
sin-neg44.0%
distribute-frac-neg44.0%
Simplified43.9%
Taylor expanded in x around 0 57.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ x (* y 2.0))) (t_1 (sin t_0)))
(if (< y -1.2303690911306994e+114)
1.0
(if (< y -9.102852406811914e-222)
(/ t_1 (* t_1 (log (exp (cos t_0)))))
1.0))))
double code(double x, double y) {
double t_0 = x / (y * 2.0);
double t_1 = sin(t_0);
double tmp;
if (y < -1.2303690911306994e+114) {
tmp = 1.0;
} else if (y < -9.102852406811914e-222) {
tmp = t_1 / (t_1 * log(exp(cos(t_0))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x / (y * 2.0d0)
t_1 = sin(t_0)
if (y < (-1.2303690911306994d+114)) then
tmp = 1.0d0
else if (y < (-9.102852406811914d-222)) then
tmp = t_1 / (t_1 * log(exp(cos(t_0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x / (y * 2.0);
double t_1 = Math.sin(t_0);
double tmp;
if (y < -1.2303690911306994e+114) {
tmp = 1.0;
} else if (y < -9.102852406811914e-222) {
tmp = t_1 / (t_1 * Math.log(Math.exp(Math.cos(t_0))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): t_0 = x / (y * 2.0) t_1 = math.sin(t_0) tmp = 0 if y < -1.2303690911306994e+114: tmp = 1.0 elif y < -9.102852406811914e-222: tmp = t_1 / (t_1 * math.log(math.exp(math.cos(t_0)))) else: tmp = 1.0 return tmp
function code(x, y) t_0 = Float64(x / Float64(y * 2.0)) t_1 = sin(t_0) tmp = 0.0 if (y < -1.2303690911306994e+114) tmp = 1.0; elseif (y < -9.102852406811914e-222) tmp = Float64(t_1 / Float64(t_1 * log(exp(cos(t_0))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) t_0 = x / (y * 2.0); t_1 = sin(t_0); tmp = 0.0; if (y < -1.2303690911306994e+114) tmp = 1.0; elseif (y < -9.102852406811914e-222) tmp = t_1 / (t_1 * log(exp(cos(t_0)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y * 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[Less[y, -1.2303690911306994e+114], 1.0, If[Less[y, -9.102852406811914e-222], N[(t$95$1 / N[(t$95$1 * N[Log[N[Exp[N[Cos[t$95$0], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y \cdot 2}\\
t_1 := \sin t\_0\\
\mathbf{if}\;y < -1.2303690911306994 \cdot 10^{+114}:\\
\;\;\;\;1\\
\mathbf{elif}\;y < -9.102852406811914 \cdot 10^{-222}:\\
\;\;\;\;\frac{t\_1}{t\_1 \cdot \log \left(e^{\cos t\_0}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
herbie shell --seed 2024101
(FPCore (x y)
:name "Diagrams.TwoD.Layout.CirclePacking:approxRadius from diagrams-contrib-1.3.0.5"
:precision binary64
:alt
(if (< y -1.2303690911306994e+114) 1.0 (if (< y -9.102852406811914e-222) (/ (sin (/ x (* y 2.0))) (* (sin (/ x (* y 2.0))) (log (exp (cos (/ x (* y 2.0))))))) 1.0))
(/ (tan (/ x (* y 2.0))) (sin (/ x (* y 2.0)))))