
(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 (log (hypot x.im x.re)))
(t_2
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
(sin (* y.im t_1)))))
(if (<= y.re -12.0)
t_2
(if (<= y.re 1.05e+40)
(/
(sin (* y.im (+ t_1 (* y.re (/ (atan2 x.im x.re) y.im)))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
t_2))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = log(hypot(x_46_im, x_46_re));
double t_2 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * sin((y_46_im * t_1));
double tmp;
if (y_46_re <= -12.0) {
tmp = t_2;
} else if (y_46_re <= 1.05e+40) {
tmp = sin((y_46_im * (t_1 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.log(Math.hypot(x_46_im, x_46_re));
double t_2 = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * Math.sin((y_46_im * t_1));
double tmp;
if (y_46_re <= -12.0) {
tmp = t_2;
} else if (y_46_re <= 1.05e+40) {
tmp = Math.sin((y_46_im * (t_1 + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.log(math.hypot(x_46_im, x_46_re)) t_2 = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * math.sin((y_46_im * t_1)) tmp = 0 if y_46_re <= -12.0: tmp = t_2 elif y_46_re <= 1.05e+40: tmp = math.sin((y_46_im * (t_1 + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = log(hypot(x_46_im, x_46_re)) t_2 = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - t_0)) * sin(Float64(y_46_im * t_1))) tmp = 0.0 if (y_46_re <= -12.0) tmp = t_2; elseif (y_46_re <= 1.05e+40) tmp = Float64(sin(Float64(y_46_im * Float64(t_1 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = t_2; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = log(hypot(x_46_im, x_46_re)); t_2 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * sin((y_46_im * t_1)); tmp = 0.0; if (y_46_re <= -12.0) tmp = t_2; elseif (y_46_re <= 1.05e+40) tmp = sin((y_46_im * (t_1 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = t_2; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -12.0], t$95$2, If[LessEqual[y$46$re, 1.05e+40], N[(N[Sin[N[(y$46$im * N[(t$95$1 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / 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], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_2 := e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t\_0} \cdot \sin \left(y.im \cdot t\_1\right)\\
\mathbf{if}\;y.re \leq -12:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.05 \cdot 10^{+40}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(t\_1 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -12 or 1.05000000000000005e40 < y.re Initial program 34.3%
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.4%
Simplified74.4%
if -12 < y.re < 1.05000000000000005e40Initial program 35.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified79.7%
Taylor expanded in y.im around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6481.0%
Simplified81.0%
Final simplification78.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
(sin (* y.im (log (hypot x.im x.re)))))))
(if (<= y.re -105000.0)
t_1
(if (<= y.re 4.4e+15)
(/
(sin (+ (* y.im (log (hypot x.re x.im))) (* y.re (atan2 x.im x.re))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double tmp;
if (y_46_re <= -105000.0) {
tmp = t_1;
} else if (y_46_re <= 4.4e+15) {
tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + (y_46_re * atan2(x_46_im, x_46_re)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double tmp;
if (y_46_re <= -105000.0) {
tmp = t_1;
} else if (y_46_re <= 4.4e+15) {
tmp = Math.sin(((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))) + (y_46_re * Math.atan2(x_46_im, x_46_re)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) tmp = 0 if y_46_re <= -105000.0: tmp = t_1 elif y_46_re <= 4.4e+15: tmp = math.sin(((y_46_im * math.log(math.hypot(x_46_re, x_46_im))) + (y_46_re * math.atan2(x_46_im, x_46_re)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - t_0)) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))) tmp = 0.0 if (y_46_re <= -105000.0) tmp = t_1; elseif (y_46_re <= 4.4e+15) tmp = Float64(sin(Float64(Float64(y_46_im * log(hypot(x_46_re, x_46_im))) + Float64(y_46_re * atan(x_46_im, x_46_re)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); 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 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); tmp = 0.0; if (y_46_re <= -105000.0) tmp = t_1; elseif (y_46_re <= 4.4e+15) tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + (y_46_re * atan2(x_46_im, x_46_re)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -105000.0], t$95$1, If[LessEqual[y$46$re, 4.4e+15], N[(N[Sin[N[(N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t\_0} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{if}\;y.re \leq -105000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 4.4 \cdot 10^{+15}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -105000 or 4.4e15 < y.re Initial program 34.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.f6472.2%
Simplified72.2%
if -105000 < y.re < 4.4e15Initial program 35.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.6%
Final simplification77.5%
(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 (log (/ 1.0 x.re)))
(t_3 (log (/ -1.0 x.re))))
(if (<= x.re -4.3e-162)
(* (exp (- (* (- 0.0 y.re) t_3) t_0)) (sin (- t_1 (* y.im t_3))))
(if (<= x.re 1.5e-96)
(/
(sin (* y.im (log (hypot x.im x.re))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(* (exp (- (* (- 0.0 y.re) t_2) t_0)) (sin (- t_1 (* y.im t_2))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 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 = log((1.0 / x_46_re));
double t_3 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -4.3e-162) {
tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_1 - (y_46_im * t_3)));
} else if (x_46_re <= 1.5e-96) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log((1.0 / x_46_re));
double t_3 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -4.3e-162) {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_0)) * Math.sin((t_1 - (y_46_im * t_3)));
} else if (x_46_re <= 1.5e-96) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = Math.exp((((0.0 - y_46_re) * t_2) - t_0)) * Math.sin((t_1 - (y_46_im * t_2)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log((1.0 / x_46_re)) t_3 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -4.3e-162: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_0)) * math.sin((t_1 - (y_46_im * t_3))) elif x_46_re <= 1.5e-96: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = math.exp((((0.0 - y_46_re) * t_2) - t_0)) * math.sin((t_1 - (y_46_im * t_2))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(Float64(1.0 / x_46_re)) t_3 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -4.3e-162) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_0)) * sin(Float64(t_1 - Float64(y_46_im * t_3)))); elseif (x_46_re <= 1.5e-96) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_2) - t_0)) * sin(Float64(t_1 - Float64(y_46_im * t_2)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log((1.0 / x_46_re)); t_3 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -4.3e-162) tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_1 - (y_46_im * t_3))); elseif (x_46_re <= 1.5e-96) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[(1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -4.3e-162], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$3), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 1.5e-96], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$2), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$2), $MachinePrecision]), $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 := \log \left(\frac{1}{x.re}\right)\\
t_3 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -4.3 \cdot 10^{-162}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_0} \cdot \sin \left(t\_1 - y.im \cdot t\_3\right)\\
\mathbf{elif}\;x.re \leq 1.5 \cdot 10^{-96}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_2 - t\_0} \cdot \sin \left(t\_1 - y.im \cdot t\_2\right)\\
\end{array}
\end{array}
if x.re < -4.29999999999999996e-162Initial program 37.3%
Taylor expanded in x.re around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified75.8%
if -4.29999999999999996e-162 < x.re < 1.5e-96Initial program 35.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified71.7%
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.f6466.0%
Simplified66.0%
if 1.5e-96 < x.re Initial program 32.1%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified75.6%
Final simplification72.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* (atan2 x.im x.re) y.im)))
(t_1 (/ t_0 (pow (hypot x.re x.im) y.re)))
(t_2 (sin (* y.re (atan2 x.im x.re))))
(t_3
(*
(/
(- 0.0 -1.0)
(exp
(* (log (+ (* x.re x.re) (* x.im x.im))) (* y.re (- 0.0 0.5)))))
t_2)))
(if (<= y.re -2.35e+162)
t_3
(if (<= y.re -2.1e-155)
(/ t_2 t_1)
(if (<= y.re 1.25e-76)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_0)
(if (<= y.re 1.7e+36)
(/ (sin (* y.im (* y.re (/ (atan2 x.im x.re) y.im)))) t_1)
t_3))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = t_0 / pow(hypot(x_46_re, x_46_im), y_46_re);
double t_2 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_3 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_2;
double tmp;
if (y_46_re <= -2.35e+162) {
tmp = t_3;
} else if (y_46_re <= -2.1e-155) {
tmp = t_2 / t_1;
} else if (y_46_re <= 1.25e-76) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 1.7e+36) {
tmp = sin((y_46_im * (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))) / t_1;
} else {
tmp = t_3;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = t_0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
double t_2 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_3 = ((0.0 - -1.0) / Math.exp((Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_2;
double tmp;
if (y_46_re <= -2.35e+162) {
tmp = t_3;
} else if (y_46_re <= -2.1e-155) {
tmp = t_2 / t_1;
} else if (y_46_re <= 1.25e-76) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 1.7e+36) {
tmp = Math.sin((y_46_im * (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im)))) / t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_1 = t_0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re) t_2 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_3 = ((0.0 - -1.0) / math.exp((math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_2 tmp = 0 if y_46_re <= -2.35e+162: tmp = t_3 elif y_46_re <= -2.1e-155: tmp = t_2 / t_1 elif y_46_re <= 1.25e-76: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_0 elif y_46_re <= 1.7e+36: tmp = math.sin((y_46_im * (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im)))) / t_1 else: tmp = t_3 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_1 = Float64(t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re)) t_2 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_3 = Float64(Float64(Float64(0.0 - -1.0) / exp(Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) * Float64(y_46_re * Float64(0.0 - 0.5))))) * t_2) tmp = 0.0 if (y_46_re <= -2.35e+162) tmp = t_3; elseif (y_46_re <= -2.1e-155) tmp = Float64(t_2 / t_1); elseif (y_46_re <= 1.25e-76) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0); elseif (y_46_re <= 1.7e+36) tmp = Float64(sin(Float64(y_46_im * Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im)))) / t_1); else tmp = t_3; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_1 = t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re); t_2 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_3 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_2; tmp = 0.0; if (y_46_re <= -2.35e+162) tmp = t_3; elseif (y_46_re <= -2.1e-155) tmp = t_2 / t_1; elseif (y_46_re <= 1.25e-76) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0; elseif (y_46_re <= 1.7e+36) tmp = sin((y_46_im * (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))) / t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(y$46$re * N[(0.0 - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision]}, If[LessEqual[y$46$re, -2.35e+162], t$95$3, If[LessEqual[y$46$re, -2.1e-155], N[(t$95$2 / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 1.25e-76], 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$0), $MachinePrecision], If[LessEqual[y$46$re, 1.7e+36], N[(N[Sin[N[(y$46$im * N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_1 := \frac{t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}\\
t_2 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_3 := \frac{0 - -1}{e^{\log \left(x.re \cdot x.re + x.im \cdot x.im\right) \cdot \left(y.re \cdot \left(0 - 0.5\right)\right)}} \cdot t\_2\\
\mathbf{if}\;y.re \leq -2.35 \cdot 10^{+162}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y.re \leq -2.1 \cdot 10^{-155}:\\
\;\;\;\;\frac{t\_2}{t\_1}\\
\mathbf{elif}\;y.re \leq 1.25 \cdot 10^{-76}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_0}\\
\mathbf{elif}\;y.re \leq 1.7 \cdot 10^{+36}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y.re < -2.35000000000000001e162 or 1.6999999999999999e36 < y.re Initial program 30.5%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6452.6%
Simplified52.6%
exp-diffN/A
pow-to-expN/A
clear-numN/A
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
Applied egg-rr57.3%
Taylor expanded in y.im around 0
rec-expN/A
exp-lowering-exp.f64N/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6468.5%
Simplified68.5%
if -2.35000000000000001e162 < y.re < -2.1000000000000002e-155Initial program 39.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified78.5%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6473.9%
Simplified73.9%
if -2.1000000000000002e-155 < y.re < 1.2499999999999999e-76Initial program 36.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.3%
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.f6469.0%
Simplified69.0%
if 1.2499999999999999e-76 < y.re < 1.6999999999999999e36Initial program 36.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified73.2%
Taylor expanded in y.im around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6476.5%
Simplified76.5%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
/-lowering-/.f6476.5%
Applied egg-rr76.5%
Taylor expanded in y.re around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6463.6%
Simplified63.6%
Final simplification63.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* (atan2 x.im x.re) y.im)))
(t_1 (sin (* y.re (atan2 x.im x.re))))
(t_2 (/ t_1 (/ t_0 (pow (hypot x.re x.im) y.re))))
(t_3
(*
(/
(- 0.0 -1.0)
(exp
(* (log (+ (* x.re x.re) (* x.im x.im))) (* y.re (- 0.0 0.5)))))
t_1)))
(if (<= y.re -4.3e+163)
t_3
(if (<= y.re -9.5e-161)
t_2
(if (<= y.re 3.15e-71)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_0)
(if (<= y.re 29000000000.0) t_2 t_3))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_2 = t_1 / (t_0 / pow(hypot(x_46_re, x_46_im), y_46_re));
double t_3 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_1;
double tmp;
if (y_46_re <= -4.3e+163) {
tmp = t_3;
} else if (y_46_re <= -9.5e-161) {
tmp = t_2;
} else if (y_46_re <= 3.15e-71) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 29000000000.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_2 = t_1 / (t_0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
double t_3 = ((0.0 - -1.0) / Math.exp((Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_1;
double tmp;
if (y_46_re <= -4.3e+163) {
tmp = t_3;
} else if (y_46_re <= -9.5e-161) {
tmp = t_2;
} else if (y_46_re <= 3.15e-71) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 29000000000.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_1 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_2 = t_1 / (t_0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) t_3 = ((0.0 - -1.0) / math.exp((math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_1 tmp = 0 if y_46_re <= -4.3e+163: tmp = t_3 elif y_46_re <= -9.5e-161: tmp = t_2 elif y_46_re <= 3.15e-71: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_0 elif y_46_re <= 29000000000.0: tmp = t_2 else: tmp = t_3 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_1 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_2 = Float64(t_1 / Float64(t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re))) t_3 = Float64(Float64(Float64(0.0 - -1.0) / exp(Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) * Float64(y_46_re * Float64(0.0 - 0.5))))) * t_1) tmp = 0.0 if (y_46_re <= -4.3e+163) tmp = t_3; elseif (y_46_re <= -9.5e-161) tmp = t_2; elseif (y_46_re <= 3.15e-71) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0); elseif (y_46_re <= 29000000000.0) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_2 = t_1 / (t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); t_3 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_1; tmp = 0.0; if (y_46_re <= -4.3e+163) tmp = t_3; elseif (y_46_re <= -9.5e-161) tmp = t_2; elseif (y_46_re <= 3.15e-71) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0; elseif (y_46_re <= 29000000000.0) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(t$95$0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(y$46$re * N[(0.0 - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]}, If[LessEqual[y$46$re, -4.3e+163], t$95$3, If[LessEqual[y$46$re, -9.5e-161], t$95$2, If[LessEqual[y$46$re, 3.15e-71], 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$0), $MachinePrecision], If[LessEqual[y$46$re, 29000000000.0], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_1 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_2 := \frac{t\_1}{\frac{t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
t_3 := \frac{0 - -1}{e^{\log \left(x.re \cdot x.re + x.im \cdot x.im\right) \cdot \left(y.re \cdot \left(0 - 0.5\right)\right)}} \cdot t\_1\\
\mathbf{if}\;y.re \leq -4.3 \cdot 10^{+163}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y.re \leq -9.5 \cdot 10^{-161}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 3.15 \cdot 10^{-71}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_0}\\
\mathbf{elif}\;y.re \leq 29000000000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y.re < -4.3000000000000002e163 or 2.9e10 < y.re Initial program 30.1%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6451.7%
Simplified51.7%
exp-diffN/A
pow-to-expN/A
clear-numN/A
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
Applied egg-rr55.9%
Taylor expanded in y.im around 0
rec-expN/A
exp-lowering-exp.f64N/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.8%
Simplified65.8%
if -4.3000000000000002e163 < y.re < -9.4999999999999996e-161 or 3.1500000000000002e-71 < y.re < 2.9e10Initial program 39.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified78.6%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.7%
Simplified72.7%
if -9.4999999999999996e-161 < y.re < 3.1500000000000002e-71Initial program 36.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.3%
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.f6469.0%
Simplified69.0%
Final simplification62.7%
(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 (log (/ 1.0 x.re)))
(t_3 (log (/ -1.0 x.re))))
(if (<= x.re -1e-308)
(* (exp (- (* (- 0.0 y.re) t_3) t_0)) (sin (- t_1 (* y.im t_3))))
(* (exp (- (* (- 0.0 y.re) t_2) t_0)) (sin (- t_1 (* y.im t_2)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 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 = log((1.0 / x_46_re));
double t_3 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -1e-308) {
tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_1 - (y_46_im * t_3)));
} else {
tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = atan2(x_46im, x_46re) * y_46im
t_1 = y_46re * atan2(x_46im, x_46re)
t_2 = log((1.0d0 / x_46re))
t_3 = log(((-1.0d0) / x_46re))
if (x_46re <= (-1d-308)) then
tmp = exp((((0.0d0 - y_46re) * t_3) - t_0)) * sin((t_1 - (y_46im * t_3)))
else
tmp = exp((((0.0d0 - y_46re) * t_2) - t_0)) * sin((t_1 - (y_46im * t_2)))
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.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.log((1.0 / x_46_re));
double t_3 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -1e-308) {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_0)) * Math.sin((t_1 - (y_46_im * t_3)));
} else {
tmp = Math.exp((((0.0 - y_46_re) * t_2) - t_0)) * Math.sin((t_1 - (y_46_im * t_2)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log((1.0 / x_46_re)) t_3 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -1e-308: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_0)) * math.sin((t_1 - (y_46_im * t_3))) else: tmp = math.exp((((0.0 - y_46_re) * t_2) - t_0)) * math.sin((t_1 - (y_46_im * t_2))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(Float64(1.0 / x_46_re)) t_3 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -1e-308) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_0)) * sin(Float64(t_1 - Float64(y_46_im * t_3)))); else tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_2) - t_0)) * sin(Float64(t_1 - Float64(y_46_im * t_2)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log((1.0 / x_46_re)); t_3 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -1e-308) tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_1 - (y_46_im * t_3))); else tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[(1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1e-308], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$3), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$2), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$2), $MachinePrecision]), $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 := \log \left(\frac{1}{x.re}\right)\\
t_3 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -1 \cdot 10^{-308}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_0} \cdot \sin \left(t\_1 - y.im \cdot t\_3\right)\\
\mathbf{else}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_2 - t\_0} \cdot \sin \left(t\_1 - y.im \cdot t\_2\right)\\
\end{array}
\end{array}
if x.re < -9.9999999999999991e-309Initial program 36.8%
Taylor expanded in x.re around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified70.8%
if -9.9999999999999991e-309 < x.re Initial program 33.5%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified69.2%
Final simplification70.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (log (/ -1.0 x.re)))
(t_2 (* (atan2 x.im x.re) y.im))
(t_3 (exp t_2)))
(if (<= x.re -9.8e-259)
(* (exp (- (* (- 0.0 y.re) t_1) t_2)) (sin (- t_0 (* y.im t_1))))
(if (<= x.re 1.1e-182)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_3)
(* (/ (pow x.re y.re) t_3) (sin (+ t_0 (* y.im (log x.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = log((-1.0 / x_46_re));
double t_2 = atan2(x_46_im, x_46_re) * y_46_im;
double t_3 = exp(t_2);
double tmp;
if (x_46_re <= -9.8e-259) {
tmp = exp((((0.0 - y_46_re) * t_1) - t_2)) * sin((t_0 - (y_46_im * t_1)));
} else if (x_46_re <= 1.1e-182) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_3;
} else {
tmp = (pow(x_46_re, y_46_re) / t_3) * sin((t_0 + (y_46_im * log(x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.log((-1.0 / x_46_re));
double t_2 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_3 = Math.exp(t_2);
double tmp;
if (x_46_re <= -9.8e-259) {
tmp = Math.exp((((0.0 - y_46_re) * t_1) - t_2)) * Math.sin((t_0 - (y_46_im * t_1)));
} else if (x_46_re <= 1.1e-182) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_3;
} else {
tmp = (Math.pow(x_46_re, y_46_re) / t_3) * Math.sin((t_0 + (y_46_im * Math.log(x_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.log((-1.0 / x_46_re)) t_2 = math.atan2(x_46_im, x_46_re) * y_46_im t_3 = math.exp(t_2) tmp = 0 if x_46_re <= -9.8e-259: tmp = math.exp((((0.0 - y_46_re) * t_1) - t_2)) * math.sin((t_0 - (y_46_im * t_1))) elif x_46_re <= 1.1e-182: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_3 else: tmp = (math.pow(x_46_re, y_46_re) / t_3) * math.sin((t_0 + (y_46_im * math.log(x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = log(Float64(-1.0 / x_46_re)) t_2 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_3 = exp(t_2) tmp = 0.0 if (x_46_re <= -9.8e-259) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_1) - t_2)) * sin(Float64(t_0 - Float64(y_46_im * t_1)))); elseif (x_46_re <= 1.1e-182) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_3); else tmp = Float64(Float64((x_46_re ^ y_46_re) / t_3) * sin(Float64(t_0 + Float64(y_46_im * log(x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = log((-1.0 / x_46_re)); t_2 = atan2(x_46_im, x_46_re) * y_46_im; t_3 = exp(t_2); tmp = 0.0; if (x_46_re <= -9.8e-259) tmp = exp((((0.0 - y_46_re) * t_1) - t_2)) * sin((t_0 - (y_46_im * t_1))); elseif (x_46_re <= 1.1e-182) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_3; else tmp = ((x_46_re ^ y_46_re) / t_3) * sin((t_0 + (y_46_im * log(x_46_re)))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$3 = N[Exp[t$95$2], $MachinePrecision]}, If[LessEqual[x$46$re, -9.8e-259], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 - N[(y$46$im * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 1.1e-182], 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$3), $MachinePrecision], N[(N[(N[Power[x$46$re, y$46$re], $MachinePrecision] / t$95$3), $MachinePrecision] * N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \log \left(\frac{-1}{x.re}\right)\\
t_2 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_3 := e^{t\_2}\\
\mathbf{if}\;x.re \leq -9.8 \cdot 10^{-259}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_1 - t\_2} \cdot \sin \left(t\_0 - y.im \cdot t\_1\right)\\
\mathbf{elif}\;x.re \leq 1.1 \cdot 10^{-182}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_3}\\
\mathbf{else}:\\
\;\;\;\;\frac{{x.re}^{y.re}}{t\_3} \cdot \sin \left(t\_0 + y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < -9.80000000000000045e-259Initial program 35.1%
Taylor expanded in x.re around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified71.7%
if -9.80000000000000045e-259 < x.re < 1.1e-182Initial program 36.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified76.3%
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.f6461.9%
Simplified61.9%
if 1.1e-182 < x.re Initial program 34.5%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
exp-diffN/A
*-commutativeN/A
exp-to-powN/A
/-lowering-/.f64N/A
pow-lowering-pow.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6469.9%
Simplified69.9%
Final simplification69.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re))))
(t_1
(*
(/
(- 0.0 -1.0)
(exp
(* (log (+ (* x.re x.re) (* x.im x.im))) (* y.re (- 0.0 0.5)))))
t_0)))
(if (<= y.re -1.25e+47)
t_1
(if (<= y.re -4.5e-153)
(* t_0 (exp (* (atan2 x.im x.re) (- 0.0 y.im))))
(if (<= y.re 1.25e-16)
(/
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) y.im)))
t_1)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_1 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0;
double tmp;
if (y_46_re <= -1.25e+47) {
tmp = t_1;
} else if (y_46_re <= -4.5e-153) {
tmp = t_0 * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else if (y_46_re <= 1.25e-16) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_1 = ((0.0 - -1.0) / Math.exp((Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0;
double tmp;
if (y_46_re <= -1.25e+47) {
tmp = t_1;
} else if (y_46_re <= -4.5e-153) {
tmp = t_0 * Math.exp((Math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else if (y_46_re <= 1.25e-16) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_1 = ((0.0 - -1.0) / math.exp((math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0 tmp = 0 if y_46_re <= -1.25e+47: tmp = t_1 elif y_46_re <= -4.5e-153: tmp = t_0 * math.exp((math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im))) elif y_46_re <= 1.25e-16: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_1 = Float64(Float64(Float64(0.0 - -1.0) / exp(Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) * Float64(y_46_re * Float64(0.0 - 0.5))))) * t_0) tmp = 0.0 if (y_46_re <= -1.25e+47) tmp = t_1; elseif (y_46_re <= -4.5e-153) tmp = Float64(t_0 * exp(Float64(atan(x_46_im, x_46_re) * Float64(0.0 - y_46_im)))); elseif (y_46_re <= 1.25e-16) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_1 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0; tmp = 0.0; if (y_46_re <= -1.25e+47) tmp = t_1; elseif (y_46_re <= -4.5e-153) tmp = t_0 * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im))); elseif (y_46_re <= 1.25e-16) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(y$46$re * N[(0.0 - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]}, If[LessEqual[y$46$re, -1.25e+47], t$95$1, If[LessEqual[y$46$re, -4.5e-153], N[(t$95$0 * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.25e-16], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_1 := \frac{0 - -1}{e^{\log \left(x.re \cdot x.re + x.im \cdot x.im\right) \cdot \left(y.re \cdot \left(0 - 0.5\right)\right)}} \cdot t\_0\\
\mathbf{if}\;y.re \leq -1.25 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -4.5 \cdot 10^{-153}:\\
\;\;\;\;t\_0 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(0 - y.im\right)}\\
\mathbf{elif}\;y.re \leq 1.25 \cdot 10^{-16}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -1.25000000000000005e47 or 1.2500000000000001e-16 < y.re Initial program 32.8%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.7%
Simplified56.7%
exp-diffN/A
pow-to-expN/A
clear-numN/A
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
Applied egg-rr58.2%
Taylor expanded in y.im around 0
rec-expN/A
exp-lowering-exp.f64N/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.8%
Simplified65.8%
if -1.25000000000000005e47 < y.re < -4.5e-153Initial program 38.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6454.7%
Simplified54.7%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.4%
Simplified72.4%
if -4.5e-153 < y.re < 1.2500000000000001e-16Initial program 36.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified80.0%
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.f6466.0%
Simplified66.0%
Final simplification61.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re))))
(t_1
(*
(/
(- 0.0 -1.0)
(exp
(* (log (+ (* x.re x.re) (* x.im x.im))) (* y.re (- 0.0 0.5)))))
t_0)))
(if (<= y.re -1.25e+47)
t_1
(if (<= y.re 15500000000.0)
(* t_0 (exp (* (atan2 x.im x.re) (- 0.0 y.im))))
t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_1 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0;
double tmp;
if (y_46_re <= -1.25e+47) {
tmp = t_1;
} else if (y_46_re <= 15500000000.0) {
tmp = t_0 * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = sin((y_46re * atan2(x_46im, x_46re)))
t_1 = ((0.0d0 - (-1.0d0)) / exp((log(((x_46re * x_46re) + (x_46im * x_46im))) * (y_46re * (0.0d0 - 0.5d0))))) * t_0
if (y_46re <= (-1.25d+47)) then
tmp = t_1
else if (y_46re <= 15500000000.0d0) then
tmp = t_0 * exp((atan2(x_46im, x_46re) * (0.0d0 - y_46im)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_1 = ((0.0 - -1.0) / Math.exp((Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0;
double tmp;
if (y_46_re <= -1.25e+47) {
tmp = t_1;
} else if (y_46_re <= 15500000000.0) {
tmp = t_0 * Math.exp((Math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_1 = ((0.0 - -1.0) / math.exp((math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0 tmp = 0 if y_46_re <= -1.25e+47: tmp = t_1 elif y_46_re <= 15500000000.0: tmp = t_0 * math.exp((math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im))) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_1 = Float64(Float64(Float64(0.0 - -1.0) / exp(Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) * Float64(y_46_re * Float64(0.0 - 0.5))))) * t_0) tmp = 0.0 if (y_46_re <= -1.25e+47) tmp = t_1; elseif (y_46_re <= 15500000000.0) tmp = Float64(t_0 * exp(Float64(atan(x_46_im, x_46_re) * Float64(0.0 - y_46_im)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_1 = ((0.0 - -1.0) / exp((log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * (y_46_re * (0.0 - 0.5))))) * t_0; tmp = 0.0; if (y_46_re <= -1.25e+47) tmp = t_1; elseif (y_46_re <= 15500000000.0) tmp = t_0 * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im))); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(0.0 - -1.0), $MachinePrecision] / N[Exp[N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(y$46$re * N[(0.0 - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]}, If[LessEqual[y$46$re, -1.25e+47], t$95$1, If[LessEqual[y$46$re, 15500000000.0], N[(t$95$0 * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_1 := \frac{0 - -1}{e^{\log \left(x.re \cdot x.re + x.im \cdot x.im\right) \cdot \left(y.re \cdot \left(0 - 0.5\right)\right)}} \cdot t\_0\\
\mathbf{if}\;y.re \leq -1.25 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 15500000000:\\
\;\;\;\;t\_0 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(0 - y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -1.25000000000000005e47 or 1.55e10 < y.re Initial program 31.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.8%
Simplified56.8%
exp-diffN/A
pow-to-expN/A
clear-numN/A
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
Applied egg-rr59.3%
Taylor expanded in y.im around 0
rec-expN/A
exp-lowering-exp.f64N/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
if -1.25000000000000005e47 < y.re < 1.55e10Initial program 37.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6439.2%
Simplified39.2%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6451.4%
Simplified51.4%
Final simplification52.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)) (t_1 (exp t_0)))
(if (<= y.im -1.9e+275)
(* y.im (log (sqrt (* x.im x.im))))
(if (<= y.im -4.7e+89)
(/ (* y.im (log (- 0.0 x.im))) t_1)
(if (<= y.im 3.15e+182)
(* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re))
(if (<= y.im 3.8e+285)
(/ (* y.im (log x.im)) t_1)
(/
(/ (log (+ (* x.re x.re) (* x.im x.im))) (/ -2.0 y.im))
(- -1.0 t_0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(t_0);
double tmp;
if (y_46_im <= -1.9e+275) {
tmp = y_46_im * log(sqrt((x_46_im * x_46_im)));
} else if (y_46_im <= -4.7e+89) {
tmp = (y_46_im * log((0.0 - x_46_im))) / t_1;
} else if (y_46_im <= 3.15e+182) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 3.8e+285) {
tmp = (y_46_im * log(x_46_im)) / t_1;
} else {
tmp = (log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (-2.0 / y_46_im)) / (-1.0 - 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 = Math.exp(t_0);
double tmp;
if (y_46_im <= -1.9e+275) {
tmp = y_46_im * Math.log(Math.sqrt((x_46_im * x_46_im)));
} else if (y_46_im <= -4.7e+89) {
tmp = (y_46_im * Math.log((0.0 - x_46_im))) / t_1;
} else if (y_46_im <= 3.15e+182) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 3.8e+285) {
tmp = (y_46_im * Math.log(x_46_im)) / t_1;
} else {
tmp = (Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (-2.0 / y_46_im)) / (-1.0 - 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 = math.exp(t_0) tmp = 0 if y_46_im <= -1.9e+275: tmp = y_46_im * math.log(math.sqrt((x_46_im * x_46_im))) elif y_46_im <= -4.7e+89: tmp = (y_46_im * math.log((0.0 - x_46_im))) / t_1 elif y_46_im <= 3.15e+182: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_im <= 3.8e+285: tmp = (y_46_im * math.log(x_46_im)) / t_1 else: tmp = (math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (-2.0 / y_46_im)) / (-1.0 - 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 = exp(t_0) tmp = 0.0 if (y_46_im <= -1.9e+275) tmp = Float64(y_46_im * log(sqrt(Float64(x_46_im * x_46_im)))); elseif (y_46_im <= -4.7e+89) tmp = Float64(Float64(y_46_im * log(Float64(0.0 - x_46_im))) / t_1); elseif (y_46_im <= 3.15e+182) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_im <= 3.8e+285) tmp = Float64(Float64(y_46_im * log(x_46_im)) / t_1); else tmp = Float64(Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) / Float64(-2.0 / y_46_im)) / Float64(-1.0 - 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 = exp(t_0); tmp = 0.0; if (y_46_im <= -1.9e+275) tmp = y_46_im * log(sqrt((x_46_im * x_46_im))); elseif (y_46_im <= -4.7e+89) tmp = (y_46_im * log((0.0 - x_46_im))) / t_1; elseif (y_46_im <= 3.15e+182) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_im <= 3.8e+285) tmp = (y_46_im * log(x_46_im)) / t_1; else tmp = (log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (-2.0 / y_46_im)) / (-1.0 - 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[Exp[t$95$0], $MachinePrecision]}, If[LessEqual[y$46$im, -1.9e+275], N[(y$46$im * N[Log[N[Sqrt[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -4.7e+89], N[(N[(y$46$im * N[Log[N[(0.0 - x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y$46$im, 3.15e+182], 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$im, 3.8e+285], N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(-2.0 / y$46$im), $MachinePrecision]), $MachinePrecision] / N[(-1.0 - t$95$0), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{t\_0}\\
\mathbf{if}\;y.im \leq -1.9 \cdot 10^{+275}:\\
\;\;\;\;y.im \cdot \log \left(\sqrt{x.im \cdot x.im}\right)\\
\mathbf{elif}\;y.im \leq -4.7 \cdot 10^{+89}:\\
\;\;\;\;\frac{y.im \cdot \log \left(0 - x.im\right)}{t\_1}\\
\mathbf{elif}\;y.im \leq 3.15 \cdot 10^{+182}:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq 3.8 \cdot 10^{+285}:\\
\;\;\;\;\frac{y.im \cdot \log x.im}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\log \left(x.re \cdot x.re + x.im \cdot x.im\right)}{\frac{-2}{y.im}}}{-1 - t\_0}\\
\end{array}
\end{array}
if y.im < -1.90000000000000006e275Initial program 18.2%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified29.3%
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.f6436.9%
Simplified36.9%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6446.2%
Simplified46.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6438.8%
Simplified38.8%
Taylor expanded in x.im around inf
unpow2N/A
*-lowering-*.f6447.6%
Simplified47.6%
if -1.90000000000000006e275 < y.im < -4.70000000000000022e89Initial program 33.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified55.6%
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.f6455.6%
Simplified55.6%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.6%
Simplified44.6%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f6447.5%
Simplified47.5%
if -4.70000000000000022e89 < y.im < 3.15000000000000014e182Initial program 37.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.f6446.8%
Simplified46.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.5%
Simplified49.5%
if 3.15000000000000014e182 < y.im < 3.7999999999999999e285Initial program 37.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified58.7%
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.f6458.7%
Simplified58.7%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.2%
Simplified55.2%
Taylor expanded in x.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.7%
Simplified48.7%
if 3.7999999999999999e285 < y.im Initial program 0.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified16.7%
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.f6416.7%
Simplified16.7%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f640.0%
Simplified0.0%
frac-2negN/A
Applied egg-rr83.3%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6483.6%
Simplified83.6%
Final simplification49.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (sin (* y.re (atan2 x.im x.re))))
(t_2 (* (pow x.re y.re) t_1)))
(if (<= y.re -6.1e+41)
t_2
(if (<= y.re -1.15e-212)
t_1
(if (<= y.re 3.3e+43)
(/ (log t_0) (/ 2.0 y.im))
(if (<= y.re 1.075e+159)
t_2
(* y.im (log (pow (* t_0 t_0) 0.25)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_2 = pow(x_46_re, y_46_re) * t_1;
double tmp;
if (y_46_re <= -6.1e+41) {
tmp = t_2;
} else if (y_46_re <= -1.15e-212) {
tmp = t_1;
} else if (y_46_re <= 3.3e+43) {
tmp = log(t_0) / (2.0 / y_46_im);
} else if (y_46_re <= 1.075e+159) {
tmp = t_2;
} else {
tmp = y_46_im * log(pow((t_0 * t_0), 0.25));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x_46re * x_46re) + (x_46im * x_46im)
t_1 = sin((y_46re * atan2(x_46im, x_46re)))
t_2 = (x_46re ** y_46re) * t_1
if (y_46re <= (-6.1d+41)) then
tmp = t_2
else if (y_46re <= (-1.15d-212)) then
tmp = t_1
else if (y_46re <= 3.3d+43) then
tmp = log(t_0) / (2.0d0 / y_46im)
else if (y_46re <= 1.075d+159) then
tmp = t_2
else
tmp = y_46im * log(((t_0 * t_0) ** 0.25d0))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_2 = Math.pow(x_46_re, y_46_re) * t_1;
double tmp;
if (y_46_re <= -6.1e+41) {
tmp = t_2;
} else if (y_46_re <= -1.15e-212) {
tmp = t_1;
} else if (y_46_re <= 3.3e+43) {
tmp = Math.log(t_0) / (2.0 / y_46_im);
} else if (y_46_re <= 1.075e+159) {
tmp = t_2;
} else {
tmp = y_46_im * Math.log(Math.pow((t_0 * t_0), 0.25));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_2 = math.pow(x_46_re, y_46_re) * t_1 tmp = 0 if y_46_re <= -6.1e+41: tmp = t_2 elif y_46_re <= -1.15e-212: tmp = t_1 elif y_46_re <= 3.3e+43: tmp = math.log(t_0) / (2.0 / y_46_im) elif y_46_re <= 1.075e+159: tmp = t_2 else: tmp = y_46_im * math.log(math.pow((t_0 * t_0), 0.25)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_2 = Float64((x_46_re ^ y_46_re) * t_1) tmp = 0.0 if (y_46_re <= -6.1e+41) tmp = t_2; elseif (y_46_re <= -1.15e-212) tmp = t_1; elseif (y_46_re <= 3.3e+43) tmp = Float64(log(t_0) / Float64(2.0 / y_46_im)); elseif (y_46_re <= 1.075e+159) tmp = t_2; else tmp = Float64(y_46_im * log((Float64(t_0 * t_0) ^ 0.25))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_2 = (x_46_re ^ y_46_re) * t_1; tmp = 0.0; if (y_46_re <= -6.1e+41) tmp = t_2; elseif (y_46_re <= -1.15e-212) tmp = t_1; elseif (y_46_re <= 3.3e+43) tmp = log(t_0) / (2.0 / y_46_im); elseif (y_46_re <= 1.075e+159) tmp = t_2; else tmp = y_46_im * log(((t_0 * t_0) ^ 0.25)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * t$95$1), $MachinePrecision]}, If[LessEqual[y$46$re, -6.1e+41], t$95$2, If[LessEqual[y$46$re, -1.15e-212], t$95$1, If[LessEqual[y$46$re, 3.3e+43], N[(N[Log[t$95$0], $MachinePrecision] / N[(2.0 / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.075e+159], t$95$2, N[(y$46$im * N[Log[N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], 0.25], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_2 := {x.re}^{y.re} \cdot t\_1\\
\mathbf{if}\;y.re \leq -6.1 \cdot 10^{+41}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq -1.15 \cdot 10^{-212}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 3.3 \cdot 10^{+43}:\\
\;\;\;\;\frac{\log t\_0}{\frac{2}{y.im}}\\
\mathbf{elif}\;y.re \leq 1.075 \cdot 10^{+159}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log \left({\left(t\_0 \cdot t\_0\right)}^{0.25}\right)\\
\end{array}
\end{array}
if y.re < -6.09999999999999998e41 or 3.3000000000000001e43 < y.re < 1.075e159Initial program 35.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.f6464.6%
Simplified64.6%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6461.8%
Simplified61.8%
if -6.09999999999999998e41 < y.re < -1.15e-212Initial program 36.1%
Applied egg-rr39.6%
sub0-negN/A
frac-2negN/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
Taylor expanded in y.re around 0
Simplified34.4%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.8%
Simplified31.8%
if -1.15e-212 < y.re < 3.3000000000000001e43Initial program 36.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified76.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.f6475.7%
Simplified75.7%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.4%
Simplified40.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6429.8%
Simplified29.8%
pow1/2N/A
pow-to-expN/A
metadata-evalN/A
div-invN/A
rem-log-expN/A
*-commutativeN/A
associate-/r/N/A
/-lowering-/.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6429.8%
Applied egg-rr29.8%
if 1.075e159 < y.re Initial program 27.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified51.7%
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.f6451.7%
Simplified51.7%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6436.4%
Simplified36.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.0%
Simplified40.0%
pow1/2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-eval49.5%
Applied egg-rr49.5%
Final simplification41.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -2.15e-8)
(* t_1 (pow x.im y.re))
(if (<= y.re -1.3e-212)
t_1
(if (<= y.re 2.1e-66)
(/ (log t_0) (/ 2.0 y.im))
(if (<= y.re 1.0)
(* y.re (log (exp (atan2 x.im x.re))))
(* y.im (log (pow (* t_0 t_0) 0.25)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -2.15e-8) {
tmp = t_1 * pow(x_46_im, y_46_re);
} else if (y_46_re <= -1.3e-212) {
tmp = t_1;
} else if (y_46_re <= 2.1e-66) {
tmp = log(t_0) / (2.0 / y_46_im);
} else if (y_46_re <= 1.0) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_im * log(pow((t_0 * t_0), 0.25));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x_46re * x_46re) + (x_46im * x_46im)
t_1 = sin((y_46re * atan2(x_46im, x_46re)))
if (y_46re <= (-2.15d-8)) then
tmp = t_1 * (x_46im ** y_46re)
else if (y_46re <= (-1.3d-212)) then
tmp = t_1
else if (y_46re <= 2.1d-66) then
tmp = log(t_0) / (2.0d0 / y_46im)
else if (y_46re <= 1.0d0) then
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
else
tmp = y_46im * log(((t_0 * t_0) ** 0.25d0))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -2.15e-8) {
tmp = t_1 * Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= -1.3e-212) {
tmp = t_1;
} else if (y_46_re <= 2.1e-66) {
tmp = Math.log(t_0) / (2.0 / y_46_im);
} else if (y_46_re <= 1.0) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_im * Math.log(Math.pow((t_0 * t_0), 0.25));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -2.15e-8: tmp = t_1 * math.pow(x_46_im, y_46_re) elif y_46_re <= -1.3e-212: tmp = t_1 elif y_46_re <= 2.1e-66: tmp = math.log(t_0) / (2.0 / y_46_im) elif y_46_re <= 1.0: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) else: tmp = y_46_im * math.log(math.pow((t_0 * t_0), 0.25)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -2.15e-8) tmp = Float64(t_1 * (x_46_im ^ y_46_re)); elseif (y_46_re <= -1.3e-212) tmp = t_1; elseif (y_46_re <= 2.1e-66) tmp = Float64(log(t_0) / Float64(2.0 / y_46_im)); elseif (y_46_re <= 1.0) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); else tmp = Float64(y_46_im * log((Float64(t_0 * t_0) ^ 0.25))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -2.15e-8) tmp = t_1 * (x_46_im ^ y_46_re); elseif (y_46_re <= -1.3e-212) tmp = t_1; elseif (y_46_re <= 2.1e-66) tmp = log(t_0) / (2.0 / y_46_im); elseif (y_46_re <= 1.0) tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); else tmp = y_46_im * log(((t_0 * t_0) ^ 0.25)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -2.15e-8], N[(t$95$1 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -1.3e-212], t$95$1, If[LessEqual[y$46$re, 2.1e-66], N[(N[Log[t$95$0], $MachinePrecision] / N[(2.0 / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.0], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[Log[N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], 0.25], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -2.15 \cdot 10^{-8}:\\
\;\;\;\;t\_1 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq -1.3 \cdot 10^{-212}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 2.1 \cdot 10^{-66}:\\
\;\;\;\;\frac{\log t\_0}{\frac{2}{y.im}}\\
\mathbf{elif}\;y.re \leq 1:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log \left({\left(t\_0 \cdot t\_0\right)}^{0.25}\right)\\
\end{array}
\end{array}
if y.re < -2.1500000000000001e-8Initial program 36.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.f6474.2%
Simplified74.2%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6450.5%
Simplified50.5%
if -2.1500000000000001e-8 < y.re < -1.3e-212Initial program 33.9%
Applied egg-rr41.4%
sub0-negN/A
frac-2negN/A
/-lowering-/.f64N/A
Applied egg-rr32.0%
Taylor expanded in y.re around 0
Simplified32.0%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6434.3%
Simplified34.3%
if -1.3e-212 < y.re < 2.1e-66Initial program 38.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.9%
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.f6483.1%
Simplified83.1%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.2%
Simplified44.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6432.4%
Simplified32.4%
pow1/2N/A
pow-to-expN/A
metadata-evalN/A
div-invN/A
rem-log-expN/A
*-commutativeN/A
associate-/r/N/A
/-lowering-/.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6432.4%
Applied egg-rr32.4%
if 2.1e-66 < y.re < 1Initial program 43.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.f6445.5%
Simplified45.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6433.2%
Simplified33.2%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6438.9%
Applied egg-rr38.9%
if 1 < y.re Initial program 30.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.2%
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.f6445.8%
Simplified45.8%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.1%
Simplified40.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6429.5%
Simplified29.5%
pow1/2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-eval39.8%
Applied egg-rr39.8%
Final simplification38.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.im -3.3e+38)
(/ t_0 (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.im 7.6e-43)
(* t_0 (pow (hypot x.im x.re) y.re))
(*
y.re
(* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- 0.0 y.im)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -3.3e+38) {
tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_im <= 7.6e-43) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -3.3e+38) {
tmp = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_im <= 7.6e-43) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im))));
}
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_im <= -3.3e+38: tmp = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_im <= 7.6e-43: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * (0.0 - y_46_im)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -3.3e+38) tmp = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_im <= 7.6e-43) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(0.0 - y_46_im))))); 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_im <= -3.3e+38) tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_im <= 7.6e-43) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * (0.0 - y_46_im)))); 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$im, -3.3e+38], N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 7.6e-43], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq -3.3 \cdot 10^{+38}:\\
\;\;\;\;\frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.im \leq 7.6 \cdot 10^{-43}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(0 - y.im\right)}\right)\\
\end{array}
\end{array}
if y.im < -3.2999999999999999e38Initial program 30.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6451.3%
Simplified51.3%
exp-diffN/A
pow-to-expN/A
clear-numN/A
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
Applied egg-rr45.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.7%
Simplified58.7%
if -3.2999999999999999e38 < y.im < 7.59999999999999939e-43Initial 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 y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.6%
Simplified56.6%
if 7.59999999999999939e-43 < y.im Initial program 37.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.7%
Simplified48.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6452.6%
Simplified52.6%
Final simplification55.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (/ t_0 (exp (* (atan2 x.im x.re) y.im)))))
(if (<= y.im -1.6e+39)
t_1
(if (<= y.im 7.6e-43) (* t_0 (pow (hypot x.im x.re) y.re)) t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -1.6e+39) {
tmp = t_1;
} else if (y_46_im <= 7.6e-43) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -1.6e+39) {
tmp = t_1;
} else if (y_46_im <= 7.6e-43) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -1.6e+39: tmp = t_1 elif y_46_im <= 7.6e-43: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -1.6e+39) tmp = t_1; elseif (y_46_im <= 7.6e-43) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -1.6e+39) tmp = t_1; elseif (y_46_im <= 7.6e-43) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.6e+39], t$95$1, If[LessEqual[y$46$im, 7.6e-43], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{if}\;y.im \leq -1.6 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 7.6 \cdot 10^{-43}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -1.59999999999999996e39 or 7.59999999999999939e-43 < y.im Initial program 34.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.8%
Simplified49.8%
exp-diffN/A
pow-to-expN/A
clear-numN/A
frac-2negN/A
metadata-evalN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
Applied egg-rr43.5%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.1%
Simplified55.1%
if -1.59999999999999996e39 < y.im < 7.59999999999999939e-43Initial 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 y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.6%
Simplified56.6%
Final simplification55.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re))))
(if (<= y.re -1.15e-212)
t_0
(if (<= y.re 2.25e-76)
(/ (log (+ (* x.re x.re) (* x.im x.im))) (/ 2.0 y.im))
t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.15e-212) {
tmp = t_0;
} else if (y_46_re <= 2.25e-76) {
tmp = log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im);
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (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 <= -1.15e-212) {
tmp = t_0;
} else if (y_46_re <= 2.25e-76) {
tmp = Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / 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 = (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 <= -1.15e-212: tmp = t_0 elif y_46_re <= 2.25e-76: tmp = math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / 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(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 <= -1.15e-212) tmp = t_0; elseif (y_46_re <= 2.25e-76) tmp = Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) / Float64(2.0 / 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 = (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 <= -1.15e-212) tmp = t_0; elseif (y_46_re <= 2.25e-76) tmp = log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / 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[(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, -1.15e-212], t$95$0, If[LessEqual[y$46$re, 2.25e-76], N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(2.0 / y$46$im), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \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 -1.15 \cdot 10^{-212}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 2.25 \cdot 10^{-76}:\\
\;\;\;\;\frac{\log \left(x.re \cdot x.re + x.im \cdot x.im\right)}{\frac{2}{y.im}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -1.15e-212 or 2.25e-76 < y.re Initial program 34.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.f6447.8%
Simplified47.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.2%
Simplified49.2%
if -1.15e-212 < y.re < 2.25e-76Initial program 38.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.9%
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.f6483.1%
Simplified83.1%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.2%
Simplified44.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6432.4%
Simplified32.4%
pow1/2N/A
pow-to-expN/A
metadata-evalN/A
div-invN/A
rem-log-expN/A
*-commutativeN/A
associate-/r/N/A
/-lowering-/.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6432.4%
Applied egg-rr32.4%
Final simplification44.9%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im 1.88) (* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re)) (/ (* y.im (log x.im)) (exp (* (atan2 x.im x.re) y.im)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 1.88) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = (y_46_im * log(x_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 1.88) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = (y_46_im * Math.log(x_46_im)) / Math.exp((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_im <= 1.88: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = (y_46_im * math.log(x_46_im)) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= 1.88) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(Float64(y_46_im * log(x_46_im)) / exp(Float64(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_im <= 1.88) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = (y_46_im * log(x_46_im)) / exp((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$im, 1.88], 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], N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq 1.88:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.im \cdot \log x.im}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\end{array}
\end{array}
if x.im < 1.8799999999999999Initial program 38.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.f6440.9%
Simplified40.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6442.5%
Simplified42.5%
if 1.8799999999999999 < x.im Initial program 25.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified71.1%
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.f6472.6%
Simplified72.6%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.3%
Simplified40.3%
Taylor expanded in x.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6451.1%
Simplified51.1%
Final simplification44.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (* y.im (log (pow (* t_0 t_0) 0.25))))
(t_2
(/ (/ (log t_0) (/ -2.0 y.im)) (- -1.0 (* (atan2 x.im x.re) y.im)))))
(if (<= y.im -4e-134)
t_1
(if (<= y.im 3.2e-137)
(sin (* y.re (atan2 x.im x.re)))
(if (<= y.im 1.68e+16) t_2 (if (<= y.im 1.45e+268) t_1 t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_im * log(pow((t_0 * t_0), 0.25));
double t_2 = (log(t_0) / (-2.0 / y_46_im)) / (-1.0 - (atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -4e-134) {
tmp = t_1;
} else if (y_46_im <= 3.2e-137) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re)));
} else if (y_46_im <= 1.68e+16) {
tmp = t_2;
} else if (y_46_im <= 1.45e+268) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x_46re * x_46re) + (x_46im * x_46im)
t_1 = y_46im * log(((t_0 * t_0) ** 0.25d0))
t_2 = (log(t_0) / ((-2.0d0) / y_46im)) / ((-1.0d0) - (atan2(x_46im, x_46re) * y_46im))
if (y_46im <= (-4d-134)) then
tmp = t_1
else if (y_46im <= 3.2d-137) then
tmp = sin((y_46re * atan2(x_46im, x_46re)))
else if (y_46im <= 1.68d+16) then
tmp = t_2
else if (y_46im <= 1.45d+268) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_im * Math.log(Math.pow((t_0 * t_0), 0.25));
double t_2 = (Math.log(t_0) / (-2.0 / y_46_im)) / (-1.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -4e-134) {
tmp = t_1;
} else if (y_46_im <= 3.2e-137) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (y_46_im <= 1.68e+16) {
tmp = t_2;
} else if (y_46_im <= 1.45e+268) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = y_46_im * math.log(math.pow((t_0 * t_0), 0.25)) t_2 = (math.log(t_0) / (-2.0 / y_46_im)) / (-1.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -4e-134: tmp = t_1 elif y_46_im <= 3.2e-137: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) elif y_46_im <= 1.68e+16: tmp = t_2 elif y_46_im <= 1.45e+268: tmp = t_1 else: tmp = t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = Float64(y_46_im * log((Float64(t_0 * t_0) ^ 0.25))) t_2 = Float64(Float64(log(t_0) / Float64(-2.0 / y_46_im)) / Float64(-1.0 - Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -4e-134) tmp = t_1; elseif (y_46_im <= 3.2e-137) tmp = sin(Float64(y_46_re * atan(x_46_im, x_46_re))); elseif (y_46_im <= 1.68e+16) tmp = t_2; elseif (y_46_im <= 1.45e+268) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = y_46_im * log(((t_0 * t_0) ^ 0.25)); t_2 = (log(t_0) / (-2.0 / y_46_im)) / (-1.0 - (atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -4e-134) tmp = t_1; elseif (y_46_im <= 3.2e-137) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))); elseif (y_46_im <= 1.68e+16) tmp = t_2; elseif (y_46_im <= 1.45e+268) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[Log[N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], 0.25], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[Log[t$95$0], $MachinePrecision] / N[(-2.0 / y$46$im), $MachinePrecision]), $MachinePrecision] / N[(-1.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4e-134], t$95$1, If[LessEqual[y$46$im, 3.2e-137], N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$im, 1.68e+16], t$95$2, If[LessEqual[y$46$im, 1.45e+268], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := y.im \cdot \log \left({\left(t\_0 \cdot t\_0\right)}^{0.25}\right)\\
t_2 := \frac{\frac{\log t\_0}{\frac{-2}{y.im}}}{-1 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.im \leq -4 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 3.2 \cdot 10^{-137}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.im \leq 1.68 \cdot 10^{+16}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 1.45 \cdot 10^{+268}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -4.00000000000000016e-134 or 1.68e16 < y.im < 1.4500000000000001e268Initial program 33.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified58.3%
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.f6458.6%
Simplified58.6%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.2%
Simplified44.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6423.2%
Simplified23.2%
pow1/2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-eval30.3%
Applied egg-rr30.3%
if -4.00000000000000016e-134 < y.im < 3.20000000000000021e-137Initial program 40.3%
Applied egg-rr40.3%
sub0-negN/A
frac-2negN/A
/-lowering-/.f64N/A
Applied egg-rr40.3%
Taylor expanded in y.re around 0
Simplified26.6%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6437.0%
Simplified37.0%
if 3.20000000000000021e-137 < y.im < 1.68e16 or 1.4500000000000001e268 < y.im Initial program 32.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified78.3%
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.f6475.5%
Simplified75.5%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6427.9%
Simplified27.9%
frac-2negN/A
Applied egg-rr49.5%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.8%
Simplified41.8%
Final simplification33.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (* y.im (log (pow (* t_0 t_0) 0.25)))))
(if (<= y.im -2.05e-137)
t_1
(if (<= y.im 2.7e-118) (sin (* y.re (atan2 x.im x.re))) t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_im * log(pow((t_0 * t_0), 0.25));
double tmp;
if (y_46_im <= -2.05e-137) {
tmp = t_1;
} else if (y_46_im <= 2.7e-118) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x_46re * x_46re) + (x_46im * x_46im)
t_1 = y_46im * log(((t_0 * t_0) ** 0.25d0))
if (y_46im <= (-2.05d-137)) then
tmp = t_1
else if (y_46im <= 2.7d-118) then
tmp = sin((y_46re * atan2(x_46im, x_46re)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_im * Math.log(Math.pow((t_0 * t_0), 0.25));
double tmp;
if (y_46_im <= -2.05e-137) {
tmp = t_1;
} else if (y_46_im <= 2.7e-118) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = y_46_im * math.log(math.pow((t_0 * t_0), 0.25)) tmp = 0 if y_46_im <= -2.05e-137: tmp = t_1 elif y_46_im <= 2.7e-118: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = Float64(y_46_im * log((Float64(t_0 * t_0) ^ 0.25))) tmp = 0.0 if (y_46_im <= -2.05e-137) tmp = t_1; elseif (y_46_im <= 2.7e-118) tmp = sin(Float64(y_46_re * atan(x_46_im, x_46_re))); 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 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = y_46_im * log(((t_0 * t_0) ^ 0.25)); tmp = 0.0; if (y_46_im <= -2.05e-137) tmp = t_1; elseif (y_46_im <= 2.7e-118) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))); 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[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[Log[N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], 0.25], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2.05e-137], t$95$1, If[LessEqual[y$46$im, 2.7e-118], N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := y.im \cdot \log \left({\left(t\_0 \cdot t\_0\right)}^{0.25}\right)\\
\mathbf{if}\;y.im \leq -2.05 \cdot 10^{-137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 2.7 \cdot 10^{-118}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -2.0499999999999999e-137 or 2.69999999999999994e-118 < y.im Initial program 33.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified61.3%
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.f6460.9%
Simplified60.9%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.4%
Simplified41.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6423.1%
Simplified23.1%
pow1/2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-eval27.3%
Applied egg-rr27.3%
if -2.0499999999999999e-137 < y.im < 2.69999999999999994e-118Initial program 39.0%
Applied egg-rr39.0%
sub0-negN/A
frac-2negN/A
/-lowering-/.f64N/A
Applied egg-rr39.0%
Taylor expanded in y.re around 0
Simplified26.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6434.9%
Simplified34.9%
Final simplification29.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (log (+ (* x.re x.re) (* x.im x.im))) (/ 2.0 y.im))))
(if (<= y.im -9e-171)
t_0
(if (<= y.im 3.8e-138) (sin (* y.re (atan2 x.im x.re))) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im);
double tmp;
if (y_46_im <= -9e-171) {
tmp = t_0;
} else if (y_46_im <= 3.8e-138) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = log(((x_46re * x_46re) + (x_46im * x_46im))) / (2.0d0 / y_46im)
if (y_46im <= (-9d-171)) then
tmp = t_0
else if (y_46im <= 3.8d-138) then
tmp = sin((y_46re * atan2(x_46im, x_46re)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im);
double tmp;
if (y_46_im <= -9e-171) {
tmp = t_0;
} else if (y_46_im <= 3.8e-138) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im) tmp = 0 if y_46_im <= -9e-171: tmp = t_0 elif y_46_im <= 3.8e-138: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) / Float64(2.0 / y_46_im)) tmp = 0.0 if (y_46_im <= -9e-171) tmp = t_0; elseif (y_46_im <= 3.8e-138) tmp = sin(Float64(y_46_re * atan(x_46_im, x_46_re))); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im); tmp = 0.0; if (y_46_im <= -9e-171) tmp = t_0; elseif (y_46_im <= 3.8e-138) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(2.0 / y$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -9e-171], t$95$0, If[LessEqual[y$46$im, 3.8e-138], N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\log \left(x.re \cdot x.re + x.im \cdot x.im\right)}{\frac{2}{y.im}}\\
\mathbf{if}\;y.im \leq -9 \cdot 10^{-171}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 3.8 \cdot 10^{-138}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -9.0000000000000008e-171 or 3.8000000000000002e-138 < y.im Initial program 33.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified63.2%
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.f6462.8%
Simplified62.8%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.1%
Simplified41.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6423.7%
Simplified23.7%
pow1/2N/A
pow-to-expN/A
metadata-evalN/A
div-invN/A
rem-log-expN/A
*-commutativeN/A
associate-/r/N/A
/-lowering-/.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6423.7%
Applied egg-rr23.7%
if -9.0000000000000008e-171 < y.im < 3.8000000000000002e-138Initial program 38.4%
Applied egg-rr38.4%
sub0-negN/A
frac-2negN/A
/-lowering-/.f64N/A
Applied egg-rr38.3%
Taylor expanded in y.re around 0
Simplified25.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.8%
Simplified38.8%
Final simplification27.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (log (+ (* x.re x.re) (* x.im x.im))) (/ 2.0 y.im))))
(if (<= y.im -2.2e-173)
t_0
(if (<= y.im 4.7e-139) (* y.re (atan2 x.im x.re)) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im);
double tmp;
if (y_46_im <= -2.2e-173) {
tmp = t_0;
} else if (y_46_im <= 4.7e-139) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = log(((x_46re * x_46re) + (x_46im * x_46im))) / (2.0d0 / y_46im)
if (y_46im <= (-2.2d-173)) then
tmp = t_0
else if (y_46im <= 4.7d-139) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im);
double tmp;
if (y_46_im <= -2.2e-173) {
tmp = t_0;
} else if (y_46_im <= 4.7e-139) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im) tmp = 0 if y_46_im <= -2.2e-173: tmp = t_0 elif y_46_im <= 4.7e-139: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) / Float64(2.0 / y_46_im)) tmp = 0.0 if (y_46_im <= -2.2e-173) tmp = t_0; elseif (y_46_im <= 4.7e-139) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) / (2.0 / y_46_im); tmp = 0.0; if (y_46_im <= -2.2e-173) tmp = t_0; elseif (y_46_im <= 4.7e-139) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(2.0 / y$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2.2e-173], t$95$0, If[LessEqual[y$46$im, 4.7e-139], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\log \left(x.re \cdot x.re + x.im \cdot x.im\right)}{\frac{2}{y.im}}\\
\mathbf{if}\;y.im \leq -2.2 \cdot 10^{-173}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 4.7 \cdot 10^{-139}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -2.1999999999999999e-173 or 4.70000000000000027e-139 < y.im Initial program 33.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified63.2%
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.f6462.8%
Simplified62.8%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.1%
Simplified41.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6423.7%
Simplified23.7%
pow1/2N/A
pow-to-expN/A
metadata-evalN/A
div-invN/A
rem-log-expN/A
*-commutativeN/A
associate-/r/N/A
/-lowering-/.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6423.7%
Applied egg-rr23.7%
if -2.1999999999999999e-173 < y.im < 4.70000000000000027e-139Initial program 38.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.f6463.5%
Simplified63.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.8%
Simplified38.8%
Final simplification27.8%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 4.55e-268) (* y.re (atan2 x.im x.re)) (* y.im (log (+ x.re (/ (* (* x.im x.im) 0.5) x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 4.55e-268) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * log((x_46_re + (((x_46_im * x_46_im) * 0.5) / 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 (x_46re <= 4.55d-268) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = y_46im * log((x_46re + (((x_46im * x_46im) * 0.5d0) / 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 (x_46_re <= 4.55e-268) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * Math.log((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 4.55e-268: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = y_46_im * math.log((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 4.55e-268) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = Float64(y_46_im * log(Float64(x_46_re + Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 4.55e-268) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = y_46_im * log((x_46_re + (((x_46_im * x_46_im) * 0.5) / x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 4.55e-268], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[Log[N[(x$46$re + N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 4.55 \cdot 10^{-268}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log \left(x.re + \frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re}\right)\\
\end{array}
\end{array}
if x.re < 4.54999999999999991e-268Initial program 37.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.f6440.7%
Simplified40.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6413.3%
Simplified13.3%
if 4.54999999999999991e-268 < x.re Initial program 32.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified71.4%
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.f6472.5%
Simplified72.5%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6433.5%
Simplified33.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.4%
Simplified25.4%
Taylor expanded in x.im around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6427.2%
Simplified27.2%
Final simplification20.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im 5.5e-8) (* y.re (atan2 x.im x.re)) (* y.im (log (+ x.im (/ (* (* x.re x.re) 0.5) x.im))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 5.5e-8) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_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_46im <= 5.5d-8) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = y_46im * log((x_46im + (((x_46re * x_46re) * 0.5d0) / x_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_im <= 5.5e-8) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * Math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_im <= 5.5e-8: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = y_46_im * math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= 5.5e-8) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = Float64(y_46_im * log(Float64(x_46_im + Float64(Float64(Float64(x_46_re * x_46_re) * 0.5) / x_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_im <= 5.5e-8) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = y_46_im * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$im, 5.5e-8], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[Log[N[(x$46$im + N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq 5.5 \cdot 10^{-8}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log \left(x.im + \frac{\left(x.re \cdot x.re\right) \cdot 0.5}{x.im}\right)\\
\end{array}
\end{array}
if x.im < 5.5000000000000003e-8Initial program 37.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.f6441.0%
Simplified41.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.7%
Simplified15.7%
if 5.5000000000000003e-8 < x.im Initial program 27.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.9%
Taylor expanded in y.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.f6472.4%
Simplified72.4%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.2%
Simplified40.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.0%
Simplified25.0%
Final simplification18.2%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 1.9e+138) (* y.re (atan2 x.im x.re)) (* y.im (log x.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1.9e+138) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * log(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 (x_46re <= 1.9d+138) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = y_46im * log(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 (x_46_re <= 1.9e+138) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * Math.log(x_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 1.9e+138: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = y_46_im * math.log(x_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 1.9e+138) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = Float64(y_46_im * log(x_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 1.9e+138) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = y_46_im * log(x_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 1.9e+138], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1.9 \cdot 10^{+138}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log x.re\\
\end{array}
\end{array}
if x.re < 1.90000000000000006e138Initial program 40.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.f6440.7%
Simplified40.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.3%
Simplified15.3%
if 1.90000000000000006e138 < x.re Initial program 7.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.3%
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.f6467.0%
Simplified67.0%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6427.5%
Simplified27.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6427.5%
Simplified27.5%
Taylor expanded in x.im around 0
remove-double-negN/A
log-recN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6426.7%
Simplified26.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 1.7e-190) (* y.im (log x.im)) (* y.im (log x.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1.7e-190) {
tmp = y_46_im * log(x_46_im);
} else {
tmp = y_46_im * log(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 (x_46re <= 1.7d-190) then
tmp = y_46im * log(x_46im)
else
tmp = y_46im * log(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 (x_46_re <= 1.7e-190) {
tmp = y_46_im * Math.log(x_46_im);
} else {
tmp = y_46_im * Math.log(x_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 1.7e-190: tmp = y_46_im * math.log(x_46_im) else: tmp = y_46_im * math.log(x_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 1.7e-190) tmp = Float64(y_46_im * log(x_46_im)); else tmp = Float64(y_46_im * log(x_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 1.7e-190) tmp = y_46_im * log(x_46_im); else tmp = y_46_im * log(x_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 1.7e-190], N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1.7 \cdot 10^{-190}:\\
\;\;\;\;y.im \cdot \log x.im\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log x.re\\
\end{array}
\end{array}
if x.re < 1.69999999999999991e-190Initial program 35.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified68.1%
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.f6467.2%
Simplified67.2%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6433.6%
Simplified33.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6418.1%
Simplified18.1%
Taylor expanded in x.im around inf
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
log-recN/A
remove-double-negN/A
*-commutativeN/A
remove-double-negN/A
log-recN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f648.4%
Simplified8.4%
if 1.69999999999999991e-190 < 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
Simplified69.9%
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.f6470.5%
Simplified70.5%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6433.9%
Simplified33.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.2%
Simplified25.2%
Taylor expanded in x.im around 0
remove-double-negN/A
log-recN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6418.7%
Simplified18.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.im (log x.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_im * log(x_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 * log(x_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 * Math.log(x_46_im);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_im * math.log(x_46_im)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_im * log(x_46_im)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_im * log(x_46_im); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.im \cdot \log x.im
\end{array}
Initial program 35.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified68.9%
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.f6468.6%
Simplified68.6%
Taylor expanded in y.re around 0
/-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
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6433.7%
Simplified33.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.1%
Simplified21.1%
Taylor expanded in x.im around inf
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
log-recN/A
remove-double-negN/A
*-commutativeN/A
remove-double-negN/A
log-recN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f646.2%
Simplified6.2%
herbie shell --seed 2024148
(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)))))