
(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 26 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 (log (hypot x.im x.re)))
(t_1 (* t_0 y.im))
(t_2 (- (* y.re t_0) (* y.im (atan2 x.im x.re)))))
(if (<= y.re 5e+18)
(* (exp t_2) (sin (fma y.re (atan2 x.im x.re) t_1)))
(if (<= y.re 3.5e+242)
(* (exp (cbrt (pow t_2 3.0))) (sin t_1))
(*
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0)))
(pow (hypot x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = t_0 * y_46_im;
double t_2 = (y_46_re * t_0) - (y_46_im * atan2(x_46_im, x_46_re));
double tmp;
if (y_46_re <= 5e+18) {
tmp = exp(t_2) * sin(fma(y_46_re, atan2(x_46_im, x_46_re), t_1));
} else if (y_46_re <= 3.5e+242) {
tmp = exp(cbrt(pow(t_2, 3.0))) * sin(t_1);
} else {
tmp = sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0))) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(t_0 * y_46_im) t_2 = Float64(Float64(y_46_re * t_0) - Float64(y_46_im * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= 5e+18) tmp = Float64(exp(t_2) * sin(fma(y_46_re, atan(x_46_im, x_46_re), t_1))); elseif (y_46_re <= 3.5e+242) tmp = Float64(exp(cbrt((t_2 ^ 3.0))) * sin(t_1)); else tmp = Float64(sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * y$46$im), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y$46$re * t$95$0), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, 5e+18], N[(N[Exp[t$95$2], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.5e+242], N[(N[Exp[N[Power[N[Power[t$95$2, 3.0], $MachinePrecision], 1/3], $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision], N[(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] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := t\_0 \cdot y.im\\
t_2 := y.re \cdot t\_0 - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq 5 \cdot 10^{+18}:\\
\;\;\;\;e^{t\_2} \cdot \sin \left(\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t\_1\right)\right)\\
\mathbf{elif}\;y.re \leq 3.5 \cdot 10^{+242}:\\
\;\;\;\;e^{\sqrt[3]{{t\_2}^{3}}} \cdot \sin t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < 5e18Initial program 44.1%
fma-define44.1%
hypot-define66.0%
*-commutative66.0%
add-cbrt-cube57.2%
pow357.2%
Applied egg-rr57.2%
add-exp-log47.8%
rem-cbrt-cube51.3%
log-prod34.7%
Applied egg-rr42.1%
exp-sum42.1%
rem-exp-log86.2%
Simplified86.2%
if 5e18 < y.re < 3.4999999999999999e242Initial program 26.3%
Taylor expanded in y.re around 0 33.3%
*-commutative33.3%
unpow233.3%
unpow233.3%
hypot-undefine68.5%
Simplified68.5%
add-cbrt-cube68.5%
pow368.5%
*-commutative68.5%
+-commutative68.5%
hypot-undefine73.7%
*-commutative73.7%
Applied egg-rr73.7%
if 3.4999999999999999e242 < y.re Initial program 33.3%
fmm-def33.3%
hypot-define33.3%
distribute-rgt-neg-out33.3%
fma-define33.3%
hypot-define66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in y.im around 0 73.3%
unpow273.3%
unpow273.3%
hypot-undefine73.3%
Simplified73.3%
add-cube-cbrt73.3%
pow386.7%
Applied egg-rr86.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 (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_2
(*
(exp (- (* y.re t_1) (* y.im (atan2 x.im x.re))))
(sin (+ t_0 (* y.im t_1))))))
(if (or (<= t_2 -5e-274) (not (<= t_2 1e-196)))
(log1p (expm1 t_0))
(+ (exp (log1p t_0)) -1.0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_2 = exp(((y_46_re * t_1) - (y_46_im * atan2(x_46_im, x_46_re)))) * sin((t_0 + (y_46_im * t_1)));
double tmp;
if ((t_2 <= -5e-274) || !(t_2 <= 1e-196)) {
tmp = log1p(expm1(t_0));
} else {
tmp = exp(log1p(t_0)) + -1.0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_2 = Math.exp(((y_46_re * t_1) - (y_46_im * Math.atan2(x_46_im, x_46_re)))) * Math.sin((t_0 + (y_46_im * t_1)));
double tmp;
if ((t_2 <= -5e-274) || !(t_2 <= 1e-196)) {
tmp = Math.log1p(Math.expm1(t_0));
} else {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) t_2 = math.exp(((y_46_re * t_1) - (y_46_im * math.atan2(x_46_im, x_46_re)))) * math.sin((t_0 + (y_46_im * t_1))) tmp = 0 if (t_2 <= -5e-274) or not (t_2 <= 1e-196): tmp = math.log1p(math.expm1(t_0)) else: tmp = math.exp(math.log1p(t_0)) + -1.0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_2 = Float64(exp(Float64(Float64(y_46_re * t_1) - Float64(y_46_im * atan(x_46_im, x_46_re)))) * sin(Float64(t_0 + Float64(y_46_im * t_1)))) tmp = 0.0 if ((t_2 <= -5e-274) || !(t_2 <= 1e-196)) tmp = log1p(expm1(t_0)); else tmp = Float64(exp(log1p(t_0)) + -1.0); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Exp[N[(N[(y$46$re * t$95$1), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 + N[(y$46$im * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -5e-274], N[Not[LessEqual[t$95$2, 1e-196]], $MachinePrecision]], N[Log[1 + N[(Exp[t$95$0] - 1), $MachinePrecision]], $MachinePrecision], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_2 := e^{y.re \cdot t\_1 - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}} \cdot \sin \left(t\_0 + y.im \cdot t\_1\right)\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{-274} \lor \neg \left(t\_2 \leq 10^{-196}\right):\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\end{array}
\end{array}
if (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) < -5e-274 or 1e-196 < (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) Initial program 24.9%
fmm-def24.9%
hypot-define24.9%
distribute-rgt-neg-out24.9%
fma-define24.9%
hypot-define73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in y.im around 0 40.7%
unpow240.7%
unpow240.7%
hypot-undefine41.6%
Simplified41.6%
Taylor expanded in y.re around 0 14.0%
log1p-expm1-u28.7%
Applied egg-rr28.7%
if -5e-274 < (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) < 1e-196Initial program 100.0%
fmm-def100.0%
hypot-define100.0%
distribute-rgt-neg-out100.0%
fma-define100.0%
hypot-define100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y.im around 0 58.3%
unpow258.3%
unpow258.3%
hypot-undefine58.3%
Simplified58.3%
Taylor expanded in y.re around 0 5.7%
expm1-log1p-u5.1%
expm1-undefine39.1%
Applied egg-rr39.1%
Final simplification30.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re))) (t_1 (* t_0 y.im)))
(if (or (<= y.im -6e-15) (not (<= y.im 6.5e-74)))
(*
(exp (cbrt (pow (- (* y.re t_0) (* y.im (atan2 x.im x.re))) 3.0)))
(sin t_1))
(* (sin (fma y.re (atan2 x.im x.re) t_1)) (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = t_0 * y_46_im;
double tmp;
if ((y_46_im <= -6e-15) || !(y_46_im <= 6.5e-74)) {
tmp = exp(cbrt(pow(((y_46_re * t_0) - (y_46_im * atan2(x_46_im, x_46_re))), 3.0))) * sin(t_1);
} else {
tmp = sin(fma(y_46_re, atan2(x_46_im, x_46_re), t_1)) * 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 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(t_0 * y_46_im) tmp = 0.0 if ((y_46_im <= -6e-15) || !(y_46_im <= 6.5e-74)) tmp = Float64(exp(cbrt((Float64(Float64(y_46_re * t_0) - Float64(y_46_im * atan(x_46_im, x_46_re))) ^ 3.0))) * sin(t_1)); else tmp = Float64(sin(fma(y_46_re, atan(x_46_im, x_46_re), t_1)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * y$46$im), $MachinePrecision]}, If[Or[LessEqual[y$46$im, -6e-15], N[Not[LessEqual[y$46$im, 6.5e-74]], $MachinePrecision]], N[(N[Exp[N[Power[N[Power[N[(N[(y$46$re * t$95$0), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := t\_0 \cdot y.im\\
\mathbf{if}\;y.im \leq -6 \cdot 10^{-15} \lor \neg \left(y.im \leq 6.5 \cdot 10^{-74}\right):\\
\;\;\;\;e^{\sqrt[3]{{\left(y.re \cdot t\_0 - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)}^{3}}} \cdot \sin t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t\_1\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < -6e-15 or 6.5000000000000002e-74 < y.im Initial program 34.8%
Taylor expanded in y.re around 0 36.2%
*-commutative36.2%
unpow236.2%
unpow236.2%
hypot-undefine63.2%
Simplified63.2%
add-cbrt-cube63.2%
pow363.2%
*-commutative63.2%
+-commutative63.2%
hypot-undefine76.2%
*-commutative76.2%
Applied egg-rr76.2%
if -6e-15 < y.im < 6.5000000000000002e-74Initial program 45.2%
fma-define45.2%
hypot-define69.8%
*-commutative69.8%
add-cbrt-cube54.3%
pow354.3%
Applied egg-rr54.3%
add-exp-log42.1%
rem-cbrt-cube48.5%
log-prod37.9%
Applied egg-rr45.4%
exp-sum45.5%
rem-exp-log88.7%
Simplified88.7%
add-cube-cbrt64.7%
pow367.3%
Applied egg-rr88.7%
Taylor expanded in y.im around 0 69.8%
unpow269.8%
unpow269.8%
hypot-undefine88.7%
Simplified88.7%
Final simplification81.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(*
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0)))
(pow (hypot x.im x.re) y.re))))
(if (<= y.re -9.5e-7)
t_0
(if (<= y.re 1.6)
(*
(exp (* y.re (* y.im (/ (atan2 x.im x.re) (- y.re)))))
(sin (fma (log (hypot x.re x.im)) y.im (* y.re (atan2 x.im x.re)))))
(if (<= y.re 1.76e+242)
(*
(sin (* (log (hypot 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)))))
t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0))) * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -9.5e-7) {
tmp = t_0;
} else if (y_46_re <= 1.6) {
tmp = exp((y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / -y_46_re)))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, (y_46_re * atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 1.76e+242) {
tmp = sin((log(hypot(x_46_im, x_46_re)) * y_46_im)) * 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 {
tmp = t_0;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0))) * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -9.5e-7) tmp = t_0; elseif (y_46_re <= 1.6) tmp = Float64(exp(Float64(y_46_re * Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / Float64(-y_46_re))))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re))))); elseif (y_46_re <= 1.76e+242) tmp = Float64(sin(Float64(log(hypot(x_46_im, x_46_re)) * y_46_im)) * 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))))); else tmp = t_0; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -9.5e-7], t$95$0, If[LessEqual[y$46$re, 1.6], N[(N[Exp[N[(y$46$re * N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / (-y$46$re)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.76e+242], N[(N[Sin[N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $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], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -9.5 \cdot 10^{-7}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.6:\\
\;\;\;\;e^{y.re \cdot \left(y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{-y.re}\right)} \cdot \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{elif}\;y.re \leq 1.76 \cdot 10^{+242}:\\
\;\;\;\;\sin \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot y.im\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{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -9.5000000000000001e-7 or 1.76e242 < y.re Initial program 41.3%
fmm-def41.3%
hypot-define41.3%
distribute-rgt-neg-out41.3%
fma-define41.3%
hypot-define86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in y.im around 0 84.1%
unpow284.1%
unpow284.1%
hypot-undefine85.3%
Simplified85.3%
add-cube-cbrt85.3%
pow389.3%
Applied egg-rr89.3%
if -9.5000000000000001e-7 < y.re < 1.6000000000000001Initial program 45.1%
fmm-def45.1%
hypot-define45.1%
distribute-rgt-neg-out45.1%
fma-define45.1%
hypot-define83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in y.re around inf 53.7%
mul-1-neg53.7%
unsub-neg53.7%
unpow253.7%
unpow253.7%
hypot-undefine83.6%
associate-/l*83.6%
Simplified83.6%
Taylor expanded in y.im around inf 82.2%
mul-1-neg82.2%
associate-*r/82.2%
distribute-rgt-neg-in82.2%
distribute-neg-frac282.2%
Simplified82.2%
if 1.6000000000000001 < y.re < 1.76e242Initial program 27.0%
Taylor expanded in y.re around 0 31.7%
*-commutative31.7%
unpow231.7%
unpow231.7%
hypot-undefine68.3%
Simplified68.3%
Final simplification80.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(*
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0)))
(pow (hypot x.im x.re) y.re))))
(if (<= y.re -2.55e-6)
t_0
(if (<= y.re 9.0)
(*
(exp (* y.re (* y.im (/ (atan2 x.im x.re) (- y.re)))))
(sin (fma (log (hypot x.re x.im)) y.im (* y.re (atan2 x.im x.re)))))
(if (<= y.re 2.3e+239)
(*
(* (log (hypot 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)))))
t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0))) * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -2.55e-6) {
tmp = t_0;
} else if (y_46_re <= 9.0) {
tmp = exp((y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / -y_46_re)))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, (y_46_re * atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 2.3e+239) {
tmp = (log(hypot(x_46_im, x_46_re)) * y_46_im) * 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 {
tmp = t_0;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0))) * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -2.55e-6) tmp = t_0; elseif (y_46_re <= 9.0) tmp = Float64(exp(Float64(y_46_re * Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / Float64(-y_46_re))))) * sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re))))); elseif (y_46_re <= 2.3e+239) tmp = Float64(Float64(log(hypot(x_46_im, x_46_re)) * y_46_im) * 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))))); else tmp = t_0; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(y$46$re * N[Power[N[Power[N[ArcTan[x$46$im / x$46$re], $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.55e-6], t$95$0, If[LessEqual[y$46$re, 9.0], N[(N[Exp[N[(y$46$re * N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / (-y$46$re)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.3e+239], N[(N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $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], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -2.55 \cdot 10^{-6}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 9:\\
\;\;\;\;e^{y.re \cdot \left(y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{-y.re}\right)} \cdot \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{elif}\;y.re \leq 2.3 \cdot 10^{+239}:\\
\;\;\;\;\left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot y.im\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{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -2.5500000000000001e-6 or 2.3000000000000002e239 < y.re Initial program 40.8%
fmm-def40.8%
hypot-define40.8%
distribute-rgt-neg-out40.8%
fma-define40.8%
hypot-define85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in y.im around 0 83.0%
unpow283.0%
unpow283.0%
hypot-undefine84.2%
Simplified84.2%
add-cube-cbrt84.2%
pow388.2%
Applied egg-rr88.2%
if -2.5500000000000001e-6 < y.re < 9Initial program 45.1%
fmm-def45.1%
hypot-define45.1%
distribute-rgt-neg-out45.1%
fma-define45.1%
hypot-define83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in y.re around inf 53.7%
mul-1-neg53.7%
unsub-neg53.7%
unpow253.7%
unpow253.7%
hypot-undefine83.6%
associate-/l*83.6%
Simplified83.6%
Taylor expanded in y.im around inf 82.2%
mul-1-neg82.2%
associate-*r/82.2%
distribute-rgt-neg-in82.2%
distribute-neg-frac282.2%
Simplified82.2%
if 9 < y.re < 2.3000000000000002e239Initial program 27.4%
Taylor expanded in y.re around 0 30.6%
*-commutative30.6%
unpow230.6%
unpow230.6%
hypot-undefine67.8%
Simplified67.8%
Taylor expanded in y.im around 0 59.8%
unpow259.8%
unpow259.8%
hypot-undefine64.6%
Simplified64.6%
Final simplification79.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (log (hypot x.im x.re)) y.im)))
(if (or (<= y.im -8e-10) (not (<= y.im 1.8e-14)))
(* (sin t_0) (exp (* (atan2 x.im x.re) (- y.im))))
(* (sin (fma y.re (atan2 x.im x.re) t_0)) (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re)) * y_46_im;
double tmp;
if ((y_46_im <= -8e-10) || !(y_46_im <= 1.8e-14)) {
tmp = sin(t_0) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
} else {
tmp = sin(fma(y_46_re, atan2(x_46_im, x_46_re), 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(log(hypot(x_46_im, x_46_re)) * y_46_im) tmp = 0.0 if ((y_46_im <= -8e-10) || !(y_46_im <= 1.8e-14)) tmp = Float64(sin(t_0) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); else tmp = Float64(sin(fma(y_46_re, atan(x_46_im, x_46_re), 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[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[Or[LessEqual[y$46$im, -8e-10], N[Not[LessEqual[y$46$im, 1.8e-14]], $MachinePrecision]], N[(N[Sin[t$95$0], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + 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 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot y.im\\
\mathbf{if}\;y.im \leq -8 \cdot 10^{-10} \lor \neg \left(y.im \leq 1.8 \cdot 10^{-14}\right):\\
\;\;\;\;\sin t\_0 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t\_0\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < -8.00000000000000029e-10 or 1.7999999999999999e-14 < y.im Initial program 35.4%
fmm-def35.4%
hypot-define35.4%
distribute-rgt-neg-out35.4%
fma-define35.4%
hypot-define67.9%
*-commutative67.9%
Simplified67.9%
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-undefine61.2%
Simplified61.2%
if -8.00000000000000029e-10 < y.im < 1.7999999999999999e-14Initial program 43.6%
fma-define43.6%
hypot-define70.1%
*-commutative70.1%
add-cbrt-cube55.9%
pow355.9%
Applied egg-rr55.9%
add-exp-log44.7%
rem-cbrt-cube50.6%
log-prod39.3%
Applied egg-rr46.9%
exp-sum47.0%
rem-exp-log88.9%
Simplified88.9%
add-cube-cbrt65.4%
pow367.8%
Applied egg-rr88.9%
Taylor expanded in y.im around 0 70.1%
unpow270.1%
unpow270.1%
hypot-undefine88.9%
Simplified88.9%
Final simplification75.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* y.im (atan2 x.im x.re)))))
(t_1
(*
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0)))
(pow (hypot x.im x.re) y.re)))
(t_2 (* (log (hypot x.im x.re)) y.im)))
(if (<= y.re -2.5e-9)
t_1
(if (<= y.re 4.5e-50)
(* (sin t_2) (exp (* (atan2 x.im x.re) (- y.im))))
(if (<= y.re 1.8e+26)
(* t_0 (sin (* y.re (atan2 x.im x.re))))
(if (<= y.re 2e+238) (* t_2 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 = 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))));
double t_1 = sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0))) * pow(hypot(x_46_im, x_46_re), y_46_re);
double t_2 = log(hypot(x_46_im, x_46_re)) * y_46_im;
double tmp;
if (y_46_re <= -2.5e-9) {
tmp = t_1;
} else if (y_46_re <= 4.5e-50) {
tmp = sin(t_2) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 1.8e+26) {
tmp = t_0 * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 2e+238) {
tmp = t_2 * t_0;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.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))));
double t_1 = Math.sin((y_46_re * Math.pow(Math.cbrt(Math.atan2(x_46_im, x_46_re)), 3.0))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_2 = Math.log(Math.hypot(x_46_im, x_46_re)) * y_46_im;
double tmp;
if (y_46_re <= -2.5e-9) {
tmp = t_1;
} else if (y_46_re <= 4.5e-50) {
tmp = Math.sin(t_2) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 1.8e+26) {
tmp = t_0 * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 2e+238) {
tmp = t_2 * t_0;
} else {
tmp = t_1;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) 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)))) t_1 = Float64(sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0))) * (hypot(x_46_im, x_46_re) ^ y_46_re)) t_2 = Float64(log(hypot(x_46_im, x_46_re)) * y_46_im) tmp = 0.0 if (y_46_re <= -2.5e-9) tmp = t_1; elseif (y_46_re <= 4.5e-50) tmp = Float64(sin(t_2) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); elseif (y_46_re <= 1.8e+26) tmp = Float64(t_0 * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (y_46_re <= 2e+238) tmp = Float64(t_2 * t_0); else tmp = t_1; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[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]}, Block[{t$95$1 = N[(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] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -2.5e-9], t$95$1, If[LessEqual[y$46$re, 4.5e-50], N[(N[Sin[t$95$2], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.8e+26], 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, 2e+238], N[(t$95$2 * t$95$0), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 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}}\\
t_1 := \sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_2 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot y.im\\
\mathbf{if}\;y.re \leq -2.5 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 4.5 \cdot 10^{-50}:\\
\;\;\;\;\sin t\_2 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\mathbf{elif}\;y.re \leq 1.8 \cdot 10^{+26}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.re \leq 2 \cdot 10^{+238}:\\
\;\;\;\;t\_2 \cdot t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -2.5000000000000001e-9 or 2.0000000000000001e238 < y.re Initial program 40.8%
fmm-def40.8%
hypot-define40.8%
distribute-rgt-neg-out40.8%
fma-define40.8%
hypot-define85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in y.im around 0 83.0%
unpow283.0%
unpow283.0%
hypot-undefine84.2%
Simplified84.2%
add-cube-cbrt84.2%
pow388.2%
Applied egg-rr88.2%
if -2.5000000000000001e-9 < y.re < 4.49999999999999962e-50Initial program 41.9%
fmm-def41.9%
hypot-define41.9%
distribute-rgt-neg-out41.9%
fma-define41.9%
hypot-define84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in y.re around 0 35.8%
neg-mul-135.8%
distribute-lft-neg-in35.8%
*-commutative35.8%
unpow235.8%
unpow235.8%
hypot-undefine68.3%
Simplified68.3%
if 4.49999999999999962e-50 < y.re < 1.80000000000000012e26Initial program 61.0%
Taylor expanded in y.im around 0 83.3%
if 1.80000000000000012e26 < y.re < 2.0000000000000001e238Initial program 25.9%
Taylor expanded in y.re around 0 31.5%
*-commutative31.5%
unpow231.5%
unpow231.5%
hypot-undefine68.6%
Simplified68.6%
Taylor expanded in y.im around 0 59.3%
unpow259.3%
unpow259.3%
hypot-undefine64.9%
Simplified64.9%
Final simplification74.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.re -4.3e-8) (not (<= y.re 8.2e-5)))
(*
(sin (* y.re (pow (cbrt (atan2 x.im x.re)) 3.0)))
(pow (hypot x.im x.re) y.re))
(*
(sin (* (log (hypot x.im x.re)) y.im))
(exp (* (atan2 x.im x.re) (- y.im))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -4.3e-8) || !(y_46_re <= 8.2e-5)) {
tmp = sin((y_46_re * pow(cbrt(atan2(x_46_im, x_46_re)), 3.0))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin((log(hypot(x_46_im, x_46_re)) * y_46_im)) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
}
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 <= -4.3e-8) || !(y_46_re <= 8.2e-5)) {
tmp = Math.sin((y_46_re * Math.pow(Math.cbrt(Math.atan2(x_46_im, x_46_re)), 3.0))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.sin((Math.log(Math.hypot(x_46_im, x_46_re)) * y_46_im)) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_re <= -4.3e-8) || !(y_46_re <= 8.2e-5)) tmp = Float64(sin(Float64(y_46_re * (cbrt(atan(x_46_im, x_46_re)) ^ 3.0))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(Float64(log(hypot(x_46_im, x_46_re)) * y_46_im)) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -4.3e-8], N[Not[LessEqual[y$46$re, 8.2e-5]], $MachinePrecision]], N[(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] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -4.3 \cdot 10^{-8} \lor \neg \left(y.re \leq 8.2 \cdot 10^{-5}\right):\\
\;\;\;\;\sin \left(y.re \cdot {\left(\sqrt[3]{\tan^{-1}_* \frac{x.im}{x.re}}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot y.im\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\end{array}
\end{array}
if y.re < -4.3000000000000001e-8 or 8.20000000000000009e-5 < y.re Initial program 35.2%
fmm-def35.2%
hypot-define35.2%
distribute-rgt-neg-out35.2%
fma-define35.2%
hypot-define74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in y.im around 0 66.3%
unpow266.3%
unpow266.3%
hypot-undefine67.0%
Simplified67.0%
add-cube-cbrt71.3%
pow372.7%
Applied egg-rr72.7%
if -4.3000000000000001e-8 < y.re < 8.20000000000000009e-5Initial program 44.6%
fmm-def44.6%
hypot-define44.6%
distribute-rgt-neg-out44.6%
fma-define44.6%
hypot-define83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y.re around 0 37.4%
neg-mul-137.4%
distribute-lft-neg-in37.4%
*-commutative37.4%
unpow237.4%
unpow237.4%
hypot-undefine67.4%
Simplified67.4%
Final simplification70.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re))
(t_1 (* y.im (* (log (hypot x.im x.re)) t_0)))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (pow (log (exp (pow t_2 3.0))) 0.3333333333333333)))
(if (<= y.im -1e+58)
t_3
(if (<= y.im -4.2e-217)
t_1
(if (<= y.im 5.8e-224)
(* t_0 (sin t_2))
(if (<= y.im 5.8e+183) t_1 t_3))))))
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 t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0);
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = pow(log(exp(pow(t_2, 3.0))), 0.3333333333333333);
double tmp;
if (y_46_im <= -1e+58) {
tmp = t_3;
} else if (y_46_im <= -4.2e-217) {
tmp = t_1;
} else if (y_46_im <= 5.8e-224) {
tmp = t_0 * sin(t_2);
} else if (y_46_im <= 5.8e+183) {
tmp = t_1;
} else {
tmp = t_3;
}
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 t_1 = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * t_0);
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = Math.pow(Math.log(Math.exp(Math.pow(t_2, 3.0))), 0.3333333333333333);
double tmp;
if (y_46_im <= -1e+58) {
tmp = t_3;
} else if (y_46_im <= -4.2e-217) {
tmp = t_1;
} else if (y_46_im <= 5.8e-224) {
tmp = t_0 * Math.sin(t_2);
} else if (y_46_im <= 5.8e+183) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_1 = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * t_0) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = math.pow(math.log(math.exp(math.pow(t_2, 3.0))), 0.3333333333333333) tmp = 0 if y_46_im <= -1e+58: tmp = t_3 elif y_46_im <= -4.2e-217: tmp = t_1 elif y_46_im <= 5.8e-224: tmp = t_0 * math.sin(t_2) elif y_46_im <= 5.8e+183: tmp = t_1 else: tmp = t_3 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 t_1 = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * t_0)) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = log(exp((t_2 ^ 3.0))) ^ 0.3333333333333333 tmp = 0.0 if (y_46_im <= -1e+58) tmp = t_3; elseif (y_46_im <= -4.2e-217) tmp = t_1; elseif (y_46_im <= 5.8e-224) tmp = Float64(t_0 * sin(t_2)); elseif (y_46_im <= 5.8e+183) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = 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; t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = log(exp((t_2 ^ 3.0))) ^ 0.3333333333333333; tmp = 0.0; if (y_46_im <= -1e+58) tmp = t_3; elseif (y_46_im <= -4.2e-217) tmp = t_1; elseif (y_46_im <= 5.8e-224) tmp = t_0 * sin(t_2); elseif (y_46_im <= 5.8e+183) tmp = t_1; else tmp = t_3; end tmp_2 = 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]}, Block[{t$95$1 = N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Power[N[Log[N[Exp[N[Power[t$95$2, 3.0], $MachinePrecision]], $MachinePrecision]], $MachinePrecision], 0.3333333333333333], $MachinePrecision]}, If[LessEqual[y$46$im, -1e+58], t$95$3, If[LessEqual[y$46$im, -4.2e-217], t$95$1, If[LessEqual[y$46$im, 5.8e-224], N[(t$95$0 * N[Sin[t$95$2], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 5.8e+183], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_1 := y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot t\_0\right)\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := {\log \left(e^{{t\_2}^{3}}\right)}^{0.3333333333333333}\\
\mathbf{if}\;y.im \leq -1 \cdot 10^{+58}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y.im \leq -4.2 \cdot 10^{-217}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 5.8 \cdot 10^{-224}:\\
\;\;\;\;t\_0 \cdot \sin t\_2\\
\mathbf{elif}\;y.im \leq 5.8 \cdot 10^{+183}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y.im < -9.99999999999999944e57 or 5.8000000000000001e183 < y.im Initial program 38.4%
fmm-def38.4%
hypot-define38.4%
distribute-rgt-neg-out38.4%
fma-define38.4%
hypot-define66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in y.im around 0 33.0%
unpow233.0%
unpow233.0%
hypot-undefine22.5%
Simplified22.5%
Taylor expanded in y.re around 0 3.1%
add-cbrt-cube23.1%
pow1/326.6%
pow326.6%
Applied egg-rr26.6%
add-log-exp42.6%
*-commutative42.6%
Applied egg-rr42.6%
if -9.99999999999999944e57 < y.im < -4.2e-217 or 5.8000000000000001e-224 < y.im < 5.8000000000000001e183Initial program 37.0%
Taylor expanded in y.re around 0 35.7%
*-commutative35.7%
unpow235.7%
unpow235.7%
hypot-undefine65.1%
Simplified65.1%
log1p-expm1-u65.1%
Applied egg-rr65.1%
Taylor expanded in y.im around 0 41.0%
unpow241.0%
unpow241.0%
hypot-undefine59.9%
unpow259.9%
unpow259.9%
hypot-undefine68.1%
Simplified68.1%
if -4.2e-217 < y.im < 5.8000000000000001e-224Initial program 49.9%
fmm-def49.9%
hypot-define49.9%
distribute-rgt-neg-out49.9%
fma-define49.9%
hypot-define90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in y.im around 0 65.4%
unpow265.4%
unpow265.4%
hypot-undefine79.7%
Simplified79.7%
Final simplification62.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1 (* y.im (* t_0 (pow (hypot x.im x.re) y.re)))))
(if (<= y.re -19500000.0)
t_1
(if (<= y.re 5.5)
(* (sin (* t_0 y.im)) (exp (* (atan2 x.im x.re) (- y.im))))
(if (<= y.re 5e+243)
t_1
(*
(sin (* y.re (atan2 x.im x.re)))
(pow
(* x.re (+ 1.0 (* 0.5 (* (/ x.im x.re) (/ x.im x.re)))))
y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = y_46_im * (t_0 * pow(hypot(x_46_im, x_46_re), y_46_re));
double tmp;
if (y_46_re <= -19500000.0) {
tmp = t_1;
} else if (y_46_re <= 5.5) {
tmp = sin((t_0 * y_46_im)) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 5e+243) {
tmp = t_1;
} else {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = y_46_im * (t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re));
double tmp;
if (y_46_re <= -19500000.0) {
tmp = t_1;
} else if (y_46_re <= 5.5) {
tmp = Math.sin((t_0 * y_46_im)) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im));
} else if (y_46_re <= 5e+243) {
tmp = t_1;
} else {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) t_1 = y_46_im * (t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re)) tmp = 0 if y_46_re <= -19500000.0: tmp = t_1 elif y_46_re <= 5.5: tmp = math.sin((t_0 * y_46_im)) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im)) elif y_46_re <= 5e+243: tmp = t_1 else: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(y_46_im * Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re))) tmp = 0.0 if (y_46_re <= -19500000.0) tmp = t_1; elseif (y_46_re <= 5.5) tmp = Float64(sin(Float64(t_0 * y_46_im)) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); elseif (y_46_re <= 5e+243) tmp = t_1; else tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (Float64(x_46_re * Float64(1.0 + Float64(0.5 * Float64(Float64(x_46_im / x_46_re) * Float64(x_46_im / x_46_re))))) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); t_1 = y_46_im * (t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); tmp = 0.0; if (y_46_re <= -19500000.0) tmp = t_1; elseif (y_46_re <= 5.5) tmp = sin((t_0 * y_46_im)) * exp((atan2(x_46_im, x_46_re) * -y_46_im)); elseif (y_46_re <= 5e+243) tmp = t_1; else tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * ((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -19500000.0], t$95$1, If[LessEqual[y$46$re, 5.5], N[(N[Sin[N[(t$95$0 * y$46$im), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5e+243], t$95$1, N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[(x$46$re * N[(1.0 + N[(0.5 * N[(N[(x$46$im / x$46$re), $MachinePrecision] * N[(x$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := y.im \cdot \left(t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\right)\\
\mathbf{if}\;y.re \leq -19500000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 5.5:\\
\;\;\;\;\sin \left(t\_0 \cdot y.im\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{+243}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re \cdot \left(1 + 0.5 \cdot \left(\frac{x.im}{x.re} \cdot \frac{x.im}{x.re}\right)\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.95e7 or 5.5 < y.re < 5.00000000000000037e243Initial program 34.7%
Taylor expanded in y.re around 0 37.2%
*-commutative37.2%
unpow237.2%
unpow237.2%
hypot-undefine80.2%
Simplified80.2%
log1p-expm1-u80.2%
Applied egg-rr80.2%
Taylor expanded in y.im around 0 48.9%
unpow248.9%
unpow248.9%
hypot-undefine74.5%
unpow274.5%
unpow274.5%
hypot-undefine74.5%
Simplified74.5%
if -1.95e7 < y.re < 5.5Initial program 44.4%
fmm-def44.4%
hypot-define44.4%
distribute-rgt-neg-out44.4%
fma-define44.4%
hypot-define84.2%
*-commutative84.2%
Simplified84.2%
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.6%
Simplified65.6%
if 5.00000000000000037e243 < y.re Initial program 38.5%
fmm-def38.5%
hypot-define38.5%
distribute-rgt-neg-out38.5%
fma-define38.5%
hypot-define69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in y.im around 0 76.9%
unpow276.9%
unpow276.9%
hypot-undefine76.9%
Simplified76.9%
Taylor expanded in x.re around inf 61.5%
pow261.5%
pow261.5%
times-frac76.9%
Applied egg-rr76.9%
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))
(t_1 (* y.im (* (log (hypot x.im x.re)) t_0)))
(t_2 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.im -2.1e+108)
(* t_2 (pow (+ x.im (* 0.5 (/ (pow x.re 2.0) x.im))) y.re))
(if (<= y.im -98000000000.0)
(*
t_2
(pow (* x.re (+ 1.0 (* 0.5 (* x.im (/ x.im (pow x.re 2.0)))))) y.re))
(if (<= y.im -2.6e-216)
t_1
(if (<= y.im 1.1e-222)
(* t_0 t_2)
(if (<= y.im 3.15e+187)
t_1
(*
(* y.im (log x.im))
(exp (- (* y.re (log x.im)) (* 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 = pow(hypot(x_46_im, x_46_re), y_46_re);
double t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0);
double t_2 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_im <= -2.1e+108) {
tmp = t_2 * pow((x_46_im + (0.5 * (pow(x_46_re, 2.0) / x_46_im))), y_46_re);
} else if (y_46_im <= -98000000000.0) {
tmp = t_2 * pow((x_46_re * (1.0 + (0.5 * (x_46_im * (x_46_im / pow(x_46_re, 2.0)))))), y_46_re);
} else if (y_46_im <= -2.6e-216) {
tmp = t_1;
} else if (y_46_im <= 1.1e-222) {
tmp = t_0 * t_2;
} else if (y_46_im <= 3.15e+187) {
tmp = t_1;
} else {
tmp = (y_46_im * log(x_46_im)) * exp(((y_46_re * log(x_46_im)) - (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.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_1 = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * t_0);
double t_2 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_im <= -2.1e+108) {
tmp = t_2 * Math.pow((x_46_im + (0.5 * (Math.pow(x_46_re, 2.0) / x_46_im))), y_46_re);
} else if (y_46_im <= -98000000000.0) {
tmp = t_2 * Math.pow((x_46_re * (1.0 + (0.5 * (x_46_im * (x_46_im / Math.pow(x_46_re, 2.0)))))), y_46_re);
} else if (y_46_im <= -2.6e-216) {
tmp = t_1;
} else if (y_46_im <= 1.1e-222) {
tmp = t_0 * t_2;
} else if (y_46_im <= 3.15e+187) {
tmp = t_1;
} else {
tmp = (y_46_im * Math.log(x_46_im)) * Math.exp(((y_46_re * Math.log(x_46_im)) - (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.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_1 = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * t_0) t_2 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_im <= -2.1e+108: tmp = t_2 * math.pow((x_46_im + (0.5 * (math.pow(x_46_re, 2.0) / x_46_im))), y_46_re) elif y_46_im <= -98000000000.0: tmp = t_2 * math.pow((x_46_re * (1.0 + (0.5 * (x_46_im * (x_46_im / math.pow(x_46_re, 2.0)))))), y_46_re) elif y_46_im <= -2.6e-216: tmp = t_1 elif y_46_im <= 1.1e-222: tmp = t_0 * t_2 elif y_46_im <= 3.15e+187: tmp = t_1 else: tmp = (y_46_im * math.log(x_46_im)) * math.exp(((y_46_re * math.log(x_46_im)) - (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 = hypot(x_46_im, x_46_re) ^ y_46_re t_1 = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * t_0)) t_2 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_im <= -2.1e+108) tmp = Float64(t_2 * (Float64(x_46_im + Float64(0.5 * Float64((x_46_re ^ 2.0) / x_46_im))) ^ y_46_re)); elseif (y_46_im <= -98000000000.0) tmp = Float64(t_2 * (Float64(x_46_re * Float64(1.0 + Float64(0.5 * Float64(x_46_im * Float64(x_46_im / (x_46_re ^ 2.0)))))) ^ y_46_re)); elseif (y_46_im <= -2.6e-216) tmp = t_1; elseif (y_46_im <= 1.1e-222) tmp = Float64(t_0 * t_2); elseif (y_46_im <= 3.15e+187) tmp = t_1; else tmp = Float64(Float64(y_46_im * log(x_46_im)) * exp(Float64(Float64(y_46_re * log(x_46_im)) - Float64(y_46_im * 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 = hypot(x_46_im, x_46_re) ^ y_46_re; t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0); t_2 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_im <= -2.1e+108) tmp = t_2 * ((x_46_im + (0.5 * ((x_46_re ^ 2.0) / x_46_im))) ^ y_46_re); elseif (y_46_im <= -98000000000.0) tmp = t_2 * ((x_46_re * (1.0 + (0.5 * (x_46_im * (x_46_im / (x_46_re ^ 2.0)))))) ^ y_46_re); elseif (y_46_im <= -2.6e-216) tmp = t_1; elseif (y_46_im <= 1.1e-222) tmp = t_0 * t_2; elseif (y_46_im <= 3.15e+187) tmp = t_1; else tmp = (y_46_im * log(x_46_im)) * exp(((y_46_re * log(x_46_im)) - (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[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -2.1e+108], N[(t$95$2 * N[Power[N[(x$46$im + N[(0.5 * N[(N[Power[x$46$re, 2.0], $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -98000000000.0], N[(t$95$2 * N[Power[N[(x$46$re * N[(1.0 + N[(0.5 * N[(x$46$im * N[(x$46$im / N[Power[x$46$re, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -2.6e-216], t$95$1, If[LessEqual[y$46$im, 1.1e-222], N[(t$95$0 * t$95$2), $MachinePrecision], If[LessEqual[y$46$im, 3.15e+187], t$95$1, N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] * N[Exp[N[(N[(y$46$re * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_1 := y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot t\_0\right)\\
t_2 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.im \leq -2.1 \cdot 10^{+108}:\\
\;\;\;\;t\_2 \cdot {\left(x.im + 0.5 \cdot \frac{{x.re}^{2}}{x.im}\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq -98000000000:\\
\;\;\;\;t\_2 \cdot {\left(x.re \cdot \left(1 + 0.5 \cdot \left(x.im \cdot \frac{x.im}{{x.re}^{2}}\right)\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq -2.6 \cdot 10^{-216}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.1 \cdot 10^{-222}:\\
\;\;\;\;t\_0 \cdot t\_2\\
\mathbf{elif}\;y.im \leq 3.15 \cdot 10^{+187}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(y.im \cdot \log x.im\right) \cdot e^{y.re \cdot \log x.im - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
\end{array}
\end{array}
if y.im < -2.1000000000000001e108Initial program 31.6%
fmm-def31.6%
hypot-define31.6%
distribute-rgt-neg-out31.6%
fma-define31.6%
hypot-define58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in y.im around 0 41.2%
unpow241.2%
unpow241.2%
hypot-undefine28.6%
Simplified28.6%
Taylor expanded in x.re around 0 38.5%
if -2.1000000000000001e108 < y.im < -9.8e10Initial program 31.3%
fmm-def31.3%
hypot-define31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in y.im around 0 45.7%
unpow245.7%
unpow245.7%
hypot-undefine28.8%
Simplified28.8%
Taylor expanded in x.re around inf 56.5%
pow256.5%
*-un-lft-identity56.5%
pow256.5%
times-frac63.0%
pow263.0%
Applied egg-rr63.0%
if -9.8e10 < y.im < -2.5999999999999999e-216 or 1.1e-222 < y.im < 3.15000000000000003e187Initial program 35.6%
Taylor expanded in y.re around 0 34.2%
*-commutative34.2%
unpow234.2%
unpow234.2%
hypot-undefine63.5%
Simplified63.5%
log1p-expm1-u63.5%
Applied egg-rr63.5%
Taylor expanded in y.im around 0 42.0%
unpow242.0%
unpow242.0%
hypot-undefine60.3%
unpow260.3%
unpow260.3%
hypot-undefine68.8%
Simplified68.8%
if -2.5999999999999999e-216 < y.im < 1.1e-222Initial program 49.9%
fmm-def49.9%
hypot-define49.9%
distribute-rgt-neg-out49.9%
fma-define49.9%
hypot-define90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in y.im around 0 65.4%
unpow265.4%
unpow265.4%
hypot-undefine79.7%
Simplified79.7%
if 3.15000000000000003e187 < y.im Initial program 63.1%
Taylor expanded in y.re around 0 63.1%
*-commutative63.1%
unpow263.1%
unpow263.1%
hypot-undefine75.8%
Simplified75.8%
log1p-expm1-u75.8%
Applied egg-rr75.8%
Taylor expanded in x.re around 0 42.4%
*-commutative42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in y.im around 0 41.7%
Final simplification62.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re))
(t_1 (* y.im (* (log (hypot x.im x.re)) t_0)))
(t_2 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.im -2.3e+108)
(* t_2 (pow (+ x.im (* 0.5 (/ (pow x.re 2.0) x.im))) y.re))
(if (<= y.im -450.0)
(*
t_2
(pow (* x.re (+ 1.0 (* 0.5 (* (/ x.im x.re) (/ x.im x.re))))) y.re))
(if (<= y.im -3e-216)
t_1
(if (<= y.im 1.5e-220)
(* t_0 t_2)
(if (<= y.im 5.4e+187)
t_1
(*
(* y.im (log x.im))
(exp (- (* y.re (log x.im)) (* 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 = pow(hypot(x_46_im, x_46_re), y_46_re);
double t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0);
double t_2 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_im <= -2.3e+108) {
tmp = t_2 * pow((x_46_im + (0.5 * (pow(x_46_re, 2.0) / x_46_im))), y_46_re);
} else if (y_46_im <= -450.0) {
tmp = t_2 * pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else if (y_46_im <= -3e-216) {
tmp = t_1;
} else if (y_46_im <= 1.5e-220) {
tmp = t_0 * t_2;
} else if (y_46_im <= 5.4e+187) {
tmp = t_1;
} else {
tmp = (y_46_im * log(x_46_im)) * exp(((y_46_re * log(x_46_im)) - (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.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_1 = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * t_0);
double t_2 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_im <= -2.3e+108) {
tmp = t_2 * Math.pow((x_46_im + (0.5 * (Math.pow(x_46_re, 2.0) / x_46_im))), y_46_re);
} else if (y_46_im <= -450.0) {
tmp = t_2 * Math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else if (y_46_im <= -3e-216) {
tmp = t_1;
} else if (y_46_im <= 1.5e-220) {
tmp = t_0 * t_2;
} else if (y_46_im <= 5.4e+187) {
tmp = t_1;
} else {
tmp = (y_46_im * Math.log(x_46_im)) * Math.exp(((y_46_re * Math.log(x_46_im)) - (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.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_1 = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * t_0) t_2 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_im <= -2.3e+108: tmp = t_2 * math.pow((x_46_im + (0.5 * (math.pow(x_46_re, 2.0) / x_46_im))), y_46_re) elif y_46_im <= -450.0: tmp = t_2 * math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re) elif y_46_im <= -3e-216: tmp = t_1 elif y_46_im <= 1.5e-220: tmp = t_0 * t_2 elif y_46_im <= 5.4e+187: tmp = t_1 else: tmp = (y_46_im * math.log(x_46_im)) * math.exp(((y_46_re * math.log(x_46_im)) - (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 = hypot(x_46_im, x_46_re) ^ y_46_re t_1 = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * t_0)) t_2 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_im <= -2.3e+108) tmp = Float64(t_2 * (Float64(x_46_im + Float64(0.5 * Float64((x_46_re ^ 2.0) / x_46_im))) ^ y_46_re)); elseif (y_46_im <= -450.0) tmp = Float64(t_2 * (Float64(x_46_re * Float64(1.0 + Float64(0.5 * Float64(Float64(x_46_im / x_46_re) * Float64(x_46_im / x_46_re))))) ^ y_46_re)); elseif (y_46_im <= -3e-216) tmp = t_1; elseif (y_46_im <= 1.5e-220) tmp = Float64(t_0 * t_2); elseif (y_46_im <= 5.4e+187) tmp = t_1; else tmp = Float64(Float64(y_46_im * log(x_46_im)) * exp(Float64(Float64(y_46_re * log(x_46_im)) - Float64(y_46_im * 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 = hypot(x_46_im, x_46_re) ^ y_46_re; t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0); t_2 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_im <= -2.3e+108) tmp = t_2 * ((x_46_im + (0.5 * ((x_46_re ^ 2.0) / x_46_im))) ^ y_46_re); elseif (y_46_im <= -450.0) tmp = t_2 * ((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))) ^ y_46_re); elseif (y_46_im <= -3e-216) tmp = t_1; elseif (y_46_im <= 1.5e-220) tmp = t_0 * t_2; elseif (y_46_im <= 5.4e+187) tmp = t_1; else tmp = (y_46_im * log(x_46_im)) * exp(((y_46_re * log(x_46_im)) - (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[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -2.3e+108], N[(t$95$2 * N[Power[N[(x$46$im + N[(0.5 * N[(N[Power[x$46$re, 2.0], $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -450.0], N[(t$95$2 * N[Power[N[(x$46$re * N[(1.0 + N[(0.5 * N[(N[(x$46$im / x$46$re), $MachinePrecision] * N[(x$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -3e-216], t$95$1, If[LessEqual[y$46$im, 1.5e-220], N[(t$95$0 * t$95$2), $MachinePrecision], If[LessEqual[y$46$im, 5.4e+187], t$95$1, N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] * N[Exp[N[(N[(y$46$re * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_1 := y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot t\_0\right)\\
t_2 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.im \leq -2.3 \cdot 10^{+108}:\\
\;\;\;\;t\_2 \cdot {\left(x.im + 0.5 \cdot \frac{{x.re}^{2}}{x.im}\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq -450:\\
\;\;\;\;t\_2 \cdot {\left(x.re \cdot \left(1 + 0.5 \cdot \left(\frac{x.im}{x.re} \cdot \frac{x.im}{x.re}\right)\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq -3 \cdot 10^{-216}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.5 \cdot 10^{-220}:\\
\;\;\;\;t\_0 \cdot t\_2\\
\mathbf{elif}\;y.im \leq 5.4 \cdot 10^{+187}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(y.im \cdot \log x.im\right) \cdot e^{y.re \cdot \log x.im - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
\end{array}
\end{array}
if y.im < -2.2999999999999999e108Initial program 31.6%
fmm-def31.6%
hypot-define31.6%
distribute-rgt-neg-out31.6%
fma-define31.6%
hypot-define58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in y.im around 0 41.2%
unpow241.2%
unpow241.2%
hypot-undefine28.6%
Simplified28.6%
Taylor expanded in x.re around 0 38.5%
if -2.2999999999999999e108 < y.im < -450Initial program 31.3%
fmm-def31.3%
hypot-define31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in y.im around 0 45.7%
unpow245.7%
unpow245.7%
hypot-undefine28.8%
Simplified28.8%
Taylor expanded in x.re around inf 56.5%
pow256.5%
pow256.5%
times-frac56.6%
Applied egg-rr56.6%
if -450 < y.im < -3.00000000000000013e-216 or 1.50000000000000009e-220 < y.im < 5.40000000000000016e187Initial program 35.8%
Taylor expanded in y.re around 0 34.5%
*-commutative34.5%
unpow234.5%
unpow234.5%
hypot-undefine64.0%
Simplified64.0%
log1p-expm1-u64.0%
Applied egg-rr64.0%
Taylor expanded in y.im around 0 42.4%
unpow242.4%
unpow242.4%
hypot-undefine60.7%
unpow260.7%
unpow260.7%
hypot-undefine69.4%
Simplified69.4%
if -3.00000000000000013e-216 < y.im < 1.50000000000000009e-220Initial program 48.7%
fmm-def48.7%
hypot-define48.7%
distribute-rgt-neg-out48.7%
fma-define48.7%
hypot-define88.2%
*-commutative88.2%
Simplified88.2%
Taylor expanded in y.im around 0 63.9%
unpow263.9%
unpow263.9%
hypot-undefine77.8%
Simplified77.8%
if 5.40000000000000016e187 < y.im Initial program 63.1%
Taylor expanded in y.re around 0 63.1%
*-commutative63.1%
unpow263.1%
unpow263.1%
hypot-undefine75.8%
Simplified75.8%
log1p-expm1-u75.8%
Applied egg-rr75.8%
Taylor expanded in x.re around 0 42.4%
*-commutative42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in y.im around 0 41.7%
Final simplification62.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re))
(t_1 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.im -190000000.0)
(*
t_1
(pow (* x.re (+ 1.0 (* 0.5 (* (/ x.im x.re) (/ x.im x.re))))) y.re))
(if (or (<= y.im -1.65e-216) (not (<= y.im 1.9e-225)))
(* y.im (* (log (hypot x.im x.re)) t_0))
(* 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 = pow(hypot(x_46_im, x_46_re), y_46_re);
double t_1 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_im <= -190000000.0) {
tmp = t_1 * pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else if ((y_46_im <= -1.65e-216) || !(y_46_im <= 1.9e-225)) {
tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0);
} else {
tmp = t_0 * 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.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_1 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_im <= -190000000.0) {
tmp = t_1 * Math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else if ((y_46_im <= -1.65e-216) || !(y_46_im <= 1.9e-225)) {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * t_0);
} else {
tmp = t_0 * t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_1 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_im <= -190000000.0: tmp = t_1 * math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re) elif (y_46_im <= -1.65e-216) or not (y_46_im <= 1.9e-225): tmp = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * t_0) else: tmp = t_0 * t_1 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 t_1 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_im <= -190000000.0) tmp = Float64(t_1 * (Float64(x_46_re * Float64(1.0 + Float64(0.5 * Float64(Float64(x_46_im / x_46_re) * Float64(x_46_im / x_46_re))))) ^ y_46_re)); elseif ((y_46_im <= -1.65e-216) || !(y_46_im <= 1.9e-225)) tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * t_0)); else tmp = Float64(t_0 * t_1); end return tmp end
function tmp_2 = 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; t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_im <= -190000000.0) tmp = t_1 * ((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))) ^ y_46_re); elseif ((y_46_im <= -1.65e-216) || ~((y_46_im <= 1.9e-225))) tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * t_0); else tmp = t_0 * 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[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -190000000.0], N[(t$95$1 * N[Power[N[(x$46$re * N[(1.0 + N[(0.5 * N[(N[(x$46$im / x$46$re), $MachinePrecision] * N[(x$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y$46$im, -1.65e-216], N[Not[LessEqual[y$46$im, 1.9e-225]], $MachinePrecision]], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_1 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.im \leq -190000000:\\
\;\;\;\;t\_1 \cdot {\left(x.re \cdot \left(1 + 0.5 \cdot \left(\frac{x.im}{x.re} \cdot \frac{x.im}{x.re}\right)\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq -1.65 \cdot 10^{-216} \lor \neg \left(y.im \leq 1.9 \cdot 10^{-225}\right):\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot t\_1\\
\end{array}
\end{array}
if y.im < -1.9e8Initial program 31.5%
fmm-def31.5%
hypot-define31.5%
distribute-rgt-neg-out31.5%
fma-define31.5%
hypot-define62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y.im around 0 42.4%
unpow242.4%
unpow242.4%
hypot-undefine28.6%
Simplified28.6%
Taylor expanded in x.re around inf 28.5%
pow228.5%
pow228.5%
times-frac35.1%
Applied egg-rr35.1%
if -1.9e8 < y.im < -1.64999999999999984e-216 or 1.9000000000000001e-225 < y.im Initial program 39.9%
Taylor expanded in y.re around 0 38.8%
*-commutative38.8%
unpow238.8%
unpow238.8%
hypot-undefine65.4%
Simplified65.4%
log1p-expm1-u65.4%
Applied egg-rr65.4%
Taylor expanded in y.im around 0 38.9%
unpow238.9%
unpow238.9%
hypot-undefine54.3%
unpow254.3%
unpow254.3%
hypot-undefine61.5%
Simplified61.5%
if -1.64999999999999984e-216 < y.im < 1.9000000000000001e-225Initial program 49.9%
fmm-def49.9%
hypot-define49.9%
distribute-rgt-neg-out49.9%
fma-define49.9%
hypot-define90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in y.im around 0 65.4%
unpow265.4%
unpow265.4%
hypot-undefine79.7%
Simplified79.7%
Final simplification58.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= x.im 1.75e+19)
(* y.im (* (log (hypot x.im x.re)) (pow (hypot x.im x.re) y.re)))
(*
(* y.im (log x.im))
(exp (- (* y.re (log x.im)) (* 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 (x_46_im <= 1.75e+19) {
tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re));
} else {
tmp = (y_46_im * log(x_46_im)) * exp(((y_46_re * log(x_46_im)) - (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 (x_46_im <= 1.75e+19) {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re));
} else {
tmp = (y_46_im * Math.log(x_46_im)) * Math.exp(((y_46_re * Math.log(x_46_im)) - (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 x_46_im <= 1.75e+19: tmp = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re)) else: tmp = (y_46_im * math.log(x_46_im)) * math.exp(((y_46_re * math.log(x_46_im)) - (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 (x_46_im <= 1.75e+19) tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re))); else tmp = Float64(Float64(y_46_im * log(x_46_im)) * exp(Float64(Float64(y_46_re * log(x_46_im)) - Float64(y_46_im * 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 (x_46_im <= 1.75e+19) tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = (y_46_im * log(x_46_im)) * exp(((y_46_re * log(x_46_im)) - (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[LessEqual[x$46$im, 1.75e+19], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] * N[Exp[N[(N[(y$46$re * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq 1.75 \cdot 10^{+19}:\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y.im \cdot \log x.im\right) \cdot e^{y.re \cdot \log x.im - y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
\end{array}
\end{array}
if x.im < 1.75e19Initial program 43.0%
Taylor expanded in y.re around 0 38.1%
*-commutative38.1%
unpow238.1%
unpow238.1%
hypot-undefine62.1%
Simplified62.1%
log1p-expm1-u62.1%
Applied egg-rr62.1%
Taylor expanded in y.im around 0 35.8%
unpow235.8%
unpow235.8%
hypot-undefine50.9%
unpow250.9%
unpow250.9%
hypot-undefine52.5%
Simplified52.5%
if 1.75e19 < x.im Initial program 28.3%
Taylor expanded in y.re around 0 28.5%
*-commutative28.5%
unpow228.5%
unpow228.5%
hypot-undefine59.1%
Simplified59.1%
log1p-expm1-u59.1%
Applied egg-rr59.1%
Taylor expanded in x.re around 0 71.8%
*-commutative71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in y.im around 0 66.2%
Final simplification55.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -620000000.0)
(*
(sin (* y.re (atan2 x.im x.re)))
(pow (* x.re (+ 1.0 (* 0.5 (* (/ x.im x.re) (/ x.im x.re))))) y.re))
(* y.im (* (log (hypot x.im x.re)) (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= -620000000.0) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else {
tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= -620000000.0) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= -620000000.0: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re) else: tmp = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_im <= -620000000.0) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (Float64(x_46_re * Float64(1.0 + Float64(0.5 * Float64(Float64(x_46_im / x_46_re) * Float64(x_46_im / x_46_re))))) ^ y_46_re)); else tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_im <= -620000000.0) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * ((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))) ^ y_46_re); else tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$im, -620000000.0], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[(x$46$re * N[(1.0 + N[(0.5 * N[(N[(x$46$im / x$46$re), $MachinePrecision] * N[(x$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -620000000:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re \cdot \left(1 + 0.5 \cdot \left(\frac{x.im}{x.re} \cdot \frac{x.im}{x.re}\right)\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\right)\\
\end{array}
\end{array}
if y.im < -6.2e8Initial program 31.5%
fmm-def31.5%
hypot-define31.5%
distribute-rgt-neg-out31.5%
fma-define31.5%
hypot-define62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y.im around 0 42.4%
unpow242.4%
unpow242.4%
hypot-undefine28.6%
Simplified28.6%
Taylor expanded in x.re around inf 28.5%
pow228.5%
pow228.5%
times-frac35.1%
Applied egg-rr35.1%
if -6.2e8 < y.im Initial program 42.0%
Taylor expanded in y.re around 0 36.7%
*-commutative36.7%
unpow236.7%
unpow236.7%
hypot-undefine61.4%
Simplified61.4%
log1p-expm1-u61.4%
Applied egg-rr61.4%
Taylor expanded in y.im around 0 39.4%
unpow239.4%
unpow239.4%
hypot-undefine52.6%
unpow252.6%
unpow252.6%
hypot-undefine58.8%
Simplified58.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= x.re -1.3e-5)
(* t_0 (pow (- x.re) y.re))
(if (<= x.re -2.8e-260)
(* t_0 (pow x.im y.re))
(if (<= x.re 51.0)
(*
t_0
(pow (* x.re (+ 1.0 (* 0.5 (* (/ x.im x.re) (/ x.im x.re))))) y.re))
(* y.im (* (log (hypot x.im 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 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -1.3e-5) {
tmp = t_0 * pow(-x_46_re, y_46_re);
} else if (x_46_re <= -2.8e-260) {
tmp = t_0 * pow(x_46_im, y_46_re);
} else if (x_46_re <= 51.0) {
tmp = t_0 * pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else {
tmp = y_46_im * (log(hypot(x_46_im, 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 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -1.3e-5) {
tmp = t_0 * Math.pow(-x_46_re, y_46_re);
} else if (x_46_re <= -2.8e-260) {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
} else if (x_46_re <= 51.0) {
tmp = t_0 * Math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re);
} else {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, 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 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if x_46_re <= -1.3e-5: tmp = t_0 * math.pow(-x_46_re, y_46_re) elif x_46_re <= -2.8e-260: tmp = t_0 * math.pow(x_46_im, y_46_re) elif x_46_re <= 51.0: tmp = t_0 * math.pow((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))), y_46_re) else: tmp = y_46_im * (math.log(math.hypot(x_46_im, 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 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (x_46_re <= -1.3e-5) tmp = Float64(t_0 * (Float64(-x_46_re) ^ y_46_re)); elseif (x_46_re <= -2.8e-260) tmp = Float64(t_0 * (x_46_im ^ y_46_re)); elseif (x_46_re <= 51.0) tmp = Float64(t_0 * (Float64(x_46_re * Float64(1.0 + Float64(0.5 * Float64(Float64(x_46_im / x_46_re) * Float64(x_46_im / x_46_re))))) ^ y_46_re)); else tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, 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 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (x_46_re <= -1.3e-5) tmp = t_0 * (-x_46_re ^ y_46_re); elseif (x_46_re <= -2.8e-260) tmp = t_0 * (x_46_im ^ y_46_re); elseif (x_46_re <= 51.0) tmp = t_0 * ((x_46_re * (1.0 + (0.5 * ((x_46_im / x_46_re) * (x_46_im / x_46_re))))) ^ y_46_re); else tmp = y_46_im * (log(hypot(x_46_im, 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[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1.3e-5], N[(t$95$0 * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, -2.8e-260], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 51.0], N[(t$95$0 * N[Power[N[(x$46$re * N[(1.0 + N[(0.5 * N[(N[(x$46$im / x$46$re), $MachinePrecision] * N[(x$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;x.re \leq -1.3 \cdot 10^{-5}:\\
\;\;\;\;t\_0 \cdot {\left(-x.re\right)}^{y.re}\\
\mathbf{elif}\;x.re \leq -2.8 \cdot 10^{-260}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;x.re \leq 51:\\
\;\;\;\;t\_0 \cdot {\left(x.re \cdot \left(1 + 0.5 \cdot \left(\frac{x.im}{x.re} \cdot \frac{x.im}{x.re}\right)\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {x.re}^{y.re}\right)\\
\end{array}
\end{array}
if x.re < -1.29999999999999992e-5Initial program 29.4%
fmm-def29.4%
hypot-define29.4%
distribute-rgt-neg-out29.4%
fma-define29.4%
hypot-define75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in y.im around 0 44.0%
unpow244.0%
unpow244.0%
hypot-undefine41.0%
Simplified41.0%
Taylor expanded in x.re around -inf 41.0%
mul-1-neg41.0%
Simplified41.0%
if -1.29999999999999992e-5 < x.re < -2.7999999999999998e-260Initial program 56.6%
fmm-def56.6%
hypot-define56.6%
distribute-rgt-neg-out56.6%
fma-define56.6%
hypot-define86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in y.im around 0 43.1%
unpow243.1%
unpow243.1%
hypot-undefine44.9%
Simplified44.9%
Taylor expanded in x.im around inf 39.8%
if -2.7999999999999998e-260 < x.re < 51Initial program 42.0%
fmm-def42.0%
hypot-define42.0%
distribute-rgt-neg-out42.0%
fma-define42.0%
hypot-define81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in y.im around 0 44.7%
unpow244.7%
unpow244.7%
hypot-undefine46.7%
Simplified46.7%
Taylor expanded in x.re around inf 43.8%
pow243.8%
pow243.8%
times-frac51.4%
Applied egg-rr51.4%
if 51 < x.re Initial program 31.7%
Taylor expanded in y.re around 0 29.1%
*-commutative29.1%
unpow229.1%
unpow229.1%
hypot-undefine58.8%
Simplified58.8%
Taylor expanded in x.re around inf 69.1%
mul-1-neg69.1%
log-rec69.1%
remove-double-neg69.1%
Simplified69.1%
expm1-log1p-u74.5%
expm1-undefine73.1%
Applied egg-rr73.1%
expm1-define74.5%
Simplified74.5%
Taylor expanded in y.im around 0 45.1%
unpow245.1%
unpow245.1%
hypot-undefine67.4%
Simplified67.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (* y.re (atan2 x.im x.re)) 3.0))
(t_1 (* y.im (* (log (hypot x.im x.re)) (pow x.re y.re)))))
(if (<= y.re -19500000.0)
t_1
(if (<= y.re 1.3e-282)
(cbrt t_0)
(if (<= y.re 6e+237) t_1 (pow t_0 0.3333333333333333))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow((y_46_re * atan2(x_46_im, x_46_re)), 3.0);
double t_1 = y_46_im * (log(hypot(x_46_im, x_46_re)) * pow(x_46_re, y_46_re));
double tmp;
if (y_46_re <= -19500000.0) {
tmp = t_1;
} else if (y_46_re <= 1.3e-282) {
tmp = cbrt(t_0);
} else if (y_46_re <= 6e+237) {
tmp = t_1;
} else {
tmp = pow(t_0, 0.3333333333333333);
}
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((y_46_re * Math.atan2(x_46_im, x_46_re)), 3.0);
double t_1 = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.pow(x_46_re, y_46_re));
double tmp;
if (y_46_re <= -19500000.0) {
tmp = t_1;
} else if (y_46_re <= 1.3e-282) {
tmp = Math.cbrt(t_0);
} else if (y_46_re <= 6e+237) {
tmp = t_1;
} else {
tmp = Math.pow(t_0, 0.3333333333333333);
}
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)) ^ 3.0 t_1 = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * (x_46_re ^ y_46_re))) tmp = 0.0 if (y_46_re <= -19500000.0) tmp = t_1; elseif (y_46_re <= 1.3e-282) tmp = cbrt(t_0); elseif (y_46_re <= 6e+237) tmp = t_1; else tmp = t_0 ^ 0.3333333333333333; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Power[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -19500000.0], t$95$1, If[LessEqual[y$46$re, 1.3e-282], N[Power[t$95$0, 1/3], $MachinePrecision], If[LessEqual[y$46$re, 6e+237], t$95$1, N[Power[t$95$0, 0.3333333333333333], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)}^{3}\\
t_1 := y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {x.re}^{y.re}\right)\\
\mathbf{if}\;y.re \leq -19500000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 1.3 \cdot 10^{-282}:\\
\;\;\;\;\sqrt[3]{t\_0}\\
\mathbf{elif}\;y.re \leq 6 \cdot 10^{+237}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;{t\_0}^{0.3333333333333333}\\
\end{array}
\end{array}
if y.re < -1.95e7 or 1.30000000000000006e-282 < y.re < 6e237Initial program 37.9%
Taylor expanded in y.re around 0 34.7%
*-commutative34.7%
unpow234.7%
unpow234.7%
hypot-undefine65.9%
Simplified65.9%
Taylor expanded in x.re around inf 33.1%
mul-1-neg33.1%
log-rec33.1%
remove-double-neg33.1%
Simplified33.1%
expm1-log1p-u26.3%
expm1-undefine26.8%
Applied egg-rr26.8%
expm1-define26.3%
Simplified26.3%
Taylor expanded in y.im around 0 29.8%
unpow229.8%
unpow229.8%
hypot-undefine46.2%
Simplified46.2%
if -1.95e7 < y.re < 1.30000000000000006e-282Initial program 44.7%
fmm-def44.7%
hypot-define44.7%
distribute-rgt-neg-out44.7%
fma-define44.7%
hypot-define84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in y.im around 0 18.1%
unpow218.1%
unpow218.1%
hypot-undefine20.1%
Simplified20.1%
Taylor expanded in y.re around 0 16.3%
add-cbrt-cube29.1%
pow329.1%
Applied egg-rr29.1%
if 6e237 < y.re Initial program 35.3%
fmm-def35.3%
hypot-define35.3%
distribute-rgt-neg-out35.3%
fma-define35.3%
hypot-define64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in y.im around 0 64.8%
unpow264.8%
unpow264.8%
hypot-undefine64.8%
Simplified64.8%
Taylor expanded in y.re around 0 3.6%
add-cbrt-cube47.5%
pow1/359.2%
pow359.2%
Applied egg-rr59.2%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= x.re -2.7e+51) (not (<= x.re 7e-43))) (* y.im (* (log (hypot x.im x.re)) (pow x.re y.re))) (* (sin (* y.re (atan2 x.im x.re))) (pow x.im y.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((x_46_re <= -2.7e+51) || !(x_46_re <= 7e-43)) {
tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * pow(x_46_re, y_46_re));
} else {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((x_46_re <= -2.7e+51) || !(x_46_re <= 7e-43)) {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.pow(x_46_re, y_46_re));
} else {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (x_46_re <= -2.7e+51) or not (x_46_re <= 7e-43): tmp = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * math.pow(x_46_re, y_46_re)) else: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((x_46_re <= -2.7e+51) || !(x_46_re <= 7e-43)) tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * (x_46_re ^ y_46_re))); else tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((x_46_re <= -2.7e+51) || ~((x_46_re <= 7e-43))) tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * (x_46_re ^ y_46_re)); else tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (x_46_im ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[x$46$re, -2.7e+51], N[Not[LessEqual[x$46$re, 7e-43]], $MachinePrecision]], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq -2.7 \cdot 10^{+51} \lor \neg \left(x.re \leq 7 \cdot 10^{-43}\right):\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {x.re}^{y.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.re < -2.69999999999999992e51 or 6.99999999999999994e-43 < x.re Initial program 28.1%
Taylor expanded in y.re around 0 25.2%
*-commutative25.2%
unpow225.2%
unpow225.2%
hypot-undefine56.2%
Simplified56.2%
Taylor expanded in x.re around inf 41.0%
mul-1-neg41.0%
log-rec41.0%
remove-double-neg41.0%
Simplified41.0%
expm1-log1p-u42.5%
expm1-undefine41.7%
Applied egg-rr41.7%
expm1-define42.5%
Simplified42.5%
Taylor expanded in y.im around 0 34.8%
unpow234.8%
unpow234.8%
hypot-undefine52.5%
Simplified52.5%
if -2.69999999999999992e51 < x.re < 6.99999999999999994e-43Initial program 51.5%
fmm-def51.5%
hypot-define51.5%
distribute-rgt-neg-out51.5%
fma-define51.5%
hypot-define85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y.im around 0 43.2%
unpow243.2%
unpow243.2%
hypot-undefine45.2%
Simplified45.2%
Taylor expanded in x.im around inf 37.2%
Final simplification45.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= x.re -0.0037)
(* t_0 (pow (- x.re) y.re))
(if (<= x.re 4.1e-44)
(* t_0 (pow x.im y.re))
(* y.im (* (log (hypot x.im 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 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -0.0037) {
tmp = t_0 * pow(-x_46_re, y_46_re);
} else if (x_46_re <= 4.1e-44) {
tmp = t_0 * pow(x_46_im, y_46_re);
} else {
tmp = y_46_im * (log(hypot(x_46_im, 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 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -0.0037) {
tmp = t_0 * Math.pow(-x_46_re, y_46_re);
} else if (x_46_re <= 4.1e-44) {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
} else {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, 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 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if x_46_re <= -0.0037: tmp = t_0 * math.pow(-x_46_re, y_46_re) elif x_46_re <= 4.1e-44: tmp = t_0 * math.pow(x_46_im, y_46_re) else: tmp = y_46_im * (math.log(math.hypot(x_46_im, 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 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (x_46_re <= -0.0037) tmp = Float64(t_0 * (Float64(-x_46_re) ^ y_46_re)); elseif (x_46_re <= 4.1e-44) tmp = Float64(t_0 * (x_46_im ^ y_46_re)); else tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, 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 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (x_46_re <= -0.0037) tmp = t_0 * (-x_46_re ^ y_46_re); elseif (x_46_re <= 4.1e-44) tmp = t_0 * (x_46_im ^ y_46_re); else tmp = y_46_im * (log(hypot(x_46_im, 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[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -0.0037], N[(t$95$0 * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 4.1e-44], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;x.re \leq -0.0037:\\
\;\;\;\;t\_0 \cdot {\left(-x.re\right)}^{y.re}\\
\mathbf{elif}\;x.re \leq 4.1 \cdot 10^{-44}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {x.re}^{y.re}\right)\\
\end{array}
\end{array}
if x.re < -0.0037000000000000002Initial program 29.4%
fmm-def29.4%
hypot-define29.4%
distribute-rgt-neg-out29.4%
fma-define29.4%
hypot-define75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in y.im around 0 44.0%
unpow244.0%
unpow244.0%
hypot-undefine41.0%
Simplified41.0%
Taylor expanded in x.re around -inf 41.0%
mul-1-neg41.0%
Simplified41.0%
if -0.0037000000000000002 < x.re < 4.09999999999999992e-44Initial program 49.5%
fmm-def49.5%
hypot-define49.5%
distribute-rgt-neg-out49.5%
fma-define49.5%
hypot-define84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in y.im around 0 44.7%
unpow244.7%
unpow244.7%
hypot-undefine46.8%
Simplified46.8%
Taylor expanded in x.im around inf 39.2%
if 4.09999999999999992e-44 < x.re Initial program 32.7%
Taylor expanded in y.re around 0 29.1%
*-commutative29.1%
unpow229.1%
unpow229.1%
hypot-undefine56.1%
Simplified56.1%
Taylor expanded in x.re around inf 68.1%
mul-1-neg68.1%
log-rec68.1%
remove-double-neg68.1%
Simplified68.1%
expm1-log1p-u70.4%
expm1-undefine69.1%
Applied egg-rr69.1%
expm1-define70.4%
Simplified70.4%
Taylor expanded in y.im around 0 41.3%
unpow241.3%
unpow241.3%
hypot-undefine62.9%
Simplified62.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= x.im -31000000000.0)
(* t_0 (pow (- x.im) y.re))
(if (<= x.im 0.056)
(* y.im (* (log (hypot x.im x.re)) (pow x.re y.re)))
(* t_0 (pow x.im y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_im <= -31000000000.0) {
tmp = t_0 * pow(-x_46_im, y_46_re);
} else if (x_46_im <= 0.056) {
tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * pow(x_46_re, y_46_re));
} else {
tmp = t_0 * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_im <= -31000000000.0) {
tmp = t_0 * Math.pow(-x_46_im, y_46_re);
} else if (x_46_im <= 0.056) {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.pow(x_46_re, y_46_re));
} else {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if x_46_im <= -31000000000.0: tmp = t_0 * math.pow(-x_46_im, y_46_re) elif x_46_im <= 0.056: tmp = y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * math.pow(x_46_re, y_46_re)) else: tmp = t_0 * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (x_46_im <= -31000000000.0) tmp = Float64(t_0 * (Float64(-x_46_im) ^ y_46_re)); elseif (x_46_im <= 0.056) tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * (x_46_re ^ y_46_re))); else tmp = Float64(t_0 * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (x_46_im <= -31000000000.0) tmp = t_0 * (-x_46_im ^ y_46_re); elseif (x_46_im <= 0.056) tmp = y_46_im * (log(hypot(x_46_im, x_46_re)) * (x_46_re ^ y_46_re)); else tmp = t_0 * (x_46_im ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$im, -31000000000.0], N[(t$95$0 * N[Power[(-x$46$im), y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 0.056], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;x.im \leq -31000000000:\\
\;\;\;\;t\_0 \cdot {\left(-x.im\right)}^{y.re}\\
\mathbf{elif}\;x.im \leq 0.056:\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {x.re}^{y.re}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -3.1e10Initial program 30.9%
fmm-def30.9%
hypot-define30.9%
distribute-rgt-neg-out30.9%
fma-define30.9%
hypot-define83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in y.im around 0 54.3%
unpow254.3%
unpow254.3%
hypot-undefine51.5%
Simplified51.5%
Taylor expanded in x.im around -inf 51.5%
mul-1-neg51.5%
Simplified51.5%
if -3.1e10 < x.im < 0.0560000000000000012Initial program 47.2%
Taylor expanded in y.re around 0 42.2%
*-commutative42.2%
unpow242.2%
unpow242.2%
hypot-undefine62.1%
Simplified62.1%
Taylor expanded in x.re around inf 36.0%
mul-1-neg36.0%
log-rec36.0%
remove-double-neg36.0%
Simplified36.0%
expm1-log1p-u23.4%
expm1-undefine23.4%
Applied egg-rr23.4%
expm1-define23.4%
Simplified23.4%
Taylor expanded in y.im around 0 32.7%
unpow232.7%
unpow232.7%
hypot-undefine46.2%
Simplified46.2%
if 0.0560000000000000012 < x.im Initial program 31.3%
fmm-def31.3%
hypot-define31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in y.im around 0 38.6%
unpow238.6%
unpow238.6%
hypot-undefine41.6%
Simplified41.6%
Taylor expanded in x.im around inf 41.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= x.re -2.8e+84)
(* t_0 (pow x.re y.re))
(if (<= x.re 2.6e-44)
(* t_0 (pow x.im y.re))
(* y.im (* (log (hypot x.im 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 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -2.8e+84) {
tmp = t_0 * pow(x_46_re, y_46_re);
} else if (x_46_re <= 2.6e-44) {
tmp = t_0 * pow(x_46_im, y_46_re);
} else {
tmp = y_46_im * (log(hypot(x_46_im, 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 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_re <= -2.8e+84) {
tmp = t_0 * Math.pow(x_46_re, y_46_re);
} else if (x_46_re <= 2.6e-44) {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
} else {
tmp = y_46_im * (Math.log(Math.hypot(x_46_im, 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 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if x_46_re <= -2.8e+84: tmp = t_0 * math.pow(x_46_re, y_46_re) elif x_46_re <= 2.6e-44: tmp = t_0 * math.pow(x_46_im, y_46_re) else: tmp = y_46_im * (math.log(math.hypot(x_46_im, 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 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (x_46_re <= -2.8e+84) tmp = Float64(t_0 * (x_46_re ^ y_46_re)); elseif (x_46_re <= 2.6e-44) tmp = Float64(t_0 * (x_46_im ^ y_46_re)); else tmp = Float64(y_46_im * Float64(log(hypot(x_46_im, 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 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (x_46_re <= -2.8e+84) tmp = t_0 * (x_46_re ^ y_46_re); elseif (x_46_re <= 2.6e-44) tmp = t_0 * (x_46_im ^ y_46_re); else tmp = y_46_im * (log(hypot(x_46_im, 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[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -2.8e+84], N[(t$95$0 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 2.6e-44], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;x.re \leq -2.8 \cdot 10^{+84}:\\
\;\;\;\;t\_0 \cdot {x.re}^{y.re}\\
\mathbf{elif}\;x.re \leq 2.6 \cdot 10^{-44}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot {x.re}^{y.re}\right)\\
\end{array}
\end{array}
if x.re < -2.79999999999999982e84Initial program 17.7%
fmm-def17.7%
hypot-define17.7%
distribute-rgt-neg-out17.7%
fma-define17.7%
hypot-define73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in y.im around 0 53.9%
unpow253.9%
unpow253.9%
hypot-undefine49.8%
Simplified49.8%
Taylor expanded in x.im around 0 40.1%
if -2.79999999999999982e84 < x.re < 2.5999999999999998e-44Initial program 51.1%
fmm-def51.1%
hypot-define51.1%
distribute-rgt-neg-out51.1%
fma-define51.1%
hypot-define84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in y.im around 0 41.2%
unpow241.2%
unpow241.2%
hypot-undefine43.1%
Simplified43.1%
Taylor expanded in x.im around inf 36.0%
if 2.5999999999999998e-44 < x.re Initial program 32.7%
Taylor expanded in y.re around 0 29.1%
*-commutative29.1%
unpow229.1%
unpow229.1%
hypot-undefine56.1%
Simplified56.1%
Taylor expanded in x.re around inf 68.1%
mul-1-neg68.1%
log-rec68.1%
remove-double-neg68.1%
Simplified68.1%
expm1-log1p-u70.4%
expm1-undefine69.1%
Applied egg-rr69.1%
expm1-define70.4%
Simplified70.4%
Taylor expanded in y.im around 0 41.3%
unpow241.3%
unpow241.3%
hypot-undefine62.9%
Simplified62.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.re -6.5e-137)
(* y.re (log (exp (atan2 x.im x.re))))
(if (<= y.re 9.5e-123) (cbrt (pow t_0 3.0)) (log1p (expm1 t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -6.5e-137) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 9.5e-123) {
tmp = cbrt(pow(t_0, 3.0));
} else {
tmp = log1p(expm1(t_0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -6.5e-137) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 9.5e-123) {
tmp = Math.cbrt(Math.pow(t_0, 3.0));
} else {
tmp = Math.log1p(Math.expm1(t_0));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -6.5e-137) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); elseif (y_46_re <= 9.5e-123) tmp = cbrt((t_0 ^ 3.0)); else tmp = log1p(expm1(t_0)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -6.5e-137], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 9.5e-123], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 1/3], $MachinePrecision], N[Log[1 + N[(Exp[t$95$0] - 1), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -6.5 \cdot 10^{-137}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{elif}\;y.re \leq 9.5 \cdot 10^{-123}:\\
\;\;\;\;\sqrt[3]{{t\_0}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\end{array}
\end{array}
if y.re < -6.49999999999999991e-137Initial program 42.0%
fmm-def42.0%
hypot-define42.0%
distribute-rgt-neg-out42.0%
fma-define42.0%
hypot-define90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in y.im around 0 64.6%
unpow264.6%
unpow264.6%
hypot-undefine70.1%
Simplified70.1%
Taylor expanded in y.re around 0 19.5%
add-log-exp28.3%
Applied egg-rr28.3%
if -6.49999999999999991e-137 < y.re < 9.5000000000000002e-123Initial program 43.1%
fmm-def43.1%
hypot-define43.1%
distribute-rgt-neg-out43.1%
fma-define43.1%
hypot-define80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in y.im around 0 19.0%
unpow219.0%
unpow219.0%
hypot-undefine8.0%
Simplified8.0%
Taylor expanded in y.re around 0 8.0%
add-cbrt-cube24.7%
pow324.7%
Applied egg-rr24.7%
if 9.5000000000000002e-123 < y.re Initial program 35.2%
fmm-def35.2%
hypot-define35.2%
distribute-rgt-neg-out35.2%
fma-define35.2%
hypot-define67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in y.im around 0 42.4%
unpow242.4%
unpow242.4%
hypot-undefine46.2%
Simplified46.2%
Taylor expanded in y.re around 0 9.1%
log1p-expm1-u34.5%
Applied egg-rr34.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -5.4e+51) (* y.re (log (exp (atan2 x.im x.re)))) (log1p (expm1 (* 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 tmp;
if (y_46_re <= -5.4e+51) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else {
tmp = log1p(expm1((y_46_re * atan2(x_46_im, x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -5.4e+51) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else {
tmp = Math.log1p(Math.expm1((y_46_re * 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 <= -5.4e+51: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) else: tmp = math.log1p(math.expm1((y_46_re * math.atan2(x_46_im, x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_re <= -5.4e+51) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); else tmp = log1p(expm1(Float64(y_46_re * atan(x_46_im, x_46_re)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, -5.4e+51], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Log[1 + N[(Exp[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -5.4 \cdot 10^{+51}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\end{array}
\end{array}
if y.re < -5.39999999999999983e51Initial program 48.9%
fmm-def48.9%
hypot-define48.9%
distribute-rgt-neg-out48.9%
fma-define48.9%
hypot-define93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in y.im around 0 95.6%
unpow295.6%
unpow295.6%
hypot-undefine95.6%
Simplified95.6%
Taylor expanded in y.re around 0 15.1%
add-log-exp30.2%
Applied egg-rr30.2%
if -5.39999999999999983e51 < y.re Initial program 37.5%
fmm-def37.5%
hypot-define37.5%
distribute-rgt-neg-out37.5%
fma-define37.5%
hypot-define75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in y.im around 0 33.2%
unpow233.2%
unpow233.2%
hypot-undefine34.0%
Simplified34.0%
Taylor expanded in y.re around 0 11.8%
log1p-expm1-u26.1%
Applied egg-rr26.1%
(FPCore (x.re x.im y.re y.im) :precision binary64 (log1p (expm1 (* 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 log1p(expm1((y_46_re * atan2(x_46_im, x_46_re))));
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return Math.log1p(Math.expm1((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 math.log1p(math.expm1((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 log1p(expm1(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_] := N[Log[1 + N[(Exp[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\mathsf{log1p}\left(\mathsf{expm1}\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)
\end{array}
Initial program 39.5%
fmm-def39.5%
hypot-define39.5%
distribute-rgt-neg-out39.5%
fma-define39.5%
hypot-define78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in y.im around 0 44.2%
unpow244.2%
unpow244.2%
hypot-undefine44.9%
Simplified44.9%
Taylor expanded in y.re around 0 12.4%
log1p-expm1-u24.1%
Applied egg-rr24.1%
(FPCore (x.re x.im y.re y.im) :precision binary64 (sin (* y.re (atan2 x.im x.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return sin((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 = sin((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 Math.sin((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 math.sin((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 sin(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 = sin((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[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)
\end{array}
Initial program 39.5%
fmm-def39.5%
hypot-define39.5%
distribute-rgt-neg-out39.5%
fma-define39.5%
hypot-define78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in y.im around 0 44.2%
unpow244.2%
unpow244.2%
hypot-undefine44.9%
Simplified44.9%
Taylor expanded in y.re around 0 12.4%
Taylor expanded in y.re around inf 12.4%
*-commutative12.4%
Simplified12.4%
Final simplification12.4%
(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 39.5%
fmm-def39.5%
hypot-define39.5%
distribute-rgt-neg-out39.5%
fma-define39.5%
hypot-define78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in y.im around 0 44.2%
unpow244.2%
unpow244.2%
hypot-undefine44.9%
Simplified44.9%
Taylor expanded in y.re around 0 12.4%
herbie shell --seed 2024191
(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)))))