
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (sin t_1))
(t_3 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -5.8e+39)
(/ t_2 (pow t_3 (/ y.re -2.0)))
(if (<= y.re 215.0)
(/
(+ t_2 (* y.im (* (log (hypot x.im x.re)) (cos t_1))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(* t_2 (exp (- (* y.re (log (sqrt t_3))) t_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 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1);
double t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -5.8e+39) {
tmp = t_2 / pow(t_3, (y_46_re / -2.0));
} else if (y_46_re <= 215.0) {
tmp = (t_2 + (y_46_im * (log(hypot(x_46_im, x_46_re)) * cos(t_1)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2 * exp(((y_46_re * log(sqrt(t_3))) - t_0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1);
double t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -5.8e+39) {
tmp = t_2 / Math.pow(t_3, (y_46_re / -2.0));
} else if (y_46_re <= 215.0) {
tmp = (t_2 + (y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.cos(t_1)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2 * Math.exp(((y_46_re * Math.log(Math.sqrt(t_3))) - t_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 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -5.8e+39: tmp = t_2 / math.pow(t_3, (y_46_re / -2.0)) elif y_46_re <= 215.0: tmp = (t_2 + (y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * math.cos(t_1)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = t_2 * math.exp(((y_46_re * math.log(math.sqrt(t_3))) - t_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(y_46_re * atan(x_46_im, x_46_re)) t_2 = sin(t_1) t_3 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -5.8e+39) tmp = Float64(t_2 / (t_3 ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= 215.0) tmp = Float64(Float64(t_2 + Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * cos(t_1)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(t_2 * exp(Float64(Float64(y_46_re * log(sqrt(t_3))) - t_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 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1); t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -5.8e+39) tmp = t_2 / (t_3 ^ (y_46_re / -2.0)); elseif (y_46_re <= 215.0) tmp = (t_2 + (y_46_im * (log(hypot(x_46_im, x_46_re)) * cos(t_1)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = t_2 * exp(((y_46_re * log(sqrt(t_3))) - 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[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, Block[{t$95$3 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -5.8e+39], N[(t$95$2 / N[Power[t$95$3, N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 215.0], N[(N[(t$95$2 + N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Cos[t$95$1], $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[(t$95$2 * N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$3], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1\\
t_3 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -5.8 \cdot 10^{+39}:\\
\;\;\;\;\frac{t\_2}{{t\_3}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq 215:\\
\;\;\;\;\frac{t\_2 + y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot \cos t\_1\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot e^{y.re \cdot \log \left(\sqrt{t\_3}\right) - t\_0}\\
\end{array}
\end{array}
if y.re < -5.80000000000000059e39Initial program 25.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6472.3%
Simplified72.3%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr87.2%
if -5.80000000000000059e39 < y.re < 215Initial program 45.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.0%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.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.f6485.8%
Simplified85.8%
if 215 < y.re Initial program 51.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6473.2%
Simplified73.2%
Final simplification80.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (sin t_0))
(t_2 (* (atan2 x.im x.re) y.im))
(t_3 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -7.2e+39)
(/ t_1 (pow t_3 (/ y.re -2.0)))
(if (<= y.re 1.82)
(*
(/ (pow (hypot x.im x.re) y.re) (exp t_2))
(sin (+ t_0 (* y.im (log (hypot x.im x.re))))))
(* t_1 (exp (- (* y.re (log (sqrt t_3))) t_2)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double t_2 = atan2(x_46_im, x_46_re) * y_46_im;
double t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -7.2e+39) {
tmp = t_1 / pow(t_3, (y_46_re / -2.0));
} else if (y_46_re <= 1.82) {
tmp = (pow(hypot(x_46_im, x_46_re), y_46_re) / exp(t_2)) * sin((t_0 + (y_46_im * log(hypot(x_46_im, x_46_re)))));
} else {
tmp = t_1 * exp(((y_46_re * log(sqrt(t_3))) - t_2));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double t_2 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -7.2e+39) {
tmp = t_1 / Math.pow(t_3, (y_46_re / -2.0));
} else if (y_46_re <= 1.82) {
tmp = (Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) / Math.exp(t_2)) * Math.sin((t_0 + (y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))));
} else {
tmp = t_1 * Math.exp(((y_46_re * Math.log(Math.sqrt(t_3))) - t_2));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) t_2 = math.atan2(x_46_im, x_46_re) * y_46_im t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -7.2e+39: tmp = t_1 / math.pow(t_3, (y_46_re / -2.0)) elif y_46_re <= 1.82: tmp = (math.pow(math.hypot(x_46_im, x_46_re), y_46_re) / math.exp(t_2)) * math.sin((t_0 + (y_46_im * math.log(math.hypot(x_46_im, x_46_re))))) else: tmp = t_1 * math.exp(((y_46_re * math.log(math.sqrt(t_3))) - t_2)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) t_2 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_3 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -7.2e+39) tmp = Float64(t_1 / (t_3 ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= 1.82) tmp = Float64(Float64((hypot(x_46_im, x_46_re) ^ y_46_re) / exp(t_2)) * sin(Float64(t_0 + Float64(y_46_im * log(hypot(x_46_im, x_46_re)))))); else tmp = Float64(t_1 * exp(Float64(Float64(y_46_re * log(sqrt(t_3))) - t_2))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0); t_2 = atan2(x_46_im, x_46_re) * y_46_im; t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -7.2e+39) tmp = t_1 / (t_3 ^ (y_46_re / -2.0)); elseif (y_46_re <= 1.82) tmp = ((hypot(x_46_im, x_46_re) ^ y_46_re) / exp(t_2)) * sin((t_0 + (y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = t_1 * exp(((y_46_re * log(sqrt(t_3))) - 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -7.2e+39], N[(t$95$1 / N[Power[t$95$3, N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.82], N[(N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] / N[Exp[t$95$2], $MachinePrecision]), $MachinePrecision] * N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$3], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
t_2 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_3 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -7.2 \cdot 10^{+39}:\\
\;\;\;\;\frac{t\_1}{{t\_3}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq 1.82:\\
\;\;\;\;\frac{{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}}{e^{t\_2}} \cdot \sin \left(t\_0 + y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot e^{y.re \cdot \log \left(\sqrt{t\_3}\right) - t\_2}\\
\end{array}
\end{array}
if y.re < -7.19999999999999969e39Initial program 25.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6472.3%
Simplified72.3%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr87.2%
if -7.19999999999999969e39 < y.re < 1.82000000000000006Initial program 45.0%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
Simplified84.0%
if 1.82000000000000006 < y.re Initial program 51.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6473.2%
Simplified73.2%
Final simplification79.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (sin t_1))
(t_3 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -4.6e+15)
(/ t_2 (pow t_3 (/ y.re -2.0)))
(if (<= y.re 0.00085)
(* (sin (+ t_1 (* y.im (log (hypot x.im x.re))))) (/ 1.0 (exp t_0)))
(* t_2 (exp (- (* y.re (log (sqrt t_3))) t_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 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1);
double t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_2 / pow(t_3, (y_46_re / -2.0));
} else if (y_46_re <= 0.00085) {
tmp = sin((t_1 + (y_46_im * log(hypot(x_46_im, x_46_re))))) * (1.0 / exp(t_0));
} else {
tmp = t_2 * exp(((y_46_re * log(sqrt(t_3))) - t_0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1);
double t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_2 / Math.pow(t_3, (y_46_re / -2.0));
} else if (y_46_re <= 0.00085) {
tmp = Math.sin((t_1 + (y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))))) * (1.0 / Math.exp(t_0));
} else {
tmp = t_2 * Math.exp(((y_46_re * Math.log(Math.sqrt(t_3))) - t_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 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -4.6e+15: tmp = t_2 / math.pow(t_3, (y_46_re / -2.0)) elif y_46_re <= 0.00085: tmp = math.sin((t_1 + (y_46_im * math.log(math.hypot(x_46_im, x_46_re))))) * (1.0 / math.exp(t_0)) else: tmp = t_2 * math.exp(((y_46_re * math.log(math.sqrt(t_3))) - t_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(y_46_re * atan(x_46_im, x_46_re)) t_2 = sin(t_1) t_3 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = Float64(t_2 / (t_3 ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= 0.00085) tmp = Float64(sin(Float64(t_1 + Float64(y_46_im * log(hypot(x_46_im, x_46_re))))) * Float64(1.0 / exp(t_0))); else tmp = Float64(t_2 * exp(Float64(Float64(y_46_re * log(sqrt(t_3))) - t_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 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1); t_3 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = t_2 / (t_3 ^ (y_46_re / -2.0)); elseif (y_46_re <= 0.00085) tmp = sin((t_1 + (y_46_im * log(hypot(x_46_im, x_46_re))))) * (1.0 / exp(t_0)); else tmp = t_2 * exp(((y_46_re * log(sqrt(t_3))) - 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[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, Block[{t$95$3 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], N[(t$95$2 / N[Power[t$95$3, N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 0.00085], N[(N[Sin[N[(t$95$1 + N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$3], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1\\
t_3 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;\frac{t\_2}{{t\_3}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq 0.00085:\\
\;\;\;\;\sin \left(t\_1 + y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot \frac{1}{e^{t\_0}}\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot e^{y.re \cdot \log \left(\sqrt{t\_3}\right) - t\_0}\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr86.8%
if -4.6e15 < y.re < 8.49999999999999953e-4Initial program 45.5%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
Simplified83.4%
Taylor expanded in y.re around 0
Simplified81.7%
if 8.49999999999999953e-4 < y.re Initial program 51.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6473.2%
Simplified73.2%
Final simplification78.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (sin t_0)))
(if (<= y.re -4.6e+15)
(/ t_1 (pow (+ (* x.im x.im) (* x.re x.re)) (/ y.re -2.0)))
(if (<= y.re 8.2e-6)
(*
(sin (+ t_0 (* y.im (log (hypot x.im x.re)))))
(/ 1.0 (exp (* (atan2 x.im x.re) y.im))))
(* t_1 (pow (hypot x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_1 / pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= 8.2e-6) {
tmp = sin((t_0 + (y_46_im * log(hypot(x_46_im, x_46_re))))) * (1.0 / exp((atan2(x_46_im, x_46_re) * y_46_im)));
} else {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_1 / Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= 8.2e-6) {
tmp = Math.sin((t_0 + (y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))))) * (1.0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im)));
} else {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) tmp = 0 if y_46_re <= -4.6e+15: tmp = t_1 / math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0)) elif y_46_re <= 8.2e-6: tmp = math.sin((t_0 + (y_46_im * math.log(math.hypot(x_46_im, x_46_re))))) * (1.0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im))) else: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = Float64(t_1 / (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= 8.2e-6) tmp = Float64(sin(Float64(t_0 + Float64(y_46_im * log(hypot(x_46_im, x_46_re))))) * Float64(1.0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im)))); else tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0); tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = t_1 / (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (y_46_re / -2.0)); elseif (y_46_re <= 8.2e-6) tmp = sin((t_0 + (y_46_im * log(hypot(x_46_im, x_46_re))))) * (1.0 / exp((atan2(x_46_im, x_46_re) * y_46_im))); else tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], N[(t$95$1 / N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 8.2e-6], N[(N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;\frac{t\_1}{{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq 8.2 \cdot 10^{-6}:\\
\;\;\;\;\sin \left(t\_0 + y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot \frac{1}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr86.8%
if -4.6e15 < y.re < 8.1999999999999994e-6Initial program 45.8%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
Simplified83.3%
Taylor expanded in y.re around 0
Simplified82.0%
if 8.1999999999999994e-6 < y.re Initial program 50.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.2%
Simplified69.2%
Final simplification78.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re))))
(t_1 (exp (* (atan2 x.im x.re) y.im))))
(if (<= y.re -6.4e+39)
(/ t_0 (pow (+ (* x.im x.im) (* x.re x.re)) (/ y.re -2.0)))
(if (<= y.re -2.75e-62)
(/ t_0 (/ t_1 (pow (hypot x.re x.im) y.re)))
(if (<= y.re 1.55e-17)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_1)
(* t_0 (pow (hypot x.im x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -6.4e+39) {
tmp = t_0 / pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= -2.75e-62) {
tmp = t_0 / (t_1 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 1.55e-17) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_1;
} else {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_1 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -6.4e+39) {
tmp = t_0 / Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= -2.75e-62) {
tmp = t_0 / (t_1 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 1.55e-17) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_1;
} else {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_1 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_re <= -6.4e+39: tmp = t_0 / math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0)) elif y_46_re <= -2.75e-62: tmp = t_0 / (t_1 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif y_46_re <= 1.55e-17: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_1 else: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_1 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) tmp = 0.0 if (y_46_re <= -6.4e+39) tmp = Float64(t_0 / (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= -2.75e-62) tmp = Float64(t_0 / Float64(t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (y_46_re <= 1.55e-17) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_1); else tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_re <= -6.4e+39) tmp = t_0 / (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (y_46_re / -2.0)); elseif (y_46_re <= -2.75e-62) tmp = t_0 / (t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= 1.55e-17) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_1; else tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -6.4e+39], N[(t$95$0 / N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -2.75e-62], N[(t$95$0 / N[(t$95$1 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.55e-17], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_1 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.re \leq -6.4 \cdot 10^{+39}:\\
\;\;\;\;\frac{t\_0}{{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq -2.75 \cdot 10^{-62}:\\
\;\;\;\;\frac{t\_0}{\frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;y.re \leq 1.55 \cdot 10^{-17}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -6.39999999999999986e39Initial program 25.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6472.3%
Simplified72.3%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr87.2%
if -6.39999999999999986e39 < y.re < -2.75000000000000011e-62Initial program 36.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified77.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6473.7%
Simplified73.7%
if -2.75000000000000011e-62 < y.re < 1.5499999999999999e-17Initial program 48.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.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.f6470.8%
Simplified70.8%
if 1.5499999999999999e-17 < y.re Initial program 47.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.8%
Simplified66.8%
Final simplification70.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re))))
(t_1 (* (atan2 x.im x.re) y.im)))
(if (<= y.re -4.6e+15)
(/ t_0 (pow (+ (* x.im x.im) (* x.re x.re)) (/ y.re -2.0)))
(if (<= y.re -6.6e-61)
(* y.re (* (atan2 x.im x.re) (exp (- 0.0 t_1))))
(if (<= y.re 7.5e-17)
(/ (sin (* y.im (log (hypot x.im x.re)))) (exp t_1))
(* t_0 (pow (hypot x.im x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_1 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0 / pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= -6.6e-61) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - t_1)));
} else if (y_46_re <= 7.5e-17) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(t_1);
} else {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_1 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0 / Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= -6.6e-61) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((0.0 - t_1)));
} else if (y_46_re <= 7.5e-17) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp(t_1);
} else {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_1 = math.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if y_46_re <= -4.6e+15: tmp = t_0 / math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0)) elif y_46_re <= -6.6e-61: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((0.0 - t_1))) elif y_46_re <= 7.5e-17: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp(t_1) else: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_1 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = Float64(t_0 / (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= -6.6e-61) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(0.0 - t_1)))); elseif (y_46_re <= 7.5e-17) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(t_1)); else tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_1 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = t_0 / (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (y_46_re / -2.0)); elseif (y_46_re <= -6.6e-61) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - t_1))); elseif (y_46_re <= 7.5e-17) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(t_1); else tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], N[(t$95$0 / N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -6.6e-61], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(0.0 - t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 7.5e-17], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[t$95$1], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_1 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;\frac{t\_0}{{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq -6.6 \cdot 10^{-61}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{0 - t\_1}\right)\\
\mathbf{elif}\;y.re \leq 7.5 \cdot 10^{-17}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{t\_1}}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr86.8%
if -4.6e15 < y.re < -6.59999999999999992e-61Initial program 37.5%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6447.2%
Simplified47.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6467.9%
Simplified67.9%
if -6.59999999999999992e-61 < y.re < 7.49999999999999984e-17Initial program 48.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.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.f6470.8%
Simplified70.8%
if 7.49999999999999984e-17 < y.re Initial program 47.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.8%
Simplified66.8%
Final simplification70.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -4.6e+15)
(/ t_0 (pow (+ (* x.im x.im) (* x.re x.re)) (/ y.re -2.0)))
(if (<= y.re 7.2e-13)
(* y.re (* (atan2 x.im x.re) (exp (- 0.0 (* (atan2 x.im x.re) y.im)))))
(* t_0 (pow (hypot x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0 / pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= 7.2e-13) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0 / Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
} else if (y_46_re <= 7.2e-13) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -4.6e+15: tmp = t_0 / math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0)) elif y_46_re <= 7.2e-13: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) else: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = Float64(t_0 / (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ Float64(y_46_re / -2.0))); elseif (y_46_re <= 7.2e-13) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im))))); else tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = t_0 / (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (y_46_re / -2.0)); elseif (y_46_re <= 7.2e-13) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))); else tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], N[(t$95$0 / N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 7.2e-13], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;\frac{t\_0}{{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.re \leq 7.2 \cdot 10^{-13}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr86.8%
if -4.6e15 < y.re < 7.1999999999999996e-13Initial program 46.0%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.8%
Simplified38.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6457.7%
Simplified57.7%
if 7.1999999999999996e-13 < y.re Initial program 48.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.8%
Simplified66.8%
Final simplification63.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re))))
(if (<= y.re -2.25e-38)
t_1
(if (<= y.re -8.5e-260)
t_0
(if (<= y.re 1.68e-136)
(/ (/ (atan2 x.im x.re) (/ y.im y.re)) (/ 1.0 y.im))
(if (<= y.re 5.5e-37) t_0 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_1 = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -2.25e-38) {
tmp = t_1;
} else if (y_46_re <= -8.5e-260) {
tmp = t_0;
} else if (y_46_re <= 1.68e-136) {
tmp = (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im);
} else if (y_46_re <= 5.5e-37) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -2.25e-38) {
tmp = t_1;
} else if (y_46_re <= -8.5e-260) {
tmp = t_0;
} else if (y_46_re <= 1.68e-136) {
tmp = (Math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im);
} else if (y_46_re <= 5.5e-37) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -2.25e-38: tmp = t_1 elif y_46_re <= -8.5e-260: tmp = t_0 elif y_46_re <= 1.68e-136: tmp = (math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im) elif y_46_re <= 5.5e-37: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) t_1 = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -2.25e-38) tmp = t_1; elseif (y_46_re <= -8.5e-260) tmp = t_0; elseif (y_46_re <= 1.68e-136) tmp = Float64(Float64(atan(x_46_im, x_46_re) / Float64(y_46_im / y_46_re)) / Float64(1.0 / y_46_im)); elseif (y_46_re <= 5.5e-37) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * log(hypot(x_46_im, x_46_re)); t_1 = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -2.25e-38) tmp = t_1; elseif (y_46_re <= -8.5e-260) tmp = t_0; elseif (y_46_re <= 1.68e-136) tmp = (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im); elseif (y_46_re <= 5.5e-37) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.25e-38], t$95$1, If[LessEqual[y$46$re, -8.5e-260], t$95$0, If[LessEqual[y$46$re, 1.68e-136], N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision] / N[(1.0 / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.5e-37], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := \left(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{if}\;y.re \leq -2.25 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -8.5 \cdot 10^{-260}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.68 \cdot 10^{-136}:\\
\;\;\;\;\frac{\frac{\tan^{-1}_* \frac{x.im}{x.re}}{\frac{y.im}{y.re}}}{\frac{1}{y.im}}\\
\mathbf{elif}\;y.re \leq 5.5 \cdot 10^{-37}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -2.25000000000000004e-38 or 5.4999999999999998e-37 < y.re Initial program 35.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.8%
Simplified67.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.5%
Simplified66.5%
if -2.25000000000000004e-38 < y.re < -8.5000000000000003e-260 or 1.67999999999999993e-136 < y.re < 5.4999999999999998e-37Initial program 50.9%
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
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.4%
Simplified69.4%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.5%
Simplified25.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6446.1%
Simplified46.1%
if -8.5000000000000003e-260 < y.re < 1.67999999999999993e-136Initial program 46.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6419.7%
Simplified19.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6419.7%
Simplified19.7%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*r/N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6453.4%
Applied egg-rr53.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/
(sin (* y.re (atan2 x.im x.re)))
(pow (+ (* x.im x.im) (* x.re x.re)) (/ y.re -2.0)))))
(if (<= y.re -4.6e+15)
t_0
(if (<= y.re 7.2e-13)
(* y.re (* (atan2 x.im x.re) (exp (- 0.0 (* (atan2 x.im x.re) y.im)))))
t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))) / pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0;
} else if (y_46_re <= 7.2e-13) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im))));
} 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 = sin((y_46re * atan2(x_46im, x_46re))) / (((x_46im * x_46im) + (x_46re * x_46re)) ** (y_46re / (-2.0d0)))
if (y_46re <= (-4.6d+15)) then
tmp = t_0
else if (y_46re <= 7.2d-13) then
tmp = y_46re * (atan2(x_46im, x_46re) * exp((0.0d0 - (atan2(x_46im, x_46re) * y_46im))))
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.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) / Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0;
} else if (y_46_re <= 7.2e-13) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) / math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0)) tmp = 0 if y_46_re <= -4.6e+15: tmp = t_0 elif y_46_re <= 7.2e-13: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) / (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ Float64(y_46_re / -2.0))) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = t_0; elseif (y_46_re <= 7.2e-13) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))) / (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (y_46_re / -2.0)); tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = t_0; elseif (y_46_re <= 7.2e-13) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], t$95$0, If[LessEqual[y$46$re, 7.2e-13], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)}{{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 7.2 \cdot 10^{-13}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
frac-2negN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
distribute-frac-neg2N/A
/-lowering-/.f64N/A
Applied egg-rr86.8%
if -4.6e15 < y.re < 7.1999999999999996e-13Initial program 46.0%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.8%
Simplified38.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6457.7%
Simplified57.7%
if 7.1999999999999996e-13 < y.re Initial program 48.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.8%
Simplified66.8%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
Applied egg-rr64.6%
Final simplification63.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.re -4.6e+15)
(* t_0 (pow (+ x.re (/ (* (* x.im x.im) 0.5) x.re)) y.re))
(if (<= y.re 7.2e-13)
(* y.re (* (atan2 x.im x.re) (exp (- 0.0 (* (atan2 x.im x.re) y.im)))))
(/ (sin t_0) (pow (+ (* x.im x.im) (* x.re x.re)) (/ 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 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0 * pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 7.2e-13) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = sin(t_0) / pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
if (y_46re <= (-4.6d+15)) then
tmp = t_0 * ((x_46re + (((x_46im * x_46im) * 0.5d0) / x_46re)) ** y_46re)
else if (y_46re <= 7.2d-13) then
tmp = y_46re * (atan2(x_46im, x_46re) * exp((0.0d0 - (atan2(x_46im, x_46re) * y_46im))))
else
tmp = sin(t_0) / (((x_46im * x_46im) + (x_46re * x_46re)) ** (y_46re / (-2.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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = t_0 * Math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 7.2e-13) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = Math.sin(t_0) / Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_re <= -4.6e+15: tmp = t_0 * math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re) elif y_46_re <= 7.2e-13: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) else: tmp = math.sin(t_0) / math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / -2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = Float64(t_0 * (Float64(x_46_re + Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re)); elseif (y_46_re <= 7.2e-13) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im))))); else tmp = Float64(sin(t_0) / (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ 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 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = t_0 * ((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re); elseif (y_46_re <= 7.2e-13) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))); else tmp = sin(t_0) / (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], N[(t$95$0 * N[Power[N[(x$46$re + N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 7.2e-13], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] / N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;t\_0 \cdot {\left(x.re + \frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re}\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 7.2 \cdot 10^{-13}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin t\_0}{{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{-2}\right)}}\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
Taylor expanded in x.im around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.5%
Simplified73.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.8%
Simplified81.8%
if -4.6e15 < y.re < 7.1999999999999996e-13Initial program 46.0%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.8%
Simplified38.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6457.7%
Simplified57.7%
if 7.1999999999999996e-13 < y.re Initial program 48.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.8%
Simplified66.8%
/-rgt-identityN/A
clear-numN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
Applied egg-rr64.6%
Final simplification64.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -4.6e+15)
(*
(* y.re (atan2 x.im x.re))
(pow (+ x.re (/ (* (* x.im x.im) 0.5) x.re)) y.re))
(if (<= y.re 1.65e-6)
(* y.re (* (atan2 x.im x.re) (exp (- 0.0 (* (atan2 x.im x.re) y.im)))))
(* y.im (* (* 0.5 (log t_0)) (pow t_0 (/ 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 1.65e-6) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = y_46_im * ((0.5 * log(t_0)) * pow(t_0, (y_46_re / 2.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_46im) + (x_46re * x_46re)
if (y_46re <= (-4.6d+15)) then
tmp = (y_46re * atan2(x_46im, x_46re)) * ((x_46re + (((x_46im * x_46im) * 0.5d0) / x_46re)) ** y_46re)
else if (y_46re <= 1.65d-6) then
tmp = y_46re * (atan2(x_46im, x_46re) * exp((0.0d0 - (atan2(x_46im, x_46re) * y_46im))))
else
tmp = y_46im * ((0.5d0 * log(t_0)) * (t_0 ** (y_46re / 2.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_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -4.6e+15) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 1.65e-6) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im))));
} else {
tmp = y_46_im * ((0.5 * Math.log(t_0)) * Math.pow(t_0, (y_46_re / 2.0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -4.6e+15: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re) elif y_46_re <= 1.65e-6: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) else: tmp = y_46_im * ((0.5 * math.log(t_0)) * math.pow(t_0, (y_46_re / 2.0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -4.6e+15) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (Float64(x_46_re + Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re)); elseif (y_46_re <= 1.65e-6) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im))))); else tmp = Float64(y_46_im * Float64(Float64(0.5 * log(t_0)) * (t_0 ^ 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -4.6e+15) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * ((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re); elseif (y_46_re <= 1.65e-6) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))); else tmp = y_46_im * ((0.5 * log(t_0)) * (t_0 ^ (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[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e+15], N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[(x$46$re + N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.65e-6], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[(0.5 * N[Log[t$95$0], $MachinePrecision]), $MachinePrecision] * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re + \frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re}\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.65 \cdot 10^{-6}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right)\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\left(0.5 \cdot \log t\_0\right) \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\right)\\
\end{array}
\end{array}
if y.re < -4.6e15Initial program 26.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6475.1%
Simplified75.1%
Taylor expanded in x.im around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.5%
Simplified73.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.8%
Simplified81.8%
if -4.6e15 < y.re < 1.65000000000000008e-6Initial program 46.1%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.9%
Simplified38.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6457.2%
Simplified57.2%
if 1.65000000000000008e-6 < y.re Initial program 48.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified62.8%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6453.6%
Simplified53.6%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
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%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr62.9%
Final simplification64.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.im x.im) (* x.re x.re)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* y.im (log (hypot x.im x.re)))))
(if (<= y.re -4500000000000.0)
(* t_1 (pow (+ x.re (/ (* (* x.im x.im) 0.5) x.re)) y.re))
(if (<= y.re -7.4e-37)
(* (sin t_1) (pow (- 0.0 x.re) y.re))
(if (<= y.re -8.5e-260)
t_2
(if (<= y.re 1.02e-135)
(/ (/ (atan2 x.im x.re) (/ y.im y.re)) (/ 1.0 y.im))
(if (<= y.re 4.3e-38)
t_2
(if (<= y.re 1.65e-6)
(/ y.im (/ (/ y.im y.re) (atan2 x.im x.re)))
(* y.im (* (* 0.5 (log t_0)) (pow t_0 (/ 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = y_46_im * log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -4500000000000.0) {
tmp = t_1 * pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= -7.4e-37) {
tmp = sin(t_1) * pow((0.0 - x_46_re), y_46_re);
} else if (y_46_re <= -8.5e-260) {
tmp = t_2;
} else if (y_46_re <= 1.02e-135) {
tmp = (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im);
} else if (y_46_re <= 4.3e-38) {
tmp = t_2;
} else if (y_46_re <= 1.65e-6) {
tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re));
} else {
tmp = y_46_im * ((0.5 * log(t_0)) * pow(t_0, (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 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -4500000000000.0) {
tmp = t_1 * Math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= -7.4e-37) {
tmp = Math.sin(t_1) * Math.pow((0.0 - x_46_re), y_46_re);
} else if (y_46_re <= -8.5e-260) {
tmp = t_2;
} else if (y_46_re <= 1.02e-135) {
tmp = (Math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im);
} else if (y_46_re <= 4.3e-38) {
tmp = t_2;
} else if (y_46_re <= 1.65e-6) {
tmp = y_46_im / ((y_46_im / y_46_re) / Math.atan2(x_46_im, x_46_re));
} else {
tmp = y_46_im * ((0.5 * Math.log(t_0)) * Math.pow(t_0, (y_46_re / 2.0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_re <= -4500000000000.0: tmp = t_1 * math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re) elif y_46_re <= -7.4e-37: tmp = math.sin(t_1) * math.pow((0.0 - x_46_re), y_46_re) elif y_46_re <= -8.5e-260: tmp = t_2 elif y_46_re <= 1.02e-135: tmp = (math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im) elif y_46_re <= 4.3e-38: tmp = t_2 elif y_46_re <= 1.65e-6: tmp = y_46_im / ((y_46_im / y_46_re) / math.atan2(x_46_im, x_46_re)) else: tmp = y_46_im * ((0.5 * math.log(t_0)) * math.pow(t_0, (y_46_re / 2.0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -4500000000000.0) tmp = Float64(t_1 * (Float64(x_46_re + Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re)); elseif (y_46_re <= -7.4e-37) tmp = Float64(sin(t_1) * (Float64(0.0 - x_46_re) ^ y_46_re)); elseif (y_46_re <= -8.5e-260) tmp = t_2; elseif (y_46_re <= 1.02e-135) tmp = Float64(Float64(atan(x_46_im, x_46_re) / Float64(y_46_im / y_46_re)) / Float64(1.0 / y_46_im)); elseif (y_46_re <= 4.3e-38) tmp = t_2; elseif (y_46_re <= 1.65e-6) tmp = Float64(y_46_im / Float64(Float64(y_46_im / y_46_re) / atan(x_46_im, x_46_re))); else tmp = Float64(y_46_im * Float64(Float64(0.5 * log(t_0)) * (t_0 ^ 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = y_46_im * log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_re <= -4500000000000.0) tmp = t_1 * ((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re); elseif (y_46_re <= -7.4e-37) tmp = sin(t_1) * ((0.0 - x_46_re) ^ y_46_re); elseif (y_46_re <= -8.5e-260) tmp = t_2; elseif (y_46_re <= 1.02e-135) tmp = (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im); elseif (y_46_re <= 4.3e-38) tmp = t_2; elseif (y_46_re <= 1.65e-6) tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re)); else tmp = y_46_im * ((0.5 * log(t_0)) * (t_0 ^ (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[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4500000000000.0], N[(t$95$1 * N[Power[N[(x$46$re + N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -7.4e-37], N[(N[Sin[t$95$1], $MachinePrecision] * N[Power[N[(0.0 - x$46$re), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -8.5e-260], t$95$2, If[LessEqual[y$46$re, 1.02e-135], N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision] / N[(1.0 / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.3e-38], t$95$2, If[LessEqual[y$46$re, 1.65e-6], N[(y$46$im / N[(N[(y$46$im / y$46$re), $MachinePrecision] / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[(0.5 * N[Log[t$95$0], $MachinePrecision]), $MachinePrecision] * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.im \cdot x.im + x.re \cdot x.re\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -4500000000000:\\
\;\;\;\;t\_1 \cdot {\left(x.re + \frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re}\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq -7.4 \cdot 10^{-37}:\\
\;\;\;\;\sin t\_1 \cdot {\left(0 - x.re\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq -8.5 \cdot 10^{-260}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.02 \cdot 10^{-135}:\\
\;\;\;\;\frac{\frac{\tan^{-1}_* \frac{x.im}{x.re}}{\frac{y.im}{y.re}}}{\frac{1}{y.im}}\\
\mathbf{elif}\;y.re \leq 4.3 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.65 \cdot 10^{-6}:\\
\;\;\;\;\frac{y.im}{\frac{\frac{y.im}{y.re}}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\left(0.5 \cdot \log t\_0\right) \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\right)\\
\end{array}
\end{array}
if y.re < -4.5e12Initial program 27.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6473.9%
Simplified73.9%
Taylor expanded in x.im around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.0%
Simplified74.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.1%
Simplified82.1%
if -4.5e12 < y.re < -7.4e-37Initial program 35.3%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.5%
Simplified54.5%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f6447.5%
Simplified47.5%
if -7.4e-37 < y.re < -8.5000000000000003e-260 or 1.01999999999999994e-135 < y.re < 4.3000000000000002e-38Initial program 50.9%
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
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.4%
Simplified69.4%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.5%
Simplified25.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6446.1%
Simplified46.1%
if -8.5000000000000003e-260 < y.re < 1.01999999999999994e-135Initial program 46.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6419.7%
Simplified19.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6419.7%
Simplified19.7%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*r/N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6453.4%
Applied egg-rr53.4%
if 4.3000000000000002e-38 < y.re < 1.65000000000000008e-6Initial program 27.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6455.7%
Simplified55.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.2%
Simplified48.2%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6457.1%
Applied egg-rr57.1%
if 1.65000000000000008e-6 < y.re Initial program 48.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified62.8%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6453.6%
Simplified53.6%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
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%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr62.9%
Final simplification59.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ y.im (/ (/ y.im y.re) (atan2 x.im x.re))))
(t_1 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -0.019)
(*
(* y.re (atan2 x.im x.re))
(pow (+ x.re (/ (* (* x.im x.im) 0.5) x.re)) y.re))
(if (<= y.re 1.15e-137)
t_0
(if (<= y.re 1.25e-35)
(* y.im (log (hypot x.im x.re)))
(if (<= y.re 1.35e-6)
t_0
(* y.im (* (* 0.5 (log t_1)) (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 = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re));
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -0.019) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 1.15e-137) {
tmp = t_0;
} else if (y_46_re <= 1.25e-35) {
tmp = y_46_im * log(hypot(x_46_im, x_46_re));
} else if (y_46_re <= 1.35e-6) {
tmp = t_0;
} else {
tmp = y_46_im * ((0.5 * log(t_1)) * 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 = y_46_im / ((y_46_im / y_46_re) / Math.atan2(x_46_im, x_46_re));
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -0.019) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 1.15e-137) {
tmp = t_0;
} else if (y_46_re <= 1.25e-35) {
tmp = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
} else if (y_46_re <= 1.35e-6) {
tmp = t_0;
} else {
tmp = y_46_im * ((0.5 * Math.log(t_1)) * 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 = y_46_im / ((y_46_im / y_46_re) / math.atan2(x_46_im, x_46_re)) t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -0.019: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re) elif y_46_re <= 1.15e-137: tmp = t_0 elif y_46_re <= 1.25e-35: tmp = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) elif y_46_re <= 1.35e-6: tmp = t_0 else: tmp = y_46_im * ((0.5 * math.log(t_1)) * 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(y_46_im / Float64(Float64(y_46_im / y_46_re) / atan(x_46_im, x_46_re))) t_1 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -0.019) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (Float64(x_46_re + Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re)); elseif (y_46_re <= 1.15e-137) tmp = t_0; elseif (y_46_re <= 1.25e-35) tmp = Float64(y_46_im * log(hypot(x_46_im, x_46_re))); elseif (y_46_re <= 1.35e-6) tmp = t_0; else tmp = Float64(y_46_im * Float64(Float64(0.5 * log(t_1)) * (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 = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re)); t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -0.019) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * ((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re); elseif (y_46_re <= 1.15e-137) tmp = t_0; elseif (y_46_re <= 1.25e-35) tmp = y_46_im * log(hypot(x_46_im, x_46_re)); elseif (y_46_re <= 1.35e-6) tmp = t_0; else tmp = y_46_im * ((0.5 * log(t_1)) * (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[(y$46$im / N[(N[(y$46$im / y$46$re), $MachinePrecision] / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -0.019], N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[(x$46$re + N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.15e-137], t$95$0, If[LessEqual[y$46$re, 1.25e-35], N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.35e-6], t$95$0, N[(y$46$im * N[(N[(0.5 * N[Log[t$95$1], $MachinePrecision]), $MachinePrecision] * N[Power[t$95$1, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.im}{\frac{\frac{y.im}{y.re}}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
t_1 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -0.019:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re + \frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re}\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.15 \cdot 10^{-137}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.25 \cdot 10^{-35}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{elif}\;y.re \leq 1.35 \cdot 10^{-6}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \left(\left(0.5 \cdot \log t\_1\right) \cdot {t\_1}^{\left(\frac{y.re}{2}\right)}\right)\\
\end{array}
\end{array}
if y.re < -0.0189999999999999995Initial program 27.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6474.0%
Simplified74.0%
Taylor expanded in x.im around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.0%
Simplified71.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6478.7%
Simplified78.7%
if -0.0189999999999999995 < y.re < 1.15000000000000004e-137 or 1.24999999999999991e-35 < y.re < 1.34999999999999999e-6Initial program 44.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6425.0%
Simplified25.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6423.7%
Simplified23.7%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6444.3%
Applied egg-rr44.3%
if 1.15000000000000004e-137 < y.re < 1.24999999999999991e-35Initial program 56.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified79.0%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6474.7%
Simplified74.7%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.8%
Simplified28.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6448.0%
Simplified48.0%
if 1.34999999999999999e-6 < y.re Initial program 48.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified62.8%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6453.6%
Simplified53.6%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
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%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr62.9%
Final simplification56.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (* (* y.re (atan2 x.im x.re)) (pow (- 0.0 x.re) y.re))))
(if (<= y.re -1.6e-37)
t_1
(if (<= y.re -8.5e-260)
t_0
(if (<= y.re 1.6e-135)
(/ (/ (atan2 x.im x.re) (/ y.im y.re)) (/ 1.0 y.im))
(if (<= y.re 8.5e-38) t_0 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_1 = (y_46_re * atan2(x_46_im, x_46_re)) * pow((0.0 - x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.6e-37) {
tmp = t_1;
} else if (y_46_re <= -8.5e-260) {
tmp = t_0;
} else if (y_46_re <= 1.6e-135) {
tmp = (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im);
} else if (y_46_re <= 8.5e-38) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow((0.0 - x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.6e-37) {
tmp = t_1;
} else if (y_46_re <= -8.5e-260) {
tmp = t_0;
} else if (y_46_re <= 1.6e-135) {
tmp = (Math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im);
} else if (y_46_re <= 8.5e-38) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow((0.0 - x_46_re), y_46_re) tmp = 0 if y_46_re <= -1.6e-37: tmp = t_1 elif y_46_re <= -8.5e-260: tmp = t_0 elif y_46_re <= 1.6e-135: tmp = (math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im) elif y_46_re <= 8.5e-38: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) t_1 = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (Float64(0.0 - x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -1.6e-37) tmp = t_1; elseif (y_46_re <= -8.5e-260) tmp = t_0; elseif (y_46_re <= 1.6e-135) tmp = Float64(Float64(atan(x_46_im, x_46_re) / Float64(y_46_im / y_46_re)) / Float64(1.0 / y_46_im)); elseif (y_46_re <= 8.5e-38) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * log(hypot(x_46_im, x_46_re)); t_1 = (y_46_re * atan2(x_46_im, x_46_re)) * ((0.0 - x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -1.6e-37) tmp = t_1; elseif (y_46_re <= -8.5e-260) tmp = t_0; elseif (y_46_re <= 1.6e-135) tmp = (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) / (1.0 / y_46_im); elseif (y_46_re <= 8.5e-38) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[(0.0 - x$46$re), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.6e-37], t$95$1, If[LessEqual[y$46$re, -8.5e-260], t$95$0, If[LessEqual[y$46$re, 1.6e-135], N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision] / N[(1.0 / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 8.5e-38], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(0 - x.re\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1.6 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -8.5 \cdot 10^{-260}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.6 \cdot 10^{-135}:\\
\;\;\;\;\frac{\frac{\tan^{-1}_* \frac{x.im}{x.re}}{\frac{y.im}{y.re}}}{\frac{1}{y.im}}\\
\mathbf{elif}\;y.re \leq 8.5 \cdot 10^{-38}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -1.5999999999999999e-37 or 8.50000000000000046e-38 < y.re Initial program 35.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.8%
Simplified67.8%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f6453.3%
Simplified53.3%
Taylor expanded in y.re around 0
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6454.2%
Simplified54.2%
if -1.5999999999999999e-37 < y.re < -8.5000000000000003e-260 or 1.6e-135 < y.re < 8.50000000000000046e-38Initial program 50.9%
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
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.4%
Simplified69.4%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.5%
Simplified25.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6446.1%
Simplified46.1%
if -8.5000000000000003e-260 < y.re < 1.6e-135Initial program 46.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6419.7%
Simplified19.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6419.7%
Simplified19.7%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*r/N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6453.4%
Applied egg-rr53.4%
Final simplification52.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re)))))
(if (<= y.im -3.8e+25)
(/ 1.0 (/ (* (/ 1.0 y.re) (/ y.im (atan2 x.im x.re))) y.im))
(if (<= y.im -3e-119)
t_0
(if (<= y.im 5.5e-211)
(/ y.im (/ (/ y.im y.re) (atan2 x.im x.re)))
(if (<= y.im 4.8e-7)
t_0
(* y.im (/ (atan2 x.im x.re) (/ y.im y.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -3.8e+25) {
tmp = 1.0 / (((1.0 / y_46_re) * (y_46_im / atan2(x_46_im, x_46_re))) / y_46_im);
} else if (y_46_im <= -3e-119) {
tmp = t_0;
} else if (y_46_im <= 5.5e-211) {
tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re));
} else if (y_46_im <= 4.8e-7) {
tmp = t_0;
} else {
tmp = y_46_im * (atan2(x_46_im, x_46_re) / (y_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 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -3.8e+25) {
tmp = 1.0 / (((1.0 / y_46_re) * (y_46_im / Math.atan2(x_46_im, x_46_re))) / y_46_im);
} else if (y_46_im <= -3e-119) {
tmp = t_0;
} else if (y_46_im <= 5.5e-211) {
tmp = y_46_im / ((y_46_im / y_46_re) / Math.atan2(x_46_im, x_46_re));
} else if (y_46_im <= 4.8e-7) {
tmp = t_0;
} else {
tmp = y_46_im * (Math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_im <= -3.8e+25: tmp = 1.0 / (((1.0 / y_46_re) * (y_46_im / math.atan2(x_46_im, x_46_re))) / y_46_im) elif y_46_im <= -3e-119: tmp = t_0 elif y_46_im <= 5.5e-211: tmp = y_46_im / ((y_46_im / y_46_re) / math.atan2(x_46_im, x_46_re)) elif y_46_im <= 4.8e-7: tmp = t_0 else: tmp = y_46_im * (math.atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) tmp = 0.0 if (y_46_im <= -3.8e+25) tmp = Float64(1.0 / Float64(Float64(Float64(1.0 / y_46_re) * Float64(y_46_im / atan(x_46_im, x_46_re))) / y_46_im)); elseif (y_46_im <= -3e-119) tmp = t_0; elseif (y_46_im <= 5.5e-211) tmp = Float64(y_46_im / Float64(Float64(y_46_im / y_46_re) / atan(x_46_im, x_46_re))); elseif (y_46_im <= 4.8e-7) tmp = t_0; else tmp = Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / Float64(y_46_im / y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_im <= -3.8e+25) tmp = 1.0 / (((1.0 / y_46_re) * (y_46_im / atan2(x_46_im, x_46_re))) / y_46_im); elseif (y_46_im <= -3e-119) tmp = t_0; elseif (y_46_im <= 5.5e-211) tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re)); elseif (y_46_im <= 4.8e-7) tmp = t_0; else tmp = y_46_im * (atan2(x_46_im, x_46_re) / (y_46_im / y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -3.8e+25], N[(1.0 / N[(N[(N[(1.0 / y$46$re), $MachinePrecision] * N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -3e-119], t$95$0, If[LessEqual[y$46$im, 5.5e-211], N[(y$46$im / N[(N[(y$46$im / y$46$re), $MachinePrecision] / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 4.8e-7], t$95$0, N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.im \leq -3.8 \cdot 10^{+25}:\\
\;\;\;\;\frac{1}{\frac{\frac{1}{y.re} \cdot \frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}{y.im}}\\
\mathbf{elif}\;y.im \leq -3 \cdot 10^{-119}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 5.5 \cdot 10^{-211}:\\
\;\;\;\;\frac{y.im}{\frac{\frac{y.im}{y.re}}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;y.im \leq 4.8 \cdot 10^{-7}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{\frac{y.im}{y.re}}\\
\end{array}
\end{array}
if y.im < -3.8e25Initial program 32.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6427.2%
Simplified27.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f643.9%
Simplified3.9%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
associate-*l/N/A
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
*-commutativeN/A
*-lowering-*.f649.4%
Applied egg-rr9.4%
associate-/r*N/A
div-invN/A
frac-2negN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6432.1%
Applied egg-rr32.1%
if -3.8e25 < y.im < -3.0000000000000002e-119 or 5.49999999999999973e-211 < y.im < 4.79999999999999957e-7Initial program 45.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified88.8%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6486.7%
Simplified86.7%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.2%
Simplified51.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6447.0%
Simplified47.0%
if -3.0000000000000002e-119 < y.im < 5.49999999999999973e-211Initial program 42.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6483.5%
Simplified83.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6445.9%
Simplified45.9%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6452.0%
Applied egg-rr52.0%
if 4.79999999999999957e-7 < y.im Initial program 48.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6424.2%
Simplified24.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f648.9%
Simplified8.9%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f6427.3%
Applied egg-rr27.3%
Final simplification40.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.re -0.22)
(* t_0 (pow (+ x.re (/ (* (* x.im x.im) 0.5) x.re)) y.re))
(if (<= y.re 3.4e-137)
(/ y.im (/ (/ y.im y.re) (atan2 x.im x.re)))
(if (<= y.re 1.4e-36)
(* y.im (log (hypot x.im x.re)))
(* t_0 (pow (- 0.0 x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -0.22) {
tmp = t_0 * pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 3.4e-137) {
tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re));
} else if (y_46_re <= 1.4e-36) {
tmp = y_46_im * log(hypot(x_46_im, x_46_re));
} else {
tmp = t_0 * pow((0.0 - x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -0.22) {
tmp = t_0 * Math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re);
} else if (y_46_re <= 3.4e-137) {
tmp = y_46_im / ((y_46_im / y_46_re) / Math.atan2(x_46_im, x_46_re));
} else if (y_46_re <= 1.4e-36) {
tmp = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
} else {
tmp = t_0 * Math.pow((0.0 - x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_re <= -0.22: tmp = t_0 * math.pow((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)), y_46_re) elif y_46_re <= 3.4e-137: tmp = y_46_im / ((y_46_im / y_46_re) / math.atan2(x_46_im, x_46_re)) elif y_46_re <= 1.4e-36: tmp = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) else: tmp = t_0 * math.pow((0.0 - x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -0.22) tmp = Float64(t_0 * (Float64(x_46_re + Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re)); elseif (y_46_re <= 3.4e-137) tmp = Float64(y_46_im / Float64(Float64(y_46_im / y_46_re) / atan(x_46_im, x_46_re))); elseif (y_46_re <= 1.4e-36) tmp = Float64(y_46_im * log(hypot(x_46_im, x_46_re))); else tmp = Float64(t_0 * (Float64(0.0 - x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_re <= -0.22) tmp = t_0 * ((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)) ^ y_46_re); elseif (y_46_re <= 3.4e-137) tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re)); elseif (y_46_re <= 1.4e-36) tmp = y_46_im * log(hypot(x_46_im, x_46_re)); else tmp = t_0 * ((0.0 - x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -0.22], N[(t$95$0 * N[Power[N[(x$46$re + N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.4e-137], N[(y$46$im / N[(N[(y$46$im / y$46$re), $MachinePrecision] / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.4e-36], N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[(0.0 - x$46$re), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -0.22:\\
\;\;\;\;t\_0 \cdot {\left(x.re + \frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re}\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 3.4 \cdot 10^{-137}:\\
\;\;\;\;\frac{y.im}{\frac{\frac{y.im}{y.re}}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-36}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(0 - x.re\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -0.220000000000000001Initial program 27.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6474.0%
Simplified74.0%
Taylor expanded in x.im around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.0%
Simplified71.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6478.7%
Simplified78.7%
if -0.220000000000000001 < y.re < 3.40000000000000014e-137Initial program 46.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6422.1%
Simplified22.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6421.4%
Simplified21.4%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6443.1%
Applied egg-rr43.1%
if 3.40000000000000014e-137 < y.re < 1.4000000000000001e-36Initial program 56.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified79.0%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6474.7%
Simplified74.7%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.8%
Simplified28.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6448.0%
Simplified48.0%
if 1.4000000000000001e-36 < y.re Initial program 44.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.1%
Simplified65.1%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f6446.4%
Simplified46.4%
Taylor expanded in y.re around 0
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6442.5%
Simplified42.5%
Final simplification52.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 405000000.0) (/ y.im (/ (/ y.im y.re) (atan2 x.im x.re))) (* (* y.im (log x.re)) (pow x.re y.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 405000000.0) {
tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re));
} else {
tmp = (y_46_im * log(x_46_re)) * 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 (x_46re <= 405000000.0d0) then
tmp = y_46im / ((y_46im / y_46re) / atan2(x_46im, x_46re))
else
tmp = (y_46im * log(x_46re)) * (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 (x_46_re <= 405000000.0) {
tmp = y_46_im / ((y_46_im / y_46_re) / Math.atan2(x_46_im, x_46_re));
} else {
tmp = (y_46_im * Math.log(x_46_re)) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 405000000.0: tmp = y_46_im / ((y_46_im / y_46_re) / math.atan2(x_46_im, x_46_re)) else: tmp = (y_46_im * math.log(x_46_re)) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 405000000.0) tmp = Float64(y_46_im / Float64(Float64(y_46_im / y_46_re) / atan(x_46_im, x_46_re))); else tmp = Float64(Float64(y_46_im * log(x_46_re)) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 405000000.0) tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re)); else tmp = (y_46_im * log(x_46_re)) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 405000000.0], N[(y$46$im / N[(N[(y$46$im / y$46$re), $MachinePrecision] / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 405000000:\\
\;\;\;\;\frac{y.im}{\frac{\frac{y.im}{y.re}}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;\left(y.im \cdot \log x.re\right) \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if x.re < 4.05e8Initial program 44.3%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6441.8%
Simplified41.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.3%
Simplified16.3%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6429.8%
Applied egg-rr29.8%
if 4.05e8 < x.re Initial program 35.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified77.2%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6471.1%
Simplified71.1%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.2%
Simplified39.2%
Taylor expanded in x.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
pow-lowering-pow.f6460.8%
Simplified60.8%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -2.2e-35) (* y.re (/ y.im (/ y.im (atan2 x.im x.re)))) (/ y.im (/ (/ y.im y.re) (atan2 x.im x.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -2.2e-35) {
tmp = y_46_re * (y_46_im / (y_46_im / atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_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 <= (-2.2d-35)) then
tmp = y_46re * (y_46im / (y_46im / atan2(x_46im, x_46re)))
else
tmp = y_46im / ((y_46im / y_46re) / atan2(x_46im, x_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 <= -2.2e-35) {
tmp = y_46_re * (y_46_im / (y_46_im / Math.atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_im / ((y_46_im / y_46_re) / Math.atan2(x_46_im, x_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_re <= -2.2e-35: tmp = y_46_re * (y_46_im / (y_46_im / math.atan2(x_46_im, x_46_re))) else: tmp = y_46_im / ((y_46_im / y_46_re) / math.atan2(x_46_im, x_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_re <= -2.2e-35) tmp = Float64(y_46_re * Float64(y_46_im / Float64(y_46_im / atan(x_46_im, x_46_re)))); else tmp = Float64(y_46_im / Float64(Float64(y_46_im / y_46_re) / atan(x_46_im, x_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_re <= -2.2e-35) tmp = y_46_re * (y_46_im / (y_46_im / atan2(x_46_im, x_46_re))); else tmp = y_46_im / ((y_46_im / y_46_re) / atan2(x_46_im, x_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, -2.2e-35], N[(y$46$re * N[(y$46$im / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$im / N[(N[(y$46$im / y$46$re), $MachinePrecision] / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -2.2 \cdot 10^{-35}:\\
\;\;\;\;y.re \cdot \frac{y.im}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.im}{\frac{\frac{y.im}{y.re}}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\end{array}
\end{array}
if y.re < -2.19999999999999994e-35Initial program 29.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.7%
Simplified69.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6417.7%
Simplified17.7%
*-lft-identityN/A
rgt-mult-inverseN/A
associate-*r*N/A
associate-/r/N/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6422.6%
Applied egg-rr22.6%
if -2.19999999999999994e-35 < y.re Initial program 47.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6431.6%
Simplified31.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.5%
Simplified15.5%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6432.3%
Applied egg-rr32.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -8e-37) (* y.re (/ y.im (/ y.im (atan2 x.im x.re)))) (* y.im (/ (atan2 x.im x.re) (/ y.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 <= -8e-37) {
tmp = y_46_re * (y_46_im / (y_46_im / atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_im * (atan2(x_46_im, x_46_re) / (y_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 <= (-8d-37)) then
tmp = y_46re * (y_46im / (y_46im / atan2(x_46im, x_46re)))
else
tmp = y_46im * (atan2(x_46im, x_46re) / (y_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 <= -8e-37) {
tmp = y_46_re * (y_46_im / (y_46_im / Math.atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_im * (Math.atan2(x_46_im, x_46_re) / (y_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 <= -8e-37: tmp = y_46_re * (y_46_im / (y_46_im / math.atan2(x_46_im, x_46_re))) else: tmp = y_46_im * (math.atan2(x_46_im, x_46_re) / (y_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 <= -8e-37) tmp = Float64(y_46_re * Float64(y_46_im / Float64(y_46_im / atan(x_46_im, x_46_re)))); else tmp = Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / Float64(y_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 <= -8e-37) tmp = y_46_re * (y_46_im / (y_46_im / atan2(x_46_im, x_46_re))); else tmp = y_46_im * (atan2(x_46_im, x_46_re) / (y_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, -8e-37], N[(y$46$re * N[(y$46$im / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -8 \cdot 10^{-37}:\\
\;\;\;\;y.re \cdot \frac{y.im}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{\frac{y.im}{y.re}}\\
\end{array}
\end{array}
if y.re < -8.00000000000000053e-37Initial program 29.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6469.7%
Simplified69.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6417.7%
Simplified17.7%
*-lft-identityN/A
rgt-mult-inverseN/A
associate-*r*N/A
associate-/r/N/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6422.6%
Applied egg-rr22.6%
if -8.00000000000000053e-37 < y.re Initial program 47.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6431.6%
Simplified31.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.5%
Simplified15.5%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f6432.3%
Applied egg-rr32.3%
Final simplification29.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 1450.0) (* (* (atan2 x.im x.re) y.im) (/ y.re y.im)) (* y.re (* y.im (/ (atan2 x.im x.re) y.im)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1450.0) {
tmp = (atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im);
} else {
tmp = y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / y_46_im));
}
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_46re <= 1450.0d0) then
tmp = (atan2(x_46im, x_46re) * y_46im) * (y_46re / y_46im)
else
tmp = y_46re * (y_46im * (atan2(x_46im, x_46re) / y_46im))
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_re <= 1450.0) {
tmp = (Math.atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im);
} else {
tmp = y_46_re * (y_46_im * (Math.atan2(x_46_im, x_46_re) / y_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 1450.0: tmp = (math.atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im) else: tmp = y_46_re * (y_46_im * (math.atan2(x_46_im, x_46_re) / y_46_im)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 1450.0) tmp = Float64(Float64(atan(x_46_im, x_46_re) * y_46_im) * Float64(y_46_re / y_46_im)); else tmp = Float64(y_46_re * Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 1450.0) tmp = (atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im); else tmp = y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / y_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 1450.0], N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision] * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1450:\\
\;\;\;\;\left(\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\right) \cdot \frac{y.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\\
\end{array}
\end{array}
if x.re < 1450Initial program 44.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6441.5%
Simplified41.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.4%
Simplified16.4%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
*-commutativeN/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6428.9%
Applied egg-rr28.9%
if 1450 < x.re Initial program 36.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6448.1%
Simplified48.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.7%
Simplified15.7%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6423.0%
Applied egg-rr23.0%
Final simplification27.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ 1.0 (/ (* (/ 1.0 y.re) (/ y.im (atan2 x.im x.re))) y.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return 1.0 / (((1.0 / y_46_re) * (y_46_im / atan2(x_46_im, x_46_re))) / y_46_im);
}
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 / (((1.0d0 / y_46re) * (y_46im / atan2(x_46im, x_46re))) / y_46im)
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 / (((1.0 / y_46_re) * (y_46_im / Math.atan2(x_46_im, x_46_re))) / y_46_im);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return 1.0 / (((1.0 / y_46_re) * (y_46_im / math.atan2(x_46_im, x_46_re))) / y_46_im)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(1.0 / Float64(Float64(Float64(1.0 / y_46_re) * Float64(y_46_im / atan(x_46_im, x_46_re))) / y_46_im)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 1.0 / (((1.0 / y_46_re) * (y_46_im / atan2(x_46_im, x_46_re))) / y_46_im); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(1.0 / N[(N[(N[(1.0 / y$46$re), $MachinePrecision] * N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{\frac{1}{y.re} \cdot \frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}{y.im}}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6443.2%
Simplified43.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.2%
Simplified16.2%
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
associate-*l/N/A
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
*-commutativeN/A
*-lowering-*.f6413.8%
Applied egg-rr13.8%
associate-/r*N/A
div-invN/A
frac-2negN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6428.5%
Applied egg-rr28.5%
Final simplification28.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.im (/ (* y.re (atan2 x.im x.re)) y.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_im * ((y_46_re * atan2(x_46_im, x_46_re)) / y_46_im);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46im * ((y_46re * atan2(x_46im, x_46re)) / y_46im)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_im * ((y_46_re * Math.atan2(x_46_im, x_46_re)) / y_46_im);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_im * ((y_46_re * math.atan2(x_46_im, x_46_re)) / y_46_im)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_im * Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) / y_46_im)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_im * ((y_46_re * atan2(x_46_im, x_46_re)) / y_46_im); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$im * N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.im \cdot \frac{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}{y.im}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6443.2%
Simplified43.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.2%
Simplified16.2%
remove-double-divN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6416.2%
Applied egg-rr16.2%
associate-/r/N/A
/-rgt-identityN/A
*-lft-identityN/A
*-inversesN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-*l/N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l/N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6427.0%
Applied egg-rr27.0%
Final simplification27.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (/ y.im (/ y.im (atan2 x.im x.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (y_46_im / (y_46_im / atan2(x_46_im, x_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * (y_46im / (y_46im / atan2(x_46im, x_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (y_46_im / (y_46_im / Math.atan2(x_46_im, x_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * (y_46_im / (y_46_im / math.atan2(x_46_im, x_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * Float64(y_46_im / Float64(y_46_im / atan(x_46_im, x_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * (y_46_im / (y_46_im / atan2(x_46_im, x_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[(y$46$im / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \frac{y.im}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6443.2%
Simplified43.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.2%
Simplified16.2%
*-lft-identityN/A
rgt-mult-inverseN/A
associate-*r*N/A
associate-/r/N/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6418.7%
Applied egg-rr18.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (* y.im (/ (atan2 x.im x.re) y.im))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / y_46_im));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * (y_46im * (atan2(x_46im, x_46re) / y_46im))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (y_46_im * (Math.atan2(x_46_im, x_46_re) / y_46_im));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * (y_46_im * (math.atan2(x_46_im, x_46_re) / y_46_im))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_im))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / y_46_im)); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \left(y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6443.2%
Simplified43.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.2%
Simplified16.2%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6418.4%
Applied egg-rr18.4%
Final simplification18.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6443.2%
Simplified43.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.2%
Simplified16.2%
herbie shell --seed 2024159
(FPCore (x.re x.im y.re y.im)
:name "powComplex, imaginary part"
:precision binary64
(* (exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))) (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))))