
(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)))
(cos (+ (* 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))) * cos(((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))) * cos(((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.cos(((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.cos(((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))) * cos(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))) * cos(((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[Cos[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 \cos \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 20 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)))
(cos (+ (* 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))) * cos(((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))) * cos(((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.cos(((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.cos(((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))) * cos(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))) * cos(((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[Cos[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 \cos \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 (* (atan2 x.im x.re) y.im)) (t_1 (pow (hypot x.re x.im) y.re)))
(if (<= y.re -5.8e+48)
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
(cos (* y.im (log (hypot x.im x.re)))))
(if (<= y.re 6e+16)
(/
(cos (+ (* y.im (log (hypot x.re x.im))) (* y.re (atan2 x.im x.re))))
(/ (exp t_0) t_1))
(/ 1.0 (/ (+ 1.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 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = pow(hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * cos((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 6e+16) {
tmp = cos(((y_46_im * log(hypot(x_46_re, x_46_im))) + (y_46_re * atan2(x_46_im, x_46_re)))) / (exp(t_0) / t_1);
} else {
tmp = 1.0 / ((1.0 + 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.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * Math.cos((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 6e+16) {
tmp = Math.cos(((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))) + (y_46_re * Math.atan2(x_46_im, x_46_re)))) / (Math.exp(t_0) / t_1);
} else {
tmp = 1.0 / ((1.0 + t_0) / t_1);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.pow(math.hypot(x_46_re, x_46_im), y_46_re) tmp = 0 if y_46_re <= -5.8e+48: tmp = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * math.cos((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 6e+16: tmp = math.cos(((y_46_im * math.log(math.hypot(x_46_re, x_46_im))) + (y_46_re * math.atan2(x_46_im, x_46_re)))) / (math.exp(t_0) / t_1) else: tmp = 1.0 / ((1.0 + t_0) / t_1) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = hypot(x_46_re, x_46_im) ^ y_46_re tmp = 0.0 if (y_46_re <= -5.8e+48) tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - t_0)) * cos(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); elseif (y_46_re <= 6e+16) tmp = Float64(cos(Float64(Float64(y_46_im * log(hypot(x_46_re, x_46_im))) + Float64(y_46_re * atan(x_46_im, x_46_re)))) / Float64(exp(t_0) / t_1)); else tmp = Float64(1.0 / Float64(Float64(1.0 + 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 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = hypot(x_46_re, x_46_im) ^ y_46_re; tmp = 0.0; if (y_46_re <= -5.8e+48) tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * cos((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 6e+16) tmp = cos(((y_46_im * log(hypot(x_46_re, x_46_im))) + (y_46_re * atan2(x_46_im, x_46_re)))) / (exp(t_0) / t_1); else tmp = 1.0 / ((1.0 + 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -5.8e+48], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6e+16], N[(N[Cos[N[(N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(1.0 + t$95$0), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := {\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -5.8 \cdot 10^{+48}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t\_0} \cdot \cos \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 6 \cdot 10^{+16}:\\
\;\;\;\;\frac{\cos \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)}{\frac{e^{t\_0}}{t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1 + t\_0}{t\_1}}\\
\end{array}
\end{array}
if y.re < -5.7999999999999998e48Initial program 52.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6485.5%
Simplified85.5%
if -5.7999999999999998e48 < y.re < 6e16Initial program 41.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.0%
if 6e16 < y.re Initial program 29.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified53.2%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.9%
Simplified62.9%
Taylor expanded in y.im around 0
Simplified59.7%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.5%
Simplified69.5%
Final simplification81.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (cos (* y.im (log (hypot x.im x.re)))))
(t_2 (+ (* x.re x.re) (* x.im x.im))))
(if (<= y.re -5.8e+48)
(* (exp (- (* y.re (log (sqrt t_2))) t_0)) t_1)
(if (<= y.re 2.3e+192)
(/ t_1 (/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(/ -1.0 (/ -1.0 (pow t_2 (/ y.re 2.0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = cos((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = exp(((y_46_re * log(sqrt(t_2))) - t_0)) * t_1;
} else if (y_46_re <= 2.3e+192) {
tmp = t_1 / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = -1.0 / (-1.0 / pow(t_2, (y_46_re / 2.0)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.cos((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(t_2))) - t_0)) * t_1;
} else if (y_46_re <= 2.3e+192) {
tmp = t_1 / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = -1.0 / (-1.0 / Math.pow(t_2, (y_46_re / 2.0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.cos((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im) tmp = 0 if y_46_re <= -5.8e+48: tmp = math.exp(((y_46_re * math.log(math.sqrt(t_2))) - t_0)) * t_1 elif y_46_re <= 2.3e+192: tmp = t_1 / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = -1.0 / (-1.0 / math.pow(t_2, (y_46_re / 2.0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = cos(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_2 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) tmp = 0.0 if (y_46_re <= -5.8e+48) tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(t_2))) - t_0)) * t_1); elseif (y_46_re <= 2.3e+192) tmp = Float64(t_1 / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(-1.0 / Float64(-1.0 / (t_2 ^ Float64(y_46_re / 2.0)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = cos((y_46_im * log(hypot(x_46_im, x_46_re)))); t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im); tmp = 0.0; if (y_46_re <= -5.8e+48) tmp = exp(((y_46_re * log(sqrt(t_2))) - t_0)) * t_1; elseif (y_46_re <= 2.3e+192) tmp = t_1 / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = -1.0 / (-1.0 / (t_2 ^ (y_46_re / 2.0))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Cos[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -5.8e+48], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 2.3e+192], N[(t$95$1 / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 / N[(-1.0 / N[Power[t$95$2, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \cos \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
t_2 := x.re \cdot x.re + x.im \cdot x.im\\
\mathbf{if}\;y.re \leq -5.8 \cdot 10^{+48}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{t\_2}\right) - t\_0} \cdot t\_1\\
\mathbf{elif}\;y.re \leq 2.3 \cdot 10^{+192}:\\
\;\;\;\;\frac{t\_1}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{-1}{{t\_2}^{\left(\frac{y.re}{2}\right)}}}\\
\end{array}
\end{array}
if y.re < -5.7999999999999998e48Initial program 52.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6485.5%
Simplified85.5%
if -5.7999999999999998e48 < y.re < 2.2999999999999999e192Initial program 38.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified80.1%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6481.0%
Simplified81.0%
if 2.2999999999999999e192 < y.re Initial program 28.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified33.3%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.9%
Simplified42.9%
Taylor expanded in y.im around 0
Simplified42.9%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6447.6%
Applied egg-rr47.6%
Taylor expanded in y.im around 0
Simplified66.7%
Final simplification80.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)) (t_1 (+ (* x.re x.re) (* x.im x.im))))
(if (<= y.re -7e+48)
(*
(exp (- (* y.re (log (sqrt t_1))) t_0))
(cos (* y.re (atan2 x.im x.re))))
(if (<= y.re 9.6e+196)
(/
(cos (* y.im (log (hypot x.im x.re))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(/ -1.0 (/ -1.0 (pow t_1 (/ y.re 2.0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -7e+48) {
tmp = exp(((y_46_re * log(sqrt(t_1))) - t_0)) * cos((y_46_re * atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 9.6e+196) {
tmp = cos((y_46_im * log(hypot(x_46_im, x_46_re)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = -1.0 / (-1.0 / pow(t_1, (y_46_re / 2.0)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -7e+48) {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(t_1))) - t_0)) * Math.cos((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 9.6e+196) {
tmp = Math.cos((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = -1.0 / (-1.0 / Math.pow(t_1, (y_46_re / 2.0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im) tmp = 0 if y_46_re <= -7e+48: tmp = math.exp(((y_46_re * math.log(math.sqrt(t_1))) - t_0)) * math.cos((y_46_re * math.atan2(x_46_im, x_46_re))) elif y_46_re <= 9.6e+196: tmp = math.cos((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = -1.0 / (-1.0 / math.pow(t_1, (y_46_re / 2.0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) tmp = 0.0 if (y_46_re <= -7e+48) tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(t_1))) - t_0)) * cos(Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (y_46_re <= 9.6e+196) tmp = Float64(cos(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(-1.0 / Float64(-1.0 / (t_1 ^ Float64(y_46_re / 2.0)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im); tmp = 0.0; if (y_46_re <= -7e+48) tmp = exp(((y_46_re * log(sqrt(t_1))) - t_0)) * cos((y_46_re * atan2(x_46_im, x_46_re))); elseif (y_46_re <= 9.6e+196) tmp = cos((y_46_im * log(hypot(x_46_im, x_46_re)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = -1.0 / (-1.0 / (t_1 ^ (y_46_re / 2.0))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -7e+48], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$1], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 9.6e+196], N[(N[Cos[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 / N[(-1.0 / N[Power[t$95$1, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := x.re \cdot x.re + x.im \cdot x.im\\
\mathbf{if}\;y.re \leq -7 \cdot 10^{+48}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{t\_1}\right) - t\_0} \cdot \cos \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.re \leq 9.6 \cdot 10^{+196}:\\
\;\;\;\;\frac{\cos \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{-1}{{t\_1}^{\left(\frac{y.re}{2}\right)}}}\\
\end{array}
\end{array}
if y.re < -6.9999999999999995e48Initial program 52.7%
Taylor expanded in y.im around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6483.7%
Simplified83.7%
if -6.9999999999999995e48 < y.re < 9.6000000000000002e196Initial program 38.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified80.1%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6481.0%
Simplified81.0%
if 9.6000000000000002e196 < y.re Initial program 28.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified33.3%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.9%
Simplified42.9%
Taylor expanded in y.im around 0
Simplified42.9%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6447.6%
Applied egg-rr47.6%
Taylor expanded in y.im around 0
Simplified66.7%
Final simplification79.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (cos (* y.re (atan2 x.im x.re))))
(t_2 (pow (hypot x.re x.im) y.re)))
(if (<= y.re -5.8e+48)
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
t_1)
(if (<= y.re 2.2e+16)
(/ t_1 (/ (exp t_0) t_2))
(/ 1.0 (/ (+ 1.0 t_0) t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = cos((y_46_re * atan2(x_46_im, x_46_re)));
double t_2 = pow(hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * t_1;
} else if (y_46_re <= 2.2e+16) {
tmp = t_1 / (exp(t_0) / t_2);
} else {
tmp = 1.0 / ((1.0 + t_0) / t_2);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.cos((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_2 = Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * t_1;
} else if (y_46_re <= 2.2e+16) {
tmp = t_1 / (Math.exp(t_0) / t_2);
} else {
tmp = 1.0 / ((1.0 + t_0) / t_2);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.cos((y_46_re * math.atan2(x_46_im, x_46_re))) t_2 = math.pow(math.hypot(x_46_re, x_46_im), y_46_re) tmp = 0 if y_46_re <= -5.8e+48: tmp = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * t_1 elif y_46_re <= 2.2e+16: tmp = t_1 / (math.exp(t_0) / t_2) else: tmp = 1.0 / ((1.0 + t_0) / t_2) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = cos(Float64(y_46_re * atan(x_46_im, x_46_re))) t_2 = hypot(x_46_re, x_46_im) ^ y_46_re tmp = 0.0 if (y_46_re <= -5.8e+48) tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - t_0)) * t_1); elseif (y_46_re <= 2.2e+16) tmp = Float64(t_1 / Float64(exp(t_0) / t_2)); else tmp = Float64(1.0 / Float64(Float64(1.0 + t_0) / t_2)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = cos((y_46_re * atan2(x_46_im, x_46_re))); t_2 = hypot(x_46_re, x_46_im) ^ y_46_re; tmp = 0.0; if (y_46_re <= -5.8e+48) tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * t_1; elseif (y_46_re <= 2.2e+16) tmp = t_1 / (exp(t_0) / t_2); else tmp = 1.0 / ((1.0 + t_0) / t_2); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Cos[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -5.8e+48], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 2.2e+16], N[(t$95$1 / N[(N[Exp[t$95$0], $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(1.0 + t$95$0), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \cos \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_2 := {\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -5.8 \cdot 10^{+48}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t\_0} \cdot t\_1\\
\mathbf{elif}\;y.re \leq 2.2 \cdot 10^{+16}:\\
\;\;\;\;\frac{t\_1}{\frac{e^{t\_0}}{t\_2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1 + t\_0}{t\_2}}\\
\end{array}
\end{array}
if y.re < -5.7999999999999998e48Initial program 52.7%
Taylor expanded in y.im around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6483.7%
Simplified83.7%
if -5.7999999999999998e48 < y.re < 2.2e16Initial program 41.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.0%
Taylor expanded in y.im around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6483.2%
Simplified83.2%
if 2.2e16 < y.re Initial program 29.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified53.2%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.9%
Simplified62.9%
Taylor expanded in y.im around 0
Simplified59.7%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.5%
Simplified69.5%
Final simplification80.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.re -5.5e-18)
(* (cos (* y.re (atan2 x.im x.re))) (pow (hypot x.im x.re) y.re))
(if (<= y.re 510.0)
(*
(cos (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) (- 0.0 y.im))))
(/
1.0
(/ (+ 1.0 (* (atan2 x.im x.re) y.im)) (pow (hypot x.re 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 (y_46_re <= -5.5e-18) {
tmp = cos((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 510.0) {
tmp = cos((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else {
tmp = 1.0 / ((1.0 + (atan2(x_46_im, x_46_re) * y_46_im)) / pow(hypot(x_46_re, 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 (y_46_re <= -5.5e-18) {
tmp = Math.cos((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 510.0) {
tmp = Math.cos((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.exp((Math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else {
tmp = 1.0 / ((1.0 + (Math.atan2(x_46_im, x_46_re) * y_46_im)) / Math.pow(Math.hypot(x_46_re, 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 y_46_re <= -5.5e-18: tmp = math.cos((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 510.0: tmp = math.cos((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) * math.exp((math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im))) else: tmp = 1.0 / ((1.0 + (math.atan2(x_46_im, x_46_re) * y_46_im)) / math.pow(math.hypot(x_46_re, 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 (y_46_re <= -5.5e-18) tmp = Float64(cos(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 510.0) tmp = Float64(cos(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * exp(Float64(atan(x_46_im, x_46_re) * Float64(0.0 - y_46_im)))); else tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(atan(x_46_im, x_46_re) * y_46_im)) / (hypot(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 (y_46_re <= -5.5e-18) tmp = cos((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 510.0) tmp = cos((y_46_im * log(hypot(x_46_im, x_46_re)))) * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im))); else tmp = 1.0 / ((1.0 + (atan2(x_46_im, x_46_re) * y_46_im)) / (hypot(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[LessEqual[y$46$re, -5.5e-18], N[(N[Cos[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 510.0], N[(N[Cos[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(1.0 + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -5.5 \cdot 10^{-18}:\\
\;\;\;\;\cos \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 510:\\
\;\;\;\;\cos \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(0 - y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1 + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if y.re < -5.5e-18Initial program 49.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6484.2%
Simplified84.2%
if -5.5e-18 < y.re < 510Initial program 41.8%
Taylor expanded in y.re around 0
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6482.5%
Simplified82.5%
if 510 < y.re Initial program 30.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified55.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6463.1%
Simplified63.1%
Taylor expanded in y.im around 0
Simplified60.0%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.4%
Simplified69.4%
Final simplification79.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)))
(if (<= y.re -5.5e-18)
(* (cos (* y.re (atan2 x.im x.re))) (pow (hypot x.im x.re) y.re))
(if (<= y.re 14600.0)
(/ (cos (* y.im (log (hypot x.im x.re)))) (exp t_0))
(/ 1.0 (/ (+ 1.0 t_0) (pow (hypot x.re 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 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -5.5e-18) {
tmp = cos((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 14600.0) {
tmp = cos((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(t_0);
} else {
tmp = 1.0 / ((1.0 + t_0) / pow(hypot(x_46_re, 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.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -5.5e-18) {
tmp = Math.cos((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 14600.0) {
tmp = Math.cos((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp(t_0);
} else {
tmp = 1.0 / ((1.0 + t_0) / Math.pow(Math.hypot(x_46_re, 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.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if y_46_re <= -5.5e-18: tmp = math.cos((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 14600.0: tmp = math.cos((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp(t_0) else: tmp = 1.0 / ((1.0 + t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (y_46_re <= -5.5e-18) tmp = Float64(cos(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 14600.0) tmp = Float64(cos(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(t_0)); else tmp = Float64(1.0 / Float64(Float64(1.0 + t_0) / (hypot(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) t_0 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (y_46_re <= -5.5e-18) tmp = cos((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 14600.0) tmp = cos((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(t_0); else tmp = 1.0 / ((1.0 + t_0) / (hypot(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_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -5.5e-18], N[(N[Cos[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 14600.0], N[(N[Cos[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(1.0 + t$95$0), $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -5.5 \cdot 10^{-18}:\\
\;\;\;\;\cos \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 14600:\\
\;\;\;\;\frac{\cos \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{t\_0}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1 + t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if y.re < -5.5e-18Initial program 49.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6484.2%
Simplified84.2%
if -5.5e-18 < y.re < 14600Initial program 41.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified83.8%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.4%
Simplified82.4%
if 14600 < y.re Initial program 30.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified55.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6463.1%
Simplified63.1%
Taylor expanded in y.im around 0
Simplified60.0%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.4%
Simplified69.4%
Final simplification79.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)))
(if (<= y.re -5.2e-18)
(* (cos (* y.re (atan2 x.im x.re))) (pow (hypot x.im x.re) y.re))
(if (<= y.re 510.0)
(/ (- 0.0 -1.0) (exp t_0))
(/ 1.0 (/ (+ 1.0 t_0) (pow (hypot x.re 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 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -5.2e-18) {
tmp = cos((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 510.0) {
tmp = (0.0 - -1.0) / exp(t_0);
} else {
tmp = 1.0 / ((1.0 + t_0) / pow(hypot(x_46_re, 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.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -5.2e-18) {
tmp = Math.cos((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 510.0) {
tmp = (0.0 - -1.0) / Math.exp(t_0);
} else {
tmp = 1.0 / ((1.0 + t_0) / Math.pow(Math.hypot(x_46_re, 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.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if y_46_re <= -5.2e-18: tmp = math.cos((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 510.0: tmp = (0.0 - -1.0) / math.exp(t_0) else: tmp = 1.0 / ((1.0 + t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (y_46_re <= -5.2e-18) tmp = Float64(cos(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 510.0) tmp = Float64(Float64(0.0 - -1.0) / exp(t_0)); else tmp = Float64(1.0 / Float64(Float64(1.0 + t_0) / (hypot(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) t_0 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (y_46_re <= -5.2e-18) tmp = cos((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 510.0) tmp = (0.0 - -1.0) / exp(t_0); else tmp = 1.0 / ((1.0 + t_0) / (hypot(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_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -5.2e-18], N[(N[Cos[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 510.0], N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(1.0 + t$95$0), $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -5.2 \cdot 10^{-18}:\\
\;\;\;\;\cos \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 510:\\
\;\;\;\;\frac{0 - -1}{e^{t\_0}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1 + t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if y.re < -5.2000000000000001e-18Initial program 49.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6484.2%
Simplified84.2%
if -5.2000000000000001e-18 < y.re < 510Initial program 41.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified83.8%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6482.9%
Simplified82.9%
Taylor expanded in y.im around 0
Simplified80.0%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6446.5%
Applied egg-rr46.5%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.2%
Simplified81.2%
if 510 < y.re Initial program 30.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified55.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6463.1%
Simplified63.1%
Taylor expanded in y.im around 0
Simplified60.0%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.4%
Simplified69.4%
Final simplification78.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)))
(if (<= y.re -1.25)
(/ -1.0 (/ -1.0 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))
(if (<= y.re 2900.0)
(/ (- 0.0 -1.0) (exp t_0))
(/ 1.0 (/ (+ 1.0 t_0) (pow (hypot x.re 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 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -1.25) {
tmp = -1.0 / (-1.0 / pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)));
} else if (y_46_re <= 2900.0) {
tmp = (0.0 - -1.0) / exp(t_0);
} else {
tmp = 1.0 / ((1.0 + t_0) / pow(hypot(x_46_re, 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.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -1.25) {
tmp = -1.0 / (-1.0 / Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)));
} else if (y_46_re <= 2900.0) {
tmp = (0.0 - -1.0) / Math.exp(t_0);
} else {
tmp = 1.0 / ((1.0 + t_0) / Math.pow(Math.hypot(x_46_re, 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.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if y_46_re <= -1.25: tmp = -1.0 / (-1.0 / math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0))) elif y_46_re <= 2900.0: tmp = (0.0 - -1.0) / math.exp(t_0) else: tmp = 1.0 / ((1.0 + t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (y_46_re <= -1.25) tmp = Float64(-1.0 / Float64(-1.0 / (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0)))); elseif (y_46_re <= 2900.0) tmp = Float64(Float64(0.0 - -1.0) / exp(t_0)); else tmp = Float64(1.0 / Float64(Float64(1.0 + t_0) / (hypot(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) t_0 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (y_46_re <= -1.25) tmp = -1.0 / (-1.0 / (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0))); elseif (y_46_re <= 2900.0) tmp = (0.0 - -1.0) / exp(t_0); else tmp = 1.0 / ((1.0 + t_0) / (hypot(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_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -1.25], N[(-1.0 / N[(-1.0 / N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2900.0], N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(1.0 + t$95$0), $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -1.25:\\
\;\;\;\;\frac{-1}{\frac{-1}{{\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}}}\\
\mathbf{elif}\;y.re \leq 2900:\\
\;\;\;\;\frac{0 - -1}{e^{t\_0}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1 + t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if y.re < -1.25Initial program 53.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified68.8%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.2%
Simplified67.2%
Taylor expanded in y.im around 0
Simplified67.2%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6467.2%
Applied egg-rr67.2%
Taylor expanded in y.im around 0
Simplified84.5%
if -1.25 < y.re < 2900Initial program 40.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified83.6%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6482.6%
Simplified82.6%
Taylor expanded in y.im around 0
Simplified80.6%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6444.8%
Applied egg-rr44.8%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6479.7%
Simplified79.7%
if 2900 < y.re Initial program 30.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified55.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6463.1%
Simplified63.1%
Taylor expanded in y.im around 0
Simplified60.0%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.4%
Simplified69.4%
Final simplification77.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- 0.0 -1.0) (exp (* (atan2 x.im x.re) y.im)))))
(if (<= y.im -3.8e+130)
t_0
(if (<= y.im 1.5e+62) (pow (hypot x.re x.im) y.re) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (0.0 - -1.0) / exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -3.8e+130) {
tmp = t_0;
} else if (y_46_im <= 1.5e+62) {
tmp = pow(hypot(x_46_re, x_46_im), y_46_re);
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (0.0 - -1.0) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -3.8e+130) {
tmp = t_0;
} else if (y_46_im <= 1.5e+62) {
tmp = Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (0.0 - -1.0) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -3.8e+130: tmp = t_0 elif y_46_im <= 1.5e+62: tmp = math.pow(math.hypot(x_46_re, x_46_im), y_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(0.0 - -1.0) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -3.8e+130) tmp = t_0; elseif (y_46_im <= 1.5e+62) tmp = hypot(x_46_re, x_46_im) ^ y_46_re; else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (0.0 - -1.0) / exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -3.8e+130) tmp = t_0; elseif (y_46_im <= 1.5e+62) tmp = hypot(x_46_re, x_46_im) ^ y_46_re; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -3.8e+130], t$95$0, If[LessEqual[y$46$im, 1.5e+62], N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{0 - -1}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{if}\;y.im \leq -3.8 \cdot 10^{+130}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 1.5 \cdot 10^{+62}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -3.8000000000000002e130 or 1.5e62 < y.im Initial program 36.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6448.5%
Simplified48.5%
Taylor expanded in y.im around 0
Simplified47.6%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6445.1%
Applied egg-rr45.1%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6459.6%
Simplified59.6%
if -3.8000000000000002e130 < y.im < 1.5e62Initial program 43.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.3%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6486.3%
Simplified86.3%
Taylor expanded in y.im around 0
Simplified84.2%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6486.1%
Simplified86.1%
Final simplification75.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im))))
(if (<= y.re -1.6)
(/ -1.0 (/ -1.0 (pow t_0 (/ y.re 2.0))))
(if (<= y.re 2.85e-5)
(exp (* (atan2 x.im x.re) (- 0.0 y.im)))
(pow (* t_0 t_0) (/ y.re 4.0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -1.6) {
tmp = -1.0 / (-1.0 / pow(t_0, (y_46_re / 2.0)));
} else if (y_46_re <= 2.85e-5) {
tmp = exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else {
tmp = pow((t_0 * t_0), (y_46_re / 4.0));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (x_46re * x_46re) + (x_46im * x_46im)
if (y_46re <= (-1.6d0)) then
tmp = (-1.0d0) / ((-1.0d0) / (t_0 ** (y_46re / 2.0d0)))
else if (y_46re <= 2.85d-5) then
tmp = exp((atan2(x_46im, x_46re) * (0.0d0 - y_46im)))
else
tmp = (t_0 * t_0) ** (y_46re / 4.0d0)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -1.6) {
tmp = -1.0 / (-1.0 / Math.pow(t_0, (y_46_re / 2.0)));
} else if (y_46_re <= 2.85e-5) {
tmp = Math.exp((Math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else {
tmp = Math.pow((t_0 * t_0), (y_46_re / 4.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) tmp = 0 if y_46_re <= -1.6: tmp = -1.0 / (-1.0 / math.pow(t_0, (y_46_re / 2.0))) elif y_46_re <= 2.85e-5: tmp = math.exp((math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im))) else: tmp = math.pow((t_0 * t_0), (y_46_re / 4.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) tmp = 0.0 if (y_46_re <= -1.6) tmp = Float64(-1.0 / Float64(-1.0 / (t_0 ^ Float64(y_46_re / 2.0)))); elseif (y_46_re <= 2.85e-5) tmp = exp(Float64(atan(x_46_im, x_46_re) * Float64(0.0 - y_46_im))); else tmp = Float64(t_0 * t_0) ^ Float64(y_46_re / 4.0); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); tmp = 0.0; if (y_46_re <= -1.6) tmp = -1.0 / (-1.0 / (t_0 ^ (y_46_re / 2.0))); elseif (y_46_re <= 2.85e-5) tmp = exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im))); else tmp = (t_0 * t_0) ^ (y_46_re / 4.0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.6], N[(-1.0 / N[(-1.0 / N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.85e-5], N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], N[(y$46$re / 4.0), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
\mathbf{if}\;y.re \leq -1.6:\\
\;\;\;\;\frac{-1}{\frac{-1}{{t\_0}^{\left(\frac{y.re}{2}\right)}}}\\
\mathbf{elif}\;y.re \leq 2.85 \cdot 10^{-5}:\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(0 - y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(t\_0 \cdot t\_0\right)}^{\left(\frac{y.re}{4}\right)}\\
\end{array}
\end{array}
if y.re < -1.6000000000000001Initial program 53.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified68.8%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.2%
Simplified67.2%
Taylor expanded in y.im around 0
Simplified67.2%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6467.2%
Applied egg-rr67.2%
Taylor expanded in y.im around 0
Simplified84.5%
if -1.6000000000000001 < y.re < 2.8500000000000002e-5Initial program 39.2%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified83.3%
Taylor expanded in y.im around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.1%
Simplified82.1%
Taylor expanded in y.re around 0
rec-expN/A
exp-lowering-exp.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.1%
Simplified80.1%
if 2.8500000000000002e-5 < y.re Initial program 32.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified56.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.7%
Simplified62.7%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.9%
Simplified62.9%
sqrt-pow2N/A
+-commutativeN/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-/l/N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval62.9%
Applied egg-rr62.9%
Final simplification75.9%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.im 900.0) (pow (hypot x.re x.im) y.re) (/ -1.0 (/ -1.0 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= 900.0) {
tmp = pow(hypot(x_46_re, x_46_im), y_46_re);
} else {
tmp = -1.0 / (-1.0 / pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)));
}
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 <= 900.0) {
tmp = Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
} else {
tmp = -1.0 / (-1.0 / Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= 900.0: tmp = math.pow(math.hypot(x_46_re, x_46_im), y_46_re) else: tmp = -1.0 / (-1.0 / math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_im <= 900.0) tmp = hypot(x_46_re, x_46_im) ^ y_46_re; else tmp = Float64(-1.0 / Float64(-1.0 / (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0)))); 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 <= 900.0) tmp = hypot(x_46_re, x_46_im) ^ y_46_re; else tmp = -1.0 / (-1.0 / (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$im, 900.0], N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision], N[(-1.0 / N[(-1.0 / N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq 900:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{-1}{{\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}}}\\
\end{array}
\end{array}
if y.im < 900Initial program 42.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified82.1%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6483.0%
Simplified83.0%
Taylor expanded in y.im around 0
Simplified82.2%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6476.6%
Simplified76.6%
if 900 < y.im Initial program 36.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6449.2%
Simplified49.2%
Taylor expanded in y.im around 0
Simplified44.9%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6441.9%
Applied egg-rr41.9%
Taylor expanded in y.im around 0
Simplified46.9%
Final simplification67.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im))))
(if (<= y.re -2e-7)
(/ -1.0 (/ -1.0 (pow t_0 (/ y.re 2.0))))
(if (<= y.re 510.0) 1.0 (pow (* t_0 t_0) (/ y.re 4.0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -2e-7) {
tmp = -1.0 / (-1.0 / pow(t_0, (y_46_re / 2.0)));
} else if (y_46_re <= 510.0) {
tmp = 1.0;
} else {
tmp = pow((t_0 * t_0), (y_46_re / 4.0));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (x_46re * x_46re) + (x_46im * x_46im)
if (y_46re <= (-2d-7)) then
tmp = (-1.0d0) / ((-1.0d0) / (t_0 ** (y_46re / 2.0d0)))
else if (y_46re <= 510.0d0) then
tmp = 1.0d0
else
tmp = (t_0 * t_0) ** (y_46re / 4.0d0)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -2e-7) {
tmp = -1.0 / (-1.0 / Math.pow(t_0, (y_46_re / 2.0)));
} else if (y_46_re <= 510.0) {
tmp = 1.0;
} else {
tmp = Math.pow((t_0 * t_0), (y_46_re / 4.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) tmp = 0 if y_46_re <= -2e-7: tmp = -1.0 / (-1.0 / math.pow(t_0, (y_46_re / 2.0))) elif y_46_re <= 510.0: tmp = 1.0 else: tmp = math.pow((t_0 * t_0), (y_46_re / 4.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) tmp = 0.0 if (y_46_re <= -2e-7) tmp = Float64(-1.0 / Float64(-1.0 / (t_0 ^ Float64(y_46_re / 2.0)))); elseif (y_46_re <= 510.0) tmp = 1.0; else tmp = Float64(t_0 * t_0) ^ Float64(y_46_re / 4.0); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); tmp = 0.0; if (y_46_re <= -2e-7) tmp = -1.0 / (-1.0 / (t_0 ^ (y_46_re / 2.0))); elseif (y_46_re <= 510.0) tmp = 1.0; else tmp = (t_0 * t_0) ^ (y_46_re / 4.0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2e-7], N[(-1.0 / N[(-1.0 / N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 510.0], 1.0, N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], N[(y$46$re / 4.0), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
\mathbf{if}\;y.re \leq -2 \cdot 10^{-7}:\\
\;\;\;\;\frac{-1}{\frac{-1}{{t\_0}^{\left(\frac{y.re}{2}\right)}}}\\
\mathbf{elif}\;y.re \leq 510:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;{\left(t\_0 \cdot t\_0\right)}^{\left(\frac{y.re}{4}\right)}\\
\end{array}
\end{array}
if y.re < -1.9999999999999999e-7Initial program 53.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified68.8%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.2%
Simplified67.2%
Taylor expanded in y.im around 0
Simplified67.2%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6467.2%
Applied egg-rr67.2%
Taylor expanded in y.im around 0
Simplified84.5%
if -1.9999999999999999e-7 < y.re < 510Initial program 40.1%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.4%
Simplified60.4%
Taylor expanded in y.re around 0
Simplified57.6%
if 510 < y.re Initial program 30.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified55.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6463.1%
Simplified63.1%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.8%
Simplified64.8%
sqrt-pow2N/A
+-commutativeN/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-/l/N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval64.8%
Applied egg-rr64.8%
Final simplification65.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.re -1.6e-5)
(/ -1.0 (/ -1.0 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))
(if (<= y.re 1.3e-14)
1.0
(pow (+ x.im (/ (* (* x.re x.re) 0.5) 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 (y_46_re <= -1.6e-5) {
tmp = -1.0 / (-1.0 / pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)));
} else if (y_46_re <= 1.3e-14) {
tmp = 1.0;
} else {
tmp = pow((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)), y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46re <= (-1.6d-5)) then
tmp = (-1.0d0) / ((-1.0d0) / (((x_46re * x_46re) + (x_46im * x_46im)) ** (y_46re / 2.0d0)))
else if (y_46re <= 1.3d-14) then
tmp = 1.0d0
else
tmp = (x_46im + (((x_46re * x_46re) * 0.5d0) / x_46im)) ** y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -1.6e-5) {
tmp = -1.0 / (-1.0 / Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)));
} else if (y_46_re <= 1.3e-14) {
tmp = 1.0;
} else {
tmp = Math.pow((x_46_im + (((x_46_re * x_46_re) * 0.5) / 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 y_46_re <= -1.6e-5: tmp = -1.0 / (-1.0 / math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0))) elif y_46_re <= 1.3e-14: tmp = 1.0 else: tmp = math.pow((x_46_im + (((x_46_re * x_46_re) * 0.5) / 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 (y_46_re <= -1.6e-5) tmp = Float64(-1.0 / Float64(-1.0 / (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0)))); elseif (y_46_re <= 1.3e-14) tmp = 1.0; else tmp = Float64(x_46_im + Float64(Float64(Float64(x_46_re * x_46_re) * 0.5) / 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 (y_46_re <= -1.6e-5) tmp = -1.0 / (-1.0 / (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0))); elseif (y_46_re <= 1.3e-14) tmp = 1.0; else tmp = (x_46_im + (((x_46_re * x_46_re) * 0.5) / 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[LessEqual[y$46$re, -1.6e-5], N[(-1.0 / N[(-1.0 / N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.3e-14], 1.0, N[Power[N[(x$46$im + N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{\frac{-1}{{\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}}}\\
\mathbf{elif}\;y.re \leq 1.3 \cdot 10^{-14}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;{\left(x.im + \frac{\left(x.re \cdot x.re\right) \cdot 0.5}{x.im}\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.59999999999999993e-5Initial program 53.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified68.8%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.2%
Simplified67.2%
Taylor expanded in y.im around 0
Simplified67.2%
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6467.2%
Applied egg-rr67.2%
Taylor expanded in y.im around 0
Simplified84.5%
if -1.59999999999999993e-5 < y.re < 1.29999999999999998e-14Initial program 39.8%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.7%
Simplified60.7%
Taylor expanded in y.re around 0
Simplified58.9%
if 1.29999999999999998e-14 < y.re Initial program 31.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified56.5%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.3%
Simplified62.3%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6461.1%
Simplified61.1%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6458.3%
Simplified58.3%
Final simplification64.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (let* ((t_0 (pow (+ x.im (/ (* (* x.re x.re) 0.5) x.im)) y.re))) (if (<= y.re -1.05e-7) t_0 (if (<= y.re 1.4e-14) 1.0 t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)), y_46_re);
double tmp;
if (y_46_re <= -1.05e-7) {
tmp = t_0;
} else if (y_46_re <= 1.4e-14) {
tmp = 1.0;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (x_46im + (((x_46re * x_46re) * 0.5d0) / x_46im)) ** y_46re
if (y_46re <= (-1.05d-7)) then
tmp = t_0
else if (y_46re <= 1.4d-14) then
tmp = 1.0d0
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)), y_46_re);
double tmp;
if (y_46_re <= -1.05e-7) {
tmp = t_0;
} else if (y_46_re <= 1.4e-14) {
tmp = 1.0;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.pow((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)), y_46_re) tmp = 0 if y_46_re <= -1.05e-7: tmp = t_0 elif y_46_re <= 1.4e-14: tmp = 1.0 else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(x_46_im + Float64(Float64(Float64(x_46_re * x_46_re) * 0.5) / x_46_im)) ^ y_46_re tmp = 0.0 if (y_46_re <= -1.05e-7) tmp = t_0; elseif (y_46_re <= 1.4e-14) tmp = 1.0; else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)) ^ y_46_re; tmp = 0.0; if (y_46_re <= -1.05e-7) tmp = t_0; elseif (y_46_re <= 1.4e-14) tmp = 1.0; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Power[N[(x$46$im + N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -1.05e-7], t$95$0, If[LessEqual[y$46$re, 1.4e-14], 1.0, t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(x.im + \frac{\left(x.re \cdot x.re\right) \cdot 0.5}{x.im}\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1.05 \cdot 10^{-7}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-14}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -1.05e-7 or 1.4e-14 < y.re Initial program 41.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified63.0%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.0%
Simplified65.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6469.9%
Simplified69.9%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6469.0%
Simplified69.0%
if -1.05e-7 < y.re < 1.4e-14Initial program 40.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.0%
Simplified60.0%
Taylor expanded in y.re around 0
Simplified59.2%
Final simplification64.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im -4.1e-23) (pow (- 0.0 x.im) y.re) (if (<= x.im 2.7e-38) (pow (* x.re x.re) (/ y.re 2.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 tmp;
if (x_46_im <= -4.1e-23) {
tmp = pow((0.0 - x_46_im), y_46_re);
} else if (x_46_im <= 2.7e-38) {
tmp = pow((x_46_re * x_46_re), (y_46_re / 2.0));
} else {
tmp = pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= (-4.1d-23)) then
tmp = (0.0d0 - x_46im) ** y_46re
else if (x_46im <= 2.7d-38) then
tmp = (x_46re * x_46re) ** (y_46re / 2.0d0)
else
tmp = x_46im ** y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -4.1e-23) {
tmp = Math.pow((0.0 - x_46_im), y_46_re);
} else if (x_46_im <= 2.7e-38) {
tmp = Math.pow((x_46_re * x_46_re), (y_46_re / 2.0));
} else {
tmp = 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_im <= -4.1e-23: tmp = math.pow((0.0 - x_46_im), y_46_re) elif x_46_im <= 2.7e-38: tmp = math.pow((x_46_re * x_46_re), (y_46_re / 2.0)) else: tmp = 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_im <= -4.1e-23) tmp = Float64(0.0 - x_46_im) ^ y_46_re; elseif (x_46_im <= 2.7e-38) tmp = Float64(x_46_re * x_46_re) ^ Float64(y_46_re / 2.0); else tmp = 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_im <= -4.1e-23) tmp = (0.0 - x_46_im) ^ y_46_re; elseif (x_46_im <= 2.7e-38) tmp = (x_46_re * x_46_re) ^ (y_46_re / 2.0); else tmp = 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[LessEqual[x$46$im, -4.1e-23], N[Power[N[(0.0 - x$46$im), $MachinePrecision], y$46$re], $MachinePrecision], If[LessEqual[x$46$im, 2.7e-38], N[Power[N[(x$46$re * x$46$re), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision], N[Power[x$46$im, y$46$re], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq -4.1 \cdot 10^{-23}:\\
\;\;\;\;{\left(0 - x.im\right)}^{y.re}\\
\mathbf{elif}\;x.im \leq 2.7 \cdot 10^{-38}:\\
\;\;\;\;{\left(x.re \cdot x.re\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;{x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -4.10000000000000029e-23Initial program 32.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified67.6%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.1%
Simplified69.1%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.7%
Simplified54.7%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f6470.0%
Simplified70.0%
if -4.10000000000000029e-23 < x.im < 2.70000000000000005e-38Initial program 48.8%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.7%
Simplified64.7%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f6452.5%
Simplified52.5%
Taylor expanded in y.re around 0
Simplified51.6%
*-rgt-identityN/A
sqr-powN/A
pow-prod-downN/A
sqr-negN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6455.8%
Applied egg-rr55.8%
if 2.70000000000000005e-38 < x.im Initial program 36.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified80.4%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6482.7%
Simplified82.7%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6447.1%
Simplified47.1%
Taylor expanded in x.im around inf
Simplified67.3%
Final simplification62.9%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im -4.2e-47) (pow (- 0.0 x.im) y.re) (if (<= x.im 2.3e-120) (pow (- 0.0 x.re) y.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_im <= -4.2e-47) {
tmp = pow((0.0 - x_46_im), y_46_re);
} else if (x_46_im <= 2.3e-120) {
tmp = pow((0.0 - x_46_re), y_46_re);
} else {
tmp = pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= (-4.2d-47)) then
tmp = (0.0d0 - x_46im) ** y_46re
else if (x_46im <= 2.3d-120) then
tmp = (0.0d0 - x_46re) ** y_46re
else
tmp = x_46im ** y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -4.2e-47) {
tmp = Math.pow((0.0 - x_46_im), y_46_re);
} else if (x_46_im <= 2.3e-120) {
tmp = Math.pow((0.0 - x_46_re), y_46_re);
} else {
tmp = 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_im <= -4.2e-47: tmp = math.pow((0.0 - x_46_im), y_46_re) elif x_46_im <= 2.3e-120: tmp = math.pow((0.0 - x_46_re), y_46_re) else: tmp = 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_im <= -4.2e-47) tmp = Float64(0.0 - x_46_im) ^ y_46_re; elseif (x_46_im <= 2.3e-120) tmp = Float64(0.0 - x_46_re) ^ y_46_re; else tmp = 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_im <= -4.2e-47) tmp = (0.0 - x_46_im) ^ y_46_re; elseif (x_46_im <= 2.3e-120) tmp = (0.0 - x_46_re) ^ y_46_re; else tmp = 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[LessEqual[x$46$im, -4.2e-47], N[Power[N[(0.0 - x$46$im), $MachinePrecision], y$46$re], $MachinePrecision], If[LessEqual[x$46$im, 2.3e-120], N[Power[N[(0.0 - x$46$re), $MachinePrecision], y$46$re], $MachinePrecision], N[Power[x$46$im, y$46$re], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq -4.2 \cdot 10^{-47}:\\
\;\;\;\;{\left(0 - x.im\right)}^{y.re}\\
\mathbf{elif}\;x.im \leq 2.3 \cdot 10^{-120}:\\
\;\;\;\;{\left(0 - x.re\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -4.2000000000000001e-47Initial program 34.2%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified67.3%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6468.7%
Simplified68.7%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6453.8%
Simplified53.8%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f6468.4%
Simplified68.4%
if -4.2000000000000001e-47 < x.im < 2.29999999999999986e-120Initial program 49.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.9%
Simplified69.9%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f6458.9%
Simplified58.9%
Taylor expanded in y.re around 0
Simplified55.5%
*-rgt-identityN/A
pow-lowering-pow.f64N/A
neg-sub0N/A
--lowering--.f6455.5%
Applied egg-rr55.5%
if 2.29999999999999986e-120 < x.im Initial program 38.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified76.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6479.6%
Simplified79.6%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6448.5%
Simplified48.5%
Taylor expanded in x.im around inf
Simplified61.9%
Final simplification61.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im -2.5e-81) (pow (- 0.0 x.im) y.re) (if (<= x.im 5.5e-191) (pow x.re y.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_im <= -2.5e-81) {
tmp = pow((0.0 - x_46_im), y_46_re);
} else if (x_46_im <= 5.5e-191) {
tmp = pow(x_46_re, y_46_re);
} else {
tmp = pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= (-2.5d-81)) then
tmp = (0.0d0 - x_46im) ** y_46re
else if (x_46im <= 5.5d-191) then
tmp = x_46re ** y_46re
else
tmp = x_46im ** y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -2.5e-81) {
tmp = Math.pow((0.0 - x_46_im), y_46_re);
} else if (x_46_im <= 5.5e-191) {
tmp = Math.pow(x_46_re, y_46_re);
} else {
tmp = 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_im <= -2.5e-81: tmp = math.pow((0.0 - x_46_im), y_46_re) elif x_46_im <= 5.5e-191: tmp = math.pow(x_46_re, y_46_re) else: tmp = 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_im <= -2.5e-81) tmp = Float64(0.0 - x_46_im) ^ y_46_re; elseif (x_46_im <= 5.5e-191) tmp = x_46_re ^ y_46_re; else tmp = 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_im <= -2.5e-81) tmp = (0.0 - x_46_im) ^ y_46_re; elseif (x_46_im <= 5.5e-191) tmp = x_46_re ^ y_46_re; else tmp = 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[LessEqual[x$46$im, -2.5e-81], N[Power[N[(0.0 - x$46$im), $MachinePrecision], y$46$re], $MachinePrecision], If[LessEqual[x$46$im, 5.5e-191], N[Power[x$46$re, y$46$re], $MachinePrecision], N[Power[x$46$im, y$46$re], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq -2.5 \cdot 10^{-81}:\\
\;\;\;\;{\left(0 - x.im\right)}^{y.re}\\
\mathbf{elif}\;x.im \leq 5.5 \cdot 10^{-191}:\\
\;\;\;\;{x.re}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -2.4999999999999999e-81Initial program 36.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified67.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.0%
Simplified69.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.9%
Simplified54.9%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f6467.5%
Simplified67.5%
if -2.4999999999999999e-81 < x.im < 5.5000000000000001e-191Initial program 46.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.9%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6470.9%
Simplified70.9%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6456.1%
Simplified56.1%
Taylor expanded in x.im around 0
Simplified55.8%
if 5.5000000000000001e-191 < x.im Initial program 40.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified77.5%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6479.1%
Simplified79.1%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.7%
Simplified49.7%
Taylor expanded in x.im around inf
Simplified57.9%
Final simplification60.2%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -1.4e-7) (pow x.im y.re) (if (<= y.re 10200000000000.0) 1.0 (pow x.re y.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -1.4e-7) {
tmp = pow(x_46_im, y_46_re);
} else if (y_46_re <= 10200000000000.0) {
tmp = 1.0;
} else {
tmp = pow(x_46_re, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46re <= (-1.4d-7)) then
tmp = x_46im ** y_46re
else if (y_46re <= 10200000000000.0d0) then
tmp = 1.0d0
else
tmp = x_46re ** y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -1.4e-7) {
tmp = Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= 10200000000000.0) {
tmp = 1.0;
} else {
tmp = Math.pow(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_re <= -1.4e-7: tmp = math.pow(x_46_im, y_46_re) elif y_46_re <= 10200000000000.0: tmp = 1.0 else: tmp = math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_re <= -1.4e-7) tmp = x_46_im ^ y_46_re; elseif (y_46_re <= 10200000000000.0) tmp = 1.0; else tmp = 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_re <= -1.4e-7) tmp = x_46_im ^ y_46_re; elseif (y_46_re <= 10200000000000.0) tmp = 1.0; else tmp = 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$re, -1.4e-7], N[Power[x$46$im, y$46$re], $MachinePrecision], If[LessEqual[y$46$re, 10200000000000.0], 1.0, N[Power[x$46$re, y$46$re], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.4 \cdot 10^{-7}:\\
\;\;\;\;{x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq 10200000000000:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.4000000000000001e-7Initial program 51.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified69.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.7%
Simplified67.7%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6479.0%
Simplified79.0%
Taylor expanded in x.im around inf
Simplified58.4%
if -1.4000000000000001e-7 < y.re < 1.02e13Initial program 40.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.1%
Simplified60.1%
Taylor expanded in y.re around 0
Simplified57.5%
if 1.02e13 < y.re Initial program 31.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified54.7%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.5%
Simplified62.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.2%
Simplified64.2%
Taylor expanded in x.im around 0
Simplified53.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -1.3e-7) (pow x.im y.re) (if (<= y.re 1.4e-14) 1.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 tmp;
if (y_46_re <= -1.3e-7) {
tmp = pow(x_46_im, y_46_re);
} else if (y_46_re <= 1.4e-14) {
tmp = 1.0;
} else {
tmp = pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46re <= (-1.3d-7)) then
tmp = x_46im ** y_46re
else if (y_46re <= 1.4d-14) then
tmp = 1.0d0
else
tmp = x_46im ** y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -1.3e-7) {
tmp = Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= 1.4e-14) {
tmp = 1.0;
} else {
tmp = 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 y_46_re <= -1.3e-7: tmp = math.pow(x_46_im, y_46_re) elif y_46_re <= 1.4e-14: tmp = 1.0 else: tmp = 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 (y_46_re <= -1.3e-7) tmp = x_46_im ^ y_46_re; elseif (y_46_re <= 1.4e-14) tmp = 1.0; else tmp = 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 (y_46_re <= -1.3e-7) tmp = x_46_im ^ y_46_re; elseif (y_46_re <= 1.4e-14) tmp = 1.0; else tmp = 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[LessEqual[y$46$re, -1.3e-7], N[Power[x$46$im, y$46$re], $MachinePrecision], If[LessEqual[y$46$re, 1.4e-14], 1.0, N[Power[x$46$im, y$46$re], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.3 \cdot 10^{-7}:\\
\;\;\;\;{x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-14}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;{x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.29999999999999999e-7 or 1.4e-14 < y.re Initial program 41.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified63.0%
Taylor expanded in y.re around 0
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.0%
Simplified65.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6469.9%
Simplified69.9%
Taylor expanded in x.im around inf
Simplified52.5%
if -1.29999999999999999e-7 < y.re < 1.4e-14Initial program 40.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.0%
Simplified60.0%
Taylor expanded in y.re around 0
Simplified59.2%
(FPCore (x.re x.im y.re y.im) :precision binary64 1.0)
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return 1.0;
}
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 = 1.0d0
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return 1.0;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return 1.0
function code(x_46_re, x_46_im, y_46_re, y_46_im) return 1.0 end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 1.0; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 41.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.1%
Simplified67.1%
Taylor expanded in y.re around 0
Simplified29.9%
herbie shell --seed 2024161
(FPCore (x.re x.im y.re y.im)
:name "powComplex, real part"
:precision binary64
(* (exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))) (cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))))