
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (+ (* x.im x.im) (* x.re x.re)))
(t_2 (log (hypot x.im x.re))))
(if (<= y.re -9e+39)
(* (pow (* t_1 t_1) (/ (/ y.re 2.0) 2.0)) (* y.re (atan2 x.im x.re)))
(if (<= y.re 6.8e+15)
(/
(sin (* y.im (+ t_2 (* y.re (/ (atan2 x.im x.re) y.im)))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(* (exp (- (* y.re (log (sqrt t_1))) t_0)) (sin (* y.im t_2)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -9e+39) {
tmp = pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * (y_46_re * atan2(x_46_im, x_46_re));
} else if (y_46_re <= 6.8e+15) {
tmp = sin((y_46_im * (t_2 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = exp(((y_46_re * log(sqrt(t_1))) - t_0)) * sin((y_46_im * t_2));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -9e+39) {
tmp = Math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * (y_46_re * Math.atan2(x_46_im, x_46_re));
} else if (y_46_re <= 6.8e+15) {
tmp = Math.sin((y_46_im * (t_2 + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(t_1))) - t_0)) * Math.sin((y_46_im * t_2));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_2 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_re <= -9e+39: tmp = math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * (y_46_re * math.atan2(x_46_im, x_46_re)) elif y_46_re <= 6.8e+15: tmp = math.sin((y_46_im * (t_2 + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = math.exp(((y_46_re * math.log(math.sqrt(t_1))) - t_0)) * math.sin((y_46_im * t_2)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_2 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -9e+39) tmp = Float64((Float64(t_1 * t_1) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * Float64(y_46_re * atan(x_46_im, x_46_re))); elseif (y_46_re <= 6.8e+15) tmp = Float64(sin(Float64(y_46_im * Float64(t_2 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(t_1))) - t_0)) * sin(Float64(y_46_im * t_2))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re); t_2 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_re <= -9e+39) tmp = ((t_1 * t_1) ^ ((y_46_re / 2.0) / 2.0)) * (y_46_re * atan2(x_46_im, x_46_re)); elseif (y_46_re <= 6.8e+15) tmp = sin((y_46_im * (t_2 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = exp(((y_46_re * log(sqrt(t_1))) - t_0)) * sin((y_46_im * t_2)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -9e+39], N[(N[Power[N[(t$95$1 * t$95$1), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6.8e+15], N[(N[Sin[N[(y$46$im * N[(t$95$2 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$1], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$2), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := x.im \cdot x.im + x.re \cdot x.re\\
t_2 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -9 \cdot 10^{+39}:\\
\;\;\;\;{\left(t\_1 \cdot t\_1\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.re \leq 6.8 \cdot 10^{+15}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(t\_2 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{t\_1}\right) - t\_0} \cdot \sin \left(y.im \cdot t\_2\right)\\
\end{array}
\end{array}
if y.re < -8.99999999999999991e39Initial program 44.8%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6477.7%
Simplified77.7%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6477.7%
Applied egg-rr77.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.9%
Simplified82.9%
if -8.99999999999999991e39 < y.re < 6.8e15Initial program 43.2%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.7%
Taylor expanded in y.im around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6485.4%
Simplified85.4%
if 6.8e15 < y.re Initial program 22.6%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6463.1%
Simplified63.1%
Final simplification79.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (+ (* x.im x.im) (* x.re x.re)))
(t_3 (* (atan2 x.im x.re) y.im)))
(if (<= y.re -5.8e+48)
(* (pow (* t_2 t_2) (/ (/ y.re 2.0) 2.0)) t_1)
(if (<= y.re 1.45e+14)
(* (/ (pow (hypot x.im x.re) y.re) (exp t_3)) (sin (+ t_1 t_0)))
(* (exp (- (* y.re (log (sqrt t_2))) t_3)) (sin t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_3 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = pow((t_2 * t_2), ((y_46_re / 2.0) / 2.0)) * t_1;
} else if (y_46_re <= 1.45e+14) {
tmp = (pow(hypot(x_46_im, x_46_re), y_46_re) / exp(t_3)) * sin((t_1 + t_0));
} else {
tmp = exp(((y_46_re * log(sqrt(t_2))) - t_3)) * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_3 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -5.8e+48) {
tmp = Math.pow((t_2 * t_2), ((y_46_re / 2.0) / 2.0)) * t_1;
} else if (y_46_re <= 1.45e+14) {
tmp = (Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) / Math.exp(t_3)) * Math.sin((t_1 + t_0));
} else {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(t_2))) - t_3)) * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_3 = math.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if y_46_re <= -5.8e+48: tmp = math.pow((t_2 * t_2), ((y_46_re / 2.0) / 2.0)) * t_1 elif y_46_re <= 1.45e+14: tmp = (math.pow(math.hypot(x_46_im, x_46_re), y_46_re) / math.exp(t_3)) * math.sin((t_1 + t_0)) else: tmp = math.exp(((y_46_re * math.log(math.sqrt(t_2))) - t_3)) * math.sin(t_0) 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(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_3 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (y_46_re <= -5.8e+48) tmp = Float64((Float64(t_2 * t_2) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * t_1); elseif (y_46_re <= 1.45e+14) tmp = Float64(Float64((hypot(x_46_im, x_46_re) ^ y_46_re) / exp(t_3)) * sin(Float64(t_1 + t_0))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(t_2))) - t_3)) * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * log(hypot(x_46_im, x_46_re)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re); t_3 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (y_46_re <= -5.8e+48) tmp = ((t_2 * t_2) ^ ((y_46_re / 2.0) / 2.0)) * t_1; elseif (y_46_re <= 1.45e+14) tmp = ((hypot(x_46_im, x_46_re) ^ y_46_re) / exp(t_3)) * sin((t_1 + t_0)); else tmp = exp(((y_46_re * log(sqrt(t_2))) - t_3)) * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $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[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -5.8e+48], N[(N[Power[N[(t$95$2 * t$95$2), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 1.45e+14], N[(N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] / N[Exp[t$95$3], $MachinePrecision]), $MachinePrecision] * N[Sin[N[(t$95$1 + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[t$95$2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := x.im \cdot x.im + x.re \cdot x.re\\
t_3 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -5.8 \cdot 10^{+48}:\\
\;\;\;\;{\left(t\_2 \cdot t\_2\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot t\_1\\
\mathbf{elif}\;y.re \leq 1.45 \cdot 10^{+14}:\\
\;\;\;\;\frac{{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}}{e^{t\_3}} \cdot \sin \left(t\_1 + t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{t\_2}\right) - t\_3} \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -5.7999999999999998e48Initial program 43.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.5%
Simplified76.5%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6476.5%
Applied egg-rr76.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.0%
Simplified82.0%
if -5.7999999999999998e48 < y.re < 1.45e14Initial program 43.6%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
Simplified85.6%
if 1.45e14 < y.re Initial program 23.4%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.7%
Simplified62.7%
Final simplification79.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (hypot x.im x.re))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* (atan2 x.im x.re) y.im)))
(if (<= y.re -6.2e-14)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.re 5.8e+19)
(* (sin (+ t_1 t_0)) (/ 1.0 (exp t_2)))
(*
(exp (- (* y.re (log (sqrt (+ (* x.im x.im) (* x.re x.re))))) t_2))
(sin t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -6.2e-14) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5.8e+19) {
tmp = sin((t_1 + t_0)) * (1.0 / exp(t_2));
} else {
tmp = exp(((y_46_re * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) - t_2)) * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (y_46_re <= -6.2e-14) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5.8e+19) {
tmp = Math.sin((t_1 + t_0)) * (1.0 / Math.exp(t_2));
} else {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) - t_2)) * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if y_46_re <= -6.2e-14: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 5.8e+19: tmp = math.sin((t_1 + t_0)) * (1.0 / math.exp(t_2)) else: tmp = math.exp(((y_46_re * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) - t_2)) * math.sin(t_0) 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(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (y_46_re <= -6.2e-14) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 5.8e+19) tmp = Float64(sin(Float64(t_1 + t_0)) * Float64(1.0 / exp(t_2))); else tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))) - t_2)) * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * log(hypot(x_46_im, x_46_re)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (y_46_re <= -6.2e-14) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 5.8e+19) tmp = sin((t_1 + t_0)) * (1.0 / exp(t_2)); else tmp = exp(((y_46_re * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) - t_2)) * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $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[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -6.2e-14], 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, 5.8e+19], N[(N[Sin[N[(t$95$1 + t$95$0), $MachinePrecision]], $MachinePrecision] * N[(1.0 / N[Exp[t$95$2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -6.2 \cdot 10^{-14}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 5.8 \cdot 10^{+19}:\\
\;\;\;\;\sin \left(t\_1 + t\_0\right) \cdot \frac{1}{e^{t\_2}}\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right) - t\_2} \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -6.20000000000000009e-14Initial program 42.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.0%
Simplified81.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.1%
Simplified85.1%
if -6.20000000000000009e-14 < y.re < 5.8e19Initial program 43.9%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
Simplified82.9%
Taylor expanded in y.re around 0
Simplified80.9%
if 5.8e19 < y.re Initial program 23.0%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6464.1%
Simplified64.1%
Final simplification78.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -6.2e-14)
(* t_0 (pow (hypot x.im x.re) y.re))
(if (<= y.re 1.85e-5)
(*
(sin (+ t_0 (* y.im (log (hypot x.im x.re)))))
(/ 1.0 (exp (* (atan2 x.im x.re) y.im))))
(* (pow (* t_1 t_1) (/ (/ y.re 2.0) 2.0)) (sin t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -6.2e-14) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.85e-5) {
tmp = sin((t_0 + (y_46_im * log(hypot(x_46_im, x_46_re))))) * (1.0 / exp((atan2(x_46_im, x_46_re) * y_46_im)));
} else {
tmp = pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -6.2e-14) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.85e-5) {
tmp = Math.sin((t_0 + (y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))))) * (1.0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im)));
} else {
tmp = Math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -6.2e-14: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 1.85e-5: tmp = math.sin((t_0 + (y_46_im * math.log(math.hypot(x_46_im, x_46_re))))) * (1.0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im))) else: tmp = math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -6.2e-14) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 1.85e-5) tmp = Float64(sin(Float64(t_0 + Float64(y_46_im * log(hypot(x_46_im, x_46_re))))) * Float64(1.0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im)))); else tmp = Float64((Float64(t_1 * t_1) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -6.2e-14) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 1.85e-5) tmp = sin((t_0 + (y_46_im * log(hypot(x_46_im, x_46_re))))) * (1.0 / exp((atan2(x_46_im, x_46_re) * y_46_im))); else tmp = ((t_1 * t_1) ^ ((y_46_re / 2.0) / 2.0)) * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -6.2e-14], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.85e-5], N[(N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(t$95$1 * t$95$1), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -6.2 \cdot 10^{-14}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.85 \cdot 10^{-5}:\\
\;\;\;\;\sin \left(t\_0 + y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot \frac{1}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;{\left(t\_1 \cdot t\_1\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -6.20000000000000009e-14Initial program 42.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.0%
Simplified81.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.1%
Simplified85.1%
if -6.20000000000000009e-14 < y.re < 1.84999999999999991e-5Initial program 44.5%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
Simplified84.5%
Taylor expanded in y.re around 0
Simplified84.0%
if 1.84999999999999991e-5 < y.re Initial program 23.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.4%
Simplified55.4%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6455.4%
Applied egg-rr55.4%
Final simplification76.8%
(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 -6.8e-44)
(* t_0 t_1)
(if (<= y.re 9.8e-116)
(*
(/ 1.0 (exp (* (atan2 x.im x.re) y.im)))
(sin (* y.im (log (hypot x.im x.re)))))
(* t_1 (sin t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.8e-44) {
tmp = t_0 * t_1;
} else if (y_46_re <= 9.8e-116) {
tmp = (1.0 / exp((atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_1 * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.8e-44) {
tmp = t_0 * t_1;
} else if (y_46_re <= 9.8e-116) {
tmp = (1.0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_1 * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -6.8e-44: tmp = t_0 * t_1 elif y_46_re <= 9.8e-116: tmp = (1.0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_1 * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -6.8e-44) tmp = Float64(t_0 * t_1); elseif (y_46_re <= 9.8e-116) tmp = Float64(Float64(1.0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(t_1 * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -6.8e-44) tmp = t_0 * t_1; elseif (y_46_re <= 9.8e-116) tmp = (1.0 / exp((atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_1 * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(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, -6.8e-44], N[(t$95$0 * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 9.8e-116], N[(N[(1.0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $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], N[(t$95$1 * N[Sin[t$95$0], $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 -6.8 \cdot 10^{-44}:\\
\;\;\;\;t\_0 \cdot t\_1\\
\mathbf{elif}\;y.re \leq 9.8 \cdot 10^{-116}:\\
\;\;\;\;\frac{1}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -6.80000000000000033e-44Initial program 44.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.8%
Simplified76.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.4%
Simplified80.4%
if -6.80000000000000033e-44 < y.re < 9.79999999999999955e-116Initial program 44.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6471.4%
Simplified71.4%
sub0-negN/A
exp-negN/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6471.4%
Applied egg-rr71.4%
if 9.79999999999999955e-116 < y.re Initial program 28.1%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.5%
Simplified55.5%
Final simplification68.4%
(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 -5e-44)
(* t_0 t_1)
(if (<= y.re 3.1e-118)
(/
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) y.im)))
(* t_1 (sin t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -5e-44) {
tmp = t_0 * t_1;
} else if (y_46_re <= 3.1e-118) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = t_1 * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -5e-44) {
tmp = t_0 * t_1;
} else if (y_46_re <= 3.1e-118) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = t_1 * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -5e-44: tmp = t_0 * t_1 elif y_46_re <= 3.1e-118: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) else: tmp = t_1 * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -5e-44) tmp = Float64(t_0 * t_1); elseif (y_46_re <= 3.1e-118) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); else tmp = Float64(t_1 * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -5e-44) tmp = t_0 * t_1; elseif (y_46_re <= 3.1e-118) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); else tmp = t_1 * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(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, -5e-44], N[(t$95$0 * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 3.1e-118], 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], N[(t$95$1 * N[Sin[t$95$0], $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 -5 \cdot 10^{-44}:\\
\;\;\;\;t\_0 \cdot t\_1\\
\mathbf{elif}\;y.re \leq 3.1 \cdot 10^{-118}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -5.00000000000000039e-44Initial program 44.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.8%
Simplified76.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.4%
Simplified80.4%
if -5.00000000000000039e-44 < y.re < 3.1000000000000001e-118Initial program 44.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.5%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6471.4%
Simplified71.4%
if 3.1000000000000001e-118 < y.re Initial program 28.1%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.5%
Simplified55.5%
Final simplification68.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* (atan2 x.im x.re) y.im))
(t_2 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -1.5e-42)
(* t_0 t_2)
(if (<= y.re -4.3e-197)
(/ (* y.im (* 0.5 (log (+ (* x.im x.im) (* x.re x.re))))) (exp t_1))
(if (<= y.re 1.1e-116)
(* (- 1.0 t_1) (sin (* y.im (log (hypot x.im x.re)))))
(* t_2 (sin t_0)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = atan2(x_46_im, x_46_re) * y_46_im;
double t_2 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.5e-42) {
tmp = t_0 * t_2;
} else if (y_46_re <= -4.3e-197) {
tmp = (y_46_im * (0.5 * log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / exp(t_1);
} else if (y_46_re <= 1.1e-116) {
tmp = (1.0 - t_1) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_2 * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_2 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.5e-42) {
tmp = t_0 * t_2;
} else if (y_46_re <= -4.3e-197) {
tmp = (y_46_im * (0.5 * Math.log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / Math.exp(t_1);
} else if (y_46_re <= 1.1e-116) {
tmp = (1.0 - t_1) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_2 * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.atan2(x_46_im, x_46_re) * y_46_im t_2 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -1.5e-42: tmp = t_0 * t_2 elif y_46_re <= -4.3e-197: tmp = (y_46_im * (0.5 * math.log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / math.exp(t_1) elif y_46_re <= 1.1e-116: tmp = (1.0 - t_1) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_2 * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_2 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -1.5e-42) tmp = Float64(t_0 * t_2); elseif (y_46_re <= -4.3e-197) tmp = Float64(Float64(y_46_im * Float64(0.5 * log(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))) / exp(t_1)); elseif (y_46_re <= 1.1e-116) tmp = Float64(Float64(1.0 - t_1) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(t_2 * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = atan2(x_46_im, x_46_re) * y_46_im; t_2 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -1.5e-42) tmp = t_0 * t_2; elseif (y_46_re <= -4.3e-197) tmp = (y_46_im * (0.5 * log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / exp(t_1); elseif (y_46_re <= 1.1e-116) tmp = (1.0 - t_1) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_2 * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $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[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -1.5e-42], N[(t$95$0 * t$95$2), $MachinePrecision], If[LessEqual[y$46$re, -4.3e-197], N[(N[(y$46$im * N[(0.5 * N[Log[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Exp[t$95$1], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.1e-116], N[(N[(1.0 - t$95$1), $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_2 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1.5 \cdot 10^{-42}:\\
\;\;\;\;t\_0 \cdot t\_2\\
\mathbf{elif}\;y.re \leq -4.3 \cdot 10^{-197}:\\
\;\;\;\;\frac{y.im \cdot \left(0.5 \cdot \log \left(x.im \cdot x.im + x.re \cdot x.re\right)\right)}{e^{t\_1}}\\
\mathbf{elif}\;y.re \leq 1.1 \cdot 10^{-116}:\\
\;\;\;\;\left(1 - t\_1\right) \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -1.50000000000000014e-42Initial program 44.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.8%
Simplified76.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.4%
Simplified80.4%
if -1.50000000000000014e-42 < y.re < -4.3e-197Initial program 55.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.8%
Simplified66.8%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.5%
Simplified29.5%
frac-2negN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
pow1/2N/A
+-commutativeN/A
log-powN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
Applied egg-rr51.7%
if -4.3e-197 < y.re < 1.10000000000000005e-116Initial program 39.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6477.1%
Simplified77.1%
Taylor expanded in y.im around 0
neg-mul-1N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.5%
Simplified56.5%
if 1.10000000000000005e-116 < y.re Initial program 28.1%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.5%
Simplified55.5%
Final simplification60.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 -1.28e-43)
(* t_0 t_1)
(if (<= y.re -4.2e-197)
(/
(* y.im (* 0.5 (log (+ (* x.im x.im) (* x.re x.re)))))
(exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 3.7e-116)
(sin (* y.im (log (hypot x.im x.re))))
(* t_1 (sin t_0)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.28e-43) {
tmp = t_0 * t_1;
} else if (y_46_re <= -4.2e-197) {
tmp = (y_46_im * (0.5 * log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 3.7e-116) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_1 * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.28e-43) {
tmp = t_0 * t_1;
} else if (y_46_re <= -4.2e-197) {
tmp = (y_46_im * (0.5 * Math.log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 3.7e-116) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_1 * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -1.28e-43: tmp = t_0 * t_1 elif y_46_re <= -4.2e-197: tmp = (y_46_im * (0.5 * math.log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 3.7e-116: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_1 * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -1.28e-43) tmp = Float64(t_0 * t_1); elseif (y_46_re <= -4.2e-197) tmp = Float64(Float64(y_46_im * Float64(0.5 * log(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 3.7e-116) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = Float64(t_1 * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -1.28e-43) tmp = t_0 * t_1; elseif (y_46_re <= -4.2e-197) tmp = (y_46_im * (0.5 * log(((x_46_im * x_46_im) + (x_46_re * x_46_re))))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 3.7e-116) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_1 * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(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, -1.28e-43], N[(t$95$0 * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, -4.2e-197], N[(N[(y$46$im * N[(0.5 * N[Log[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $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, 3.7e-116], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(t$95$1 * N[Sin[t$95$0], $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 -1.28 \cdot 10^{-43}:\\
\;\;\;\;t\_0 \cdot t\_1\\
\mathbf{elif}\;y.re \leq -4.2 \cdot 10^{-197}:\\
\;\;\;\;\frac{y.im \cdot \left(0.5 \cdot \log \left(x.im \cdot x.im + x.re \cdot x.re\right)\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 3.7 \cdot 10^{-116}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -1.27999999999999998e-43Initial program 44.2%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.8%
Simplified76.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.4%
Simplified80.4%
if -1.27999999999999998e-43 < y.re < -4.2e-197Initial program 55.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.8%
Simplified66.8%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.5%
Simplified29.5%
frac-2negN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
pow1/2N/A
+-commutativeN/A
log-powN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
Applied egg-rr51.7%
if -4.2e-197 < y.re < 3.7000000000000002e-116Initial program 39.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6477.1%
Simplified77.1%
Taylor expanded in y.im around 0
Simplified56.2%
if 3.7000000000000002e-116 < y.re Initial program 28.1%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.5%
Simplified55.5%
Final simplification60.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re)))
(t_2 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -2.5e-44)
t_1
(if (<= y.re -4.2e-197)
(/ (* y.im (* 0.5 (log t_2))) (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 3.8e-122)
(sin (* y.im (log (hypot x.im x.re))))
(if (<= y.re 2.55e-8)
t_1
(* (pow (* t_2 t_2) (/ (/ y.re 2.0) 2.0)) (sin t_0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -2.5e-44) {
tmp = t_1;
} else if (y_46_re <= -4.2e-197) {
tmp = (y_46_im * (0.5 * log(t_2))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 3.8e-122) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 2.55e-8) {
tmp = t_1;
} else {
tmp = pow((t_2 * t_2), ((y_46_re / 2.0) / 2.0)) * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -2.5e-44) {
tmp = t_1;
} else if (y_46_re <= -4.2e-197) {
tmp = (y_46_im * (0.5 * Math.log(t_2))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 3.8e-122) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 2.55e-8) {
tmp = t_1;
} else {
tmp = Math.pow((t_2 * t_2), ((y_46_re / 2.0) / 2.0)) * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -2.5e-44: tmp = t_1 elif y_46_re <= -4.2e-197: tmp = (y_46_im * (0.5 * math.log(t_2))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 3.8e-122: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 2.55e-8: tmp = t_1 else: tmp = math.pow((t_2 * t_2), ((y_46_re / 2.0) / 2.0)) * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) t_2 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -2.5e-44) tmp = t_1; elseif (y_46_re <= -4.2e-197) tmp = Float64(Float64(y_46_im * Float64(0.5 * log(t_2))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 3.8e-122) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 2.55e-8) tmp = t_1; else tmp = Float64((Float64(t_2 * t_2) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -2.5e-44) tmp = t_1; elseif (y_46_re <= -4.2e-197) tmp = (y_46_im * (0.5 * log(t_2))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 3.8e-122) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 2.55e-8) tmp = t_1; else tmp = ((t_2 * t_2) ^ ((y_46_re / 2.0) / 2.0)) * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.5e-44], t$95$1, If[LessEqual[y$46$re, -4.2e-197], N[(N[(y$46$im * N[(0.5 * N[Log[t$95$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, 3.8e-122], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$re, 2.55e-8], t$95$1, N[(N[Power[N[(t$95$2 * t$95$2), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_2 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -2.5 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -4.2 \cdot 10^{-197}:\\
\;\;\;\;\frac{y.im \cdot \left(0.5 \cdot \log t\_2\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 3.8 \cdot 10^{-122}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 2.55 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;{\left(t\_2 \cdot t\_2\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -2.50000000000000019e-44 or 3.8000000000000001e-122 < y.re < 2.55e-8Initial program 42.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.4%
Simplified72.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6475.1%
Simplified75.1%
if -2.50000000000000019e-44 < y.re < -4.2e-197Initial program 55.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.8%
Simplified66.8%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.5%
Simplified29.5%
frac-2negN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
pow1/2N/A
+-commutativeN/A
log-powN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
Applied egg-rr51.7%
if -4.2e-197 < y.re < 3.8000000000000001e-122Initial program 39.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6477.1%
Simplified77.1%
Taylor expanded in y.im around 0
Simplified56.2%
if 2.55e-8 < y.re Initial program 25.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6454.6%
Simplified54.6%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6454.6%
Applied egg-rr54.6%
Final simplification60.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re)))
(t_2 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.re -4.3e-44)
t_1
(if (<= y.re -4.5e-197)
(/ (* y.im (* 0.5 (log t_2))) (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 4.3e-128)
(sin (* y.im (log (hypot x.im x.re))))
(if (<= y.re 2.55e-8) t_1 (* (pow t_2 (/ y.re 2.0)) (sin t_0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -4.3e-44) {
tmp = t_1;
} else if (y_46_re <= -4.5e-197) {
tmp = (y_46_im * (0.5 * log(t_2))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 4.3e-128) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 2.55e-8) {
tmp = t_1;
} else {
tmp = pow(t_2, (y_46_re / 2.0)) * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_re <= -4.3e-44) {
tmp = t_1;
} else if (y_46_re <= -4.5e-197) {
tmp = (y_46_im * (0.5 * Math.log(t_2))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 4.3e-128) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 2.55e-8) {
tmp = t_1;
} else {
tmp = Math.pow(t_2, (y_46_re / 2.0)) * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_re <= -4.3e-44: tmp = t_1 elif y_46_re <= -4.5e-197: tmp = (y_46_im * (0.5 * math.log(t_2))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 4.3e-128: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 2.55e-8: tmp = t_1 else: tmp = math.pow(t_2, (y_46_re / 2.0)) * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) t_2 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_re <= -4.3e-44) tmp = t_1; elseif (y_46_re <= -4.5e-197) tmp = Float64(Float64(y_46_im * Float64(0.5 * log(t_2))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 4.3e-128) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 2.55e-8) tmp = t_1; else tmp = Float64((t_2 ^ Float64(y_46_re / 2.0)) * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_re <= -4.3e-44) tmp = t_1; elseif (y_46_re <= -4.5e-197) tmp = (y_46_im * (0.5 * log(t_2))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 4.3e-128) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 2.55e-8) tmp = t_1; else tmp = (t_2 ^ (y_46_re / 2.0)) * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.3e-44], t$95$1, If[LessEqual[y$46$re, -4.5e-197], N[(N[(y$46$im * N[(0.5 * N[Log[t$95$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, 4.3e-128], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$re, 2.55e-8], t$95$1, N[(N[Power[t$95$2, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_2 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.re \leq -4.3 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -4.5 \cdot 10^{-197}:\\
\;\;\;\;\frac{y.im \cdot \left(0.5 \cdot \log t\_2\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 4.3 \cdot 10^{-128}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 2.55 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;{t\_2}^{\left(\frac{y.re}{2}\right)} \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -4.30000000000000013e-44 or 4.29999999999999994e-128 < y.re < 2.55e-8Initial program 42.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.4%
Simplified72.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6475.1%
Simplified75.1%
if -4.30000000000000013e-44 < y.re < -4.5000000000000001e-197Initial program 55.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.8%
Simplified66.8%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.5%
Simplified29.5%
frac-2negN/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
pow1/2N/A
+-commutativeN/A
log-powN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
Applied egg-rr51.7%
if -4.5000000000000001e-197 < y.re < 4.29999999999999994e-128Initial program 39.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6477.1%
Simplified77.1%
Taylor expanded in y.im around 0
Simplified56.2%
if 2.55e-8 < y.re Initial program 25.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6454.6%
Simplified54.6%
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.6%
Applied egg-rr54.6%
Final simplification60.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -4.6e-170)
t_1
(if (<= y.re 6.2e-121)
(sin (* y.im (log (hypot x.im x.re))))
(if (<= y.re 1.95e-11)
t_1
(* (pow (+ (* x.im x.im) (* x.re x.re)) (/ y.re 2.0)) (sin t_0)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -4.6e-170) {
tmp = t_1;
} else if (y_46_re <= 6.2e-121) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 1.95e-11) {
tmp = t_1;
} else {
tmp = pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / 2.0)) * sin(t_0);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -4.6e-170) {
tmp = t_1;
} else if (y_46_re <= 6.2e-121) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 1.95e-11) {
tmp = t_1;
} else {
tmp = Math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / 2.0)) * Math.sin(t_0);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -4.6e-170: tmp = t_1 elif y_46_re <= 6.2e-121: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 1.95e-11: tmp = t_1 else: tmp = math.pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (y_46_re / 2.0)) * math.sin(t_0) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -4.6e-170) tmp = t_1; elseif (y_46_re <= 6.2e-121) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 1.95e-11) tmp = t_1; else tmp = Float64((Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ Float64(y_46_re / 2.0)) * sin(t_0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -4.6e-170) tmp = t_1; elseif (y_46_re <= 6.2e-121) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 1.95e-11) tmp = t_1; else tmp = (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (y_46_re / 2.0)) * sin(t_0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -4.6e-170], t$95$1, If[LessEqual[y$46$re, 6.2e-121], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$re, 1.95e-11], t$95$1, N[(N[Power[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -4.6 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 6.2 \cdot 10^{-121}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 1.95 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;{\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{2}\right)} \cdot \sin t\_0\\
\end{array}
\end{array}
if y.re < -4.59999999999999974e-170 or 6.1999999999999997e-121 < y.re < 1.95000000000000005e-11Initial program 45.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.5%
Simplified64.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.8%
Simplified66.8%
if -4.59999999999999974e-170 < y.re < 6.1999999999999997e-121Initial program 39.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6476.6%
Simplified76.6%
Taylor expanded in y.im around 0
Simplified55.1%
if 1.95000000000000005e-11 < y.re Initial program 25.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6454.6%
Simplified54.6%
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.6%
Applied egg-rr54.6%
Final simplification60.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (+ (* x.im x.im) (* x.re x.re)))
(t_2 (* (pow (* t_1 t_1) (/ (/ y.re 2.0) 2.0)) t_0)))
(if (<= y.re -1.35e-6)
t_2
(if (<= y.re -1.85e-170)
(* y.re (log (exp (atan2 x.im x.re))))
(if (<= y.re 5e-115)
(sin (* y.im (log (hypot x.im x.re))))
(if (<= y.re 10200000000000.0) (sin t_0) t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0;
double tmp;
if (y_46_re <= -1.35e-6) {
tmp = t_2;
} else if (y_46_re <= -1.85e-170) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 5e-115) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 10200000000000.0) {
tmp = sin(t_0);
} 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_re * Math.atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = Math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0;
double tmp;
if (y_46_re <= -1.35e-6) {
tmp = t_2;
} else if (y_46_re <= -1.85e-170) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 5e-115) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 10200000000000.0) {
tmp = Math.sin(t_0);
} else {
tmp = 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_2 = math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0 tmp = 0 if y_46_re <= -1.35e-6: tmp = t_2 elif y_46_re <= -1.85e-170: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) elif y_46_re <= 5e-115: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 10200000000000.0: tmp = math.sin(t_0) 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_re * atan(x_46_im, x_46_re)) t_1 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_2 = Float64((Float64(t_1 * t_1) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * t_0) tmp = 0.0 if (y_46_re <= -1.35e-6) tmp = t_2; elseif (y_46_re <= -1.85e-170) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); elseif (y_46_re <= 5e-115) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 10200000000000.0) tmp = sin(t_0); 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_re * atan2(x_46_im, x_46_re); t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re); t_2 = ((t_1 * t_1) ^ ((y_46_re / 2.0) / 2.0)) * t_0; tmp = 0.0; if (y_46_re <= -1.35e-6) tmp = t_2; elseif (y_46_re <= -1.85e-170) tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); elseif (y_46_re <= 5e-115) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 10200000000000.0) tmp = sin(t_0); 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$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Power[N[(t$95$1 * t$95$1), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]}, If[LessEqual[y$46$re, -1.35e-6], t$95$2, If[LessEqual[y$46$re, -1.85e-170], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5e-115], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$re, 10200000000000.0], N[Sin[t$95$0], $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := x.im \cdot x.im + x.re \cdot x.re\\
t_2 := {\left(t\_1 \cdot t\_1\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot t\_0\\
\mathbf{if}\;y.re \leq -1.35 \cdot 10^{-6}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq -1.85 \cdot 10^{-170}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{-115}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 10200000000000:\\
\;\;\;\;\sin t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -1.34999999999999999e-6 or 1.02e13 < y.re Initial program 34.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.3%
Simplified67.3%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6467.3%
Applied egg-rr67.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.3%
Simplified67.3%
if -1.34999999999999999e-6 < y.re < -1.85e-170Initial program 51.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6442.3%
Simplified42.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6437.3%
Simplified37.3%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6437.4%
Applied egg-rr37.4%
if -1.85e-170 < y.re < 5.0000000000000003e-115Initial program 39.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6476.6%
Simplified76.6%
Taylor expanded in y.im around 0
Simplified55.1%
if 5.0000000000000003e-115 < y.re < 1.02e13Initial program 38.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.1%
Simplified57.1%
Taylor expanded in y.re around 0
Simplified48.0%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.0%
Simplified48.0%
Final simplification57.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re))))
(if (<= y.re -6.5e-172)
t_0
(if (<= y.re 4.2e-116) (sin (* y.im (log (hypot x.im x.re)))) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.5e-172) {
tmp = t_0;
} else if (y_46_re <= 4.2e-116) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6.5e-172) {
tmp = t_0;
} else if (y_46_re <= 4.2e-116) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -6.5e-172: tmp = t_0 elif y_46_re <= 4.2e-116: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -6.5e-172) tmp = t_0; elseif (y_46_re <= 4.2e-116) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -6.5e-172) tmp = t_0; elseif (y_46_re <= 4.2e-116) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -6.5e-172], t$95$0, If[LessEqual[y$46$re, 4.2e-116], 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]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -6.5 \cdot 10^{-172}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 4.2 \cdot 10^{-116}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -6.50000000000000012e-172 or 4.1999999999999998e-116 < y.re Initial program 38.3%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6461.0%
Simplified61.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6459.9%
Simplified59.9%
if -6.50000000000000012e-172 < y.re < 4.1999999999999998e-116Initial program 39.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6476.6%
Simplified76.6%
Taylor expanded in y.im around 0
Simplified55.1%
Final simplification58.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (+ (* x.im x.im) (* x.re x.re)))
(t_2 (* (pow (* t_1 t_1) (/ (/ y.re 2.0) 2.0)) t_0)))
(if (<= y.re -2.6e-5)
t_2
(if (<= y.re -5.2e-186)
(* y.re (log (exp (atan2 x.im x.re))))
(if (<= y.re 5.2e-118)
(* y.im (log (hypot x.re x.im)))
(if (<= y.re 10200000000000.0) (sin t_0) t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0;
double tmp;
if (y_46_re <= -2.6e-5) {
tmp = t_2;
} else if (y_46_re <= -5.2e-186) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 5.2e-118) {
tmp = y_46_im * log(hypot(x_46_re, x_46_im));
} else if (y_46_re <= 10200000000000.0) {
tmp = sin(t_0);
} 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_re * Math.atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = Math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0;
double tmp;
if (y_46_re <= -2.6e-5) {
tmp = t_2;
} else if (y_46_re <= -5.2e-186) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 5.2e-118) {
tmp = y_46_im * Math.log(Math.hypot(x_46_re, x_46_im));
} else if (y_46_re <= 10200000000000.0) {
tmp = Math.sin(t_0);
} else {
tmp = 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_2 = math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0 tmp = 0 if y_46_re <= -2.6e-5: tmp = t_2 elif y_46_re <= -5.2e-186: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) elif y_46_re <= 5.2e-118: tmp = y_46_im * math.log(math.hypot(x_46_re, x_46_im)) elif y_46_re <= 10200000000000.0: tmp = math.sin(t_0) 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_re * atan(x_46_im, x_46_re)) t_1 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_2 = Float64((Float64(t_1 * t_1) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * t_0) tmp = 0.0 if (y_46_re <= -2.6e-5) tmp = t_2; elseif (y_46_re <= -5.2e-186) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); elseif (y_46_re <= 5.2e-118) tmp = Float64(y_46_im * log(hypot(x_46_re, x_46_im))); elseif (y_46_re <= 10200000000000.0) tmp = sin(t_0); 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_re * atan2(x_46_im, x_46_re); t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re); t_2 = ((t_1 * t_1) ^ ((y_46_re / 2.0) / 2.0)) * t_0; tmp = 0.0; if (y_46_re <= -2.6e-5) tmp = t_2; elseif (y_46_re <= -5.2e-186) tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); elseif (y_46_re <= 5.2e-118) tmp = y_46_im * log(hypot(x_46_re, x_46_im)); elseif (y_46_re <= 10200000000000.0) tmp = sin(t_0); 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$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Power[N[(t$95$1 * t$95$1), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]}, If[LessEqual[y$46$re, -2.6e-5], t$95$2, If[LessEqual[y$46$re, -5.2e-186], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.2e-118], N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 10200000000000.0], N[Sin[t$95$0], $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := x.im \cdot x.im + x.re \cdot x.re\\
t_2 := {\left(t\_1 \cdot t\_1\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot t\_0\\
\mathbf{if}\;y.re \leq -2.6 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq -5.2 \cdot 10^{-186}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{elif}\;y.re \leq 5.2 \cdot 10^{-118}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{elif}\;y.re \leq 10200000000000:\\
\;\;\;\;\sin t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -2.59999999999999984e-5 or 1.02e13 < y.re Initial program 34.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.3%
Simplified67.3%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6467.3%
Applied egg-rr67.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.3%
Simplified67.3%
if -2.59999999999999984e-5 < y.re < -5.19999999999999986e-186Initial program 52.5%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.2%
Simplified41.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6436.4%
Simplified36.4%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6436.5%
Applied egg-rr36.5%
if -5.19999999999999986e-186 < y.re < 5.2e-118Initial program 38.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.7%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.4%
Simplified82.4%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6439.1%
Simplified39.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.9%
Simplified54.9%
if 5.2e-118 < y.re < 1.02e13Initial program 38.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.1%
Simplified57.1%
Taylor expanded in y.re around 0
Simplified48.0%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.0%
Simplified48.0%
Final simplification57.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (+ (* x.im x.im) (* x.re x.re)))
(t_2 (* (pow (* t_1 t_1) (/ (/ y.re 2.0) 2.0)) t_0))
(t_3 (sin t_0)))
(if (<= y.re -0.000275)
t_2
(if (<= y.re -5.8e-187)
t_3
(if (<= y.re 7e-123)
(* y.im (log (hypot x.re x.im)))
(if (<= y.re 10200000000000.0) t_3 t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0;
double t_3 = sin(t_0);
double tmp;
if (y_46_re <= -0.000275) {
tmp = t_2;
} else if (y_46_re <= -5.8e-187) {
tmp = t_3;
} else if (y_46_re <= 7e-123) {
tmp = y_46_im * log(hypot(x_46_re, x_46_im));
} else if (y_46_re <= 10200000000000.0) {
tmp = t_3;
} 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_re * Math.atan2(x_46_im, x_46_re);
double t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_2 = Math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0;
double t_3 = Math.sin(t_0);
double tmp;
if (y_46_re <= -0.000275) {
tmp = t_2;
} else if (y_46_re <= -5.8e-187) {
tmp = t_3;
} else if (y_46_re <= 7e-123) {
tmp = y_46_im * Math.log(Math.hypot(x_46_re, x_46_im));
} else if (y_46_re <= 10200000000000.0) {
tmp = t_3;
} else {
tmp = 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 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_2 = math.pow((t_1 * t_1), ((y_46_re / 2.0) / 2.0)) * t_0 t_3 = math.sin(t_0) tmp = 0 if y_46_re <= -0.000275: tmp = t_2 elif y_46_re <= -5.8e-187: tmp = t_3 elif y_46_re <= 7e-123: tmp = y_46_im * math.log(math.hypot(x_46_re, x_46_im)) elif y_46_re <= 10200000000000.0: tmp = t_3 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_re * atan(x_46_im, x_46_re)) t_1 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_2 = Float64((Float64(t_1 * t_1) ^ Float64(Float64(y_46_re / 2.0) / 2.0)) * t_0) t_3 = sin(t_0) tmp = 0.0 if (y_46_re <= -0.000275) tmp = t_2; elseif (y_46_re <= -5.8e-187) tmp = t_3; elseif (y_46_re <= 7e-123) tmp = Float64(y_46_im * log(hypot(x_46_re, x_46_im))); elseif (y_46_re <= 10200000000000.0) tmp = t_3; 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_re * atan2(x_46_im, x_46_re); t_1 = (x_46_im * x_46_im) + (x_46_re * x_46_re); t_2 = ((t_1 * t_1) ^ ((y_46_re / 2.0) / 2.0)) * t_0; t_3 = sin(t_0); tmp = 0.0; if (y_46_re <= -0.000275) tmp = t_2; elseif (y_46_re <= -5.8e-187) tmp = t_3; elseif (y_46_re <= 7e-123) tmp = y_46_im * log(hypot(x_46_re, x_46_im)); elseif (y_46_re <= 10200000000000.0) tmp = t_3; 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$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Power[N[(t$95$1 * t$95$1), $MachinePrecision], N[(N[(y$46$re / 2.0), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision]}, Block[{t$95$3 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[y$46$re, -0.000275], t$95$2, If[LessEqual[y$46$re, -5.8e-187], t$95$3, If[LessEqual[y$46$re, 7e-123], N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 10200000000000.0], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := x.im \cdot x.im + x.re \cdot x.re\\
t_2 := {\left(t\_1 \cdot t\_1\right)}^{\left(\frac{\frac{y.re}{2}}{2}\right)} \cdot t\_0\\
t_3 := \sin t\_0\\
\mathbf{if}\;y.re \leq -0.000275:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq -5.8 \cdot 10^{-187}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y.re \leq 7 \cdot 10^{-123}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{elif}\;y.re \leq 10200000000000:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -2.75000000000000017e-4 or 1.02e13 < y.re Initial program 34.4%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.3%
Simplified67.3%
sqrt-pow2N/A
sqr-powN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6467.3%
Applied egg-rr67.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.3%
Simplified67.3%
if -2.75000000000000017e-4 < y.re < -5.79999999999999977e-187 or 6.9999999999999997e-123 < y.re < 1.02e13Initial program 46.8%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6447.9%
Simplified47.9%
Taylor expanded in y.re around 0
Simplified41.3%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.3%
Simplified41.3%
if -5.79999999999999977e-187 < y.re < 6.9999999999999997e-123Initial program 38.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.7%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.4%
Simplified82.4%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6439.1%
Simplified39.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.9%
Simplified54.9%
Final simplification57.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1
(*
t_0
(pow (* x.re (+ (/ (* (* x.im x.im) 0.5) (* x.re x.re)) 1.0)) y.re)))
(t_2 (sin t_0)))
(if (<= y.re -0.019)
t_1
(if (<= y.re -8.5e-186)
t_2
(if (<= y.re 5e-117)
(* y.im (log (hypot x.re x.im)))
(if (<= y.re 2.35e+27) t_2 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow((x_46_re * ((((x_46_im * x_46_im) * 0.5) / (x_46_re * x_46_re)) + 1.0)), y_46_re);
double t_2 = sin(t_0);
double tmp;
if (y_46_re <= -0.019) {
tmp = t_1;
} else if (y_46_re <= -8.5e-186) {
tmp = t_2;
} else if (y_46_re <= 5e-117) {
tmp = y_46_im * log(hypot(x_46_re, x_46_im));
} else if (y_46_re <= 2.35e+27) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow((x_46_re * ((((x_46_im * x_46_im) * 0.5) / (x_46_re * x_46_re)) + 1.0)), y_46_re);
double t_2 = Math.sin(t_0);
double tmp;
if (y_46_re <= -0.019) {
tmp = t_1;
} else if (y_46_re <= -8.5e-186) {
tmp = t_2;
} else if (y_46_re <= 5e-117) {
tmp = y_46_im * Math.log(Math.hypot(x_46_re, x_46_im));
} else if (y_46_re <= 2.35e+27) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 * math.pow((x_46_re * ((((x_46_im * x_46_im) * 0.5) / (x_46_re * x_46_re)) + 1.0)), y_46_re) t_2 = math.sin(t_0) tmp = 0 if y_46_re <= -0.019: tmp = t_1 elif y_46_re <= -8.5e-186: tmp = t_2 elif y_46_re <= 5e-117: tmp = y_46_im * math.log(math.hypot(x_46_re, x_46_im)) elif y_46_re <= 2.35e+27: tmp = t_2 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (Float64(x_46_re * Float64(Float64(Float64(Float64(x_46_im * x_46_im) * 0.5) / Float64(x_46_re * x_46_re)) + 1.0)) ^ y_46_re)) t_2 = sin(t_0) tmp = 0.0 if (y_46_re <= -0.019) tmp = t_1; elseif (y_46_re <= -8.5e-186) tmp = t_2; elseif (y_46_re <= 5e-117) tmp = Float64(y_46_im * log(hypot(x_46_re, x_46_im))); elseif (y_46_re <= 2.35e+27) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 * ((x_46_re * ((((x_46_im * x_46_im) * 0.5) / (x_46_re * x_46_re)) + 1.0)) ^ y_46_re); t_2 = sin(t_0); tmp = 0.0; if (y_46_re <= -0.019) tmp = t_1; elseif (y_46_re <= -8.5e-186) tmp = t_2; elseif (y_46_re <= 5e-117) tmp = y_46_im * log(hypot(x_46_re, x_46_im)); elseif (y_46_re <= 2.35e+27) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[(x$46$re * N[(N[(N[(N[(x$46$im * x$46$im), $MachinePrecision] * 0.5), $MachinePrecision] / N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[y$46$re, -0.019], t$95$1, If[LessEqual[y$46$re, -8.5e-186], t$95$2, If[LessEqual[y$46$re, 5e-117], N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.35e+27], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {\left(x.re \cdot \left(\frac{\left(x.im \cdot x.im\right) \cdot 0.5}{x.re \cdot x.re} + 1\right)\right)}^{y.re}\\
t_2 := \sin t\_0\\
\mathbf{if}\;y.re \leq -0.019:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -8.5 \cdot 10^{-186}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{-117}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{elif}\;y.re \leq 2.35 \cdot 10^{+27}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.re < -0.0189999999999999995 or 2.34999999999999988e27 < y.re Initial program 35.0%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6468.4%
Simplified68.4%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6457.9%
Simplified57.9%
Taylor expanded in y.re around 0
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.5%
Simplified55.5%
if -0.0189999999999999995 < y.re < -8.4999999999999994e-186 or 5e-117 < y.re < 2.34999999999999988e27Initial program 44.9%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6447.4%
Simplified47.4%
Taylor expanded in y.re around 0
Simplified38.5%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.5%
Simplified38.5%
if -8.4999999999999994e-186 < y.re < 5e-117Initial program 38.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.7%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.4%
Simplified82.4%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6439.1%
Simplified39.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.9%
Simplified54.9%
Final simplification50.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -7e-188)
t_0
(if (<= y.re 2.7e-116)
(* y.im (log (hypot x.re x.im)))
(if (<= y.re 5.8e+19)
t_0
(* y.im (log (sqrt (+ (* x.im x.im) (* x.re x.re))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -7e-188) {
tmp = t_0;
} else if (y_46_re <= 2.7e-116) {
tmp = y_46_im * log(hypot(x_46_re, x_46_im));
} else if (y_46_re <= 5.8e+19) {
tmp = t_0;
} else {
tmp = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -7e-188) {
tmp = t_0;
} else if (y_46_re <= 2.7e-116) {
tmp = y_46_im * Math.log(Math.hypot(x_46_re, x_46_im));
} else if (y_46_re <= 5.8e+19) {
tmp = t_0;
} else {
tmp = y_46_im * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -7e-188: tmp = t_0 elif y_46_re <= 2.7e-116: tmp = y_46_im * math.log(math.hypot(x_46_re, x_46_im)) elif y_46_re <= 5.8e+19: tmp = t_0 else: tmp = y_46_im * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -7e-188) tmp = t_0; elseif (y_46_re <= 2.7e-116) tmp = Float64(y_46_im * log(hypot(x_46_re, x_46_im))); elseif (y_46_re <= 5.8e+19) tmp = t_0; else tmp = Float64(y_46_im * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -7e-188) tmp = t_0; elseif (y_46_re <= 2.7e-116) tmp = y_46_im * log(hypot(x_46_re, x_46_im)); elseif (y_46_re <= 5.8e+19) tmp = t_0; else tmp = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -7e-188], t$95$0, If[LessEqual[y$46$re, 2.7e-116], N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.8e+19], t$95$0, N[(y$46$im * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -7 \cdot 10^{-188}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 2.7 \cdot 10^{-116}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{elif}\;y.re \leq 5.8 \cdot 10^{+19}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)\\
\end{array}
\end{array}
if y.re < -7.000000000000001e-188 or 2.7e-116 < y.re < 5.8e19Initial program 45.8%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6462.9%
Simplified62.9%
Taylor expanded in y.re around 0
Simplified23.3%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6423.3%
Simplified23.3%
if -7.000000000000001e-188 < y.re < 2.7e-116Initial program 38.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.7%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.4%
Simplified82.4%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6439.1%
Simplified39.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.9%
Simplified54.9%
if 5.8e19 < y.re Initial program 23.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6431.0%
Simplified31.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6426.4%
Simplified26.4%
Final simplification31.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -2.3e-186)
t_0
(if (<= y.re 4.6e-116) (* y.im (log (hypot x.re x.im))) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -2.3e-186) {
tmp = t_0;
} else if (y_46_re <= 4.6e-116) {
tmp = y_46_im * log(hypot(x_46_re, x_46_im));
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -2.3e-186) {
tmp = t_0;
} else if (y_46_re <= 4.6e-116) {
tmp = y_46_im * Math.log(Math.hypot(x_46_re, x_46_im));
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -2.3e-186: tmp = t_0 elif y_46_re <= 4.6e-116: tmp = y_46_im * math.log(math.hypot(x_46_re, x_46_im)) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -2.3e-186) tmp = t_0; elseif (y_46_re <= 4.6e-116) tmp = Float64(y_46_im * log(hypot(x_46_re, x_46_im))); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -2.3e-186) tmp = t_0; elseif (y_46_re <= 4.6e-116) tmp = y_46_im * log(hypot(x_46_re, x_46_im)); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -2.3e-186], t$95$0, If[LessEqual[y$46$re, 4.6e-116], N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -2.3 \cdot 10^{-186}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 4.6 \cdot 10^{-116}:\\
\;\;\;\;y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -2.3000000000000001e-186 or 4.60000000000000003e-116 < y.re Initial program 38.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.7%
Simplified60.7%
Taylor expanded in y.re around 0
Simplified16.7%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.7%
Simplified16.7%
if -2.3000000000000001e-186 < y.re < 4.60000000000000003e-116Initial program 38.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified84.7%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6482.4%
Simplified82.4%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6439.1%
Simplified39.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.9%
Simplified54.9%
Final simplification25.9%
(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 38.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.4%
Simplified48.4%
Taylor expanded in y.re around 0
Simplified15.1%
Taylor expanded in y.re around inf
sin-lowering-sin.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.1%
Simplified15.1%
Final simplification15.1%
(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 38.6%
Taylor expanded in y.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6448.4%
Simplified48.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.0%
Simplified15.0%
herbie shell --seed 2024161
(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)))))