
(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 7 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}
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
(FPCore (x y)
:precision binary64
(let* ((t_0 (sqrt (* y 2.0))))
(if (<= (/ x (* y 2.0)) 1e+53)
(/ 1.0 (cos (/ 1.0 (* (/ t_0 (pow (cbrt x) 2.0)) (/ t_0 (cbrt x))))))
1.0)))x = abs(x);
y = abs(y);
double code(double x, double y) {
double t_0 = sqrt((y * 2.0));
double tmp;
if ((x / (y * 2.0)) <= 1e+53) {
tmp = 1.0 / cos((1.0 / ((t_0 / pow(cbrt(x), 2.0)) * (t_0 / cbrt(x)))));
} else {
tmp = 1.0;
}
return tmp;
}
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
double t_0 = Math.sqrt((y * 2.0));
double tmp;
if ((x / (y * 2.0)) <= 1e+53) {
tmp = 1.0 / Math.cos((1.0 / ((t_0 / Math.pow(Math.cbrt(x), 2.0)) * (t_0 / Math.cbrt(x)))));
} else {
tmp = 1.0;
}
return tmp;
}
x = abs(x) y = abs(y) function code(x, y) t_0 = sqrt(Float64(y * 2.0)) tmp = 0.0 if (Float64(x / Float64(y * 2.0)) <= 1e+53) tmp = Float64(1.0 / cos(Float64(1.0 / Float64(Float64(t_0 / (cbrt(x) ^ 2.0)) * Float64(t_0 / cbrt(x)))))); else tmp = 1.0; end return tmp end
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
code[x_, y_] := Block[{t$95$0 = N[Sqrt[N[(y * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(x / N[(y * 2.0), $MachinePrecision]), $MachinePrecision], 1e+53], N[(1.0 / N[Cos[N[(1.0 / N[(N[(t$95$0 / N[Power[N[Power[x, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(t$95$0 / N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
\begin{array}{l}
t_0 := \sqrt{y \cdot 2}\\
\mathbf{if}\;\frac{x}{y \cdot 2} \leq 10^{+53}:\\
\;\;\;\;\frac{1}{\cos \left(\frac{1}{\frac{t_0}{{\left(\sqrt[3]{x}\right)}^{2}} \cdot \frac{t_0}{\sqrt[3]{x}}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (*.f64 y 2)) < 9.9999999999999999e52Initial program 56.4%
add-log-exp56.4%
*-un-lft-identity56.4%
log-prod56.4%
metadata-eval56.4%
add-log-exp56.4%
div-inv56.2%
tan-quot56.2%
associate-*l/56.2%
pow156.2%
inv-pow56.2%
pow-prod-up67.9%
metadata-eval67.9%
metadata-eval67.9%
div-inv67.9%
*-commutative67.9%
associate-/r*67.9%
metadata-eval67.9%
Applied egg-rr67.9%
clear-num67.9%
div-inv67.9%
metadata-eval67.9%
div-inv67.9%
associate-/r*67.9%
clear-num68.0%
Applied egg-rr68.0%
clear-num68.0%
associate-/r*68.0%
clear-num67.7%
add-sqr-sqrt30.6%
add-cube-cbrt30.6%
times-frac30.6%
*-commutative30.6%
pow230.6%
*-commutative30.6%
Applied egg-rr30.6%
if 9.9999999999999999e52 < (/.f64 x (*.f64 y 2)) Initial program 6.7%
Taylor expanded in x around 0 10.9%
Final simplification26.9%
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function (FPCore (x y) :precision binary64 (if (<= (/ x (* y 2.0)) 1e+173) (/ 1.0 (cos (* (/ x (pow (cbrt y) 2.0)) (/ 0.5 (cbrt y))))) 1.0))
x = abs(x);
y = abs(y);
double code(double x, double y) {
double tmp;
if ((x / (y * 2.0)) <= 1e+173) {
tmp = 1.0 / cos(((x / pow(cbrt(y), 2.0)) * (0.5 / cbrt(y))));
} else {
tmp = 1.0;
}
return tmp;
}
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
double tmp;
if ((x / (y * 2.0)) <= 1e+173) {
tmp = 1.0 / Math.cos(((x / Math.pow(Math.cbrt(y), 2.0)) * (0.5 / Math.cbrt(y))));
} else {
tmp = 1.0;
}
return tmp;
}
x = abs(x) y = abs(y) function code(x, y) tmp = 0.0 if (Float64(x / Float64(y * 2.0)) <= 1e+173) tmp = Float64(1.0 / cos(Float64(Float64(x / (cbrt(y) ^ 2.0)) * Float64(0.5 / cbrt(y))))); else tmp = 1.0; end return tmp end
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function code[x_, y_] := If[LessEqual[N[(x / N[(y * 2.0), $MachinePrecision]), $MachinePrecision], 1e+173], N[(1.0 / N[Cos[N[(N[(x / N[Power[N[Power[y, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(0.5 / N[Power[y, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y \cdot 2} \leq 10^{+173}:\\
\;\;\;\;\frac{1}{\cos \left(\frac{x}{{\left(\sqrt[3]{y}\right)}^{2}} \cdot \frac{0.5}{\sqrt[3]{y}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (*.f64 y 2)) < 1e173Initial program 52.2%
add-log-exp52.2%
*-un-lft-identity52.2%
log-prod52.2%
metadata-eval52.2%
add-log-exp52.2%
div-inv52.1%
tan-quot52.1%
associate-*l/52.1%
pow152.1%
inv-pow52.1%
pow-prod-up62.7%
metadata-eval62.7%
metadata-eval62.7%
div-inv62.6%
*-commutative62.6%
associate-/r*62.6%
metadata-eval62.6%
Applied egg-rr62.6%
clear-num62.6%
div-inv62.6%
metadata-eval62.6%
div-inv62.7%
associate-/r*62.7%
clear-num62.8%
Applied egg-rr62.8%
clear-num62.7%
associate-/r*62.7%
div-inv62.6%
metadata-eval62.6%
div-inv62.6%
clear-num62.6%
associate-*r/62.7%
add-cube-cbrt62.5%
times-frac62.5%
pow262.5%
Applied egg-rr62.5%
if 1e173 < (/.f64 x (*.f64 y 2)) Initial program 3.5%
Taylor expanded in x around 0 10.5%
Final simplification57.0%
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function (FPCore (x y) :precision binary64 (if (<= (/ x (* y 2.0)) 2e+52) (/ 1.0 (cos (/ (/ 1.0 y) (/ 2.0 x)))) 1.0))
x = abs(x);
y = abs(y);
double code(double x, double y) {
double tmp;
if ((x / (y * 2.0)) <= 2e+52) {
tmp = 1.0 / cos(((1.0 / y) / (2.0 / x)));
} else {
tmp = 1.0;
}
return tmp;
}
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((x / (y * 2.0d0)) <= 2d+52) then
tmp = 1.0d0 / cos(((1.0d0 / y) / (2.0d0 / x)))
else
tmp = 1.0d0
end if
code = tmp
end function
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
double tmp;
if ((x / (y * 2.0)) <= 2e+52) {
tmp = 1.0 / Math.cos(((1.0 / y) / (2.0 / x)));
} else {
tmp = 1.0;
}
return tmp;
}
x = abs(x) y = abs(y) def code(x, y): tmp = 0 if (x / (y * 2.0)) <= 2e+52: tmp = 1.0 / math.cos(((1.0 / y) / (2.0 / x))) else: tmp = 1.0 return tmp
x = abs(x) y = abs(y) function code(x, y) tmp = 0.0 if (Float64(x / Float64(y * 2.0)) <= 2e+52) tmp = Float64(1.0 / cos(Float64(Float64(1.0 / y) / Float64(2.0 / x)))); else tmp = 1.0; end return tmp end
x = abs(x) y = abs(y) function tmp_2 = code(x, y) tmp = 0.0; if ((x / (y * 2.0)) <= 2e+52) tmp = 1.0 / cos(((1.0 / y) / (2.0 / x))); else tmp = 1.0; end tmp_2 = tmp; end
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function code[x_, y_] := If[LessEqual[N[(x / N[(y * 2.0), $MachinePrecision]), $MachinePrecision], 2e+52], N[(1.0 / N[Cos[N[(N[(1.0 / y), $MachinePrecision] / N[(2.0 / x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y \cdot 2} \leq 2 \cdot 10^{+52}:\\
\;\;\;\;\frac{1}{\cos \left(\frac{\frac{1}{y}}{\frac{2}{x}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (*.f64 y 2)) < 2e52Initial program 56.6%
add-log-exp56.6%
*-un-lft-identity56.6%
log-prod56.6%
metadata-eval56.6%
add-log-exp56.6%
div-inv56.5%
tan-quot56.5%
associate-*l/56.5%
pow156.5%
inv-pow56.5%
pow-prod-up68.2%
metadata-eval68.2%
metadata-eval68.2%
div-inv68.2%
*-commutative68.2%
associate-/r*68.2%
metadata-eval68.2%
Applied egg-rr68.2%
clear-num68.2%
div-inv68.2%
metadata-eval68.2%
div-inv68.2%
associate-/r*68.2%
clear-num68.3%
Applied egg-rr68.3%
inv-pow68.3%
associate-/r/68.2%
unpow-prod-down68.2%
inv-pow68.2%
Applied egg-rr68.2%
unpow-168.2%
associate-*l/68.3%
*-lft-identity68.3%
Simplified68.3%
if 2e52 < (/.f64 x (*.f64 y 2)) Initial program 6.6%
Taylor expanded in x around 0 10.7%
Final simplification57.3%
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function (FPCore (x y) :precision binary64 (/ 1.0 (cos (/ 1.0 (/ 2.0 (/ x y))))))
x = abs(x);
y = abs(y);
double code(double x, double y) {
return 1.0 / cos((1.0 / (2.0 / (x / y))));
}
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 / cos((1.0d0 / (2.0d0 / (x / y))))
end function
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
return 1.0 / Math.cos((1.0 / (2.0 / (x / y))));
}
x = abs(x) y = abs(y) def code(x, y): return 1.0 / math.cos((1.0 / (2.0 / (x / y))))
x = abs(x) y = abs(y) function code(x, y) return Float64(1.0 / cos(Float64(1.0 / Float64(2.0 / Float64(x / y))))) end
x = abs(x) y = abs(y) function tmp = code(x, y) tmp = 1.0 / cos((1.0 / (2.0 / (x / y)))); end
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function code[x_, y_] := N[(1.0 / N[Cos[N[(1.0 / N[(2.0 / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
\frac{1}{\cos \left(\frac{1}{\frac{2}{\frac{x}{y}}}\right)}
\end{array}
Initial program 47.0%
add-log-exp47.0%
*-un-lft-identity47.0%
log-prod47.0%
metadata-eval47.0%
add-log-exp47.0%
div-inv47.0%
tan-quot47.0%
associate-*l/47.0%
pow147.0%
inv-pow47.0%
pow-prod-up56.4%
metadata-eval56.4%
metadata-eval56.4%
div-inv56.4%
*-commutative56.4%
associate-/r*56.4%
metadata-eval56.4%
Applied egg-rr56.4%
clear-num56.4%
div-inv56.4%
metadata-eval56.4%
div-inv56.4%
associate-/r*56.4%
clear-num56.6%
Applied egg-rr56.6%
Final simplification56.6%
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function (FPCore (x y) :precision binary64 (/ 1.0 (cos (* 0.5 (/ x y)))))
x = abs(x);
y = abs(y);
double code(double x, double y) {
return 1.0 / cos((0.5 * (x / y)));
}
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 / cos((0.5d0 * (x / y)))
end function
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
return 1.0 / Math.cos((0.5 * (x / y)));
}
x = abs(x) y = abs(y) def code(x, y): return 1.0 / math.cos((0.5 * (x / y)))
x = abs(x) y = abs(y) function code(x, y) return Float64(1.0 / cos(Float64(0.5 * Float64(x / y)))) end
x = abs(x) y = abs(y) function tmp = code(x, y) tmp = 1.0 / cos((0.5 * (x / y))); end
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function code[x_, y_] := N[(1.0 / N[Cos[N[(0.5 * N[(x / y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
\frac{1}{\cos \left(0.5 \cdot \frac{x}{y}\right)}
\end{array}
Initial program 47.0%
Taylor expanded in x around inf 56.4%
Final simplification56.4%
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function (FPCore (x y) :precision binary64 (/ 1.0 (cos (* x (/ 0.5 y)))))
x = abs(x);
y = abs(y);
double code(double x, double y) {
return 1.0 / cos((x * (0.5 / y)));
}
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 / cos((x * (0.5d0 / y)))
end function
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
return 1.0 / Math.cos((x * (0.5 / y)));
}
x = abs(x) y = abs(y) def code(x, y): return 1.0 / math.cos((x * (0.5 / y)))
x = abs(x) y = abs(y) function code(x, y) return Float64(1.0 / cos(Float64(x * Float64(0.5 / y)))) end
x = abs(x) y = abs(y) function tmp = code(x, y) tmp = 1.0 / cos((x * (0.5 / y))); end
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function code[x_, y_] := N[(1.0 / N[Cos[N[(x * N[(0.5 / y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
\frac{1}{\cos \left(x \cdot \frac{0.5}{y}\right)}
\end{array}
Initial program 47.0%
add-log-exp47.0%
*-un-lft-identity47.0%
log-prod47.0%
metadata-eval47.0%
add-log-exp47.0%
div-inv47.0%
tan-quot47.0%
associate-*l/47.0%
pow147.0%
inv-pow47.0%
pow-prod-up56.4%
metadata-eval56.4%
metadata-eval56.4%
div-inv56.4%
*-commutative56.4%
associate-/r*56.4%
metadata-eval56.4%
Applied egg-rr56.4%
Final simplification56.4%
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function (FPCore (x y) :precision binary64 1.0)
x = abs(x);
y = abs(y);
double code(double x, double y) {
return 1.0;
}
NOTE: x should be positive before calling this function
NOTE: y should be positive before calling this function
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
x = Math.abs(x);
y = Math.abs(y);
public static double code(double x, double y) {
return 1.0;
}
x = abs(x) y = abs(y) def code(x, y): return 1.0
x = abs(x) y = abs(y) function code(x, y) return 1.0 end
x = abs(x) y = abs(y) function tmp = code(x, y) tmp = 1.0; end
NOTE: x should be positive before calling this function NOTE: y should be positive before calling this function code[x_, y_] := 1.0
\begin{array}{l}
x = |x|\\
y = |y|\\
\\
1
\end{array}
Initial program 47.0%
Taylor expanded in x around 0 55.8%
Final simplification55.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 2023257
(FPCore (x y)
:name "Diagrams.TwoD.Layout.CirclePacking:approxRadius from diagrams-contrib-1.3.0.5"
:precision binary64
:herbie-target
(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)))))