
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_2 (exp (- (* t_1 y.re) (* (atan2 x.im x.re) y.im))))
(t_3 (log (hypot x.im x.re))))
(if (<= (* t_2 (sin (+ (* t_1 y.im) t_0))) (- INFINITY))
(* t_2 (fabs (sin (fma y.im t_3 t_0))))
(*
(exp (* y.re (- t_3 (* y.im (/ (atan2 x.im x.re) y.re)))))
(sin (fma (log (hypot x.re x.im)) y.im t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_2 = exp(((t_1 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im)));
double t_3 = log(hypot(x_46_im, x_46_re));
double tmp;
if ((t_2 * sin(((t_1 * y_46_im) + t_0))) <= -((double) INFINITY)) {
tmp = t_2 * fabs(sin(fma(y_46_im, t_3, t_0)));
} else {
tmp = exp((y_46_re * (t_3 - (y_46_im * (atan2(x_46_im, x_46_re) / y_46_re))))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_2 = exp(Float64(Float64(t_1 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) t_3 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (Float64(t_2 * sin(Float64(Float64(t_1 * y_46_im) + t_0))) <= Float64(-Inf)) tmp = Float64(t_2 * abs(sin(fma(y_46_im, t_3, t_0)))); else tmp = Float64(exp(Float64(y_46_re * Float64(t_3 - Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_re))))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Exp[N[(N[(t$95$1 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(t$95$2 * N[Sin[N[(N[(t$95$1 * y$46$im), $MachinePrecision] + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], (-Infinity)], N[(t$95$2 * N[Abs[N[Sin[N[(y$46$im * t$95$3 + t$95$0), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(y$46$re * N[(t$95$3 - N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_2 := e^{t\_1 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_3 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;t\_2 \cdot \sin \left(t\_1 \cdot y.im + t\_0\right) \leq -\infty:\\
\;\;\;\;t\_2 \cdot \left|\sin \left(\mathsf{fma}\left(y.im, t\_3, t\_0\right)\right)\right|\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \left(t\_3 - y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re}\right)} \cdot \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_0\right)\right)\\
\end{array}
\end{array}
if (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) < -inf.0Initial program 30.8%
fma-define34.6%
hypot-define34.6%
*-commutative34.6%
add-sqr-sqrt3.8%
sqrt-unprod69.2%
pow269.2%
fma-undefine69.2%
*-commutative69.2%
*-commutative69.2%
fma-define69.2%
Applied egg-rr69.2%
unpow269.2%
rem-sqrt-square69.2%
hypot-undefine69.2%
unpow269.2%
unpow269.2%
+-commutative69.2%
*-commutative69.2%
fma-define69.2%
fma-define69.2%
unpow269.2%
unpow269.2%
hypot-undefine69.2%
Simplified69.2%
if -inf.0 < (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) Initial program 43.5%
cancel-sign-sub-inv43.5%
fma-define43.5%
hypot-define43.5%
distribute-lft-neg-in43.5%
distribute-rgt-neg-out43.5%
fma-define43.5%
hypot-define84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y.re around inf 68.0%
mul-1-neg68.0%
unsub-neg68.0%
unpow268.0%
unpow268.0%
hypot-undefine84.9%
associate-/l*84.9%
Simplified84.9%
Final simplification83.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.re 6.6e+96)
(*
(exp
(* y.re (- (log (hypot x.im x.re)) (* y.im (/ (atan2 x.im x.re) y.re)))))
(sin (fma (log (hypot x.re x.im)) y.im (* y.re (atan2 x.im x.re)))))
(*
(sin (* y.re (cbrt (pow (atan2 x.im x.re) 3.0))))
(pow (hypot x.im x.re) y.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= 6.6e+96) {
tmp = exp((y_46_re * (log(hypot(x_46_im, x_46_re)) - (y_46_im * (atan2(x_46_im, x_46_re) / y_46_re))))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, (y_46_re * atan2(x_46_im, x_46_re))));
} else {
tmp = sin((y_46_re * cbrt(pow(atan2(x_46_im, x_46_re), 3.0)))) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_re <= 6.6e+96) tmp = Float64(exp(Float64(y_46_re * Float64(log(hypot(x_46_im, x_46_re)) - Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_re))))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re))))); else tmp = Float64(sin(Float64(y_46_re * cbrt((atan(x_46_im, x_46_re) ^ 3.0)))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, 6.6e+96], N[(N[Exp[N[(y$46$re * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] - N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq 6.6 \cdot 10^{+96}:\\
\;\;\;\;e^{y.re \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) - y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re}\right)} \cdot \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \sqrt[3]{{\tan^{-1}_* \frac{x.im}{x.re}}^{3}}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < 6.59999999999999969e96Initial program 44.3%
cancel-sign-sub-inv44.3%
fma-define44.3%
hypot-define44.3%
distribute-lft-neg-in44.3%
distribute-rgt-neg-out44.3%
fma-define44.8%
hypot-define84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y.re around inf 66.8%
mul-1-neg66.8%
unsub-neg66.8%
unpow266.8%
unpow266.8%
hypot-undefine84.1%
associate-/l*84.1%
Simplified84.1%
if 6.59999999999999969e96 < y.re Initial program 29.7%
cancel-sign-sub-inv29.7%
fma-define29.7%
hypot-define29.7%
distribute-lft-neg-in29.7%
distribute-rgt-neg-out29.7%
fma-define29.7%
hypot-define54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y.im around 0 54.1%
unpow254.1%
unpow254.1%
hypot-undefine54.1%
Simplified54.1%
add-cbrt-cube73.0%
pow373.0%
Applied egg-rr73.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (log (hypot x.re x.im)))
(t_2
(exp
(*
y.re
(- (log (hypot x.im x.re)) (* y.im (/ (atan2 x.im x.re) y.re)))))))
(if (<= y.im -8.5e-141)
(* t_2 (sin (* y.im t_1)))
(if (<= y.im 3.1e+41)
(*
(pow (hypot x.re x.im) y.re)
(sin (pow (cbrt (fma y.im t_1 t_0)) 3.0)))
(* t_2 (sin t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = log(hypot(x_46_re, x_46_im));
double t_2 = exp((y_46_re * (log(hypot(x_46_im, x_46_re)) - (y_46_im * (atan2(x_46_im, x_46_re) / y_46_re)))));
double tmp;
if (y_46_im <= -8.5e-141) {
tmp = t_2 * sin((y_46_im * t_1));
} else if (y_46_im <= 3.1e+41) {
tmp = pow(hypot(x_46_re, x_46_im), y_46_re) * sin(pow(cbrt(fma(y_46_im, t_1, t_0)), 3.0));
} else {
tmp = t_2 * sin(t_0);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = log(hypot(x_46_re, x_46_im)) t_2 = exp(Float64(y_46_re * Float64(log(hypot(x_46_im, x_46_re)) - Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_re))))) tmp = 0.0 if (y_46_im <= -8.5e-141) tmp = Float64(t_2 * sin(Float64(y_46_im * t_1))); elseif (y_46_im <= 3.1e+41) tmp = Float64((hypot(x_46_re, x_46_im) ^ y_46_re) * sin((cbrt(fma(y_46_im, t_1, t_0)) ^ 3.0))); else tmp = Float64(t_2 * sin(t_0)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Exp[N[(y$46$re * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] - N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -8.5e-141], N[(t$95$2 * N[Sin[N[(y$46$im * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 3.1e+41], N[(N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[Power[N[Power[N[(y$46$im * t$95$1 + t$95$0), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_2 := e^{y.re \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) - y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re}\right)}\\
\mathbf{if}\;y.im \leq -8.5 \cdot 10^{-141}:\\
\;\;\;\;t\_2 \cdot \sin \left(y.im \cdot t\_1\right)\\
\mathbf{elif}\;y.im \leq 3.1 \cdot 10^{+41}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re} \cdot \sin \left({\left(\sqrt[3]{\mathsf{fma}\left(y.im, t\_1, t\_0\right)}\right)}^{3}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \sin t\_0\\
\end{array}
\end{array}
if y.im < -8.50000000000000021e-141Initial program 35.0%
cancel-sign-sub-inv35.0%
fma-define35.0%
hypot-define35.0%
distribute-lft-neg-in35.0%
distribute-rgt-neg-out35.0%
fma-define36.1%
hypot-define70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in y.re around inf 60.0%
mul-1-neg60.0%
unsub-neg60.0%
unpow260.0%
unpow260.0%
hypot-undefine70.4%
associate-/l*70.4%
Simplified70.4%
Taylor expanded in y.re around 0 39.5%
+-commutative39.5%
unpow239.5%
unpow239.5%
hypot-undefine74.8%
Simplified74.8%
if -8.50000000000000021e-141 < y.im < 3.1e41Initial program 47.7%
exp-diff45.9%
exp-to-pow45.9%
hypot-define45.9%
*-commutative45.9%
exp-prod45.9%
fma-define45.9%
hypot-define86.5%
*-commutative86.5%
Simplified86.5%
add-cube-cbrt87.4%
pow387.4%
fma-undefine87.4%
*-commutative87.4%
*-commutative87.4%
fma-define87.4%
Applied egg-rr87.4%
Taylor expanded in y.im around 0 71.7%
+-commutative71.7%
unpow271.7%
unpow271.7%
hypot-undefine89.6%
Simplified89.6%
if 3.1e41 < y.im Initial program 42.6%
cancel-sign-sub-inv42.6%
fma-define42.6%
hypot-define42.6%
distribute-lft-neg-in42.6%
distribute-rgt-neg-out42.6%
fma-define42.6%
hypot-define75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y.re around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
unpow259.8%
unpow259.8%
hypot-undefine75.6%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in y.im around 0 76.2%
Final simplification81.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im)))
(t_1
(exp
(*
y.re
(- (log (hypot x.im x.re)) (* y.im (/ (atan2 x.im x.re) y.re))))))
(t_2 (* y.re (atan2 x.im x.re))))
(if (<= y.im -1.45e-114)
(* t_1 (sin (* y.im t_0)))
(if (<= y.im 1.45e-6)
(*
(sin (fma t_0 y.im t_2))
(/ (pow (hypot x.re x.im) y.re) (+ 1.0 (* (atan2 x.im x.re) y.im))))
(* t_1 (sin t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_re, x_46_im));
double t_1 = exp((y_46_re * (log(hypot(x_46_im, x_46_re)) - (y_46_im * (atan2(x_46_im, x_46_re) / y_46_re)))));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -1.45e-114) {
tmp = t_1 * sin((y_46_im * t_0));
} else if (y_46_im <= 1.45e-6) {
tmp = sin(fma(t_0, y_46_im, t_2)) * (pow(hypot(x_46_re, x_46_im), y_46_re) / (1.0 + (atan2(x_46_im, x_46_re) * y_46_im)));
} else {
tmp = t_1 * sin(t_2);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_re, x_46_im)) t_1 = exp(Float64(y_46_re * Float64(log(hypot(x_46_im, x_46_re)) - Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_re))))) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -1.45e-114) tmp = Float64(t_1 * sin(Float64(y_46_im * t_0))); elseif (y_46_im <= 1.45e-6) tmp = Float64(sin(fma(t_0, y_46_im, t_2)) * Float64((hypot(x_46_re, x_46_im) ^ y_46_re) / Float64(1.0 + Float64(atan(x_46_im, x_46_re) * y_46_im)))); else tmp = Float64(t_1 * sin(t_2)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(y$46$re * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] - N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.45e-114], N[(t$95$1 * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.45e-6], N[(N[Sin[N[(t$95$0 * y$46$im + t$95$2), $MachinePrecision]], $MachinePrecision] * N[(N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] / N[(1.0 + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Sin[t$95$2], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_1 := e^{y.re \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) - y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re}\right)}\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq -1.45 \cdot 10^{-114}:\\
\;\;\;\;t\_1 \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{elif}\;y.im \leq 1.45 \cdot 10^{-6}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(t\_0, y.im, t\_2\right)\right) \cdot \frac{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}{1 + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin t\_2\\
\end{array}
\end{array}
if y.im < -1.44999999999999998e-114Initial program 35.5%
cancel-sign-sub-inv35.5%
fma-define35.5%
hypot-define35.5%
distribute-lft-neg-in35.5%
distribute-rgt-neg-out35.5%
fma-define36.7%
hypot-define69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in y.re around inf 60.4%
mul-1-neg60.4%
unsub-neg60.4%
unpow260.4%
unpow260.4%
hypot-undefine69.0%
associate-/l*69.0%
Simplified69.0%
Taylor expanded in y.re around 0 40.2%
+-commutative40.2%
unpow240.2%
unpow240.2%
hypot-undefine73.7%
Simplified73.7%
if -1.44999999999999998e-114 < y.im < 1.4500000000000001e-6Initial program 47.2%
exp-diff47.2%
exp-to-pow47.2%
hypot-define47.2%
*-commutative47.2%
exp-prod47.2%
fma-define47.2%
hypot-define89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in y.im around 0 89.8%
if 1.4500000000000001e-6 < y.im Initial program 42.4%
cancel-sign-sub-inv42.4%
fma-define42.4%
hypot-define42.4%
distribute-lft-neg-in42.4%
distribute-rgt-neg-out42.4%
fma-define42.4%
hypot-define76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in y.re around inf 61.5%
mul-1-neg61.5%
unsub-neg61.5%
unpow261.5%
unpow261.5%
hypot-undefine76.0%
associate-/l*76.0%
Simplified76.0%
Taylor expanded in y.im around 0 76.5%
Final simplification81.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(exp
(*
y.re
(- (log (hypot x.im x.re)) (* y.im (/ (atan2 x.im x.re) y.re))))))
(t_1 (* t_0 (sin (* y.im (log (hypot x.re x.im)))))))
(if (<= y.im -1.44e-142)
t_1
(if (<= y.im 2.8e-195)
(*
(pow (hypot x.im x.re) y.re)
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0))))
(if (<= y.im 1.26e+42) t_1 (* t_0 (sin (* y.re (atan2 x.im x.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((y_46_re * (log(hypot(x_46_im, x_46_re)) - (y_46_im * (atan2(x_46_im, x_46_re) / y_46_re)))));
double t_1 = t_0 * sin((y_46_im * log(hypot(x_46_re, x_46_im))));
double tmp;
if (y_46_im <= -1.44e-142) {
tmp = t_1;
} else if (y_46_im <= 2.8e-195) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0)));
} else if (y_46_im <= 1.26e+42) {
tmp = t_1;
} else {
tmp = t_0 * sin((y_46_re * atan2(x_46_im, x_46_re)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((y_46_re * (Math.log(Math.hypot(x_46_im, x_46_re)) - (y_46_im * (Math.atan2(x_46_im, x_46_re) / y_46_re)))));
double t_1 = t_0 * Math.sin((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))));
double tmp;
if (y_46_im <= -1.44e-142) {
tmp = t_1;
} else if (y_46_im <= 2.8e-195) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.pow(Math.cbrt(Math.atan2(x_46_im, x_46_re)), 3.0)));
} else if (y_46_im <= 1.26e+42) {
tmp = t_1;
} else {
tmp = t_0 * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(y_46_re * Float64(log(hypot(x_46_im, x_46_re)) - Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_re))))) t_1 = Float64(t_0 * sin(Float64(y_46_im * log(hypot(x_46_re, x_46_im))))) tmp = 0.0 if (y_46_im <= -1.44e-142) tmp = t_1; elseif (y_46_im <= 2.8e-195) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0)))); elseif (y_46_im <= 1.26e+42) tmp = t_1; else tmp = Float64(t_0 * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(y$46$re * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] - N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.44e-142], t$95$1, If[LessEqual[y$46$im, 2.8e-195], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.26e+42], t$95$1, N[(t$95$0 * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{y.re \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) - y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re}\right)}\\
t_1 := t\_0 \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\right)\\
\mathbf{if}\;y.im \leq -1.44 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 2.8 \cdot 10^{-195}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right)\\
\mathbf{elif}\;y.im \leq 1.26 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\end{array}
\end{array}
if y.im < -1.4399999999999999e-142 or 2.80000000000000003e-195 < y.im < 1.26e42Initial program 37.9%
cancel-sign-sub-inv37.9%
fma-define37.9%
hypot-define37.9%
distribute-lft-neg-in37.9%
distribute-rgt-neg-out37.9%
fma-define38.6%
hypot-define76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in y.re around inf 62.0%
mul-1-neg62.0%
unsub-neg62.0%
unpow262.0%
unpow262.0%
hypot-undefine76.6%
associate-/l*76.6%
Simplified76.6%
Taylor expanded in y.re around 0 38.8%
+-commutative38.8%
unpow238.8%
unpow238.8%
hypot-undefine77.8%
Simplified77.8%
if -1.4399999999999999e-142 < y.im < 2.80000000000000003e-195Initial program 50.7%
cancel-sign-sub-inv50.7%
fma-define50.7%
hypot-define50.7%
distribute-lft-neg-in50.7%
distribute-rgt-neg-out50.7%
fma-define50.7%
hypot-define89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in y.im around 0 69.7%
unpow269.7%
unpow269.7%
hypot-undefine78.5%
Simplified78.5%
add-cube-cbrt82.2%
pow382.2%
Applied egg-rr82.2%
if 1.26e42 < y.im Initial program 42.6%
cancel-sign-sub-inv42.6%
fma-define42.6%
hypot-define42.6%
distribute-lft-neg-in42.6%
distribute-rgt-neg-out42.6%
fma-define42.6%
hypot-define75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y.re around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
unpow259.8%
unpow259.8%
hypot-undefine75.6%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in y.im around 0 76.2%
Final simplification78.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1
(*
(exp (* y.re (- t_0 (* y.im (/ (atan2 x.im x.re) y.re)))))
(sin (* y.re (atan2 x.im x.re))))))
(if (<= y.re -4.5e-189)
t_1
(if (<= y.re 2.3e-105)
(* (sin (* y.im t_0)) (exp (* (atan2 x.im x.re) (- y.im))))
(if (<= y.re 1.42e+94)
t_1
(*
(sin (* y.re (cbrt (pow (atan2 x.im x.re) 3.0))))
(pow (hypot x.im x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = exp((y_46_re * (t_0 - (y_46_im * (atan2(x_46_im, x_46_re) / y_46_re))))) * sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -4.5e-189) {
tmp = t_1;
} else if (y_46_re <= 2.3e-105) {
tmp = sin((y_46_im * t_0)) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 1.42e+94) {
tmp = t_1;
} else {
tmp = sin((y_46_re * cbrt(pow(atan2(x_46_im, x_46_re), 3.0)))) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.exp((y_46_re * (t_0 - (y_46_im * (Math.atan2(x_46_im, x_46_re) / y_46_re))))) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -4.5e-189) {
tmp = t_1;
} else if (y_46_re <= 2.3e-105) {
tmp = Math.sin((y_46_im * t_0)) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 1.42e+94) {
tmp = t_1;
} else {
tmp = Math.sin((y_46_re * Math.cbrt(Math.pow(Math.atan2(x_46_im, x_46_re), 3.0)))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(exp(Float64(y_46_re * Float64(t_0 - Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_re))))) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))) tmp = 0.0 if (y_46_re <= -4.5e-189) tmp = t_1; elseif (y_46_re <= 2.3e-105) tmp = Float64(sin(Float64(y_46_im * t_0)) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); elseif (y_46_re <= 1.42e+94) tmp = t_1; else tmp = Float64(sin(Float64(y_46_re * cbrt((atan(x_46_im, x_46_re) ^ 3.0)))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[Exp[N[(y$46$re * N[(t$95$0 - N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.5e-189], t$95$1, If[LessEqual[y$46$re, 2.3e-105], N[(N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.42e+94], t$95$1, N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := e^{y.re \cdot \left(t\_0 - y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re}\right)} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -4.5 \cdot 10^{-189}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 2.3 \cdot 10^{-105}:\\
\;\;\;\;\sin \left(y.im \cdot t\_0\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\mathbf{elif}\;y.re \leq 1.42 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \sqrt[3]{{\tan^{-1}_* \frac{x.im}{x.re}}^{3}}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -4.4999999999999996e-189 or 2.3000000000000001e-105 < y.re < 1.4200000000000001e94Initial program 45.2%
cancel-sign-sub-inv45.2%
fma-define45.2%
hypot-define45.2%
distribute-lft-neg-in45.2%
distribute-rgt-neg-out45.2%
fma-define45.8%
hypot-define84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in y.re around inf 72.3%
mul-1-neg72.3%
unsub-neg72.3%
unpow272.3%
unpow272.3%
hypot-undefine84.3%
associate-/l*84.3%
Simplified84.3%
Taylor expanded in y.im around 0 78.0%
if -4.4999999999999996e-189 < y.re < 2.3000000000000001e-105Initial program 42.2%
cancel-sign-sub-inv42.2%
fma-define42.2%
hypot-define42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-out42.2%
fma-define42.2%
hypot-define83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in y.re around 0 33.2%
*-commutative33.2%
unpow233.2%
unpow233.2%
hypot-undefine74.8%
neg-mul-174.8%
distribute-lft-neg-in74.8%
Simplified74.8%
if 1.4200000000000001e94 < y.re Initial program 29.7%
cancel-sign-sub-inv29.7%
fma-define29.7%
hypot-define29.7%
distribute-lft-neg-in29.7%
distribute-rgt-neg-out29.7%
fma-define29.7%
hypot-define54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y.im around 0 54.1%
unpow254.1%
unpow254.1%
hypot-undefine54.1%
Simplified54.1%
add-cbrt-cube73.0%
pow373.0%
Applied egg-rr73.0%
Final simplification76.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(*
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) (- y.im)))))
(t_1 (log (hypot x.re x.im)))
(t_2 (* (sin (* y.im t_1)) (exp (* y.re t_1)))))
(if (<= y.im -2.7e+45)
t_0
(if (<= y.im -3.35e-143)
t_2
(if (<= y.im 2e-195)
(*
(pow (hypot x.im x.re) y.re)
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0))))
(if (<= y.im 2.15e+49) t_2 t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
double t_1 = log(hypot(x_46_re, x_46_im));
double t_2 = sin((y_46_im * t_1)) * exp((y_46_re * t_1));
double tmp;
if (y_46_im <= -2.7e+45) {
tmp = t_0;
} else if (y_46_im <= -3.35e-143) {
tmp = t_2;
} else if (y_46_im <= 2e-195) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0)));
} else if (y_46_im <= 2.15e+49) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
double t_1 = Math.log(Math.hypot(x_46_re, x_46_im));
double t_2 = Math.sin((y_46_im * t_1)) * Math.exp((y_46_re * t_1));
double tmp;
if (y_46_im <= -2.7e+45) {
tmp = t_0;
} else if (y_46_im <= -3.35e-143) {
tmp = t_2;
} else if (y_46_im <= 2e-195) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.pow(Math.cbrt(Math.atan2(x_46_im, x_46_re)), 3.0)));
} else if (y_46_im <= 2.15e+49) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))) t_1 = log(hypot(x_46_re, x_46_im)) t_2 = Float64(sin(Float64(y_46_im * t_1)) * exp(Float64(y_46_re * t_1))) tmp = 0.0 if (y_46_im <= -2.7e+45) tmp = t_0; elseif (y_46_im <= -3.35e-143) tmp = t_2; elseif (y_46_im <= 2e-195) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0)))); elseif (y_46_im <= 2.15e+49) tmp = t_2; else tmp = t_0; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[N[(y$46$im * t$95$1), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(y$46$re * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2.7e+45], t$95$0, If[LessEqual[y$46$im, -3.35e-143], t$95$2, If[LessEqual[y$46$im, 2e-195], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 2.15e+49], t$95$2, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
t_1 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_2 := \sin \left(y.im \cdot t\_1\right) \cdot e^{y.re \cdot t\_1}\\
\mathbf{if}\;y.im \leq -2.7 \cdot 10^{+45}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq -3.35 \cdot 10^{-143}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 2 \cdot 10^{-195}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right)\\
\mathbf{elif}\;y.im \leq 2.15 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -2.69999999999999984e45 or 2.15e49 < y.im Initial program 35.4%
cancel-sign-sub-inv35.4%
fma-define35.4%
hypot-define35.4%
distribute-lft-neg-in35.4%
distribute-rgt-neg-out35.4%
fma-define35.4%
hypot-define69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in y.re around 0 32.9%
*-commutative32.9%
unpow232.9%
unpow232.9%
hypot-undefine61.3%
neg-mul-161.3%
distribute-lft-neg-in61.3%
Simplified61.3%
if -2.69999999999999984e45 < y.im < -3.3500000000000002e-143 or 2.0000000000000002e-195 < y.im < 2.15e49Initial program 45.0%
cancel-sign-sub-inv45.0%
fma-define45.0%
hypot-define45.0%
distribute-lft-neg-in45.0%
distribute-rgt-neg-out45.0%
fma-define46.3%
hypot-define86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in y.re around inf 68.3%
mul-1-neg68.3%
unsub-neg68.3%
unpow268.3%
unpow268.3%
hypot-undefine86.2%
associate-/l*86.2%
Simplified86.2%
Taylor expanded in y.re around 0 41.3%
+-commutative41.3%
unpow241.3%
unpow241.3%
hypot-undefine82.8%
Simplified82.8%
Taylor expanded in y.re around inf 67.4%
+-commutative67.4%
unpow267.4%
unpow267.4%
hypot-undefine79.5%
Simplified79.5%
if -3.3500000000000002e-143 < y.im < 2.0000000000000002e-195Initial program 50.7%
cancel-sign-sub-inv50.7%
fma-define50.7%
hypot-define50.7%
distribute-lft-neg-in50.7%
distribute-rgt-neg-out50.7%
fma-define50.7%
hypot-define89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in y.im around 0 69.7%
unpow269.7%
unpow269.7%
hypot-undefine78.5%
Simplified78.5%
add-cube-cbrt82.2%
pow382.2%
Applied egg-rr82.2%
Final simplification72.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(*
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) (- y.im)))))
(t_1 (log (hypot x.re x.im)))
(t_2 (* (sin (* y.im t_1)) (exp (* y.re t_1)))))
(if (<= y.im -3.2e+45)
t_0
(if (<= y.im -3.7e-145)
t_2
(if (<= y.im 1.9e-180)
(* (pow (hypot x.im x.re) y.re) (sin (* y.re (atan2 x.im x.re))))
(if (<= y.im 1.32e+48) t_2 t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
double t_1 = log(hypot(x_46_re, x_46_im));
double t_2 = sin((y_46_im * t_1)) * exp((y_46_re * t_1));
double tmp;
if (y_46_im <= -3.2e+45) {
tmp = t_0;
} else if (y_46_im <= -3.7e-145) {
tmp = t_2;
} else if (y_46_im <= 1.9e-180) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else if (y_46_im <= 1.32e+48) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
double t_1 = Math.log(Math.hypot(x_46_re, x_46_im));
double t_2 = Math.sin((y_46_im * t_1)) * Math.exp((y_46_re * t_1));
double tmp;
if (y_46_im <= -3.2e+45) {
tmp = t_0;
} else if (y_46_im <= -3.7e-145) {
tmp = t_2;
} else if (y_46_im <= 1.9e-180) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (y_46_im <= 1.32e+48) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im)) t_1 = math.log(math.hypot(x_46_re, x_46_im)) t_2 = math.sin((y_46_im * t_1)) * math.exp((y_46_re * t_1)) tmp = 0 if y_46_im <= -3.2e+45: tmp = t_0 elif y_46_im <= -3.7e-145: tmp = t_2 elif y_46_im <= 1.9e-180: tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) elif y_46_im <= 1.32e+48: tmp = t_2 else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))) t_1 = log(hypot(x_46_re, x_46_im)) t_2 = Float64(sin(Float64(y_46_im * t_1)) * exp(Float64(y_46_re * t_1))) tmp = 0.0 if (y_46_im <= -3.2e+45) tmp = t_0; elseif (y_46_im <= -3.7e-145) tmp = t_2; elseif (y_46_im <= 1.9e-180) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (y_46_im <= 1.32e+48) tmp = t_2; else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((atan2(x_46_im, x_46_re) * -y_46_im)); t_1 = log(hypot(x_46_re, x_46_im)); t_2 = sin((y_46_im * t_1)) * exp((y_46_re * t_1)); tmp = 0.0; if (y_46_im <= -3.2e+45) tmp = t_0; elseif (y_46_im <= -3.7e-145) tmp = t_2; elseif (y_46_im <= 1.9e-180) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re))); elseif (y_46_im <= 1.32e+48) tmp = t_2; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[N[(y$46$im * t$95$1), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(y$46$re * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -3.2e+45], t$95$0, If[LessEqual[y$46$im, -3.7e-145], t$95$2, If[LessEqual[y$46$im, 1.9e-180], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.32e+48], t$95$2, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
t_1 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_2 := \sin \left(y.im \cdot t\_1\right) \cdot e^{y.re \cdot t\_1}\\
\mathbf{if}\;y.im \leq -3.2 \cdot 10^{+45}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq -3.7 \cdot 10^{-145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 1.9 \cdot 10^{-180}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.im \leq 1.32 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -3.2000000000000003e45 or 1.32e48 < y.im Initial program 35.4%
cancel-sign-sub-inv35.4%
fma-define35.4%
hypot-define35.4%
distribute-lft-neg-in35.4%
distribute-rgt-neg-out35.4%
fma-define35.4%
hypot-define69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in y.re around 0 32.9%
*-commutative32.9%
unpow232.9%
unpow232.9%
hypot-undefine61.3%
neg-mul-161.3%
distribute-lft-neg-in61.3%
Simplified61.3%
if -3.2000000000000003e45 < y.im < -3.70000000000000013e-145 or 1.9e-180 < y.im < 1.32e48Initial program 44.6%
cancel-sign-sub-inv44.6%
fma-define44.6%
hypot-define44.6%
distribute-lft-neg-in44.6%
distribute-rgt-neg-out44.6%
fma-define46.0%
hypot-define85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y.re around inf 66.9%
mul-1-neg66.9%
unsub-neg66.9%
unpow266.9%
unpow266.9%
hypot-undefine85.0%
associate-/l*85.0%
Simplified85.0%
Taylor expanded in y.re around 0 42.0%
+-commutative42.0%
unpow242.0%
unpow242.0%
hypot-undefine84.1%
Simplified84.1%
Taylor expanded in y.re around inf 67.3%
+-commutative67.3%
unpow267.3%
unpow267.3%
hypot-undefine80.5%
Simplified80.5%
if -3.70000000000000013e-145 < y.im < 1.9e-180Initial program 50.6%
cancel-sign-sub-inv50.6%
fma-define50.6%
hypot-define50.6%
distribute-lft-neg-in50.6%
distribute-rgt-neg-out50.6%
fma-define50.6%
hypot-define90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in y.im around 0 69.6%
unpow269.6%
unpow269.6%
hypot-undefine78.9%
Simplified78.9%
Final simplification71.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(*
(pow (hypot x.im x.re) y.re)
(sin (* y.re (log1p (expm1 (atan2 x.im x.re))))))))
(if (<= y.re -0.0255)
t_0
(if (<= y.re 2.8e-8)
(*
(sin (* y.im (log (hypot x.re x.im))))
(exp (* y.re (* (/ (atan2 x.im x.re) y.re) (- y.im)))))
(if (<= y.re 7.2e+97)
t_0
(*
(sin (* y.re (cbrt (pow (atan2 x.im x.re) 3.0))))
(pow x.im y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * log1p(expm1(atan2(x_46_im, x_46_re)))));
double tmp;
if (y_46_re <= -0.0255) {
tmp = t_0;
} else if (y_46_re <= 2.8e-8) {
tmp = sin((y_46_im * log(hypot(x_46_re, x_46_im)))) * exp((y_46_re * ((atan2(x_46_im, x_46_re) / y_46_re) * -y_46_im)));
} else if (y_46_re <= 7.2e+97) {
tmp = t_0;
} else {
tmp = sin((y_46_re * cbrt(pow(atan2(x_46_im, x_46_re), 3.0)))) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.log1p(Math.expm1(Math.atan2(x_46_im, x_46_re)))));
double tmp;
if (y_46_re <= -0.0255) {
tmp = t_0;
} else if (y_46_re <= 2.8e-8) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im)))) * Math.exp((y_46_re * ((Math.atan2(x_46_im, x_46_re) / y_46_re) * -y_46_im)));
} else if (y_46_re <= 7.2e+97) {
tmp = t_0;
} else {
tmp = Math.sin((y_46_re * Math.cbrt(Math.pow(Math.atan2(x_46_im, x_46_re), 3.0)))) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * log1p(expm1(atan(x_46_im, x_46_re)))))) tmp = 0.0 if (y_46_re <= -0.0255) tmp = t_0; elseif (y_46_re <= 2.8e-8) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_re, x_46_im)))) * exp(Float64(y_46_re * Float64(Float64(atan(x_46_im, x_46_re) / y_46_re) * Float64(-y_46_im))))); elseif (y_46_re <= 7.2e+97) tmp = t_0; else tmp = Float64(sin(Float64(y_46_re * cbrt((atan(x_46_im, x_46_re) ^ 3.0)))) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[Log[1 + N[(Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -0.0255], t$95$0, If[LessEqual[y$46$re, 2.8e-8], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(y$46$re * N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision] * (-y$46$im)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 7.2e+97], t$95$0, N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \mathsf{log1p}\left(\mathsf{expm1}\left(\tan^{-1}_* \frac{x.im}{x.re}\right)\right)\right)\\
\mathbf{if}\;y.re \leq -0.0255:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 2.8 \cdot 10^{-8}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\right) \cdot e^{y.re \cdot \left(\frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re} \cdot \left(-y.im\right)\right)}\\
\mathbf{elif}\;y.re \leq 7.2 \cdot 10^{+97}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \sqrt[3]{{\tan^{-1}_* \frac{x.im}{x.re}}^{3}}\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -0.0254999999999999984 or 2.7999999999999999e-8 < y.re < 7.19999999999999932e97Initial program 43.1%
cancel-sign-sub-inv43.1%
fma-define43.1%
hypot-define43.1%
distribute-lft-neg-in43.1%
distribute-rgt-neg-out43.1%
fma-define44.2%
hypot-define84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in y.im around 0 74.9%
unpow274.9%
unpow274.9%
hypot-undefine74.9%
Simplified74.9%
log1p-expm1-u78.1%
Applied egg-rr78.1%
if -0.0254999999999999984 < y.re < 2.7999999999999999e-8Initial program 45.2%
cancel-sign-sub-inv45.2%
fma-define45.2%
hypot-define45.2%
distribute-lft-neg-in45.2%
distribute-rgt-neg-out45.2%
fma-define45.2%
hypot-define84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y.re around inf 55.9%
mul-1-neg55.9%
unsub-neg55.9%
unpow255.9%
unpow255.9%
hypot-undefine84.1%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in y.re around 0 30.1%
+-commutative30.1%
unpow230.1%
unpow230.1%
hypot-undefine62.1%
Simplified62.1%
Taylor expanded in y.im around inf 61.6%
neg-mul-161.6%
associate-/l*61.6%
distribute-lft-neg-out61.6%
*-commutative61.6%
Simplified61.6%
if 7.19999999999999932e97 < y.re Initial program 29.7%
cancel-sign-sub-inv29.7%
fma-define29.7%
hypot-define29.7%
distribute-lft-neg-in29.7%
distribute-rgt-neg-out29.7%
fma-define29.7%
hypot-define54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y.im around 0 54.1%
unpow254.1%
unpow254.1%
hypot-undefine54.1%
Simplified54.1%
Taylor expanded in x.re around 0 43.5%
add-cbrt-cube73.0%
pow373.0%
Applied egg-rr65.2%
Final simplification68.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -5400000000.0)
(* t_0 (sin (* y.re (fabs (atan2 x.im x.re)))))
(if (<= y.re 2.3e-7)
(*
(sin (* y.im (log (hypot x.re x.im))))
(exp (* y.re (* (/ (atan2 x.im x.re) y.re) (- y.im)))))
(if (<= y.re 6.5e+97)
(* t_0 (sin (* y.re (atan2 x.im x.re))))
(*
(sin (* y.re (cbrt (pow (atan2 x.im x.re) 3.0))))
(pow x.im y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -5400000000.0) {
tmp = t_0 * sin((y_46_re * fabs(atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 2.3e-7) {
tmp = sin((y_46_im * log(hypot(x_46_re, x_46_im)))) * exp((y_46_re * ((atan2(x_46_im, x_46_re) / y_46_re) * -y_46_im)));
} else if (y_46_re <= 6.5e+97) {
tmp = t_0 * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = sin((y_46_re * cbrt(pow(atan2(x_46_im, x_46_re), 3.0)))) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -5400000000.0) {
tmp = t_0 * Math.sin((y_46_re * Math.abs(Math.atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 2.3e-7) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im)))) * Math.exp((y_46_re * ((Math.atan2(x_46_im, x_46_re) / y_46_re) * -y_46_im)));
} else if (y_46_re <= 6.5e+97) {
tmp = t_0 * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = Math.sin((y_46_re * Math.cbrt(Math.pow(Math.atan2(x_46_im, x_46_re), 3.0)))) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -5400000000.0) tmp = Float64(t_0 * sin(Float64(y_46_re * abs(atan(x_46_im, x_46_re))))); elseif (y_46_re <= 2.3e-7) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_re, x_46_im)))) * exp(Float64(y_46_re * Float64(Float64(atan(x_46_im, x_46_re) / y_46_re) * Float64(-y_46_im))))); elseif (y_46_re <= 6.5e+97) tmp = Float64(t_0 * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = Float64(sin(Float64(y_46_re * cbrt((atan(x_46_im, x_46_re) ^ 3.0)))) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -5400000000.0], N[(t$95$0 * N[Sin[N[(y$46$re * N[Abs[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.3e-7], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(y$46$re * N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$re), $MachinePrecision] * (-y$46$im)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6.5e+97], N[(t$95$0 * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -5400000000:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \left|\tan^{-1}_* \frac{x.im}{x.re}\right|\right)\\
\mathbf{elif}\;y.re \leq 2.3 \cdot 10^{-7}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\right) \cdot e^{y.re \cdot \left(\frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.re} \cdot \left(-y.im\right)\right)}\\
\mathbf{elif}\;y.re \leq 6.5 \cdot 10^{+97}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \sqrt[3]{{\tan^{-1}_* \frac{x.im}{x.re}}^{3}}\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -5.4e9Initial program 47.8%
cancel-sign-sub-inv47.8%
fma-define47.8%
hypot-define47.8%
distribute-lft-neg-in47.8%
distribute-rgt-neg-out47.8%
fma-define47.8%
hypot-define84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y.im around 0 75.6%
unpow275.6%
unpow275.6%
hypot-undefine75.6%
Simplified75.6%
log1p-expm1-u78.5%
Applied egg-rr78.5%
log1p-expm1-u75.6%
add-sqr-sqrt49.4%
sqrt-unprod78.5%
pow278.5%
Applied egg-rr78.5%
unpow278.5%
rem-sqrt-square78.5%
Simplified78.5%
if -5.4e9 < y.re < 2.29999999999999995e-7Initial program 45.4%
cancel-sign-sub-inv45.4%
fma-define45.4%
hypot-define45.4%
distribute-lft-neg-in45.4%
distribute-rgt-neg-out45.4%
fma-define45.4%
hypot-define83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in y.re around inf 56.5%
mul-1-neg56.5%
unsub-neg56.5%
unpow256.5%
unpow256.5%
hypot-undefine83.8%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in y.re around 0 30.7%
+-commutative30.7%
unpow230.7%
unpow230.7%
hypot-undefine62.5%
Simplified62.5%
Taylor expanded in y.im around inf 60.5%
neg-mul-160.5%
associate-/l*60.5%
distribute-lft-neg-out60.5%
*-commutative60.5%
Simplified60.5%
if 2.29999999999999995e-7 < y.re < 6.4999999999999999e97Initial program 27.2%
cancel-sign-sub-inv27.2%
fma-define27.2%
hypot-define27.2%
distribute-lft-neg-in27.2%
distribute-rgt-neg-out27.2%
fma-define31.7%
hypot-define86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in y.im around 0 77.2%
unpow277.2%
unpow277.2%
hypot-undefine77.2%
Simplified77.2%
if 6.4999999999999999e97 < y.re Initial program 29.7%
cancel-sign-sub-inv29.7%
fma-define29.7%
hypot-define29.7%
distribute-lft-neg-in29.7%
distribute-rgt-neg-out29.7%
fma-define29.7%
hypot-define54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y.im around 0 54.1%
unpow254.1%
unpow254.1%
hypot-undefine54.1%
Simplified54.1%
Taylor expanded in x.re around 0 43.5%
add-cbrt-cube73.0%
pow373.0%
Applied egg-rr65.2%
Final simplification67.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -1900000000.0)
(* t_0 (sin (* y.re (fabs (atan2 x.im x.re)))))
(if (<= y.re 2.7e-5)
(*
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) (- y.im))))
(if (<= y.re 6.1e+97)
(* t_0 (sin (* y.re (atan2 x.im x.re))))
(*
(sin (* y.re (cbrt (pow (atan2 x.im x.re) 3.0))))
(pow x.im y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1900000000.0) {
tmp = t_0 * sin((y_46_re * fabs(atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 2.7e-5) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 6.1e+97) {
tmp = t_0 * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = sin((y_46_re * cbrt(pow(atan2(x_46_im, x_46_re), 3.0)))) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1900000000.0) {
tmp = t_0 * Math.sin((y_46_re * Math.abs(Math.atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 2.7e-5) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 6.1e+97) {
tmp = t_0 * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = Math.sin((y_46_re * Math.cbrt(Math.pow(Math.atan2(x_46_im, x_46_re), 3.0)))) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -1900000000.0) tmp = Float64(t_0 * sin(Float64(y_46_re * abs(atan(x_46_im, x_46_re))))); elseif (y_46_re <= 2.7e-5) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); elseif (y_46_re <= 6.1e+97) tmp = Float64(t_0 * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = Float64(sin(Float64(y_46_re * cbrt((atan(x_46_im, x_46_re) ^ 3.0)))) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -1900000000.0], N[(t$95$0 * N[Sin[N[(y$46$re * N[Abs[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.7e-5], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6.1e+97], N[(t$95$0 * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1900000000:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \left|\tan^{-1}_* \frac{x.im}{x.re}\right|\right)\\
\mathbf{elif}\;y.re \leq 2.7 \cdot 10^{-5}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\mathbf{elif}\;y.re \leq 6.1 \cdot 10^{+97}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \sqrt[3]{{\tan^{-1}_* \frac{x.im}{x.re}}^{3}}\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.9e9Initial program 47.8%
cancel-sign-sub-inv47.8%
fma-define47.8%
hypot-define47.8%
distribute-lft-neg-in47.8%
distribute-rgt-neg-out47.8%
fma-define47.8%
hypot-define84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y.im around 0 75.6%
unpow275.6%
unpow275.6%
hypot-undefine75.6%
Simplified75.6%
log1p-expm1-u78.5%
Applied egg-rr78.5%
log1p-expm1-u75.6%
add-sqr-sqrt49.4%
sqrt-unprod78.5%
pow278.5%
Applied egg-rr78.5%
unpow278.5%
rem-sqrt-square78.5%
Simplified78.5%
if -1.9e9 < y.re < 2.6999999999999999e-5Initial program 45.4%
cancel-sign-sub-inv45.4%
fma-define45.4%
hypot-define45.4%
distribute-lft-neg-in45.4%
distribute-rgt-neg-out45.4%
fma-define45.4%
hypot-define83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in y.re around 0 29.5%
*-commutative29.5%
unpow229.5%
unpow229.5%
hypot-undefine60.5%
neg-mul-160.5%
distribute-lft-neg-in60.5%
Simplified60.5%
if 2.6999999999999999e-5 < y.re < 6.1e97Initial program 27.2%
cancel-sign-sub-inv27.2%
fma-define27.2%
hypot-define27.2%
distribute-lft-neg-in27.2%
distribute-rgt-neg-out27.2%
fma-define31.7%
hypot-define86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in y.im around 0 77.2%
unpow277.2%
unpow277.2%
hypot-undefine77.2%
Simplified77.2%
if 6.1e97 < y.re Initial program 29.7%
cancel-sign-sub-inv29.7%
fma-define29.7%
hypot-define29.7%
distribute-lft-neg-in29.7%
distribute-rgt-neg-out29.7%
fma-define29.7%
hypot-define54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y.im around 0 54.1%
unpow254.1%
unpow254.1%
hypot-undefine54.1%
Simplified54.1%
Taylor expanded in x.re around 0 43.5%
add-cbrt-cube73.0%
pow373.0%
Applied egg-rr65.2%
Final simplification67.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re))))
(t_1 (* t_0 (pow (+ x.re (* 0.5 (/ (pow x.im 2.0) x.re))) y.re))))
(if (<= y.im -5.5e+62)
t_1
(if (<= y.im 1.45e-6)
(* (pow (hypot x.im x.re) y.re) t_0)
(if (<= y.im 4.5e+184) (* (pow x.im y.re) (log (exp t_0))) t_1)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_1 = t_0 * pow((x_46_re + (0.5 * (pow(x_46_im, 2.0) / x_46_re))), y_46_re);
double tmp;
if (y_46_im <= -5.5e+62) {
tmp = t_1;
} else if (y_46_im <= 1.45e-6) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * t_0;
} else if (y_46_im <= 4.5e+184) {
tmp = pow(x_46_im, y_46_re) * log(exp(t_0));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_1 = t_0 * Math.pow((x_46_re + (0.5 * (Math.pow(x_46_im, 2.0) / x_46_re))), y_46_re);
double tmp;
if (y_46_im <= -5.5e+62) {
tmp = t_1;
} else if (y_46_im <= 1.45e-6) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * t_0;
} else if (y_46_im <= 4.5e+184) {
tmp = Math.pow(x_46_im, y_46_re) * Math.log(Math.exp(t_0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_1 = t_0 * math.pow((x_46_re + (0.5 * (math.pow(x_46_im, 2.0) / x_46_re))), y_46_re) tmp = 0 if y_46_im <= -5.5e+62: tmp = t_1 elif y_46_im <= 1.45e-6: tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * t_0 elif y_46_im <= 4.5e+184: tmp = math.pow(x_46_im, y_46_re) * math.log(math.exp(t_0)) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_1 = Float64(t_0 * (Float64(x_46_re + Float64(0.5 * Float64((x_46_im ^ 2.0) / x_46_re))) ^ y_46_re)) tmp = 0.0 if (y_46_im <= -5.5e+62) tmp = t_1; elseif (y_46_im <= 1.45e-6) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * t_0); elseif (y_46_im <= 4.5e+184) tmp = Float64((x_46_im ^ y_46_re) * log(exp(t_0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_1 = t_0 * ((x_46_re + (0.5 * ((x_46_im ^ 2.0) / x_46_re))) ^ y_46_re); tmp = 0.0; if (y_46_im <= -5.5e+62) tmp = t_1; elseif (y_46_im <= 1.45e-6) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * t_0; elseif (y_46_im <= 4.5e+184) tmp = (x_46_im ^ y_46_re) * log(exp(t_0)); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[(x$46$re + N[(0.5 * N[(N[Power[x$46$im, 2.0], $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -5.5e+62], t$95$1, If[LessEqual[y$46$im, 1.45e-6], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[y$46$im, 4.5e+184], N[(N[Power[x$46$im, y$46$re], $MachinePrecision] * N[Log[N[Exp[t$95$0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_1 := t\_0 \cdot {\left(x.re + 0.5 \cdot \frac{{x.im}^{2}}{x.re}\right)}^{y.re}\\
\mathbf{if}\;y.im \leq -5.5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.45 \cdot 10^{-6}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot t\_0\\
\mathbf{elif}\;y.im \leq 4.5 \cdot 10^{+184}:\\
\;\;\;\;{x.im}^{y.re} \cdot \log \left(e^{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -5.4999999999999997e62 or 4.50000000000000036e184 < y.im Initial program 35.8%
cancel-sign-sub-inv35.8%
fma-define35.8%
hypot-define35.8%
distribute-lft-neg-in35.8%
distribute-rgt-neg-out35.8%
fma-define35.8%
hypot-define70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in y.im around 0 46.0%
unpow246.0%
unpow246.0%
hypot-undefine38.0%
Simplified38.0%
Taylor expanded in x.im around 0 50.8%
if -5.4999999999999997e62 < y.im < 1.4500000000000001e-6Initial program 47.9%
cancel-sign-sub-inv47.9%
fma-define47.9%
hypot-define47.9%
distribute-lft-neg-in47.9%
distribute-rgt-neg-out47.9%
fma-define48.6%
hypot-define87.8%
*-commutative87.8%
Simplified87.8%
Taylor expanded in y.im around 0 56.1%
unpow256.1%
unpow256.1%
hypot-undefine62.0%
Simplified62.0%
if 1.4500000000000001e-6 < y.im < 4.50000000000000036e184Initial program 35.9%
cancel-sign-sub-inv35.9%
fma-define35.9%
hypot-define35.9%
distribute-lft-neg-in35.9%
distribute-rgt-neg-out35.9%
fma-define35.9%
hypot-define70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in y.im around 0 32.4%
unpow232.4%
unpow232.4%
hypot-undefine28.0%
Simplified28.0%
Taylor expanded in x.re around 0 27.8%
add-log-exp61.9%
Applied egg-rr61.9%
Final simplification58.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (sin t_0))
(t_2 (* t_1 (pow (+ x.re (* 0.5 (/ (pow x.im 2.0) x.re))) y.re))))
(if (<= y.im -6.5e+49)
t_2
(if (<= y.im 1.5e+50)
(* (pow (hypot x.im x.re) y.re) t_1)
(if (<= y.im 3.2e+181) (+ (exp (log1p t_0)) -1.0) t_2)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double t_2 = t_1 * pow((x_46_re + (0.5 * (pow(x_46_im, 2.0) / x_46_re))), y_46_re);
double tmp;
if (y_46_im <= -6.5e+49) {
tmp = t_2;
} else if (y_46_im <= 1.5e+50) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * t_1;
} else if (y_46_im <= 3.2e+181) {
tmp = exp(log1p(t_0)) + -1.0;
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double t_2 = t_1 * Math.pow((x_46_re + (0.5 * (Math.pow(x_46_im, 2.0) / x_46_re))), y_46_re);
double tmp;
if (y_46_im <= -6.5e+49) {
tmp = t_2;
} else if (y_46_im <= 1.5e+50) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * t_1;
} else if (y_46_im <= 3.2e+181) {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) t_2 = t_1 * math.pow((x_46_re + (0.5 * (math.pow(x_46_im, 2.0) / x_46_re))), y_46_re) tmp = 0 if y_46_im <= -6.5e+49: tmp = t_2 elif y_46_im <= 1.5e+50: tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * t_1 elif y_46_im <= 3.2e+181: tmp = math.exp(math.log1p(t_0)) + -1.0 else: tmp = t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) t_2 = Float64(t_1 * (Float64(x_46_re + Float64(0.5 * Float64((x_46_im ^ 2.0) / x_46_re))) ^ y_46_re)) tmp = 0.0 if (y_46_im <= -6.5e+49) tmp = t_2; elseif (y_46_im <= 1.5e+50) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * t_1); elseif (y_46_im <= 3.2e+181) tmp = Float64(exp(log1p(t_0)) + -1.0); else tmp = t_2; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[Power[N[(x$46$re + N[(0.5 * N[(N[Power[x$46$im, 2.0], $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -6.5e+49], t$95$2, If[LessEqual[y$46$im, 1.5e+50], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y$46$im, 3.2e+181], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
t_2 := t\_1 \cdot {\left(x.re + 0.5 \cdot \frac{{x.im}^{2}}{x.re}\right)}^{y.re}\\
\mathbf{if}\;y.im \leq -6.5 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 1.5 \cdot 10^{+50}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot t\_1\\
\mathbf{elif}\;y.im \leq 3.2 \cdot 10^{+181}:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -6.5000000000000005e49 or 3.2e181 < y.im Initial program 35.8%
cancel-sign-sub-inv35.8%
fma-define35.8%
hypot-define35.8%
distribute-lft-neg-in35.8%
distribute-rgt-neg-out35.8%
fma-define35.8%
hypot-define70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in y.im around 0 46.0%
unpow246.0%
unpow246.0%
hypot-undefine38.0%
Simplified38.0%
Taylor expanded in x.im around 0 50.8%
if -6.5000000000000005e49 < y.im < 1.4999999999999999e50Initial program 47.3%
cancel-sign-sub-inv47.3%
fma-define47.3%
hypot-define47.3%
distribute-lft-neg-in47.3%
distribute-rgt-neg-out47.3%
fma-define48.0%
hypot-define87.8%
*-commutative87.8%
Simplified87.8%
Taylor expanded in y.im around 0 57.8%
unpow257.8%
unpow257.8%
hypot-undefine62.8%
Simplified62.8%
if 1.4999999999999999e50 < y.im < 3.2e181Initial program 35.5%
cancel-sign-sub-inv35.5%
fma-define35.5%
hypot-define35.5%
distribute-lft-neg-in35.5%
distribute-rgt-neg-out35.5%
fma-define35.5%
hypot-define66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in y.im around 0 18.1%
unpow218.1%
unpow218.1%
hypot-undefine15.7%
Simplified15.7%
Taylor expanded in x.re around 0 15.5%
Taylor expanded in y.re around 0 3.4%
*-commutative3.4%
expm1-log1p-u3.1%
expm1-undefine42.9%
*-commutative42.9%
Applied egg-rr42.9%
Final simplification56.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (or (<= y.re -1.16e-196) (not (<= y.re 6.2e-91)))
(* (pow (hypot x.im x.re) y.re) (sin t_0))
(+ (exp (log1p t_0)) -1.0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -1.16e-196) || !(y_46_re <= 6.2e-91)) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin(t_0);
} else {
tmp = exp(log1p(t_0)) + -1.0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -1.16e-196) || !(y_46_re <= 6.2e-91)) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin(t_0);
} else {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if (y_46_re <= -1.16e-196) or not (y_46_re <= 6.2e-91): tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin(t_0) else: tmp = math.exp(math.log1p(t_0)) + -1.0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_re <= -1.16e-196) || !(y_46_re <= 6.2e-91)) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(t_0)); else tmp = Float64(exp(log1p(t_0)) + -1.0); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y$46$re, -1.16e-196], N[Not[LessEqual[y$46$re, 6.2e-91]], $MachinePrecision]], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -1.16 \cdot 10^{-196} \lor \neg \left(y.re \leq 6.2 \cdot 10^{-91}\right):\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin t\_0\\
\mathbf{else}:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\end{array}
\end{array}
if y.re < -1.16000000000000009e-196 or 6.19999999999999962e-91 < y.re Initial program 41.6%
cancel-sign-sub-inv41.6%
fma-define41.6%
hypot-define41.6%
distribute-lft-neg-in41.6%
distribute-rgt-neg-out41.6%
fma-define42.1%
hypot-define77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in y.im around 0 57.5%
unpow257.5%
unpow257.5%
hypot-undefine59.6%
Simplified59.6%
if -1.16000000000000009e-196 < y.re < 6.19999999999999962e-91Initial program 44.0%
cancel-sign-sub-inv44.0%
fma-define44.0%
hypot-define44.0%
distribute-lft-neg-in44.0%
distribute-rgt-neg-out44.0%
fma-define44.0%
hypot-define85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in y.im around 0 24.5%
unpow224.5%
unpow224.5%
hypot-undefine17.9%
Simplified17.9%
Taylor expanded in x.re around 0 7.0%
Taylor expanded in y.re around 0 17.9%
*-commutative17.9%
expm1-log1p-u17.9%
expm1-undefine32.4%
*-commutative32.4%
Applied egg-rr32.4%
Final simplification52.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (sin t_0)))
(if (<= y.re -1900000000.0)
(* t_1 (pow x.im y.re))
(if (<= y.re -4e-188)
t_0
(if (<= y.re 550.0) (cbrt (pow t_0 3.0)) (* t_1 (pow x.re y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double tmp;
if (y_46_re <= -1900000000.0) {
tmp = t_1 * pow(x_46_im, y_46_re);
} else if (y_46_re <= -4e-188) {
tmp = t_0;
} else if (y_46_re <= 550.0) {
tmp = cbrt(pow(t_0, 3.0));
} else {
tmp = t_1 * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double tmp;
if (y_46_re <= -1900000000.0) {
tmp = t_1 * Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= -4e-188) {
tmp = t_0;
} else if (y_46_re <= 550.0) {
tmp = Math.cbrt(Math.pow(t_0, 3.0));
} else {
tmp = t_1 * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) tmp = 0.0 if (y_46_re <= -1900000000.0) tmp = Float64(t_1 * (x_46_im ^ y_46_re)); elseif (y_46_re <= -4e-188) tmp = t_0; elseif (y_46_re <= 550.0) tmp = cbrt((t_0 ^ 3.0)); else tmp = Float64(t_1 * (x_46_re ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[y$46$re, -1900000000.0], N[(t$95$1 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -4e-188], t$95$0, If[LessEqual[y$46$re, 550.0], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 1/3], $MachinePrecision], N[(t$95$1 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
\mathbf{if}\;y.re \leq -1900000000:\\
\;\;\;\;t\_1 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq -4 \cdot 10^{-188}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 550:\\
\;\;\;\;\sqrt[3]{{t\_0}^{3}}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.9e9Initial program 47.8%
cancel-sign-sub-inv47.8%
fma-define47.8%
hypot-define47.8%
distribute-lft-neg-in47.8%
distribute-rgt-neg-out47.8%
fma-define47.8%
hypot-define84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y.im around 0 75.6%
unpow275.6%
unpow275.6%
hypot-undefine75.6%
Simplified75.6%
Taylor expanded in x.re around 0 58.4%
if -1.9e9 < y.re < -3.9999999999999998e-188Initial program 49.9%
cancel-sign-sub-inv49.9%
fma-define49.9%
hypot-define49.9%
distribute-lft-neg-in49.9%
distribute-rgt-neg-out49.9%
fma-define49.9%
hypot-define85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in y.im around 0 41.6%
unpow241.6%
unpow241.6%
hypot-undefine44.1%
Simplified44.1%
Taylor expanded in x.re around 0 18.6%
Taylor expanded in y.re around 0 39.3%
if -3.9999999999999998e-188 < y.re < 550Initial program 43.5%
cancel-sign-sub-inv43.5%
fma-define43.5%
hypot-define43.5%
distribute-lft-neg-in43.5%
distribute-rgt-neg-out43.5%
fma-define43.5%
hypot-define83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y.im around 0 24.7%
unpow224.7%
unpow224.7%
hypot-undefine23.3%
Simplified23.3%
Taylor expanded in x.re around 0 8.8%
Taylor expanded in y.re around 0 21.5%
*-commutative21.5%
add-cbrt-cube29.4%
pow329.4%
*-commutative29.4%
Applied egg-rr29.4%
if 550 < y.re Initial program 28.1%
cancel-sign-sub-inv28.1%
fma-define28.1%
hypot-define28.1%
distribute-lft-neg-in28.1%
distribute-rgt-neg-out28.1%
fma-define29.8%
hypot-define64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y.im around 0 61.4%
unpow261.4%
unpow261.4%
hypot-undefine61.4%
Simplified61.4%
Taylor expanded in x.im around 0 54.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (* (sin t_0) (pow x.im y.re))))
(if (<= y.re -1900000000.0)
t_1
(if (<= y.re -6.5e-188)
t_0
(if (<= y.re 0.00041) (cbrt (pow t_0 3.0)) t_1)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0) * pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -1900000000.0) {
tmp = t_1;
} else if (y_46_re <= -6.5e-188) {
tmp = t_0;
} else if (y_46_re <= 0.00041) {
tmp = cbrt(pow(t_0, 3.0));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0) * Math.pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -1900000000.0) {
tmp = t_1;
} else if (y_46_re <= -6.5e-188) {
tmp = t_0;
} else if (y_46_re <= 0.00041) {
tmp = Math.cbrt(Math.pow(t_0, 3.0));
} else {
tmp = t_1;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(sin(t_0) * (x_46_im ^ y_46_re)) tmp = 0.0 if (y_46_re <= -1900000000.0) tmp = t_1; elseif (y_46_re <= -6.5e-188) tmp = t_0; elseif (y_46_re <= 0.00041) tmp = cbrt((t_0 ^ 3.0)); else tmp = t_1; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1900000000.0], t$95$1, If[LessEqual[y$46$re, -6.5e-188], t$95$0, If[LessEqual[y$46$re, 0.00041], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 1/3], $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0 \cdot {x.im}^{y.re}\\
\mathbf{if}\;y.re \leq -1900000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -6.5 \cdot 10^{-188}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 0.00041:\\
\;\;\;\;\sqrt[3]{{t\_0}^{3}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -1.9e9 or 4.0999999999999999e-4 < y.re Initial program 38.6%
cancel-sign-sub-inv38.6%
fma-define38.6%
hypot-define38.6%
distribute-lft-neg-in38.6%
distribute-rgt-neg-out38.6%
fma-define39.4%
hypot-define75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y.im around 0 69.4%
unpow269.4%
unpow269.4%
hypot-undefine69.4%
Simplified69.4%
Taylor expanded in x.re around 0 54.0%
if -1.9e9 < y.re < -6.4999999999999998e-188Initial program 49.9%
cancel-sign-sub-inv49.9%
fma-define49.9%
hypot-define49.9%
distribute-lft-neg-in49.9%
distribute-rgt-neg-out49.9%
fma-define49.9%
hypot-define85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in y.im around 0 41.6%
unpow241.6%
unpow241.6%
hypot-undefine44.1%
Simplified44.1%
Taylor expanded in x.re around 0 18.6%
Taylor expanded in y.re around 0 39.3%
if -6.4999999999999998e-188 < y.re < 4.0999999999999999e-4Initial program 44.0%
cancel-sign-sub-inv44.0%
fma-define44.0%
hypot-define44.0%
distribute-lft-neg-in44.0%
distribute-rgt-neg-out44.0%
fma-define44.0%
hypot-define83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in y.im around 0 23.9%
unpow223.9%
unpow223.9%
hypot-undefine22.5%
Simplified22.5%
Taylor expanded in x.re around 0 8.9%
Taylor expanded in y.re around 0 21.7%
*-commutative21.7%
add-cbrt-cube29.7%
pow329.7%
*-commutative29.7%
Applied egg-rr29.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (* t_0 (pow x.im y.re))))
(if (<= y.re -7500000000000.0)
t_1
(if (<= y.re -1.3e-191)
t_0
(if (<= y.re 0.28) (cbrt (pow t_0 3.0)) t_1)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -7500000000000.0) {
tmp = t_1;
} else if (y_46_re <= -1.3e-191) {
tmp = t_0;
} else if (y_46_re <= 0.28) {
tmp = cbrt(pow(t_0, 3.0));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -7500000000000.0) {
tmp = t_1;
} else if (y_46_re <= -1.3e-191) {
tmp = t_0;
} else if (y_46_re <= 0.28) {
tmp = Math.cbrt(Math.pow(t_0, 3.0));
} else {
tmp = t_1;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (x_46_im ^ y_46_re)) tmp = 0.0 if (y_46_re <= -7500000000000.0) tmp = t_1; elseif (y_46_re <= -1.3e-191) tmp = t_0; elseif (y_46_re <= 0.28) tmp = cbrt((t_0 ^ 3.0)); else tmp = t_1; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -7500000000000.0], t$95$1, If[LessEqual[y$46$re, -1.3e-191], t$95$0, If[LessEqual[y$46$re, 0.28], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 1/3], $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {x.im}^{y.re}\\
\mathbf{if}\;y.re \leq -7500000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -1.3 \cdot 10^{-191}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 0.28:\\
\;\;\;\;\sqrt[3]{{t\_0}^{3}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -7.5e12 or 0.28000000000000003 < y.re Initial program 38.1%
cancel-sign-sub-inv38.1%
fma-define38.1%
hypot-define38.1%
distribute-lft-neg-in38.1%
distribute-rgt-neg-out38.1%
fma-define38.9%
hypot-define75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y.im around 0 69.2%
unpow269.2%
unpow269.2%
hypot-undefine69.2%
Simplified69.2%
Taylor expanded in x.re around 0 53.6%
Taylor expanded in y.re around 0 52.0%
if -7.5e12 < y.re < -1.29999999999999993e-191Initial program 51.1%
cancel-sign-sub-inv51.1%
fma-define51.1%
hypot-define51.1%
distribute-lft-neg-in51.1%
distribute-rgt-neg-out51.1%
fma-define51.1%
hypot-define85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in y.im around 0 43.0%
unpow243.0%
unpow243.0%
hypot-undefine45.5%
Simplified45.5%
Taylor expanded in x.re around 0 20.6%
Taylor expanded in y.re around 0 38.3%
if -1.29999999999999993e-191 < y.re < 0.28000000000000003Initial program 44.0%
cancel-sign-sub-inv44.0%
fma-define44.0%
hypot-define44.0%
distribute-lft-neg-in44.0%
distribute-rgt-neg-out44.0%
fma-define44.0%
hypot-define83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in y.im around 0 23.9%
unpow223.9%
unpow223.9%
hypot-undefine22.5%
Simplified22.5%
Taylor expanded in x.re around 0 8.9%
Taylor expanded in y.re around 0 21.7%
*-commutative21.7%
add-cbrt-cube29.7%
pow329.7%
*-commutative29.7%
Applied egg-rr29.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= x.re -1.0)
(* t_0 (pow (- x.re) y.re))
(if (<= x.re 8.2e-51)
(* t_0 (pow (- x.im) y.re))
(* t_0 (pow x.re y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -1.0) {
tmp = t_0 * pow(-x_46_re, y_46_re);
} else if (x_46_re <= 8.2e-51) {
tmp = t_0 * pow(-x_46_im, y_46_re);
} else {
tmp = t_0 * pow(x_46_re, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = sin((y_46re * atan2(x_46im, x_46re)))
if (x_46re <= (-1.0d0)) then
tmp = t_0 * (-x_46re ** y_46re)
else if (x_46re <= 8.2d-51) then
tmp = t_0 * (-x_46im ** y_46re)
else
tmp = t_0 * (x_46re ** y_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -1.0) {
tmp = t_0 * Math.pow(-x_46_re, y_46_re);
} else if (x_46_re <= 8.2e-51) {
tmp = t_0 * Math.pow(-x_46_im, y_46_re);
} else {
tmp = t_0 * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if x_46_re <= -1.0: tmp = t_0 * math.pow(-x_46_re, y_46_re) elif x_46_re <= 8.2e-51: tmp = t_0 * math.pow(-x_46_im, y_46_re) else: tmp = t_0 * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (x_46_re <= -1.0) tmp = Float64(t_0 * (Float64(-x_46_re) ^ y_46_re)); elseif (x_46_re <= 8.2e-51) tmp = Float64(t_0 * (Float64(-x_46_im) ^ y_46_re)); else tmp = Float64(t_0 * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (x_46_re <= -1.0) tmp = t_0 * (-x_46_re ^ y_46_re); elseif (x_46_re <= 8.2e-51) tmp = t_0 * (-x_46_im ^ y_46_re); else tmp = t_0 * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1.0], N[(t$95$0 * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 8.2e-51], N[(t$95$0 * N[Power[(-x$46$im), y$46$re], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;x.re \leq -1:\\
\;\;\;\;t\_0 \cdot {\left(-x.re\right)}^{y.re}\\
\mathbf{elif}\;x.re \leq 8.2 \cdot 10^{-51}:\\
\;\;\;\;t\_0 \cdot {\left(-x.im\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if x.re < -1Initial program 36.2%
cancel-sign-sub-inv36.2%
fma-define36.2%
hypot-define36.2%
distribute-lft-neg-in36.2%
distribute-rgt-neg-out36.2%
fma-define37.9%
hypot-define81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in y.im around 0 51.3%
unpow251.3%
unpow251.3%
hypot-undefine56.4%
Simplified56.4%
Taylor expanded in x.re around -inf 56.4%
mul-1-neg56.4%
Simplified56.4%
if -1 < x.re < 8.19999999999999947e-51Initial program 51.4%
cancel-sign-sub-inv51.4%
fma-define51.4%
hypot-define51.4%
distribute-lft-neg-in51.4%
distribute-rgt-neg-out51.4%
fma-define51.4%
hypot-define82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in y.im around 0 48.8%
unpow248.8%
unpow248.8%
hypot-undefine48.2%
Simplified48.2%
Taylor expanded in x.im around -inf 42.4%
mul-1-neg42.4%
Simplified42.4%
if 8.19999999999999947e-51 < x.re Initial program 32.0%
cancel-sign-sub-inv32.0%
fma-define32.0%
hypot-define32.0%
distribute-lft-neg-in32.0%
distribute-rgt-neg-out32.0%
fma-define32.0%
hypot-define74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in y.im around 0 48.4%
unpow248.4%
unpow248.4%
hypot-undefine45.2%
Simplified45.2%
Taylor expanded in x.im around 0 43.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (sin t_0)))
(if (<= x.im -6e-308)
(* t_1 (pow (- x.im) y.re))
(if (<= x.im 2.95e-28) (* t_1 (pow x.re y.re)) (* t_0 (pow x.im y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double tmp;
if (x_46_im <= -6e-308) {
tmp = t_1 * pow(-x_46_im, y_46_re);
} else if (x_46_im <= 2.95e-28) {
tmp = t_1 * pow(x_46_re, y_46_re);
} else {
tmp = t_0 * pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
t_1 = sin(t_0)
if (x_46im <= (-6d-308)) then
tmp = t_1 * (-x_46im ** y_46re)
else if (x_46im <= 2.95d-28) then
tmp = t_1 * (x_46re ** y_46re)
else
tmp = t_0 * (x_46im ** y_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double tmp;
if (x_46_im <= -6e-308) {
tmp = t_1 * Math.pow(-x_46_im, y_46_re);
} else if (x_46_im <= 2.95e-28) {
tmp = t_1 * Math.pow(x_46_re, y_46_re);
} else {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) tmp = 0 if x_46_im <= -6e-308: tmp = t_1 * math.pow(-x_46_im, y_46_re) elif x_46_im <= 2.95e-28: tmp = t_1 * math.pow(x_46_re, y_46_re) else: tmp = t_0 * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) tmp = 0.0 if (x_46_im <= -6e-308) tmp = Float64(t_1 * (Float64(-x_46_im) ^ y_46_re)); elseif (x_46_im <= 2.95e-28) tmp = Float64(t_1 * (x_46_re ^ y_46_re)); else tmp = Float64(t_0 * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0); tmp = 0.0; if (x_46_im <= -6e-308) tmp = t_1 * (-x_46_im ^ y_46_re); elseif (x_46_im <= 2.95e-28) tmp = t_1 * (x_46_re ^ y_46_re); else tmp = t_0 * (x_46_im ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[x$46$im, -6e-308], N[(t$95$1 * N[Power[(-x$46$im), y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 2.95e-28], N[(t$95$1 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
\mathbf{if}\;x.im \leq -6 \cdot 10^{-308}:\\
\;\;\;\;t\_1 \cdot {\left(-x.im\right)}^{y.re}\\
\mathbf{elif}\;x.im \leq 2.95 \cdot 10^{-28}:\\
\;\;\;\;t\_1 \cdot {x.re}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -6.00000000000000044e-308Initial program 48.7%
cancel-sign-sub-inv48.7%
fma-define48.7%
hypot-define48.7%
distribute-lft-neg-in48.7%
distribute-rgt-neg-out48.7%
fma-define48.7%
hypot-define82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in y.im around 0 48.7%
unpow248.7%
unpow248.7%
hypot-undefine50.8%
Simplified50.8%
Taylor expanded in x.im around -inf 45.4%
mul-1-neg45.4%
Simplified45.4%
if -6.00000000000000044e-308 < x.im < 2.9500000000000001e-28Initial program 56.3%
cancel-sign-sub-inv56.3%
fma-define56.3%
hypot-define56.3%
distribute-lft-neg-in56.3%
distribute-rgt-neg-out56.3%
fma-define58.0%
hypot-define74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in y.im around 0 53.9%
unpow253.9%
unpow253.9%
hypot-undefine54.1%
Simplified54.1%
Taylor expanded in x.im around 0 48.2%
if 2.9500000000000001e-28 < x.im Initial program 25.3%
cancel-sign-sub-inv25.3%
fma-define25.3%
hypot-define25.3%
distribute-lft-neg-in25.3%
distribute-rgt-neg-out25.3%
fma-define25.3%
hypot-define80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in y.im around 0 46.9%
unpow246.9%
unpow246.9%
hypot-undefine43.9%
Simplified43.9%
Taylor expanded in x.re around 0 43.9%
Taylor expanded in y.re around 0 43.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (or (<= y.re -175000000000.0) (not (<= y.re 1.2e+32)))
(* t_0 (pow x.im y.re))
(log1p (expm1 t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -175000000000.0) || !(y_46_re <= 1.2e+32)) {
tmp = t_0 * pow(x_46_im, y_46_re);
} else {
tmp = log1p(expm1(t_0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -175000000000.0) || !(y_46_re <= 1.2e+32)) {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
} else {
tmp = Math.log1p(Math.expm1(t_0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if (y_46_re <= -175000000000.0) or not (y_46_re <= 1.2e+32): tmp = t_0 * math.pow(x_46_im, y_46_re) else: tmp = math.log1p(math.expm1(t_0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_re <= -175000000000.0) || !(y_46_re <= 1.2e+32)) tmp = Float64(t_0 * (x_46_im ^ y_46_re)); else tmp = log1p(expm1(t_0)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y$46$re, -175000000000.0], N[Not[LessEqual[y$46$re, 1.2e+32]], $MachinePrecision]], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[Log[1 + N[(Exp[t$95$0] - 1), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -175000000000 \lor \neg \left(y.re \leq 1.2 \cdot 10^{+32}\right):\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\end{array}
\end{array}
if y.re < -1.75e11 or 1.19999999999999996e32 < y.re Initial program 39.7%
cancel-sign-sub-inv39.7%
fma-define39.7%
hypot-define39.7%
distribute-lft-neg-in39.7%
distribute-rgt-neg-out39.7%
fma-define39.7%
hypot-define75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in y.im around 0 69.6%
unpow269.6%
unpow269.6%
hypot-undefine69.6%
Simplified69.6%
Taylor expanded in x.re around 0 54.9%
Taylor expanded in y.re around 0 53.3%
if -1.75e11 < y.re < 1.19999999999999996e32Initial program 44.5%
cancel-sign-sub-inv44.5%
fma-define44.5%
hypot-define44.5%
distribute-lft-neg-in44.5%
distribute-rgt-neg-out44.5%
fma-define45.2%
hypot-define83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in y.im around 0 31.0%
unpow231.0%
unpow231.0%
hypot-undefine30.9%
Simplified30.9%
Taylor expanded in x.re around 0 12.9%
Taylor expanded in y.re around 0 26.0%
log1p-expm1-u27.4%
Applied egg-rr27.4%
Final simplification39.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.re -5e+157)
(* (sin t_0) (pow (- x.re) y.re))
(* t_0 (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= -5e+157) {
tmp = sin(t_0) * pow(-x_46_re, y_46_re);
} else {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= -5e+157) {
tmp = Math.sin(t_0) * Math.pow(-x_46_re, y_46_re);
} else {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_re <= -5e+157: tmp = math.sin(t_0) * math.pow(-x_46_re, y_46_re) else: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_re <= -5e+157) tmp = Float64(sin(t_0) * (Float64(-x_46_re) ^ y_46_re)); else tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_re <= -5e+157) tmp = sin(t_0) * (-x_46_re ^ y_46_re); else tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$re, -5e+157], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.re \leq -5 \cdot 10^{+157}:\\
\;\;\;\;\sin t\_0 \cdot {\left(-x.re\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if x.re < -4.99999999999999976e157Initial program 0.0%
cancel-sign-sub-inv0.0%
fma-define0.0%
hypot-define0.0%
distribute-lft-neg-in0.0%
distribute-rgt-neg-out0.0%
fma-define0.0%
hypot-define71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in y.im around 0 41.2%
unpow241.2%
unpow241.2%
hypot-undefine49.1%
Simplified49.1%
Taylor expanded in x.re around -inf 49.1%
mul-1-neg49.1%
Simplified49.1%
if -4.99999999999999976e157 < x.re Initial program 46.8%
cancel-sign-sub-inv46.8%
fma-define46.8%
hypot-define46.8%
distribute-lft-neg-in46.8%
distribute-rgt-neg-out46.8%
fma-define47.2%
hypot-define80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y.im around 0 50.1%
unpow250.1%
unpow250.1%
hypot-undefine49.1%
Simplified49.1%
Taylor expanded in y.re around 0 49.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (or (<= y.re -10500000000000.0) (not (<= y.re 0.23)))
(* t_0 (pow x.im y.re))
t_0)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -10500000000000.0) || !(y_46_re <= 0.23)) {
tmp = t_0 * pow(x_46_im, y_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
if ((y_46re <= (-10500000000000.0d0)) .or. (.not. (y_46re <= 0.23d0))) then
tmp = t_0 * (x_46im ** y_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -10500000000000.0) || !(y_46_re <= 0.23)) {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if (y_46_re <= -10500000000000.0) or not (y_46_re <= 0.23): tmp = t_0 * math.pow(x_46_im, y_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_re <= -10500000000000.0) || !(y_46_re <= 0.23)) tmp = Float64(t_0 * (x_46_im ^ y_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if ((y_46_re <= -10500000000000.0) || ~((y_46_re <= 0.23))) tmp = t_0 * (x_46_im ^ y_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y$46$re, -10500000000000.0], N[Not[LessEqual[y$46$re, 0.23]], $MachinePrecision]], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -10500000000000 \lor \neg \left(y.re \leq 0.23\right):\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -1.05e13 or 0.23000000000000001 < y.re Initial program 38.1%
cancel-sign-sub-inv38.1%
fma-define38.1%
hypot-define38.1%
distribute-lft-neg-in38.1%
distribute-rgt-neg-out38.1%
fma-define38.9%
hypot-define75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y.im around 0 69.2%
unpow269.2%
unpow269.2%
hypot-undefine69.2%
Simplified69.2%
Taylor expanded in x.re around 0 53.6%
Taylor expanded in y.re around 0 52.0%
if -1.05e13 < y.re < 0.23000000000000001Initial program 46.2%
cancel-sign-sub-inv46.2%
fma-define46.2%
hypot-define46.2%
distribute-lft-neg-in46.2%
distribute-rgt-neg-out46.2%
fma-define46.2%
hypot-define84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in y.im around 0 29.9%
unpow229.9%
unpow229.9%
hypot-undefine29.7%
Simplified29.7%
Taylor expanded in x.re around 0 12.6%
Taylor expanded in y.re around 0 26.9%
Final simplification39.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 42.2%
cancel-sign-sub-inv42.2%
fma-define42.2%
hypot-define42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-out42.2%
fma-define42.6%
hypot-define79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y.im around 0 49.2%
unpow249.2%
unpow249.2%
hypot-undefine49.1%
Simplified49.1%
Taylor expanded in x.re around 0 32.8%
Taylor expanded in y.re around 0 15.2%
herbie shell --seed 2024116
(FPCore (x.re x.im y.re y.im)
:name "powComplex, imaginary part"
:precision binary64
(* (exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))) (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))))