
(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 24 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
(exp
(fma (log (hypot x.re x.im)) y.re (* y.im (- (atan2 x.im x.re))))))
(t_2 (log (hypot x.im x.re))))
(if (<= y.re -5e+39)
(* t_1 (sin t_0))
(if (<= y.re 4e+62)
(* t_1 (sin (* y.im (+ t_2 (* y.re (/ (atan2 x.im x.re) y.im))))))
(if (<= y.re 4.5e+103)
(*
(pow (hypot x.im x.re) y.re)
(sin (fabs (pow (cbrt (fma y.im t_2 t_0)) 3.0))))
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re))))
(sin (+ t_0 (fabs (* y.im 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 = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, (y_46_im * -atan2(x_46_im, x_46_re))));
double t_2 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -5e+39) {
tmp = t_1 * sin(t_0);
} else if (y_46_re <= 4e+62) {
tmp = t_1 * sin((y_46_im * (t_2 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))));
} else if (y_46_re <= 4.5e+103) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin(fabs(pow(cbrt(fma(y_46_im, t_2, t_0)), 3.0)));
} else {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re)))) * sin((t_0 + fabs((y_46_im * 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 = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) t_2 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -5e+39) tmp = Float64(t_1 * sin(t_0)); elseif (y_46_re <= 4e+62) tmp = Float64(t_1 * sin(Float64(y_46_im * Float64(t_2 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im)))))); elseif (y_46_re <= 4.5e+103) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(abs((cbrt(fma(y_46_im, t_2, t_0)) ^ 3.0)))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(y_46_im * atan(x_46_im, x_46_re)))) * sin(Float64(t_0 + abs(Float64(y_46_im * 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[Exp[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -5e+39], N[(t$95$1 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4e+62], N[(t$95$1 * N[Sin[N[(y$46$im * N[(t$95$2 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.5e+103], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[Abs[N[Power[N[Power[N[(y$46$im * t$95$2 + t$95$0), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 + N[Abs[N[(y$46$im * t$95$2), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := e^{\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)}\\
t_2 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -5 \cdot 10^{+39}:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\mathbf{elif}\;y.re \leq 4 \cdot 10^{+62}:\\
\;\;\;\;t\_1 \cdot \sin \left(y.im \cdot \left(t\_2 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)\\
\mathbf{elif}\;y.re \leq 4.5 \cdot 10^{+103}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(\left|{\left(\sqrt[3]{\mathsf{fma}\left(y.im, t\_2, t\_0\right)}\right)}^{3}\right|\right)\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}} \cdot \sin \left(t\_0 + \left|y.im \cdot t\_2\right|\right)\\
\end{array}
\end{array}
if y.re < -5.00000000000000015e39Initial program 41.1%
cancel-sign-sub-inv41.1%
fma-define41.1%
hypot-define41.1%
distribute-lft-neg-in41.1%
distribute-rgt-neg-out41.1%
fma-define41.1%
hypot-define87.5%
*-commutative87.5%
Simplified87.5%
add-cube-cbrt82.1%
pow383.9%
hypot-define35.7%
*-commutative35.7%
fma-define35.7%
+-commutative35.7%
*-commutative35.7%
fma-define35.7%
*-commutative35.7%
hypot-define83.9%
Applied egg-rr83.9%
Taylor expanded in y.im around 0 89.3%
if -5.00000000000000015e39 < y.re < 4.00000000000000014e62Initial program 43.2%
cancel-sign-sub-inv43.2%
fma-define43.2%
hypot-define43.2%
distribute-lft-neg-in43.2%
distribute-rgt-neg-out43.2%
fma-define43.2%
hypot-define83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in y.im around inf 43.2%
unpow243.2%
unpow243.2%
hypot-undefine84.3%
associate-/l*84.9%
Simplified84.9%
if 4.00000000000000014e62 < y.re < 4.50000000000000001e103Initial 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-define25.0%
*-commutative25.0%
Simplified25.0%
Taylor expanded in y.im around 0 25.0%
unpow225.0%
unpow225.0%
hypot-undefine25.0%
Simplified25.0%
add-sqr-sqrt25.0%
sqrt-unprod12.5%
pow212.5%
hypot-define0.0%
*-commutative0.0%
fma-define0.0%
+-commutative0.0%
*-commutative0.0%
fma-define0.0%
*-commutative0.0%
hypot-define12.5%
Applied egg-rr12.5%
unpow212.5%
rem-sqrt-square25.0%
fma-define25.0%
+-commutative25.0%
fma-define25.0%
hypot-undefine0.0%
unpow20.0%
unpow20.0%
+-commutative0.0%
unpow20.0%
unpow20.0%
hypot-undefine25.0%
Simplified25.0%
add-cube-cbrt100.0%
pow3100.0%
Applied egg-rr100.0%
if 4.50000000000000001e103 < y.re Initial program 47.2%
add-sqr-sqrt25.0%
sqrt-unprod33.3%
pow233.3%
*-commutative33.3%
hypot-define58.3%
Applied egg-rr58.3%
unpow258.3%
rem-sqrt-square80.6%
*-commutative80.6%
hypot-undefine47.2%
unpow247.2%
unpow247.2%
+-commutative47.2%
unpow247.2%
unpow247.2%
hypot-undefine80.6%
Simplified80.6%
Final simplification85.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im)))
(t_1 (exp (fma t_0 y.re (* y.im (- (atan2 x.im x.re))))))
(t_2 (* y.re (atan2 x.im x.re))))
(if (<= y.im 4.9e+86)
(* t_1 (sin (pow (pow (cbrt (cbrt (fma t_0 y.im t_2))) 3.0) 3.0)))
(* t_1 (sin (fabs (fma y.im (log (hypot x.im x.re)) 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(fma(t_0, y_46_re, (y_46_im * -atan2(x_46_im, x_46_re))));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= 4.9e+86) {
tmp = t_1 * sin(pow(pow(cbrt(cbrt(fma(t_0, y_46_im, t_2))), 3.0), 3.0));
} else {
tmp = t_1 * sin(fabs(fma(y_46_im, log(hypot(x_46_im, x_46_re)), 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(fma(t_0, y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= 4.9e+86) tmp = Float64(t_1 * sin(((cbrt(cbrt(fma(t_0, y_46_im, t_2))) ^ 3.0) ^ 3.0))); else tmp = Float64(t_1 * sin(abs(fma(y_46_im, log(hypot(x_46_im, x_46_re)), 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[(t$95$0 * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $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, 4.9e+86], N[(t$95$1 * N[Sin[N[Power[N[Power[N[Power[N[Power[N[(t$95$0 * y$46$im + t$95$2), $MachinePrecision], 1/3], $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Sin[N[Abs[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] + t$95$2), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_1 := e^{\mathsf{fma}\left(t\_0, y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)}\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq 4.9 \cdot 10^{+86}:\\
\;\;\;\;t\_1 \cdot \sin \left({\left({\left(\sqrt[3]{\sqrt[3]{\mathsf{fma}\left(t\_0, y.im, t\_2\right)}}\right)}^{3}\right)}^{3}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin \left(\left|\mathsf{fma}\left(y.im, \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right), t\_2\right)\right|\right)\\
\end{array}
\end{array}
if y.im < 4.8999999999999999e86Initial 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-define84.5%
*-commutative84.5%
Simplified84.5%
add-cube-cbrt84.5%
pow383.9%
hypot-define40.5%
*-commutative40.5%
fma-define40.5%
+-commutative40.5%
*-commutative40.5%
fma-define40.5%
*-commutative40.5%
hypot-define83.9%
Applied egg-rr83.9%
add-cube-cbrt84.6%
pow385.6%
fma-undefine85.6%
*-commutative85.6%
*-commutative85.6%
rem-cbrt-cube85.6%
+-commutative85.6%
fma-define85.6%
rem-cbrt-cube85.6%
*-commutative85.6%
Applied egg-rr85.6%
if 4.8999999999999999e86 < y.im Initial program 40.0%
cancel-sign-sub-inv40.0%
fma-define40.0%
hypot-define40.0%
distribute-lft-neg-in40.0%
distribute-rgt-neg-out40.0%
fma-define40.0%
hypot-define71.5%
*-commutative71.5%
Simplified71.5%
add-sqr-sqrt49.3%
sqrt-unprod8.9%
pow28.9%
hypot-define6.7%
*-commutative6.7%
fma-define6.7%
+-commutative6.7%
*-commutative6.7%
fma-define6.7%
*-commutative6.7%
hypot-define8.9%
Applied egg-rr8.9%
unpow28.9%
rem-sqrt-square80.4%
fma-define80.4%
+-commutative80.4%
fma-define80.4%
hypot-undefine44.4%
unpow244.4%
unpow244.4%
+-commutative44.4%
unpow244.4%
unpow244.4%
hypot-undefine80.4%
Simplified80.4%
Final simplification84.7%
(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 (fma t_1 y.re (* y.im (- (atan2 x.im x.re)))))))
(if (<= y.im 1e+129)
(* t_2 (sin (fma t_1 y.im t_0)))
(* t_2 (sin (fabs (fma y.im (log (hypot x.im x.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 t_1 = log(hypot(x_46_re, x_46_im));
double t_2 = exp(fma(t_1, y_46_re, (y_46_im * -atan2(x_46_im, x_46_re))));
double tmp;
if (y_46_im <= 1e+129) {
tmp = t_2 * sin(fma(t_1, y_46_im, t_0));
} else {
tmp = t_2 * sin(fabs(fma(y_46_im, log(hypot(x_46_im, x_46_re)), 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(fma(t_1, y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) tmp = 0.0 if (y_46_im <= 1e+129) tmp = Float64(t_2 * sin(fma(t_1, y_46_im, t_0))); else tmp = Float64(t_2 * sin(abs(fma(y_46_im, log(hypot(x_46_im, x_46_re)), 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[(t$95$1 * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, 1e+129], N[(t$95$2 * N[Sin[N[(t$95$1 * y$46$im + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Sin[N[Abs[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] + t$95$0), $MachinePrecision]], $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(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_2 := e^{\mathsf{fma}\left(t\_1, y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)}\\
\mathbf{if}\;y.im \leq 10^{+129}:\\
\;\;\;\;t\_2 \cdot \sin \left(\mathsf{fma}\left(t\_1, y.im, t\_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \sin \left(\left|\mathsf{fma}\left(y.im, \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right), t\_0\right)\right|\right)\\
\end{array}
\end{array}
if y.im < 1e129Initial program 42.1%
cancel-sign-sub-inv42.1%
fma-define42.1%
hypot-define42.1%
distribute-lft-neg-in42.1%
distribute-rgt-neg-out42.1%
fma-define42.1%
hypot-define84.0%
*-commutative84.0%
Simplified84.0%
if 1e129 < y.im Initial program 41.0%
cancel-sign-sub-inv41.0%
fma-define41.0%
hypot-define41.0%
distribute-lft-neg-in41.0%
distribute-rgt-neg-out41.0%
fma-define41.0%
hypot-define72.2%
*-commutative72.2%
Simplified72.2%
add-sqr-sqrt54.3%
sqrt-unprod7.7%
pow27.7%
hypot-define7.7%
*-commutative7.7%
fma-define7.7%
+-commutative7.7%
*-commutative7.7%
fma-define7.7%
*-commutative7.7%
hypot-define7.7%
Applied egg-rr7.7%
unpow27.7%
rem-sqrt-square85.1%
fma-define85.1%
+-commutative85.1%
fma-define85.1%
hypot-undefine51.3%
unpow251.3%
unpow251.3%
+-commutative51.3%
unpow251.3%
unpow251.3%
hypot-undefine85.1%
Simplified85.1%
Final simplification84.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im))))
(*
(exp (fma t_0 y.re (* y.im (- (atan2 x.im x.re)))))
(sin (fma t_0 y.im (* 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 = log(hypot(x_46_re, x_46_im));
return exp(fma(t_0, y_46_re, (y_46_im * -atan2(x_46_im, x_46_re)))) * sin(fma(t_0, y_46_im, (y_46_re * atan2(x_46_im, x_46_re))));
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_re, x_46_im)) return Float64(exp(fma(t_0, y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) * sin(fma(t_0, y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re))))) 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]}, N[(N[Exp[N[(t$95$0 * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
e^{\mathsf{fma}\left(t\_0, y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)} \cdot \sin \left(\mathsf{fma}\left(t\_0, y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)
\end{array}
\end{array}
Initial program 41.9%
cancel-sign-sub-inv41.9%
fma-define41.9%
hypot-define41.9%
distribute-lft-neg-in41.9%
distribute-rgt-neg-out41.9%
fma-define41.9%
hypot-define82.2%
*-commutative82.2%
Simplified82.2%
Final simplification82.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1
(exp
(fma (log (hypot x.re x.im)) y.re (* y.im (- (atan2 x.im x.re))))))
(t_2 (log (hypot x.im x.re))))
(if (<= y.re -2.3e+39)
(* t_1 (sin t_0))
(if (<= y.re 5.5e+69)
(* t_1 (sin (* y.im (+ t_2 (* y.re (/ (atan2 x.im x.re) y.im))))))
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re))))
(sin (+ t_0 (fabs (* y.im 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 = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, (y_46_im * -atan2(x_46_im, x_46_re))));
double t_2 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -2.3e+39) {
tmp = t_1 * sin(t_0);
} else if (y_46_re <= 5.5e+69) {
tmp = t_1 * sin((y_46_im * (t_2 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))));
} else {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re)))) * sin((t_0 + fabs((y_46_im * 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 = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) t_2 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -2.3e+39) tmp = Float64(t_1 * sin(t_0)); elseif (y_46_re <= 5.5e+69) tmp = Float64(t_1 * sin(Float64(y_46_im * Float64(t_2 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im)))))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(y_46_im * atan(x_46_im, x_46_re)))) * sin(Float64(t_0 + abs(Float64(y_46_im * 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[Exp[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -2.3e+39], N[(t$95$1 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.5e+69], N[(t$95$1 * N[Sin[N[(y$46$im * N[(t$95$2 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 + N[Abs[N[(y$46$im * t$95$2), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := e^{\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)}\\
t_2 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -2.3 \cdot 10^{+39}:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\mathbf{elif}\;y.re \leq 5.5 \cdot 10^{+69}:\\
\;\;\;\;t\_1 \cdot \sin \left(y.im \cdot \left(t\_2 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}} \cdot \sin \left(t\_0 + \left|y.im \cdot t\_2\right|\right)\\
\end{array}
\end{array}
if y.re < -2.30000000000000012e39Initial program 41.1%
cancel-sign-sub-inv41.1%
fma-define41.1%
hypot-define41.1%
distribute-lft-neg-in41.1%
distribute-rgt-neg-out41.1%
fma-define41.1%
hypot-define87.5%
*-commutative87.5%
Simplified87.5%
add-cube-cbrt82.1%
pow383.9%
hypot-define35.7%
*-commutative35.7%
fma-define35.7%
+-commutative35.7%
*-commutative35.7%
fma-define35.7%
*-commutative35.7%
hypot-define83.9%
Applied egg-rr83.9%
Taylor expanded in y.im around 0 89.3%
if -2.30000000000000012e39 < y.re < 5.50000000000000002e69Initial 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-define83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in y.im around inf 42.6%
unpow242.6%
unpow242.6%
hypot-undefine83.9%
associate-/l*84.5%
Simplified84.5%
if 5.50000000000000002e69 < y.re Initial program 40.5%
add-sqr-sqrt21.4%
sqrt-unprod28.6%
pow228.6%
*-commutative28.6%
hypot-define52.4%
Applied egg-rr52.4%
unpow252.4%
rem-sqrt-square73.8%
*-commutative73.8%
hypot-undefine40.5%
unpow240.5%
unpow240.5%
+-commutative40.5%
unpow240.5%
unpow240.5%
hypot-undefine73.8%
Simplified73.8%
Final simplification83.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(exp
(fma (log (hypot x.re x.im)) y.re (* y.im (- (atan2 x.im x.re))))))
(t_1 (log (hypot x.im x.re))))
(if (<= y.re -3e+39)
(* t_0 (sin (* y.re (atan2 x.im x.re))))
(if (<= y.re 6.5)
(* t_0 (sin (* y.im (+ t_1 (* y.re (/ (atan2 x.im x.re) y.im))))))
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re))))
(sin (* y.im t_1)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, (y_46_im * -atan2(x_46_im, x_46_re))));
double t_1 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -3e+39) {
tmp = t_0 * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 6.5) {
tmp = t_0 * sin((y_46_im * (t_1 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))));
} else {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re)))) * sin((y_46_im * t_1));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) t_1 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -3e+39) tmp = Float64(t_0 * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (y_46_re <= 6.5) tmp = Float64(t_0 * sin(Float64(y_46_im * Float64(t_1 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im)))))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(y_46_im * atan(x_46_im, x_46_re)))) * sin(Float64(y_46_im * t_1))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -3e+39], N[(t$95$0 * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6.5], N[(t$95$0 * N[Sin[N[(y$46$im * N[(t$95$1 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)}\\
t_1 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -3 \cdot 10^{+39}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.re \leq 6.5:\\
\;\;\;\;t\_0 \cdot \sin \left(y.im \cdot \left(t\_1 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}} \cdot \sin \left(y.im \cdot t\_1\right)\\
\end{array}
\end{array}
if y.re < -3e39Initial program 41.1%
cancel-sign-sub-inv41.1%
fma-define41.1%
hypot-define41.1%
distribute-lft-neg-in41.1%
distribute-rgt-neg-out41.1%
fma-define41.1%
hypot-define87.5%
*-commutative87.5%
Simplified87.5%
add-cube-cbrt82.1%
pow383.9%
hypot-define35.7%
*-commutative35.7%
fma-define35.7%
+-commutative35.7%
*-commutative35.7%
fma-define35.7%
*-commutative35.7%
hypot-define83.9%
Applied egg-rr83.9%
Taylor expanded in y.im around 0 89.3%
if -3e39 < y.re < 6.5Initial program 43.2%
cancel-sign-sub-inv43.2%
fma-define43.2%
hypot-define43.2%
distribute-lft-neg-in43.2%
distribute-rgt-neg-out43.2%
fma-define43.2%
hypot-define85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in y.im around inf 43.2%
unpow243.2%
unpow243.2%
hypot-undefine85.6%
associate-/l*85.5%
Simplified85.5%
if 6.5 < y.re Initial program 40.0%
Taylor expanded in y.re around 0 40.0%
*-commutative40.0%
unpow240.0%
unpow240.0%
hypot-undefine75.4%
Simplified75.4%
Final simplification83.8%
(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))))
(if (<= y.re -4.1e-14)
(* (exp (fma t_1 y.re (* y.im (- (atan2 x.im x.re))))) (sin t_0))
(if (<= y.re 0.029)
(* (sin (fma t_1 y.im t_0)) (/ 1.0 (pow (exp y.im) (atan2 x.im x.re))))
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re))))
(sin (* y.im (log (hypot 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 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = log(hypot(x_46_re, x_46_im));
double tmp;
if (y_46_re <= -4.1e-14) {
tmp = exp(fma(t_1, y_46_re, (y_46_im * -atan2(x_46_im, x_46_re)))) * sin(t_0);
} else if (y_46_re <= 0.029) {
tmp = sin(fma(t_1, y_46_im, t_0)) * (1.0 / pow(exp(y_46_im), atan2(x_46_im, x_46_re)));
} else {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re)))) * sin((y_46_im * log(hypot(x_46_im, x_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 = log(hypot(x_46_re, x_46_im)) tmp = 0.0 if (y_46_re <= -4.1e-14) tmp = Float64(exp(fma(t_1, y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) * sin(t_0)); elseif (y_46_re <= 0.029) tmp = Float64(sin(fma(t_1, y_46_im, t_0)) * Float64(1.0 / (exp(y_46_im) ^ atan(x_46_im, x_46_re)))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(y_46_im * atan(x_46_im, x_46_re)))) * sin(Float64(y_46_im * log(hypot(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[(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]}, If[LessEqual[y$46$re, -4.1e-14], N[(N[Exp[N[(t$95$1 * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 0.029], N[(N[Sin[N[(t$95$1 * y$46$im + t$95$0), $MachinePrecision]], $MachinePrecision] * N[(1.0 / N[Power[N[Exp[y$46$im], $MachinePrecision], N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $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(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{if}\;y.re \leq -4.1 \cdot 10^{-14}:\\
\;\;\;\;e^{\mathsf{fma}\left(t\_1, y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)} \cdot \sin t\_0\\
\mathbf{elif}\;y.re \leq 0.029:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(t\_1, y.im, t\_0\right)\right) \cdot \frac{1}{{\left(e^{y.im}\right)}^{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\end{array}
\end{array}
if y.re < -4.1000000000000002e-14Initial program 41.2%
cancel-sign-sub-inv41.2%
fma-define41.2%
hypot-define41.2%
distribute-lft-neg-in41.2%
distribute-rgt-neg-out41.2%
fma-define41.2%
hypot-define88.2%
*-commutative88.2%
Simplified88.2%
add-cube-cbrt83.8%
pow383.8%
hypot-define36.8%
*-commutative36.8%
fma-define36.8%
+-commutative36.8%
*-commutative36.8%
fma-define36.8%
*-commutative36.8%
hypot-define83.8%
Applied egg-rr83.8%
Taylor expanded in y.im around 0 89.7%
if -4.1000000000000002e-14 < y.re < 0.0290000000000000015Initial program 43.4%
exp-diff43.4%
exp-to-pow43.4%
hypot-define43.4%
*-commutative43.4%
exp-prod43.2%
fma-define43.2%
hypot-define84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in y.re around 0 84.7%
if 0.0290000000000000015 < y.re Initial program 40.0%
Taylor expanded in y.re around 0 40.0%
*-commutative40.0%
unpow240.0%
unpow240.0%
hypot-undefine75.4%
Simplified75.4%
Final simplification83.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.im -1.4e+29) (not (<= y.im 480.0)))
(*
(exp (fma (log (hypot x.re x.im)) y.re (* y.im (- (atan2 x.im x.re)))))
(sin (* y.re (atan2 x.im x.re))))
(*
(/ (pow (hypot x.re x.im) y.re) (+ 1.0 (* y.im (atan2 x.im x.re))))
(sin
(*
y.re
(+ (atan2 x.im x.re) (* y.im (/ (log (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_im <= -1.4e+29) || !(y_46_im <= 480.0)) {
tmp = exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, (y_46_im * -atan2(x_46_im, x_46_re)))) * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = (pow(hypot(x_46_re, x_46_im), y_46_re) / (1.0 + (y_46_im * atan2(x_46_im, x_46_re)))) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(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_im <= -1.4e+29) || !(y_46_im <= 480.0)) tmp = Float64(exp(fma(log(hypot(x_46_re, x_46_im)), y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = Float64(Float64((hypot(x_46_re, x_46_im) ^ y_46_re) / Float64(1.0 + Float64(y_46_im * atan(x_46_im, x_46_re)))) * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(log(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[Or[LessEqual[y$46$im, -1.4e+29], N[Not[LessEqual[y$46$im, 480.0]], $MachinePrecision]], N[(N[Exp[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] / N[(1.0 + N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -1.4 \cdot 10^{+29} \lor \neg \left(y.im \leq 480\right):\\
\;\;\;\;e^{\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}{1 + y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}} \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)}{y.re}\right)\right)\\
\end{array}
\end{array}
if y.im < -1.4e29 or 480 < y.im Initial program 39.2%
cancel-sign-sub-inv39.2%
fma-define39.2%
hypot-define39.2%
distribute-lft-neg-in39.2%
distribute-rgt-neg-out39.2%
fma-define39.2%
hypot-define72.3%
*-commutative72.3%
Simplified72.3%
add-cube-cbrt68.0%
pow368.0%
hypot-define33.8%
*-commutative33.8%
fma-define33.8%
+-commutative33.8%
*-commutative33.8%
fma-define33.8%
*-commutative33.8%
hypot-define68.0%
Applied egg-rr68.0%
Taylor expanded in y.im around 0 72.6%
if -1.4e29 < y.im < 480Initial program 44.2%
exp-diff44.2%
exp-to-pow44.2%
hypot-define44.2%
*-commutative44.2%
exp-prod43.5%
fma-define43.5%
hypot-define89.1%
*-commutative89.1%
Simplified89.1%
Taylor expanded in y.re around inf 43.5%
+-commutative43.5%
associate-/l*43.4%
unpow243.4%
unpow243.4%
hypot-undefine88.3%
Simplified88.3%
Taylor expanded in y.im around 0 89.7%
Final simplification81.9%
(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))))
(if (or (<= y.im -37000000.0) (not (<= y.im 235.0)))
(* (exp (fma t_1 y.re (* y.im (- (atan2 x.im x.re))))) (sin t_0))
(* (sin (fma t_1 y.im 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 t_1 = log(hypot(x_46_re, x_46_im));
double tmp;
if ((y_46_im <= -37000000.0) || !(y_46_im <= 235.0)) {
tmp = exp(fma(t_1, y_46_re, (y_46_im * -atan2(x_46_im, x_46_re)))) * sin(t_0);
} else {
tmp = sin(fma(t_1, y_46_im, t_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) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = log(hypot(x_46_re, x_46_im)) tmp = 0.0 if ((y_46_im <= -37000000.0) || !(y_46_im <= 235.0)) tmp = Float64(exp(fma(t_1, y_46_re, Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))) * sin(t_0)); else tmp = Float64(sin(fma(t_1, y_46_im, t_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[(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]}, If[Or[LessEqual[y$46$im, -37000000.0], N[Not[LessEqual[y$46$im, 235.0]], $MachinePrecision]], N[(N[Exp[N[(t$95$1 * y$46$re + N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(t$95$1 * y$46$im + t$95$0), $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 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{if}\;y.im \leq -37000000 \lor \neg \left(y.im \leq 235\right):\\
\;\;\;\;e^{\mathsf{fma}\left(t\_1, y.re, y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)\right)} \cdot \sin t\_0\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(t\_1, y.im, t\_0\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < -3.7e7 or 235 < y.im Initial program 37.5%
cancel-sign-sub-inv37.5%
fma-define37.5%
hypot-define37.5%
distribute-lft-neg-in37.5%
distribute-rgt-neg-out37.5%
fma-define37.5%
hypot-define70.9%
*-commutative70.9%
Simplified70.9%
add-cube-cbrt68.5%
pow368.5%
hypot-define32.4%
*-commutative32.4%
fma-define32.4%
+-commutative32.4%
*-commutative32.4%
fma-define32.4%
*-commutative32.4%
hypot-define68.5%
Applied egg-rr68.5%
Taylor expanded in y.im around 0 71.2%
if -3.7e7 < y.im < 235Initial program 45.9%
cancel-sign-sub-inv45.9%
fma-define45.9%
hypot-define45.9%
distribute-lft-neg-in45.9%
distribute-rgt-neg-out45.9%
fma-define45.9%
hypot-define92.4%
*-commutative92.4%
Simplified92.4%
Taylor expanded in y.im around 0 69.0%
unpow269.0%
unpow269.0%
hypot-undefine91.4%
Simplified91.4%
Final simplification81.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.im -1650000000.0)
(*
(sin t_0)
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re)))))
(if (<= y.im 1.55e+35)
(*
(sin (fma (log (hypot x.re x.im)) y.im t_0))
(pow (hypot x.im x.re) y.re))
(*
(sin (* y.im (log (hypot x.im x.re))))
(exp (* y.im (- (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 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -1650000000.0) {
tmp = sin(t_0) * exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re))));
} else if (y_46_im <= 1.55e+35) {
tmp = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((y_46_im * -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 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -1650000000.0) tmp = Float64(sin(t_0) * exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(y_46_im * atan(x_46_im, x_46_re))))); elseif (y_46_im <= 1.55e+35) tmp = Float64(sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(y_46_im * Float64(-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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1650000000.0], N[(N[Sin[t$95$0], $MachinePrecision] * N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.55e+35], N[(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] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], 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[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq -1650000000:\\
\;\;\;\;\sin t\_0 \cdot e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
\mathbf{elif}\;y.im \leq 1.55 \cdot 10^{+35}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_0\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\end{array}
\end{array}
if y.im < -1.65e9Initial program 39.4%
Taylor expanded in y.im around 0 64.9%
if -1.65e9 < y.im < 1.54999999999999993e35Initial program 45.3%
cancel-sign-sub-inv45.3%
fma-define45.3%
hypot-define45.3%
distribute-lft-neg-in45.3%
distribute-rgt-neg-out45.3%
fma-define45.3%
hypot-define91.9%
*-commutative91.9%
Simplified91.9%
Taylor expanded in y.im around 0 69.2%
unpow269.2%
unpow269.2%
hypot-undefine90.9%
Simplified90.9%
if 1.54999999999999993e35 < y.im Initial program 36.4%
cancel-sign-sub-inv36.4%
fma-define36.4%
hypot-define36.4%
distribute-lft-neg-in36.4%
distribute-rgt-neg-out36.4%
fma-define36.4%
hypot-define71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y.re around 0 34.6%
neg-mul-134.6%
distribute-lft-neg-in34.6%
*-commutative34.6%
unpow234.6%
unpow234.6%
hypot-undefine64.5%
Simplified64.5%
Final simplification78.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re))))
(if (<= y.im -4300000000000.0)
(*
(sin (* y.re (atan2 x.im x.re)))
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re)))))
(if (<= y.im 3.6e+41)
(*
(pow (hypot x.im x.re) y.re)
(sin (* y.re (+ (atan2 x.im x.re) (* y.im (/ t_0 y.re))))))
(* (sin (* y.im t_0)) (exp (* y.im (- (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 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -4300000000000.0) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re))));
} else if (y_46_im <= 3.6e+41) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re)))));
} else {
tmp = sin((y_46_im * t_0)) * exp((y_46_im * -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.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -4300000000000.0) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * Math.atan2(x_46_im, x_46_re))));
} else if (y_46_im <= 3.6e+41) {
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) + (y_46_im * (t_0 / y_46_re)))));
} else {
tmp = Math.sin((y_46_im * t_0)) * Math.exp((y_46_im * -Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_im <= -4300000000000.0: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * math.atan2(x_46_im, x_46_re)))) elif y_46_im <= 3.6e+41: 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) + (y_46_im * (t_0 / y_46_re))))) else: tmp = math.sin((y_46_im * t_0)) * math.exp((y_46_im * -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 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -4300000000000.0) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(y_46_im * atan(x_46_im, x_46_re))))); elseif (y_46_im <= 3.6e+41) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(t_0 / y_46_re)))))); else tmp = Float64(sin(Float64(y_46_im * t_0)) * exp(Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_im <= -4300000000000.0) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (y_46_im * atan2(x_46_im, x_46_re)))); elseif (y_46_im <= 3.6e+41) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re))))); else tmp = sin((y_46_im * t_0)) * exp((y_46_im * -atan2(x_46_im, x_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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -4300000000000.0], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 3.6e+41], 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(t$95$0 / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.im \leq -4300000000000:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
\mathbf{elif}\;y.im \leq 3.6 \cdot 10^{+41}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{t\_0}{y.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot t\_0\right) \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\end{array}
\end{array}
if y.im < -4.3e12Initial program 39.4%
Taylor expanded in y.im around 0 64.9%
if -4.3e12 < y.im < 3.60000000000000025e41Initial 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-define44.6%
hypot-define91.3%
*-commutative91.3%
Simplified91.3%
Taylor expanded in y.im around 0 68.2%
unpow268.2%
unpow268.2%
hypot-undefine89.7%
Simplified89.7%
Taylor expanded in y.re around inf 44.6%
+-commutative43.9%
associate-/l*43.8%
unpow243.8%
unpow243.8%
hypot-undefine89.8%
Simplified89.6%
if 3.60000000000000025e41 < y.im Initial program 37.7%
cancel-sign-sub-inv37.7%
fma-define37.7%
hypot-define37.7%
distribute-lft-neg-in37.7%
distribute-rgt-neg-out37.7%
fma-define37.7%
hypot-define72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in y.re around 0 35.9%
neg-mul-135.9%
distribute-lft-neg-in35.9%
*-commutative35.9%
unpow235.9%
unpow235.9%
hypot-undefine65.1%
Simplified65.1%
Final simplification78.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re))) (t_1 (sin (* y.im t_0))))
(if (<= y.im -22000000.0)
(/ t_1 (pow (exp y.im) (atan2 x.im x.re)))
(if (<= y.im 9.2e+41)
(*
(pow (hypot x.im x.re) y.re)
(sin (* y.re (+ (atan2 x.im x.re) (* y.im (/ t_0 y.re))))))
(* t_1 (exp (* y.im (- (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 = log(hypot(x_46_im, x_46_re));
double t_1 = sin((y_46_im * t_0));
double tmp;
if (y_46_im <= -22000000.0) {
tmp = t_1 / pow(exp(y_46_im), atan2(x_46_im, x_46_re));
} else if (y_46_im <= 9.2e+41) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re)))));
} else {
tmp = t_1 * exp((y_46_im * -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.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.sin((y_46_im * t_0));
double tmp;
if (y_46_im <= -22000000.0) {
tmp = t_1 / Math.pow(Math.exp(y_46_im), Math.atan2(x_46_im, x_46_re));
} else if (y_46_im <= 9.2e+41) {
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) + (y_46_im * (t_0 / y_46_re)))));
} else {
tmp = t_1 * Math.exp((y_46_im * -Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) t_1 = math.sin((y_46_im * t_0)) tmp = 0 if y_46_im <= -22000000.0: tmp = t_1 / math.pow(math.exp(y_46_im), math.atan2(x_46_im, x_46_re)) elif y_46_im <= 9.2e+41: 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) + (y_46_im * (t_0 / y_46_re))))) else: tmp = t_1 * math.exp((y_46_im * -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 = log(hypot(x_46_im, x_46_re)) t_1 = sin(Float64(y_46_im * t_0)) tmp = 0.0 if (y_46_im <= -22000000.0) tmp = Float64(t_1 / (exp(y_46_im) ^ atan(x_46_im, x_46_re))); elseif (y_46_im <= 9.2e+41) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(t_0 / y_46_re)))))); else tmp = Float64(t_1 * exp(Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))); end return tmp end
function tmp_2 = 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 = sin((y_46_im * t_0)); tmp = 0.0; if (y_46_im <= -22000000.0) tmp = t_1 / (exp(y_46_im) ^ atan2(x_46_im, x_46_re)); elseif (y_46_im <= 9.2e+41) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re))))); else tmp = t_1 * exp((y_46_im * -atan2(x_46_im, x_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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -22000000.0], N[(t$95$1 / N[Power[N[Exp[y$46$im], $MachinePrecision], N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 9.2e+41], 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(t$95$0 / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Exp[N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := \sin \left(y.im \cdot t\_0\right)\\
\mathbf{if}\;y.im \leq -22000000:\\
\;\;\;\;\frac{t\_1}{{\left(e^{y.im}\right)}^{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;y.im \leq 9.2 \cdot 10^{+41}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{t\_0}{y.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\end{array}
\end{array}
if y.im < -2.2e7Initial program 39.4%
exp-diff26.5%
exp-to-pow26.5%
hypot-define26.5%
*-commutative26.5%
exp-prod23.0%
fma-define23.0%
hypot-define47.2%
*-commutative47.2%
Simplified47.2%
add-cube-cbrt47.2%
pow347.2%
Applied egg-rr47.2%
Taylor expanded in y.re around 0 28.3%
unpow228.3%
unpow228.3%
hypot-undefine54.4%
exp-prod57.2%
Simplified57.2%
if -2.2e7 < y.im < 9.1999999999999994e41Initial 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-define44.6%
hypot-define91.3%
*-commutative91.3%
Simplified91.3%
Taylor expanded in y.im around 0 68.2%
unpow268.2%
unpow268.2%
hypot-undefine89.7%
Simplified89.7%
Taylor expanded in y.re around inf 44.6%
+-commutative43.9%
associate-/l*43.8%
unpow243.8%
unpow243.8%
hypot-undefine89.8%
Simplified89.6%
if 9.1999999999999994e41 < y.im Initial program 37.7%
cancel-sign-sub-inv37.7%
fma-define37.7%
hypot-define37.7%
distribute-lft-neg-in37.7%
distribute-rgt-neg-out37.7%
fma-define37.7%
hypot-define72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in y.re around 0 35.9%
neg-mul-135.9%
distribute-lft-neg-in35.9%
*-commutative35.9%
unpow235.9%
unpow235.9%
hypot-undefine65.1%
Simplified65.1%
Final simplification76.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re))))
(if (<= y.im -1.4e+29)
(log (pow (exp (sin (* y.re (atan2 x.im x.re)))) (pow x.im y.re)))
(if (<= y.im 1.5e+36)
(*
(sin (* y.im (+ t_0 (* y.re (/ (atan2 x.im x.re) y.im)))))
(pow (hypot x.im x.re) y.re))
(* (sin (* y.im t_0)) (exp (* y.im (- (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 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -1.4e+29) {
tmp = log(pow(exp(sin((y_46_re * atan2(x_46_im, x_46_re)))), pow(x_46_im, y_46_re)));
} else if (y_46_im <= 1.5e+36) {
tmp = sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin((y_46_im * t_0)) * exp((y_46_im * -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.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -1.4e+29) {
tmp = Math.log(Math.pow(Math.exp(Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)))), Math.pow(x_46_im, y_46_re)));
} else if (y_46_im <= 1.5e+36) {
tmp = Math.sin((y_46_im * (t_0 + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.sin((y_46_im * t_0)) * Math.exp((y_46_im * -Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_im <= -1.4e+29: tmp = math.log(math.pow(math.exp(math.sin((y_46_re * math.atan2(x_46_im, x_46_re)))), math.pow(x_46_im, y_46_re))) elif y_46_im <= 1.5e+36: tmp = math.sin((y_46_im * (t_0 + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.sin((y_46_im * t_0)) * math.exp((y_46_im * -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 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -1.4e+29) tmp = log((exp(sin(Float64(y_46_re * atan(x_46_im, x_46_re)))) ^ (x_46_im ^ y_46_re))); elseif (y_46_im <= 1.5e+36) tmp = Float64(sin(Float64(y_46_im * Float64(t_0 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(Float64(y_46_im * t_0)) * exp(Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_im <= -1.4e+29) tmp = log((exp(sin((y_46_re * atan2(x_46_im, x_46_re)))) ^ (x_46_im ^ y_46_re))); elseif (y_46_im <= 1.5e+36) tmp = sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = sin((y_46_im * t_0)) * exp((y_46_im * -atan2(x_46_im, x_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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -1.4e+29], N[Log[N[Power[N[Exp[N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[Power[x$46$im, y$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$im, 1.5e+36], N[(N[Sin[N[(y$46$im * N[(t$95$0 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.im \leq -1.4 \cdot 10^{+29}:\\
\;\;\;\;\log \left({\left(e^{\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)}\right)}^{\left({x.im}^{y.re}\right)}\right)\\
\mathbf{elif}\;y.im \leq 1.5 \cdot 10^{+36}:\\
\;\;\;\;\sin \left(y.im \cdot \left(t\_0 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot t\_0\right) \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\end{array}
\end{array}
if y.im < -1.4e29Initial program 42.9%
cancel-sign-sub-inv42.9%
fma-define42.9%
hypot-define42.9%
distribute-lft-neg-in42.9%
distribute-rgt-neg-out42.9%
fma-define42.9%
hypot-define72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in y.im around 0 39.9%
unpow239.9%
unpow239.9%
hypot-undefine30.3%
Simplified30.3%
Taylor expanded in x.re around 0 27.0%
add-log-exp27.0%
exp-prod58.6%
Applied egg-rr58.6%
if -1.4e29 < y.im < 1.5e36Initial program 43.7%
cancel-sign-sub-inv43.7%
fma-define43.7%
hypot-define43.7%
distribute-lft-neg-in43.7%
distribute-rgt-neg-out43.7%
fma-define43.7%
hypot-define90.1%
*-commutative90.1%
Simplified90.1%
Taylor expanded in y.im around 0 68.1%
unpow268.1%
unpow268.1%
hypot-undefine88.5%
Simplified88.5%
Taylor expanded in y.im around inf 36.8%
unpow236.7%
unpow236.7%
hypot-undefine77.6%
associate-/l*78.9%
Simplified77.3%
if 1.5e36 < y.im Initial program 36.4%
cancel-sign-sub-inv36.4%
fma-define36.4%
hypot-define36.4%
distribute-lft-neg-in36.4%
distribute-rgt-neg-out36.4%
fma-define36.4%
hypot-define71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y.re around 0 34.6%
neg-mul-134.6%
distribute-lft-neg-in34.6%
*-commutative34.6%
unpow234.6%
unpow234.6%
hypot-undefine64.5%
Simplified64.5%
Final simplification70.4%
(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 -1.12e-38)
(* (sin (* y.re (atan2 x.im x.re))) t_0)
(if (<= y.re 1.45e+21)
(*
(sin (* y.im (log (hypot x.im x.re))))
(exp (* y.im (- (atan2 x.im x.re)))))
(* t_0 (sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0))))))))
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 <= -1.12e-38) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * t_0;
} else if (y_46_re <= 1.45e+21) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((y_46_im * -atan2(x_46_im, x_46_re)));
} else {
tmp = t_0 * sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.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.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.12e-38) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * t_0;
} else if (y_46_re <= 1.45e+21) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.exp((y_46_im * -Math.atan2(x_46_im, x_46_re)));
} else {
tmp = t_0 * Math.sin((y_46_re * Math.pow(Math.cbrt(Math.atan2(x_46_im, x_46_re)), 3.0)));
}
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 <= -1.12e-38) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * t_0); elseif (y_46_re <= 1.45e+21) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))); else tmp = Float64(t_0 * sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0)))); 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, -1.12e-38], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[y$46$re, 1.45e+21], 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[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * 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]]]]
\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 -1.12 \cdot 10^{-38}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot t\_0\\
\mathbf{elif}\;y.re \leq 1.45 \cdot 10^{+21}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right)\\
\end{array}
\end{array}
if y.re < -1.1200000000000001e-38Initial program 42.5%
cancel-sign-sub-inv42.5%
fma-define42.5%
hypot-define42.5%
distribute-lft-neg-in42.5%
distribute-rgt-neg-out42.5%
fma-define42.5%
hypot-define89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y.im around 0 77.1%
unpow277.1%
unpow277.1%
hypot-undefine81.1%
Simplified81.1%
if -1.1200000000000001e-38 < y.re < 1.45e21Initial program 42.7%
cancel-sign-sub-inv42.7%
fma-define42.7%
hypot-define42.7%
distribute-lft-neg-in42.7%
distribute-rgt-neg-out42.7%
fma-define42.7%
hypot-define84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in y.re around 0 30.9%
neg-mul-130.9%
distribute-lft-neg-in30.9%
*-commutative30.9%
unpow230.9%
unpow230.9%
hypot-undefine64.7%
Simplified64.7%
if 1.45e21 < 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-define69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in y.im around 0 50.2%
unpow250.2%
unpow250.2%
hypot-undefine50.2%
Simplified50.2%
add-cube-cbrt57.1%
pow362.2%
Applied egg-rr62.2%
Final simplification68.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -4.6e-38)
(* (sin (* y.re (atan2 x.im x.re))) t_1)
(if (<= y.re 3.4e+18)
(* (sin t_0) (exp (* y.im (- (atan2 x.im x.re)))))
(* t_1 (sin (fabs 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_im * log(hypot(x_46_im, x_46_re));
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -4.6e-38) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * t_1;
} else if (y_46_re <= 3.4e+18) {
tmp = sin(t_0) * exp((y_46_im * -atan2(x_46_im, x_46_re)));
} else {
tmp = t_1 * sin(fabs(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_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -4.6e-38) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * t_1;
} else if (y_46_re <= 3.4e+18) {
tmp = Math.sin(t_0) * Math.exp((y_46_im * -Math.atan2(x_46_im, x_46_re)));
} else {
tmp = t_1 * Math.sin(Math.abs(t_0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -4.6e-38: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * t_1 elif y_46_re <= 3.4e+18: tmp = math.sin(t_0) * math.exp((y_46_im * -math.atan2(x_46_im, x_46_re))) else: tmp = t_1 * math.sin(math.fabs(t_0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) t_1 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -4.6e-38) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * t_1); elseif (y_46_re <= 3.4e+18) tmp = Float64(sin(t_0) * exp(Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))); else tmp = Float64(t_1 * sin(abs(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_im * log(hypot(x_46_im, x_46_re)); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -4.6e-38) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * t_1; elseif (y_46_re <= 3.4e+18) tmp = sin(t_0) * exp((y_46_im * -atan2(x_46_im, x_46_re))); else tmp = t_1 * sin(abs(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$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e-38], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 3.4e+18], N[(N[Sin[t$95$0], $MachinePrecision] * N[Exp[N[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Sin[N[Abs[t$95$0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{-38}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot t\_1\\
\mathbf{elif}\;y.re \leq 3.4 \cdot 10^{+18}:\\
\;\;\;\;\sin t\_0 \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin \left(\left|t\_0\right|\right)\\
\end{array}
\end{array}
if y.re < -4.60000000000000003e-38Initial program 42.5%
cancel-sign-sub-inv42.5%
fma-define42.5%
hypot-define42.5%
distribute-lft-neg-in42.5%
distribute-rgt-neg-out42.5%
fma-define42.5%
hypot-define89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y.im around 0 77.1%
unpow277.1%
unpow277.1%
hypot-undefine81.1%
Simplified81.1%
if -4.60000000000000003e-38 < y.re < 3.4e18Initial program 43.4%
cancel-sign-sub-inv43.4%
fma-define43.4%
hypot-define43.4%
distribute-lft-neg-in43.4%
distribute-rgt-neg-out43.4%
fma-define43.4%
hypot-define85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y.re around 0 31.4%
neg-mul-131.4%
distribute-lft-neg-in31.4%
*-commutative31.4%
unpow231.4%
unpow231.4%
hypot-undefine64.9%
Simplified64.9%
if 3.4e18 < y.re Initial program 38.3%
cancel-sign-sub-inv38.3%
fma-define38.3%
hypot-define38.3%
distribute-lft-neg-in38.3%
distribute-rgt-neg-out38.3%
fma-define38.3%
hypot-define68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in y.im around 0 58.5%
unpow258.5%
unpow258.5%
hypot-undefine58.5%
Simplified58.5%
add-sqr-sqrt35.0%
sqrt-unprod21.7%
pow221.7%
hypot-define13.3%
*-commutative13.3%
fma-define13.3%
+-commutative13.3%
*-commutative13.3%
fma-define13.3%
*-commutative13.3%
hypot-define21.7%
Applied egg-rr21.7%
unpow221.7%
rem-sqrt-square60.0%
fma-define60.0%
+-commutative60.0%
fma-define60.0%
hypot-undefine33.3%
unpow233.3%
unpow233.3%
+-commutative33.3%
unpow233.3%
unpow233.3%
hypot-undefine60.0%
Simplified51.8%
Taylor expanded in y.im around inf 26.8%
unpow226.8%
unpow226.8%
hypot-undefine53.5%
Simplified53.5%
Final simplification66.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.re -6e-38) (not (<= y.re 6.8)))
(* (sin (* y.re (atan2 x.im x.re))) (pow (hypot x.im x.re) y.re))
(*
(sin (* y.im (log (hypot x.im x.re))))
(exp (* y.im (- (atan2 x.im x.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 <= -6e-38) || !(y_46_re <= 6.8)) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((y_46_im * -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 tmp;
if ((y_46_re <= -6e-38) || !(y_46_re <= 6.8)) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.exp((y_46_im * -Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -6e-38) or not (y_46_re <= 6.8): tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) * math.exp((y_46_im * -math.atan2(x_46_im, x_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 <= -6e-38) || !(y_46_re <= 6.8)) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(y_46_im * Float64(-atan(x_46_im, x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_re <= -6e-38) || ~((y_46_re <= 6.8))) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((y_46_im * -atan2(x_46_im, x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -6e-38], N[Not[LessEqual[y$46$re, 6.8]], $MachinePrecision]], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], 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[(y$46$im * (-N[ArcTan[x$46$im / x$46$re], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -6 \cdot 10^{-38} \lor \neg \left(y.re \leq 6.8\right):\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{y.im \cdot \left(-\tan^{-1}_* \frac{x.im}{x.re}\right)}\\
\end{array}
\end{array}
if y.re < -5.99999999999999977e-38 or 6.79999999999999982 < y.re Initial program 40.9%
cancel-sign-sub-inv40.9%
fma-define40.9%
hypot-define40.9%
distribute-lft-neg-in40.9%
distribute-rgt-neg-out40.9%
fma-define40.9%
hypot-define80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in y.im around 0 65.3%
unpow265.3%
unpow265.3%
hypot-undefine67.4%
Simplified67.4%
if -5.99999999999999977e-38 < y.re < 6.79999999999999982Initial program 43.2%
cancel-sign-sub-inv43.2%
fma-define43.2%
hypot-define43.2%
distribute-lft-neg-in43.2%
distribute-rgt-neg-out43.2%
fma-define43.2%
hypot-define84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in y.re around 0 31.6%
neg-mul-131.6%
distribute-lft-neg-in31.6%
*-commutative31.6%
unpow231.6%
unpow231.6%
hypot-undefine66.2%
Simplified66.2%
Final simplification66.8%
(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 -2.35e-11) (not (<= y.re 1e-35)))
(* (sin t_0) (pow (hypot x.im x.re) y.re))
(sin (fma y.im (log (hypot x.im x.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 <= -2.35e-11) || !(y_46_re <= 1e-35)) {
tmp = sin(t_0) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin(fma(y_46_im, log(hypot(x_46_im, x_46_re)), 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 <= -2.35e-11) || !(y_46_re <= 1e-35)) tmp = Float64(sin(t_0) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = sin(fma(y_46_im, log(hypot(x_46_im, x_46_re)), 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, -2.35e-11], N[Not[LessEqual[y$46$re, 1e-35]], $MachinePrecision]], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] + t$95$0), $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 -2.35 \cdot 10^{-11} \lor \neg \left(y.re \leq 10^{-35}\right):\\
\;\;\;\;\sin t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(y.im, \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right), t\_0\right)\right)\\
\end{array}
\end{array}
if y.re < -2.34999999999999996e-11 or 1.00000000000000001e-35 < y.re Initial program 39.9%
cancel-sign-sub-inv39.9%
fma-define39.9%
hypot-define39.9%
distribute-lft-neg-in39.9%
distribute-rgt-neg-out39.9%
fma-define39.9%
hypot-define79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in y.im around 0 64.8%
unpow264.8%
unpow264.8%
hypot-undefine66.2%
Simplified66.2%
if -2.34999999999999996e-11 < y.re < 1.00000000000000001e-35Initial program 44.4%
cancel-sign-sub-inv44.4%
fma-define44.4%
hypot-define44.4%
distribute-lft-neg-in44.4%
distribute-rgt-neg-out44.4%
fma-define44.4%
hypot-define86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in y.im around 0 37.6%
unpow237.6%
unpow237.6%
hypot-undefine53.7%
Simplified53.7%
add-sqr-sqrt42.5%
sqrt-unprod38.9%
pow238.9%
hypot-define19.5%
*-commutative19.5%
fma-define19.5%
+-commutative19.5%
*-commutative19.5%
fma-define19.5%
*-commutative19.5%
hypot-define38.9%
Applied egg-rr23.5%
unpow238.9%
rem-sqrt-square64.9%
fma-define64.9%
+-commutative64.9%
fma-define64.9%
hypot-undefine31.2%
unpow231.2%
unpow231.2%
+-commutative31.2%
unpow231.2%
unpow231.2%
hypot-undefine64.9%
Simplified29.8%
Taylor expanded in y.re around 0 13.1%
fma-define13.1%
unpow213.1%
unpow213.1%
hypot-undefine29.8%
rem-square-sqrt28.0%
fabs-sqr28.0%
rem-square-sqrt53.7%
Simplified53.7%
Final simplification60.4%
(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 (hypot x.im x.re) y.re))))
(if (<= y.re -6.8e-151)
t_1
(if (<= y.re 2.25e-163) (pow (pow t_0 3.0) 0.3333333333333333) 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(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.8e-151) {
tmp = t_1;
} else if (y_46_re <= 2.25e-163) {
tmp = pow(pow(t_0, 3.0), 0.3333333333333333);
} 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(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.8e-151) {
tmp = t_1;
} else if (y_46_re <= 2.25e-163) {
tmp = Math.pow(Math.pow(t_0, 3.0), 0.3333333333333333);
} 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(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -6.8e-151: tmp = t_1 elif y_46_re <= 2.25e-163: tmp = math.pow(math.pow(t_0, 3.0), 0.3333333333333333) 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 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -6.8e-151) tmp = t_1; elseif (y_46_re <= 2.25e-163) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; 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 * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -6.8e-151) tmp = t_1; elseif (y_46_re <= 2.25e-163) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; 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[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -6.8e-151], t$95$1, If[LessEqual[y$46$re, 2.25e-163], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 0.3333333333333333], $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(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -6.8 \cdot 10^{-151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 2.25 \cdot 10^{-163}:\\
\;\;\;\;{\left({t\_0}^{3}\right)}^{0.3333333333333333}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -6.8000000000000005e-151 or 2.2499999999999999e-163 < y.re Initial program 39.9%
cancel-sign-sub-inv39.9%
fma-define39.9%
hypot-define39.9%
distribute-lft-neg-in39.9%
distribute-rgt-neg-out39.9%
fma-define39.9%
hypot-define81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in y.im around 0 54.0%
unpow254.0%
unpow254.0%
hypot-undefine56.6%
Simplified56.6%
if -6.8000000000000005e-151 < y.re < 2.2499999999999999e-163Initial program 48.6%
cancel-sign-sub-inv48.6%
fma-define48.6%
hypot-define48.6%
distribute-lft-neg-in48.6%
distribute-rgt-neg-out48.6%
fma-define48.6%
hypot-define85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in y.im around 0 17.9%
unpow217.9%
unpow217.9%
hypot-undefine12.6%
Simplified12.6%
add-cbrt-cube36.1%
pow1/336.1%
pow336.1%
Applied egg-rr36.1%
Taylor expanded in y.re around 0 36.1%
Final simplification51.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 (hypot x.im x.re) y.re))))
(if (<= y.re -6.6e-152)
t_1
(if (<= y.re 1.55e-174) (pow (pow t_0 3.0) 0.3333333333333333) 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(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.6e-152) {
tmp = t_1;
} else if (y_46_re <= 1.55e-174) {
tmp = pow(pow(t_0, 3.0), 0.3333333333333333);
} 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(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.6e-152) {
tmp = t_1;
} else if (y_46_re <= 1.55e-174) {
tmp = Math.pow(Math.pow(t_0, 3.0), 0.3333333333333333);
} else {
tmp = t_1;
}
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) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -6.6e-152: tmp = t_1 elif y_46_re <= 1.55e-174: tmp = math.pow(math.pow(t_0, 3.0), 0.3333333333333333) 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) * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -6.6e-152) tmp = t_1; elseif (y_46_re <= 1.55e-174) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; 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 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0) * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -6.6e-152) tmp = t_1; elseif (y_46_re <= 1.55e-174) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; 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[(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[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -6.6e-152], t$95$1, If[LessEqual[y$46$re, 1.55e-174], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 0.3333333333333333], $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 {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -6.6 \cdot 10^{-152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 1.55 \cdot 10^{-174}:\\
\;\;\;\;{\left({t\_0}^{3}\right)}^{0.3333333333333333}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -6.59999999999999997e-152 or 1.5499999999999999e-174 < y.re Initial program 39.9%
cancel-sign-sub-inv39.9%
fma-define39.9%
hypot-define39.9%
distribute-lft-neg-in39.9%
distribute-rgt-neg-out39.9%
fma-define39.9%
hypot-define81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in y.im around 0 54.0%
unpow254.0%
unpow254.0%
hypot-undefine56.6%
Simplified56.6%
if -6.59999999999999997e-152 < y.re < 1.5499999999999999e-174Initial program 48.6%
cancel-sign-sub-inv48.6%
fma-define48.6%
hypot-define48.6%
distribute-lft-neg-in48.6%
distribute-rgt-neg-out48.6%
fma-define48.6%
hypot-define85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in y.im around 0 17.9%
unpow217.9%
unpow217.9%
hypot-undefine12.6%
Simplified12.6%
add-cbrt-cube36.1%
pow1/336.1%
pow336.1%
Applied egg-rr36.1%
Taylor expanded in y.re around 0 36.1%
cube-prod36.1%
Simplified36.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.re 3.9e-117)
(* (sin t_0) (pow (hypot x.im x.re) y.re))
(* (sin (+ t_0 (* y.im (log x.re)))) (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 tmp;
if (x_46_re <= 3.9e-117) {
tmp = sin(t_0) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin((t_0 + (y_46_im * log(x_46_re)))) * 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 tmp;
if (x_46_re <= 3.9e-117) {
tmp = Math.sin(t_0) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.sin((t_0 + (y_46_im * Math.log(x_46_re)))) * 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 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_re <= 3.9e-117: tmp = math.sin(t_0) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.sin((t_0 + (y_46_im * math.log(x_46_re)))) * 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)) tmp = 0.0 if (x_46_re <= 3.9e-117) tmp = Float64(sin(t_0) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(Float64(t_0 + Float64(y_46_im * log(x_46_re)))) * (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 <= 3.9e-117) tmp = sin(t_0) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = sin((t_0 + (y_46_im * log(x_46_re)))) * (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, 3.9e-117], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 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}\\
\mathbf{if}\;x.re \leq 3.9 \cdot 10^{-117}:\\
\;\;\;\;\sin t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(t\_0 + y.im \cdot \log x.re\right) \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if x.re < 3.89999999999999992e-117Initial program 42.5%
cancel-sign-sub-inv42.5%
fma-define42.5%
hypot-define42.5%
distribute-lft-neg-in42.5%
distribute-rgt-neg-out42.5%
fma-define42.5%
hypot-define82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in y.im around 0 45.2%
unpow245.2%
unpow245.2%
hypot-undefine47.3%
Simplified47.3%
if 3.89999999999999992e-117 < x.re Initial program 41.0%
cancel-sign-sub-inv41.0%
fma-define41.0%
hypot-define41.0%
distribute-lft-neg-in41.0%
distribute-rgt-neg-out41.0%
fma-define41.0%
hypot-define82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in y.im around 0 59.1%
unpow259.1%
unpow259.1%
hypot-undefine68.3%
Simplified68.3%
Taylor expanded in x.im around 0 60.3%
Final simplification52.3%
(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 -1600000000000.0)
t_1
(if (<= y.re -4.3e-152)
t_0
(if (<= y.re 4.9e-174)
(pow (pow t_0 3.0) 0.3333333333333333)
(if (<= y.re 1.36e-18) 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 = 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 <= -1600000000000.0) {
tmp = t_1;
} else if (y_46_re <= -4.3e-152) {
tmp = t_0;
} else if (y_46_re <= 4.9e-174) {
tmp = pow(pow(t_0, 3.0), 0.3333333333333333);
} else if (y_46_re <= 1.36e-18) {
tmp = t_0;
} else {
tmp = t_1;
}
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) * (x_46im ** y_46re)
if (y_46re <= (-1600000000000.0d0)) then
tmp = t_1
else if (y_46re <= (-4.3d-152)) then
tmp = t_0
else if (y_46re <= 4.9d-174) then
tmp = (t_0 ** 3.0d0) ** 0.3333333333333333d0
else if (y_46re <= 1.36d-18) then
tmp = t_0
else
tmp = t_1
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) * Math.pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -1600000000000.0) {
tmp = t_1;
} else if (y_46_re <= -4.3e-152) {
tmp = t_0;
} else if (y_46_re <= 4.9e-174) {
tmp = Math.pow(Math.pow(t_0, 3.0), 0.3333333333333333);
} else if (y_46_re <= 1.36e-18) {
tmp = t_0;
} else {
tmp = t_1;
}
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) * math.pow(x_46_im, y_46_re) tmp = 0 if y_46_re <= -1600000000000.0: tmp = t_1 elif y_46_re <= -4.3e-152: tmp = t_0 elif y_46_re <= 4.9e-174: tmp = math.pow(math.pow(t_0, 3.0), 0.3333333333333333) elif y_46_re <= 1.36e-18: tmp = t_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 <= -1600000000000.0) tmp = t_1; elseif (y_46_re <= -4.3e-152) tmp = t_0; elseif (y_46_re <= 4.9e-174) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; elseif (y_46_re <= 1.36e-18) tmp = 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 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0) * (x_46_im ^ y_46_re); tmp = 0.0; if (y_46_re <= -1600000000000.0) tmp = t_1; elseif (y_46_re <= -4.3e-152) tmp = t_0; elseif (y_46_re <= 4.9e-174) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; elseif (y_46_re <= 1.36e-18) tmp = 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[(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, -1600000000000.0], t$95$1, If[LessEqual[y$46$re, -4.3e-152], t$95$0, If[LessEqual[y$46$re, 4.9e-174], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 0.3333333333333333], $MachinePrecision], If[LessEqual[y$46$re, 1.36e-18], t$95$0, 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 -1600000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -4.3 \cdot 10^{-152}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 4.9 \cdot 10^{-174}:\\
\;\;\;\;{\left({t\_0}^{3}\right)}^{0.3333333333333333}\\
\mathbf{elif}\;y.re \leq 1.36 \cdot 10^{-18}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -1.6e12 or 1.3600000000000001e-18 < y.re Initial program 40.3%
cancel-sign-sub-inv40.3%
fma-define40.3%
hypot-define40.3%
distribute-lft-neg-in40.3%
distribute-rgt-neg-out40.3%
fma-define40.3%
hypot-define79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y.im around 0 66.9%
unpow266.9%
unpow266.9%
hypot-undefine67.6%
Simplified67.6%
Taylor expanded in x.re around 0 54.7%
if -1.6e12 < y.re < -4.2999999999999998e-152 or 4.90000000000000009e-174 < y.re < 1.3600000000000001e-18Initial program 39.1%
cancel-sign-sub-inv39.1%
fma-define39.1%
hypot-define39.1%
distribute-lft-neg-in39.1%
distribute-rgt-neg-out39.1%
fma-define39.1%
hypot-define84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in y.im around 0 29.1%
unpow229.1%
unpow229.1%
hypot-undefine35.3%
Simplified35.3%
Taylor expanded in x.im around 0 23.6%
Taylor expanded in y.re around 0 31.7%
if -4.2999999999999998e-152 < y.re < 4.90000000000000009e-174Initial program 48.6%
cancel-sign-sub-inv48.6%
fma-define48.6%
hypot-define48.6%
distribute-lft-neg-in48.6%
distribute-rgt-neg-out48.6%
fma-define48.6%
hypot-define85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in y.im around 0 17.9%
unpow217.9%
unpow217.9%
hypot-undefine12.6%
Simplified12.6%
add-cbrt-cube36.1%
pow1/336.1%
pow336.1%
Applied egg-rr36.1%
Taylor expanded in y.re around 0 36.1%
cube-prod36.1%
Simplified36.1%
(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.re y.re))))
(if (<= y.re -950.0)
t_1
(if (<= y.re -5.8e-152)
t_0
(if (<= y.re 2.5e-163) (pow (pow t_0 3.0) 0.3333333333333333) 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_re, y_46_re);
double tmp;
if (y_46_re <= -950.0) {
tmp = t_1;
} else if (y_46_re <= -5.8e-152) {
tmp = t_0;
} else if (y_46_re <= 2.5e-163) {
tmp = pow(pow(t_0, 3.0), 0.3333333333333333);
} else {
tmp = t_1;
}
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) * (x_46re ** y_46re)
if (y_46re <= (-950.0d0)) then
tmp = t_1
else if (y_46re <= (-5.8d-152)) then
tmp = t_0
else if (y_46re <= 2.5d-163) then
tmp = (t_0 ** 3.0d0) ** 0.3333333333333333d0
else
tmp = t_1
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) * Math.pow(x_46_re, y_46_re);
double tmp;
if (y_46_re <= -950.0) {
tmp = t_1;
} else if (y_46_re <= -5.8e-152) {
tmp = t_0;
} else if (y_46_re <= 2.5e-163) {
tmp = Math.pow(Math.pow(t_0, 3.0), 0.3333333333333333);
} else {
tmp = t_1;
}
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) * math.pow(x_46_re, y_46_re) tmp = 0 if y_46_re <= -950.0: tmp = t_1 elif y_46_re <= -5.8e-152: tmp = t_0 elif y_46_re <= 2.5e-163: tmp = math.pow(math.pow(t_0, 3.0), 0.3333333333333333) 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_re ^ y_46_re)) tmp = 0.0 if (y_46_re <= -950.0) tmp = t_1; elseif (y_46_re <= -5.8e-152) tmp = t_0; elseif (y_46_re <= 2.5e-163) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; 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 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0) * (x_46_re ^ y_46_re); tmp = 0.0; if (y_46_re <= -950.0) tmp = t_1; elseif (y_46_re <= -5.8e-152) tmp = t_0; elseif (y_46_re <= 2.5e-163) tmp = (t_0 ^ 3.0) ^ 0.3333333333333333; 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[(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$re, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -950.0], t$95$1, If[LessEqual[y$46$re, -5.8e-152], t$95$0, If[LessEqual[y$46$re, 2.5e-163], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 0.3333333333333333], $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.re}^{y.re}\\
\mathbf{if}\;y.re \leq -950:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -5.8 \cdot 10^{-152}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 2.5 \cdot 10^{-163}:\\
\;\;\;\;{\left({t\_0}^{3}\right)}^{0.3333333333333333}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -950 or 2.49999999999999989e-163 < y.re Initial program 40.2%
cancel-sign-sub-inv40.2%
fma-define40.2%
hypot-define40.2%
distribute-lft-neg-in40.2%
distribute-rgt-neg-out40.2%
fma-define40.2%
hypot-define79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y.im around 0 58.0%
unpow258.0%
unpow258.0%
hypot-undefine59.3%
Simplified59.3%
Taylor expanded in x.im around 0 47.9%
if -950 < y.re < -5.8000000000000003e-152Initial program 37.8%
cancel-sign-sub-inv37.8%
fma-define37.8%
hypot-define37.8%
distribute-lft-neg-in37.8%
distribute-rgt-neg-out37.8%
fma-define37.8%
hypot-define89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in y.im around 0 30.7%
unpow230.7%
unpow230.7%
hypot-undefine41.0%
Simplified41.0%
Taylor expanded in x.im around 0 18.3%
Taylor expanded in y.re around 0 35.9%
if -5.8000000000000003e-152 < y.re < 2.49999999999999989e-163Initial program 48.6%
cancel-sign-sub-inv48.6%
fma-define48.6%
hypot-define48.6%
distribute-lft-neg-in48.6%
distribute-rgt-neg-out48.6%
fma-define48.6%
hypot-define85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in y.im around 0 17.9%
unpow217.9%
unpow217.9%
hypot-undefine12.6%
Simplified12.6%
add-cbrt-cube36.1%
pow1/336.1%
pow336.1%
Applied egg-rr36.1%
Taylor expanded in y.re around 0 36.1%
cube-prod36.1%
Simplified36.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (pow (pow t_0 3.0) 0.3333333333333333)))
(if (<= y.im -1.4e+29) t_1 (if (<= y.im 1.8e-26) 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 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(pow(t_0, 3.0), 0.3333333333333333);
double tmp;
if (y_46_im <= -1.4e+29) {
tmp = t_1;
} else if (y_46_im <= 1.8e-26) {
tmp = t_0;
} else {
tmp = t_1;
}
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 = (t_0 ** 3.0d0) ** 0.3333333333333333d0
if (y_46im <= (-1.4d+29)) then
tmp = t_1
else if (y_46im <= 1.8d-26) then
tmp = t_0
else
tmp = t_1
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.pow(Math.pow(t_0, 3.0), 0.3333333333333333);
double tmp;
if (y_46_im <= -1.4e+29) {
tmp = t_1;
} else if (y_46_im <= 1.8e-26) {
tmp = t_0;
} else {
tmp = t_1;
}
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.pow(math.pow(t_0, 3.0), 0.3333333333333333) tmp = 0 if y_46_im <= -1.4e+29: tmp = t_1 elif y_46_im <= 1.8e-26: tmp = t_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 = (t_0 ^ 3.0) ^ 0.3333333333333333 tmp = 0.0 if (y_46_im <= -1.4e+29) tmp = t_1; elseif (y_46_im <= 1.8e-26) tmp = 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 = y_46_re * atan2(x_46_im, x_46_re); t_1 = (t_0 ^ 3.0) ^ 0.3333333333333333; tmp = 0.0; if (y_46_im <= -1.4e+29) tmp = t_1; elseif (y_46_im <= 1.8e-26) tmp = 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 0.3333333333333333], $MachinePrecision]}, If[LessEqual[y$46$im, -1.4e+29], t$95$1, If[LessEqual[y$46$im, 1.8e-26], t$95$0, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := {\left({t\_0}^{3}\right)}^{0.3333333333333333}\\
\mathbf{if}\;y.im \leq -1.4 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.8 \cdot 10^{-26}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -1.4e29 or 1.8000000000000001e-26 < y.im Initial program 39.0%
cancel-sign-sub-inv39.0%
fma-define39.0%
hypot-define39.0%
distribute-lft-neg-in39.0%
distribute-rgt-neg-out39.0%
fma-define39.0%
hypot-define72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in y.im around 0 35.8%
unpow235.8%
unpow235.8%
hypot-undefine28.9%
Simplified28.9%
add-cbrt-cube45.5%
pow1/342.9%
pow342.9%
Applied egg-rr42.9%
Taylor expanded in y.re around 0 32.0%
cube-prod33.0%
Simplified33.0%
if -1.4e29 < y.im < 1.8000000000000001e-26Initial 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-define44.5%
hypot-define90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in y.im around 0 54.0%
unpow254.0%
unpow254.0%
hypot-undefine61.3%
Simplified61.3%
Taylor expanded in x.im around 0 44.8%
Taylor expanded in y.re around 0 22.6%
(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 41.9%
cancel-sign-sub-inv41.9%
fma-define41.9%
hypot-define41.9%
distribute-lft-neg-in41.9%
distribute-rgt-neg-out41.9%
fma-define41.9%
hypot-define82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in y.im around 0 45.5%
unpow245.5%
unpow245.5%
hypot-undefine46.3%
Simplified46.3%
Taylor expanded in x.im around 0 35.0%
Taylor expanded in y.re around 0 14.7%
herbie shell --seed 2024145
(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)))))