
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1 (* (atan2 x.im x.re) y.im))
(t_2
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_1)))
(t_3 (* y.re (atan2 x.im x.re))))
(if (<= y.re -1000000.0)
(* t_2 (sin (* y.im t_0)))
(if (<= y.re 5e-50)
(/
(sin (+ (* y.im (log (hypot x.re x.im))) t_3))
(/ (exp t_1) (pow (hypot x.re x.im) y.re)))
(* t_2 (+ (sin t_3) (* y.im (* t_0 (cos t_3)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = atan2(x_46_im, x_46_re) * y_46_im;
double t_2 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1));
double t_3 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -1000000.0) {
tmp = t_2 * sin((y_46_im * t_0));
} else if (y_46_re <= 5e-50) {
tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + t_3)) / (exp(t_1) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2 * (sin(t_3) + (y_46_im * (t_0 * cos(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.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.atan2(x_46_im, x_46_re) * y_46_im;
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_1));
double t_3 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -1000000.0) {
tmp = t_2 * Math.sin((y_46_im * t_0));
} else if (y_46_re <= 5e-50) {
tmp = Math.sin(((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))) + t_3)) / (Math.exp(t_1) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2 * (Math.sin(t_3) + (y_46_im * (t_0 * Math.cos(t_3))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) t_1 = math.atan2(x_46_im, x_46_re) * y_46_im t_2 = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1)) t_3 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_re <= -1000000.0: tmp = t_2 * math.sin((y_46_im * t_0)) elif y_46_re <= 5e-50: tmp = math.sin(((y_46_im * math.log(math.hypot(x_46_re, x_46_im))) + t_3)) / (math.exp(t_1) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = t_2 * (math.sin(t_3) + (y_46_im * (t_0 * math.cos(t_3)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_2 = exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - t_1)) t_3 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -1000000.0) tmp = Float64(t_2 * sin(Float64(y_46_im * t_0))); elseif (y_46_re <= 5e-50) tmp = Float64(sin(Float64(Float64(y_46_im * log(hypot(x_46_re, x_46_im))) + t_3)) / Float64(exp(t_1) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(t_2 * Float64(sin(t_3) + Float64(y_46_im * Float64(t_0 * cos(t_3))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); t_1 = atan2(x_46_im, x_46_re) * y_46_im; t_2 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1)); t_3 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_re <= -1000000.0) tmp = t_2 * sin((y_46_im * t_0)); elseif (y_46_re <= 5e-50) tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + t_3)) / (exp(t_1) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = t_2 * (sin(t_3) + (y_46_im * (t_0 * cos(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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$2 = 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$1), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1000000.0], N[(t$95$2 * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5e-50], N[(N[Sin[N[(N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$1], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[(N[Sin[t$95$3], $MachinePrecision] + N[(y$46$im * N[(t$95$0 * N[Cos[t$95$3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_2 := e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t\_1}\\
t_3 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -1000000:\\
\;\;\;\;t\_2 \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{-50}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) + t\_3\right)}{\frac{e^{t\_1}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \left(\sin t\_3 + y.im \cdot \left(t\_0 \cdot \cos t\_3\right)\right)\\
\end{array}
\end{array}
if y.re < -1e6Initial program 43.9%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f6491.3%
Simplified91.3%
if -1e6 < y.re < 4.99999999999999968e-50Initial program 41.6%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified84.4%
if 4.99999999999999968e-50 < y.re Initial program 34.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
accelerator-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.4%
Simplified69.4%
Final simplification80.8%
(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 -520000.0)
t_1
(if (<= y.re 2e+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 <= -520000.0) {
tmp = t_1;
} else if (y_46_re <= 2e+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 <= -520000.0) {
tmp = t_1;
} else if (y_46_re <= 2e+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 <= -520000.0: tmp = t_1 elif y_46_re <= 2e+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 <= -520000.0) tmp = t_1; elseif (y_46_re <= 2e+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 <= -520000.0) tmp = t_1; elseif (y_46_re <= 2e+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, -520000.0], t$95$1, If[LessEqual[y$46$re, 2e+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 -520000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 2 \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 < -5.2e5 or 2e15 < y.re Initial program 34.1%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f6476.6%
Simplified76.6%
if -5.2e5 < y.re < 2e15Initial program 45.3%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified84.4%
Final simplification80.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.im (log (hypot x.im x.re))))
(t_2
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
(sin t_1))))
(if (<= y.re -400000.0)
t_2
(if (<= y.re 7.5e-5)
(/
(+ t_1 (* y.re (atan2 x.im x.re)))
(/ (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 = y_46_im * 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(t_1);
double tmp;
if (y_46_re <= -400000.0) {
tmp = t_2;
} else if (y_46_re <= 7.5e-5) {
tmp = (t_1 + (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_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_im * 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(t_1);
double tmp;
if (y_46_re <= -400000.0) {
tmp = t_2;
} else if (y_46_re <= 7.5e-5) {
tmp = (t_1 + (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_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_im * 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(t_1) tmp = 0 if y_46_re <= -400000.0: tmp = t_2 elif y_46_re <= 7.5e-5: tmp = (t_1 + (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_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_im * 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(t_1)) tmp = 0.0 if (y_46_re <= -400000.0) tmp = t_2; elseif (y_46_re <= 7.5e-5) tmp = Float64(Float64(t_1 + 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_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_im * 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(t_1); tmp = 0.0; if (y_46_re <= -400000.0) tmp = t_2; elseif (y_46_re <= 7.5e-5) tmp = (t_1 + (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_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$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $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[t$95$1], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -400000.0], t$95$2, If[LessEqual[y$46$re, 7.5e-5], N[(N[(t$95$1 + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $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 := y.im \cdot \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 t\_1\\
\mathbf{if}\;y.re \leq -400000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 7.5 \cdot 10^{-5}:\\
\;\;\;\;\frac{t\_1 + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}{\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 < -4e5 or 7.49999999999999934e-5 < y.re Initial program 36.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
accelerator-lowering-hypot.f6476.2%
Simplified76.2%
if -4e5 < y.re < 7.49999999999999934e-5Initial program 43.4%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified83.6%
Taylor expanded in y.re around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified82.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6478.3%
Simplified78.3%
Final simplification77.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.im (log (hypot x.im x.re))))
(t_2 (sin t_1))
(t_3 (pow (hypot x.re x.im) y.re))
(t_4 (exp t_0))
(t_5 (/ t_2 t_4)))
(if (<= y.im -0.9)
t_5
(if (<= y.im 5e-75)
(/ (+ t_1 (* y.re (atan2 x.im x.re))) (/ (+ t_0 1.0) t_3))
(if (<= y.im 1.05e+145) (/ t_2 (/ t_4 t_3)) t_5)))))
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_im * log(hypot(x_46_im, x_46_re));
double t_2 = sin(t_1);
double t_3 = pow(hypot(x_46_re, x_46_im), y_46_re);
double t_4 = exp(t_0);
double t_5 = t_2 / t_4;
double tmp;
if (y_46_im <= -0.9) {
tmp = t_5;
} else if (y_46_im <= 5e-75) {
tmp = (t_1 + (y_46_re * atan2(x_46_im, x_46_re))) / ((t_0 + 1.0) / t_3);
} else if (y_46_im <= 1.05e+145) {
tmp = t_2 / (t_4 / t_3);
} else {
tmp = t_5;
}
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_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_2 = Math.sin(t_1);
double t_3 = Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
double t_4 = Math.exp(t_0);
double t_5 = t_2 / t_4;
double tmp;
if (y_46_im <= -0.9) {
tmp = t_5;
} else if (y_46_im <= 5e-75) {
tmp = (t_1 + (y_46_re * Math.atan2(x_46_im, x_46_re))) / ((t_0 + 1.0) / t_3);
} else if (y_46_im <= 1.05e+145) {
tmp = t_2 / (t_4 / t_3);
} else {
tmp = t_5;
}
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_im * math.log(math.hypot(x_46_im, x_46_re)) t_2 = math.sin(t_1) t_3 = math.pow(math.hypot(x_46_re, x_46_im), y_46_re) t_4 = math.exp(t_0) t_5 = t_2 / t_4 tmp = 0 if y_46_im <= -0.9: tmp = t_5 elif y_46_im <= 5e-75: tmp = (t_1 + (y_46_re * math.atan2(x_46_im, x_46_re))) / ((t_0 + 1.0) / t_3) elif y_46_im <= 1.05e+145: tmp = t_2 / (t_4 / t_3) else: tmp = t_5 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_im * log(hypot(x_46_im, x_46_re))) t_2 = sin(t_1) t_3 = hypot(x_46_re, x_46_im) ^ y_46_re t_4 = exp(t_0) t_5 = Float64(t_2 / t_4) tmp = 0.0 if (y_46_im <= -0.9) tmp = t_5; elseif (y_46_im <= 5e-75) tmp = Float64(Float64(t_1 + Float64(y_46_re * atan(x_46_im, x_46_re))) / Float64(Float64(t_0 + 1.0) / t_3)); elseif (y_46_im <= 1.05e+145) tmp = Float64(t_2 / Float64(t_4 / t_3)); else tmp = t_5; 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_im * log(hypot(x_46_im, x_46_re)); t_2 = sin(t_1); t_3 = hypot(x_46_re, x_46_im) ^ y_46_re; t_4 = exp(t_0); t_5 = t_2 / t_4; tmp = 0.0; if (y_46_im <= -0.9) tmp = t_5; elseif (y_46_im <= 5e-75) tmp = (t_1 + (y_46_re * atan2(x_46_im, x_46_re))) / ((t_0 + 1.0) / t_3); elseif (y_46_im <= 1.05e+145) tmp = t_2 / (t_4 / t_3); else tmp = t_5; 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$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, Block[{t$95$3 = N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$4 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$5 = N[(t$95$2 / t$95$4), $MachinePrecision]}, If[LessEqual[y$46$im, -0.9], t$95$5, If[LessEqual[y$46$im, 5e-75], N[(N[(t$95$1 + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(t$95$0 + 1.0), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.05e+145], N[(t$95$2 / N[(t$95$4 / t$95$3), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_2 := \sin t\_1\\
t_3 := {\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
t_4 := e^{t\_0}\\
t_5 := \frac{t\_2}{t\_4}\\
\mathbf{if}\;y.im \leq -0.9:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y.im \leq 5 \cdot 10^{-75}:\\
\;\;\;\;\frac{t\_1 + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}{\frac{t\_0 + 1}{t\_3}}\\
\mathbf{elif}\;y.im \leq 1.05 \cdot 10^{+145}:\\
\;\;\;\;\frac{t\_2}{\frac{t\_4}{t\_3}}\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y.im < -0.900000000000000022 or 1.04999999999999995e145 < y.im Initial program 36.8%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified49.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6462.9%
Simplified62.9%
if -0.900000000000000022 < y.im < 4.99999999999999979e-75Initial program 44.8%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified87.9%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified85.1%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.1%
Simplified85.1%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.1%
Simplified85.1%
if 4.99999999999999979e-75 < y.im < 1.04999999999999995e145Initial program 30.6%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified71.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
accelerator-lowering-hypot.f6481.6%
Simplified81.6%
Final simplification76.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (exp (* (atan2 x.im x.re) y.im)))
(t_2 (/ (sin t_0) t_1)))
(if (<= y.im -0.135)
t_2
(if (<= y.im 1.32e+154)
(/
(+ t_0 (* y.re (atan2 x.im x.re)))
(/ t_1 (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 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_2 = sin(t_0) / t_1;
double tmp;
if (y_46_im <= -0.135) {
tmp = t_2;
} else if (y_46_im <= 1.32e+154) {
tmp = (t_0 + (y_46_re * atan2(x_46_im, x_46_re))) / (t_1 / 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 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_2 = Math.sin(t_0) / t_1;
double tmp;
if (y_46_im <= -0.135) {
tmp = t_2;
} else if (y_46_im <= 1.32e+154) {
tmp = (t_0 + (y_46_re * Math.atan2(x_46_im, x_46_re))) / (t_1 / 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 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_2 = math.sin(t_0) / t_1 tmp = 0 if y_46_im <= -0.135: tmp = t_2 elif y_46_im <= 1.32e+154: tmp = (t_0 + (y_46_re * math.atan2(x_46_im, x_46_re))) / (t_1 / 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(y_46_im * log(hypot(x_46_im, x_46_re))) t_1 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_2 = Float64(sin(t_0) / t_1) tmp = 0.0 if (y_46_im <= -0.135) tmp = t_2; elseif (y_46_im <= 1.32e+154) tmp = Float64(Float64(t_0 + Float64(y_46_re * atan(x_46_im, x_46_re))) / Float64(t_1 / (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 = y_46_im * log(hypot(x_46_im, x_46_re)); t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_2 = sin(t_0) / t_1; tmp = 0.0; if (y_46_im <= -0.135) tmp = t_2; elseif (y_46_im <= 1.32e+154) tmp = (t_0 + (y_46_re * atan2(x_46_im, x_46_re))) / (t_1 / (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[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[t$95$0], $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[y$46$im, -0.135], t$95$2, If[LessEqual[y$46$im, 1.32e+154], N[(N[(t$95$0 + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 / 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 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_2 := \frac{\sin t\_0}{t\_1}\\
\mathbf{if}\;y.im \leq -0.135:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 1.32 \cdot 10^{+154}:\\
\;\;\;\;\frac{t\_0 + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}{\frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -0.13500000000000001 or 1.31999999999999998e154 < y.im Initial program 38.0%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified50.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.8%
Simplified64.8%
if -0.13500000000000001 < y.im < 1.31999999999999998e154Initial program 40.4%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified82.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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified81.7%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.7%
Simplified80.7%
Final simplification74.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.im (log (hypot x.im x.re))))
(t_2 (/ (sin t_1) (exp t_0))))
(if (<= y.im -0.0024)
t_2
(if (<= y.im 1.8e-14)
(/
(+ t_1 (* y.re (atan2 x.im x.re)))
(/ (+ t_0 1.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 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_2 = sin(t_1) / exp(t_0);
double tmp;
if (y_46_im <= -0.0024) {
tmp = t_2;
} else if (y_46_im <= 1.8e-14) {
tmp = (t_1 + (y_46_re * atan2(x_46_im, x_46_re))) / ((t_0 + 1.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 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_2 = Math.sin(t_1) / Math.exp(t_0);
double tmp;
if (y_46_im <= -0.0024) {
tmp = t_2;
} else if (y_46_im <= 1.8e-14) {
tmp = (t_1 + (y_46_re * Math.atan2(x_46_im, x_46_re))) / ((t_0 + 1.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 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_2 = math.sin(t_1) / math.exp(t_0) tmp = 0 if y_46_im <= -0.0024: tmp = t_2 elif y_46_im <= 1.8e-14: tmp = (t_1 + (y_46_re * math.atan2(x_46_im, x_46_re))) / ((t_0 + 1.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 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) t_2 = Float64(sin(t_1) / exp(t_0)) tmp = 0.0 if (y_46_im <= -0.0024) tmp = t_2; elseif (y_46_im <= 1.8e-14) tmp = Float64(Float64(t_1 + Float64(y_46_re * atan(x_46_im, x_46_re))) / Float64(Float64(t_0 + 1.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 = y_46_im * log(hypot(x_46_im, x_46_re)); t_2 = sin(t_1) / exp(t_0); tmp = 0.0; if (y_46_im <= -0.0024) tmp = t_2; elseif (y_46_im <= 1.8e-14) tmp = (t_1 + (y_46_re * atan2(x_46_im, x_46_re))) / ((t_0 + 1.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[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[t$95$1], $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -0.0024], t$95$2, If[LessEqual[y$46$im, 1.8e-14], N[(N[(t$95$1 + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(t$95$0 + 1.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 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_2 := \frac{\sin t\_1}{e^{t\_0}}\\
\mathbf{if}\;y.im \leq -0.0024:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 1.8 \cdot 10^{-14}:\\
\;\;\;\;\frac{t\_1 + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}{\frac{t\_0 + 1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -0.00239999999999999979 or 1.7999999999999999e-14 < y.im Initial program 35.7%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified52.7%
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
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6461.7%
Simplified61.7%
if -0.00239999999999999979 < y.im < 1.7999999999999999e-14Initial program 43.3%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified88.2%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified86.3%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6486.3%
Simplified86.3%
Taylor expanded in y.im around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6486.3%
Simplified86.3%
Final simplification74.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 (* y.re (atan2 x.im x.re)))
(t_2 (sin t_1)))
(if (<= y.re -2.1e-7)
(* t_2 (pow (hypot x.im x.re) y.re))
(if (<= y.re 2.15e-191)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_0)
(if (<= y.re 4.5e+165)
(/ t_1 (/ t_0 (pow (hypot x.re x.im) y.re)))
(* t_2 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1);
double tmp;
if (y_46_re <= -2.1e-7) {
tmp = t_2 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 2.15e-191) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 4.5e+165) {
tmp = t_1 / (t_0 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2 * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1);
double tmp;
if (y_46_re <= -2.1e-7) {
tmp = t_2 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 2.15e-191) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 4.5e+165) {
tmp = t_1 / (t_0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = t_2 * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) tmp = 0 if y_46_re <= -2.1e-7: tmp = t_2 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 2.15e-191: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_0 elif y_46_re <= 4.5e+165: tmp = t_1 / (t_0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = t_2 * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = sin(t_1) tmp = 0.0 if (y_46_re <= -2.1e-7) tmp = Float64(t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 2.15e-191) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0); elseif (y_46_re <= 4.5e+165) tmp = Float64(t_1 / Float64(t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(t_2 * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1); tmp = 0.0; if (y_46_re <= -2.1e-7) tmp = t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 2.15e-191) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0; elseif (y_46_re <= 4.5e+165) tmp = t_1 / (t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = t_2 * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, If[LessEqual[y$46$re, -2.1e-7], N[(t$95$2 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.15e-191], 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, 4.5e+165], 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], N[(t$95$2 * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1\\
\mathbf{if}\;y.re \leq -2.1 \cdot 10^{-7}:\\
\;\;\;\;t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 2.15 \cdot 10^{-191}:\\
\;\;\;\;\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 4.5 \cdot 10^{+165}:\\
\;\;\;\;\frac{t\_1}{\frac{t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -2.1e-7Initial program 43.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6488.3%
Simplified88.3%
if -2.1e-7 < y.re < 2.14999999999999992e-191Initial program 43.0%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified83.7%
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
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.6%
Simplified72.6%
if 2.14999999999999992e-191 < y.re < 4.4999999999999996e165Initial program 36.9%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified63.6%
Taylor expanded in y.re around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified66.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.2%
Simplified56.2%
if 4.4999999999999996e165 < y.re Initial program 32.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.6%
Simplified57.6%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.6%
Applied egg-rr57.6%
Final simplification68.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (/ (sin t_0) (exp (* (atan2 x.im x.re) y.im)))))
(if (<= y.im -3.4e-5)
t_1
(if (<= y.im 1.8e-14)
(/
(+ t_0 (* y.re (atan2 x.im x.re)))
(/ 1.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 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_1 = sin(t_0) / exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -3.4e-5) {
tmp = t_1;
} else if (y_46_im <= 1.8e-14) {
tmp = (t_0 + (y_46_re * atan2(x_46_im, x_46_re))) / (1.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 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.sin(t_0) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -3.4e-5) {
tmp = t_1;
} else if (y_46_im <= 1.8e-14) {
tmp = (t_0 + (y_46_re * Math.atan2(x_46_im, x_46_re))) / (1.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 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = math.sin(t_0) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -3.4e-5: tmp = t_1 elif y_46_im <= 1.8e-14: tmp = (t_0 + (y_46_re * math.atan2(x_46_im, x_46_re))) / (1.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(y_46_im * log(hypot(x_46_im, x_46_re))) t_1 = Float64(sin(t_0) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -3.4e-5) tmp = t_1; elseif (y_46_im <= 1.8e-14) tmp = Float64(Float64(t_0 + Float64(y_46_re * atan(x_46_im, x_46_re))) / Float64(1.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 = y_46_im * log(hypot(x_46_im, x_46_re)); t_1 = sin(t_0) / exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -3.4e-5) tmp = t_1; elseif (y_46_im <= 1.8e-14) tmp = (t_0 + (y_46_re * atan2(x_46_im, x_46_re))) / (1.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[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sin[t$95$0], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -3.4e-5], t$95$1, If[LessEqual[y$46$im, 1.8e-14], N[(N[(t$95$0 + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 / 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 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := \frac{\sin t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{if}\;y.im \leq -3.4 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.8 \cdot 10^{-14}:\\
\;\;\;\;\frac{t\_0 + y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}{\frac{1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -3.4e-5 or 1.7999999999999999e-14 < y.im Initial program 35.7%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified52.7%
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
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6461.7%
Simplified61.7%
if -3.4e-5 < y.im < 1.7999999999999999e-14Initial program 43.3%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified88.2%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified86.3%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6486.3%
Simplified86.3%
Taylor expanded in y.im around 0
Simplified86.3%
Final simplification74.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (sin t_0))
(t_2 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))
(if (<= y.re -3.8e-8)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.re 4.8e+27)
(/
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 1.2e+264) (* t_0 t_2) (* 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 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double t_2 = pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
double tmp;
if (y_46_re <= -3.8e-8) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 4.8e+27) {
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 if (y_46_re <= 1.2e+264) {
tmp = t_0 * t_2;
} else {
tmp = t_1 * t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double t_2 = Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
double tmp;
if (y_46_re <= -3.8e-8) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 4.8e+27) {
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 if (y_46_re <= 1.2e+264) {
tmp = t_0 * t_2;
} else {
tmp = t_1 * t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) t_2 = math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) tmp = 0 if y_46_re <= -3.8e-8: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 4.8e+27: 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)) elif y_46_re <= 1.2e+264: tmp = t_0 * t_2 else: tmp = t_1 * t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) t_2 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0) tmp = 0.0 if (y_46_re <= -3.8e-8) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 4.8e+27) 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))); elseif (y_46_re <= 1.2e+264) tmp = Float64(t_0 * t_2); else tmp = Float64(t_1 * t_2); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0); t_2 = ((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0); tmp = 0.0; if (y_46_re <= -3.8e-8) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 4.8e+27) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 1.2e+264) tmp = t_0 * t_2; else tmp = t_1 * t_2; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -3.8e-8], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.8e+27], 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], If[LessEqual[y$46$re, 1.2e+264], N[(t$95$0 * t$95$2), $MachinePrecision], N[(t$95$1 * t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
t_2 := {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{if}\;y.re \leq -3.8 \cdot 10^{-8}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 4.8 \cdot 10^{+27}:\\
\;\;\;\;\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{elif}\;y.re \leq 1.2 \cdot 10^{+264}:\\
\;\;\;\;t\_0 \cdot t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot t\_2\\
\end{array}
\end{array}
if y.re < -3.80000000000000028e-8Initial program 43.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6488.3%
Simplified88.3%
if -3.80000000000000028e-8 < y.re < 4.79999999999999995e27Initial program 45.1%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified82.4%
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
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.6%
Simplified64.6%
if 4.79999999999999995e27 < y.re < 1.19999999999999996e264Initial program 24.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Simplified43.7%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Applied egg-rr43.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.6%
Simplified56.6%
if 1.19999999999999996e264 < y.re Initial program 42.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Simplified85.7%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Applied egg-rr85.7%
Final simplification68.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (sin t_0))
(t_2 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))
(if (<= y.re -1.8e-8)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.re 4.8e+27)
(/ (* y.im (log (hypot x.im x.re))) (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 1.5e+264) (* t_0 t_2) (* 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 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double t_2 = pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
double tmp;
if (y_46_re <= -1.8e-8) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 4.8e+27) {
tmp = (y_46_im * log(hypot(x_46_im, x_46_re))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 1.5e+264) {
tmp = t_0 * t_2;
} else {
tmp = t_1 * t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double t_2 = Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
double tmp;
if (y_46_re <= -1.8e-8) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 4.8e+27) {
tmp = (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 if (y_46_re <= 1.5e+264) {
tmp = t_0 * t_2;
} else {
tmp = t_1 * t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) t_2 = math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) tmp = 0 if y_46_re <= -1.8e-8: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 4.8e+27: tmp = (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)) elif y_46_re <= 1.5e+264: tmp = t_0 * t_2 else: tmp = t_1 * t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) t_2 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0) tmp = 0.0 if (y_46_re <= -1.8e-8) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 4.8e+27) tmp = Float64(Float64(y_46_im * log(hypot(x_46_im, x_46_re))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 1.5e+264) tmp = Float64(t_0 * t_2); else tmp = Float64(t_1 * t_2); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0); t_2 = ((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0); tmp = 0.0; if (y_46_re <= -1.8e-8) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 4.8e+27) tmp = (y_46_im * log(hypot(x_46_im, x_46_re))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 1.5e+264) tmp = t_0 * t_2; else tmp = t_1 * t_2; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -1.8e-8], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.8e+27], N[(N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.5e+264], N[(t$95$0 * t$95$2), $MachinePrecision], N[(t$95$1 * t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
t_2 := {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{if}\;y.re \leq -1.8 \cdot 10^{-8}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 4.8 \cdot 10^{+27}:\\
\;\;\;\;\frac{y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 1.5 \cdot 10^{+264}:\\
\;\;\;\;t\_0 \cdot t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot t\_2\\
\end{array}
\end{array}
if y.re < -1.79999999999999991e-8Initial program 43.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6488.3%
Simplified88.3%
if -1.79999999999999991e-8 < y.re < 4.79999999999999995e27Initial program 45.1%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified82.4%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified79.5%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6474.6%
Simplified74.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6459.6%
Simplified59.6%
if 4.79999999999999995e27 < y.re < 1.5e264Initial program 24.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Simplified43.7%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Applied egg-rr43.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.6%
Simplified56.6%
if 1.5e264 < y.re Initial program 42.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Simplified85.7%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Applied egg-rr85.7%
Final simplification66.3%
(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 (* t_1 (pow (* t_0 t_0) (/ y.re 4.0)))))
(if (<= y.im -5e+18)
t_2
(if (<= y.im 9.5e-42) (* t_1 (pow (hypot x.im x.re) 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 = (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 = t_1 * pow((t_0 * t_0), (y_46_re / 4.0));
double tmp;
if (y_46_im <= -5e+18) {
tmp = t_2;
} else if (y_46_im <= 9.5e-42) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), 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 = (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 = t_1 * Math.pow((t_0 * t_0), (y_46_re / 4.0));
double tmp;
if (y_46_im <= -5e+18) {
tmp = t_2;
} else if (y_46_im <= 9.5e-42) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), 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 = (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 = t_1 * math.pow((t_0 * t_0), (y_46_re / 4.0)) tmp = 0 if y_46_im <= -5e+18: tmp = t_2 elif y_46_im <= 9.5e-42: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), 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(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(t_1 * (Float64(t_0 * t_0) ^ Float64(y_46_re / 4.0))) tmp = 0.0 if (y_46_im <= -5e+18) tmp = t_2; elseif (y_46_im <= 9.5e-42) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ 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 = (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 = t_1 * ((t_0 * t_0) ^ (y_46_re / 4.0)); tmp = 0.0; if (y_46_im <= -5e+18) tmp = t_2; elseif (y_46_im <= 9.5e-42) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ 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[(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[(t$95$1 * N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], N[(y$46$re / 4.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -5e+18], t$95$2, If[LessEqual[y$46$im, 9.5e-42], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\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 := t\_1 \cdot {\left(t\_0 \cdot t\_0\right)}^{\left(\frac{y.re}{4}\right)}\\
\mathbf{if}\;y.im \leq -5 \cdot 10^{+18}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 9.5 \cdot 10^{-42}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -5e18 or 9.49999999999999948e-42 < y.im Initial program 35.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.3%
Simplified29.3%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6436.5%
Applied egg-rr36.5%
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-/l/N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval43.1%
Applied egg-rr43.1%
if -5e18 < y.im < 9.49999999999999948e-42Initial program 43.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.5%
Simplified60.5%
Final simplification51.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 (* y.re (atan2 x.im x.re)))
(t_2 (* (sin t_1) (pow (* t_0 t_0) (/ y.re 4.0)))))
(if (<= y.im -4.9e+17)
t_2
(if (<= y.im 2.05e+55) (* t_1 (pow (hypot x.im x.re) 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 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1) * pow((t_0 * t_0), (y_46_re / 4.0));
double tmp;
if (y_46_im <= -4.9e+17) {
tmp = t_2;
} else if (y_46_im <= 2.05e+55) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), 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 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1) * Math.pow((t_0 * t_0), (y_46_re / 4.0));
double tmp;
if (y_46_im <= -4.9e+17) {
tmp = t_2;
} else if (y_46_im <= 2.05e+55) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), 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 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) * math.pow((t_0 * t_0), (y_46_re / 4.0)) tmp = 0 if y_46_im <= -4.9e+17: tmp = t_2 elif y_46_im <= 2.05e+55: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), 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(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(sin(t_1) * (Float64(t_0 * t_0) ^ Float64(y_46_re / 4.0))) tmp = 0.0 if (y_46_im <= -4.9e+17) tmp = t_2; elseif (y_46_im <= 2.05e+55) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ 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 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1) * ((t_0 * t_0) ^ (y_46_re / 4.0)); tmp = 0.0; if (y_46_im <= -4.9e+17) tmp = t_2; elseif (y_46_im <= 2.05e+55) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ 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[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[t$95$1], $MachinePrecision] * N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], N[(y$46$re / 4.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4.9e+17], t$95$2, If[LessEqual[y$46$im, 2.05e+55], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1 \cdot {\left(t\_0 \cdot t\_0\right)}^{\left(\frac{y.re}{4}\right)}\\
\mathbf{if}\;y.im \leq -4.9 \cdot 10^{+17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 2.05 \cdot 10^{+55}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -4.9e17 or 2.04999999999999991e55 < y.im Initial program 34.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6426.3%
Simplified26.3%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6435.0%
Applied egg-rr35.0%
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-/l/N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval42.9%
Applied egg-rr42.9%
if -4.9e17 < y.im < 2.04999999999999991e55Initial program 43.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.2%
Simplified58.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.2%
Simplified57.2%
Final simplification51.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -3.25e-84)
(* y.re (* (atan2 x.im x.re) t_1))
(if (<= y.re 1.42e-136)
(*
(* y.im (exp (- 0.0 (* (atan2 x.im x.re) y.im))))
(- 0.0 (log (/ -1.0 x.im))))
(if (<= y.re 1.4e+264)
(* t_0 t_1)
(* (sin t_0) (pow (+ x.im (* 0.5 (/ (* x.re x.re) x.im))) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -3.25e-84) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * t_1);
} else if (y_46_re <= 1.42e-136) {
tmp = (y_46_im * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - log((-1.0 / x_46_im)));
} else if (y_46_re <= 1.4e+264) {
tmp = t_0 * t_1;
} else {
tmp = sin(t_0) * pow((x_46_im + (0.5 * ((x_46_re * x_46_re) / x_46_im))), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -3.25e-84) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * t_1);
} else if (y_46_re <= 1.42e-136) {
tmp = (y_46_im * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - Math.log((-1.0 / x_46_im)));
} else if (y_46_re <= 1.4e+264) {
tmp = t_0 * t_1;
} else {
tmp = Math.sin(t_0) * Math.pow((x_46_im + (0.5 * ((x_46_re * x_46_re) / x_46_im))), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -3.25e-84: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * t_1) elif y_46_re <= 1.42e-136: tmp = (y_46_im * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - math.log((-1.0 / x_46_im))) elif y_46_re <= 1.4e+264: tmp = t_0 * t_1 else: tmp = math.sin(t_0) * math.pow((x_46_im + (0.5 * ((x_46_re * x_46_re) / x_46_im))), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -3.25e-84) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * t_1)); elseif (y_46_re <= 1.42e-136) tmp = Float64(Float64(y_46_im * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im)))) * Float64(0.0 - log(Float64(-1.0 / x_46_im)))); elseif (y_46_re <= 1.4e+264) tmp = Float64(t_0 * t_1); else tmp = Float64(sin(t_0) * (Float64(x_46_im + Float64(0.5 * Float64(Float64(x_46_re * x_46_re) / x_46_im))) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -3.25e-84) tmp = y_46_re * (atan2(x_46_im, x_46_re) * t_1); elseif (y_46_re <= 1.42e-136) tmp = (y_46_im * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - log((-1.0 / x_46_im))); elseif (y_46_re <= 1.4e+264) tmp = t_0 * t_1; else tmp = sin(t_0) * ((x_46_im + (0.5 * ((x_46_re * x_46_re) / x_46_im))) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -3.25e-84], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.42e-136], N[(N[(y$46$im * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(0.0 - N[Log[N[(-1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.4e+264], N[(t$95$0 * t$95$1), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[(x$46$im + N[(0.5 * N[(N[(x$46$re * x$46$re), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -3.25 \cdot 10^{-84}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot t\_1\right)\\
\mathbf{elif}\;y.re \leq 1.42 \cdot 10^{-136}:\\
\;\;\;\;\left(y.im \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right) \cdot \left(0 - \log \left(\frac{-1}{x.im}\right)\right)\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{+264}:\\
\;\;\;\;t\_0 \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {\left(x.im + 0.5 \cdot \frac{x.re \cdot x.re}{x.im}\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -3.25000000000000011e-84Initial program 41.3%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified85.9%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified81.2%
*-commutativeN/A
exp-prodN/A
pow-lowering-pow.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6480.0%
Applied egg-rr80.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f6472.3%
Simplified72.3%
if -3.25000000000000011e-84 < y.re < 1.4199999999999999e-136Initial program 43.7%
Taylor expanded in x.im around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
Simplified30.0%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6430.1%
Simplified30.1%
Taylor expanded in y.re around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6428.8%
Simplified28.8%
if 1.4199999999999999e-136 < y.re < 1.39999999999999999e264Initial program 35.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.5%
Simplified43.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6446.8%
Simplified46.8%
if 1.39999999999999999e264 < y.re Initial program 42.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Simplified85.7%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6485.7%
Simplified85.7%
Final simplification50.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.im -1.8e-127)
(* (sin t_0) (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))
(if (<= x.im -2.4e-197)
(*
(* y.im (exp (- 0.0 (* (atan2 x.im x.re) y.im))))
(- 0.0 (log (/ -1.0 x.im))))
(* t_0 (pow (hypot x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_im <= -1.8e-127) {
tmp = sin(t_0) * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else if (x_46_im <= -2.4e-197) {
tmp = (y_46_im * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - log((-1.0 / x_46_im)));
} else {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_im <= -1.8e-127) {
tmp = Math.sin(t_0) * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else if (x_46_im <= -2.4e-197) {
tmp = (y_46_im * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - Math.log((-1.0 / x_46_im)));
} else {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_im <= -1.8e-127: tmp = math.sin(t_0) * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) elif x_46_im <= -2.4e-197: tmp = (y_46_im * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - math.log((-1.0 / x_46_im))) else: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_im <= -1.8e-127) tmp = Float64(sin(t_0) * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); elseif (x_46_im <= -2.4e-197) tmp = Float64(Float64(y_46_im * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im)))) * Float64(0.0 - log(Float64(-1.0 / x_46_im)))); else tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_im <= -1.8e-127) tmp = sin(t_0) * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); elseif (x_46_im <= -2.4e-197) tmp = (y_46_im * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - log((-1.0 / x_46_im))); else tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$im, -1.8e-127], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, -2.4e-197], N[(N[(y$46$im * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(0.0 - N[Log[N[(-1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.im \leq -1.8 \cdot 10^{-127}:\\
\;\;\;\;\sin t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{elif}\;x.im \leq -2.4 \cdot 10^{-197}:\\
\;\;\;\;\left(y.im \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right) \cdot \left(0 - \log \left(\frac{-1}{x.im}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if x.im < -1.8e-127Initial program 39.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.6%
Simplified48.6%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6450.4%
Applied egg-rr50.4%
if -1.8e-127 < x.im < -2.4000000000000001e-197Initial program 52.4%
Taylor expanded in x.im around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
Simplified54.6%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6454.6%
Simplified54.6%
Taylor expanded in y.re around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6455.0%
Simplified55.0%
if -2.4000000000000001e-197 < x.im Initial program 38.1%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6445.4%
Simplified45.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.2%
Simplified48.2%
Final simplification49.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -3.5e-84)
(* y.re (* (atan2 x.im x.re) t_1))
(if (<= y.re 1.9e-136)
(*
(* y.im (exp (- 0.0 (* (atan2 x.im x.re) y.im))))
(- 0.0 (log (/ -1.0 x.im))))
(if (<= y.re 1.2e+264) (* t_0 t_1) (* (sin t_0) (pow x.re y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -3.5e-84) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * t_1);
} else if (y_46_re <= 1.9e-136) {
tmp = (y_46_im * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - log((-1.0 / x_46_im)));
} else if (y_46_re <= 1.2e+264) {
tmp = t_0 * t_1;
} else {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -3.5e-84) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * t_1);
} else if (y_46_re <= 1.9e-136) {
tmp = (y_46_im * Math.exp((0.0 - (Math.atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - Math.log((-1.0 / x_46_im)));
} else if (y_46_re <= 1.2e+264) {
tmp = t_0 * t_1;
} else {
tmp = Math.sin(t_0) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -3.5e-84: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * t_1) elif y_46_re <= 1.9e-136: tmp = (y_46_im * math.exp((0.0 - (math.atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - math.log((-1.0 / x_46_im))) elif y_46_re <= 1.2e+264: tmp = t_0 * t_1 else: tmp = math.sin(t_0) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -3.5e-84) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * t_1)); elseif (y_46_re <= 1.9e-136) tmp = Float64(Float64(y_46_im * exp(Float64(0.0 - Float64(atan(x_46_im, x_46_re) * y_46_im)))) * Float64(0.0 - log(Float64(-1.0 / x_46_im)))); elseif (y_46_re <= 1.2e+264) tmp = Float64(t_0 * t_1); else tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -3.5e-84) tmp = y_46_re * (atan2(x_46_im, x_46_re) * t_1); elseif (y_46_re <= 1.9e-136) tmp = (y_46_im * exp((0.0 - (atan2(x_46_im, x_46_re) * y_46_im)))) * (0.0 - log((-1.0 / x_46_im))); elseif (y_46_re <= 1.2e+264) tmp = t_0 * t_1; else tmp = sin(t_0) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -3.5e-84], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.9e-136], N[(N[(y$46$im * N[Exp[N[(0.0 - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(0.0 - N[Log[N[(-1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.2e+264], N[(t$95$0 * t$95$1), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -3.5 \cdot 10^{-84}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot t\_1\right)\\
\mathbf{elif}\;y.re \leq 1.9 \cdot 10^{-136}:\\
\;\;\;\;\left(y.im \cdot e^{0 - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\right) \cdot \left(0 - \log \left(\frac{-1}{x.im}\right)\right)\\
\mathbf{elif}\;y.re \leq 1.2 \cdot 10^{+264}:\\
\;\;\;\;t\_0 \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -3.5000000000000001e-84Initial program 41.3%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified85.9%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified81.2%
*-commutativeN/A
exp-prodN/A
pow-lowering-pow.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6480.0%
Applied egg-rr80.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f6472.3%
Simplified72.3%
if -3.5000000000000001e-84 < y.re < 1.9000000000000001e-136Initial program 43.7%
Taylor expanded in x.im around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
Simplified30.0%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6430.1%
Simplified30.1%
Taylor expanded in y.re around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6428.8%
Simplified28.8%
if 1.9000000000000001e-136 < y.re < 1.19999999999999996e264Initial program 35.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.5%
Simplified43.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6446.8%
Simplified46.8%
if 1.19999999999999996e264 < y.re Initial program 42.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Simplified85.7%
Taylor expanded in x.im around 0
pow-lowering-pow.f6471.7%
Simplified71.7%
Final simplification50.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re -6.5e+228) (* (sin (* y.re (atan2 x.im x.re))) (pow (* x.re x.re) (/ y.re 2.0))) (* y.re (* (atan2 x.im x.re) (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= -6.5e+228) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow((x_46_re * x_46_re), (y_46_re / 2.0));
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * pow(hypot(x_46_im, x_46_re), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= -6.5e+228) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow((x_46_re * x_46_re), (y_46_re / 2.0));
} else {
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));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= -6.5e+228: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow((x_46_re * x_46_re), (y_46_re / 2.0)) else: 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)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= -6.5e+228) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (Float64(x_46_re * x_46_re) ^ Float64(y_46_re / 2.0))); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * (hypot(x_46_im, x_46_re) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= -6.5e+228) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * ((x_46_re * x_46_re) ^ (y_46_re / 2.0)); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, -6.5e+228], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[(x$46$re * x$46$re), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq -6.5 \cdot 10^{+228}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re \cdot x.re\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\right)\\
\end{array}
\end{array}
if x.re < -6.5e228Initial program 0.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.2%
Simplified40.2%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.1%
Applied egg-rr56.1%
Taylor expanded in x.im around 0
unpow2N/A
*-lowering-*.f6456.1%
Simplified56.1%
if -6.5e228 < x.re Initial program 42.5%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified70.9%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified72.8%
*-commutativeN/A
exp-prodN/A
pow-lowering-pow.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6471.0%
Applied egg-rr71.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f6445.9%
Simplified45.9%
Final simplification46.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.im -1.3e+74)
(* t_0 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))
(* t_0 (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -1.3e+74) {
tmp = t_0 * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -1.3e+74) {
tmp = t_0 * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_im <= -1.3e+74: tmp = t_0 * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) else: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -1.3e+74) tmp = Float64(t_0 * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); else tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_im <= -1.3e+74) tmp = t_0 * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); else tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.3e+74], N[(t$95$0 * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq -1.3 \cdot 10^{+74}:\\
\;\;\;\;t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < -1.3e74Initial program 28.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6426.4%
Simplified26.4%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.1%
Applied egg-rr43.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.1%
Simplified41.1%
if -1.3e74 < y.im Initial program 42.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.3%
Simplified49.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6447.7%
Simplified47.7%
Final simplification46.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -4.8e+77)
(*
(* y.re (atan2 x.im x.re))
(pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))
(* y.re (* (atan2 x.im x.re) (pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= -4.8e+77) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * pow(hypot(x_46_im, x_46_re), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= -4.8e+77) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else {
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));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= -4.8e+77: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) else: 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)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_im <= -4.8e+77) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * (hypot(x_46_im, x_46_re) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_im <= -4.8e+77) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$im, -4.8e+77], N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -4.8 \cdot 10^{+77}:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\right)\\
\end{array}
\end{array}
if y.im < -4.7999999999999997e77Initial program 28.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6426.4%
Simplified26.4%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.1%
Applied egg-rr43.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.1%
Simplified41.1%
if -4.7999999999999997e77 < y.im Initial program 42.2%
exp-diffN/A
associate-*l/N/A
*-commutativeN/A
associate-*l/N/A
associate-/r/N/A
exp-diffN/A
Simplified77.4%
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
accelerator-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified76.2%
*-commutativeN/A
exp-prodN/A
pow-lowering-pow.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6474.2%
Applied egg-rr74.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f6447.7%
Simplified47.7%
Final simplification46.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.re 1e+264)
(* t_0 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))
(* (sin t_0) (pow x.re y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= 1e+264) {
tmp = t_0 * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
if (y_46re <= 1d+264) then
tmp = t_0 * (((x_46re * x_46re) + (x_46im * x_46im)) ** (y_46re / 2.0d0))
else
tmp = sin(t_0) * (x_46re ** y_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= 1e+264) {
tmp = t_0 * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else {
tmp = Math.sin(t_0) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_re <= 1e+264: tmp = t_0 * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) else: tmp = math.sin(t_0) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= 1e+264) tmp = Float64(t_0 * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); else tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_re <= 1e+264) tmp = t_0 * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); else tmp = sin(t_0) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, 1e+264], N[(t$95$0 * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq 10^{+264}:\\
\;\;\;\;t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < 1.00000000000000004e264Initial program 39.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Simplified43.7%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.0%
Applied egg-rr43.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.3%
Simplified43.3%
if 1.00000000000000004e264 < y.re Initial program 42.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.7%
Simplified85.7%
Taylor expanded in x.im around 0
pow-lowering-pow.f6471.7%
Simplified71.7%
Final simplification44.1%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* (* y.re (atan2 x.im x.re)) (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (y_46_re * atan2(x_46_im, x_46_re)) * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = (y_46re * atan2(x_46im, x_46re)) * (((x_46re * x_46re) + (x_46im * x_46im)) ** (y_46re / 2.0d0))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}
\end{array}
Initial program 39.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.9%
Simplified44.9%
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.2%
Applied egg-rr44.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6442.5%
Simplified42.5%
Final simplification42.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (sin (* y.re (atan2 x.im x.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return sin((y_46_re * atan2(x_46_im, x_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = sin((y_46re * atan2(x_46im, x_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return math.sin((y_46_re * math.atan2(x_46_im, x_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return sin(Float64(y_46_re * atan(x_46_im, x_46_re))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)
\end{array}
Initial program 39.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.9%
Simplified44.9%
Taylor expanded in y.re around 0
Simplified12.4%
Final simplification12.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 39.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
accelerator-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.9%
Simplified44.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.4%
Simplified12.4%
herbie shell --seed 2024191
(FPCore (x.re x.im y.re y.im)
:name "powComplex, imaginary part"
:precision binary64
(* (exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))) (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))))