
(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 23 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 (exp t_0))
(t_2 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_3 (* (exp (- (* t_2 y.re) t_0)) (sin (* y.re (atan2 x.im x.re))))))
(if (<= y.re -3.1)
t_3
(if (<= y.re 3.4e+41)
(/
(sin
(*
y.im
(+ (log (hypot x.im x.re)) (* y.re (/ (atan2 x.im x.re) y.im)))))
(/ t_1 (pow (hypot x.re x.im) y.re)))
(if (<= y.re 8e+103) (/ (* t_2 y.im) t_1) t_3)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(t_0);
double t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = exp(((t_2 * y_46_re) - t_0)) * sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -3.1) {
tmp = t_3;
} else if (y_46_re <= 3.4e+41) {
tmp = sin((y_46_im * (log(hypot(x_46_im, x_46_re)) + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / (t_1 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 8e+103) {
tmp = (t_2 * y_46_im) / t_1;
} else {
tmp = t_3;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.exp(t_0);
double t_2 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = Math.exp(((t_2 * y_46_re) - t_0)) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -3.1) {
tmp = t_3;
} else if (y_46_re <= 3.4e+41) {
tmp = Math.sin((y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) / (t_1 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 8e+103) {
tmp = (t_2 * y_46_im) / t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.exp(t_0) t_2 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) t_3 = math.exp(((t_2 * y_46_re) - t_0)) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -3.1: tmp = t_3 elif y_46_re <= 3.4e+41: tmp = math.sin((y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) / (t_1 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif y_46_re <= 8e+103: tmp = (t_2 * y_46_im) / t_1 else: tmp = t_3 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = exp(t_0) t_2 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_3 = Float64(exp(Float64(Float64(t_2 * y_46_re) - t_0)) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))) tmp = 0.0 if (y_46_re <= -3.1) tmp = t_3; elseif (y_46_re <= 3.4e+41) tmp = Float64(sin(Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) / Float64(t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (y_46_re <= 8e+103) tmp = Float64(Float64(t_2 * y_46_im) / t_1); else tmp = t_3; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = exp(t_0); t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); t_3 = exp(((t_2 * y_46_re) - t_0)) * sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -3.1) tmp = t_3; elseif (y_46_re <= 3.4e+41) tmp = sin((y_46_im * (log(hypot(x_46_im, x_46_re)) + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / (t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= 8e+103) tmp = (t_2 * y_46_im) / t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -3.1], t$95$3, If[LessEqual[y$46$re, 3.4e+41], N[(N[Sin[N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(t$95$1 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 8e+103], N[(N[(t$95$2 * y$46$im), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{t\_0}\\
t_2 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_3 := e^{t\_2 \cdot y.re - t\_0} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -3.1:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y.re \leq 3.4 \cdot 10^{+41}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{\frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;y.re \leq 8 \cdot 10^{+103}:\\
\;\;\;\;\frac{t\_2 \cdot y.im}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y.re < -3.10000000000000009 or 8e103 < y.re Initial program 43.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.7%
Simplified80.7%
if -3.10000000000000009 < y.re < 3.39999999999999998e41Initial program 43.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.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.f6482.3%
Simplified82.3%
if 3.39999999999999998e41 < y.re < 8e103Initial program 14.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified35.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.f6442.9%
Simplified42.9%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.8%
Simplified85.8%
Final simplification81.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_3 (* (exp (- (* t_2 y.re) t_0)) (sin (+ (* t_2 y.im) t_1)))))
(if (<= t_3 INFINITY)
t_3
(/
(+ (sin t_1) (* y.im (* (log (hypot x.im x.re)) (cos t_1))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = exp(((t_2 * y_46_re) - t_0)) * sin(((t_2 * y_46_im) + t_1));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = (sin(t_1) + (y_46_im * (log(hypot(x_46_im, x_46_re)) * cos(t_1)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = Math.exp(((t_2 * y_46_re) - t_0)) * Math.sin(((t_2 * y_46_im) + t_1));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = (Math.sin(t_1) + (y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) * Math.cos(t_1)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) t_3 = math.exp(((t_2 * y_46_re) - t_0)) * math.sin(((t_2 * y_46_im) + t_1)) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = (math.sin(t_1) + (y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) * math.cos(t_1)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_3 = Float64(exp(Float64(Float64(t_2 * y_46_re) - t_0)) * sin(Float64(Float64(t_2 * y_46_im) + t_1))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(Float64(sin(t_1) + Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) * cos(t_1)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); t_3 = exp(((t_2 * y_46_re) - t_0)) * sin(((t_2 * y_46_im) + t_1)); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = (sin(t_1) + (y_46_im * (log(hypot(x_46_im, x_46_re)) * cos(t_1)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$2 * y$46$im), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(N[(N[Sin[t$95$1], $MachinePrecision] + N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_3 := e^{t\_2 \cdot y.re - t\_0} \cdot \sin \left(t\_2 \cdot y.im + t\_1\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin t\_1 + y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot \cos t\_1\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) < +inf.0Initial program 86.6%
if +inf.0 < (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) Initial program 0.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified69.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.f6473.9%
Simplified73.9%
Final simplification80.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (exp t_0))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_4 (* (exp (- (* t_3 y.re) t_0)) (sin t_2))))
(if (<= y.re -2.65)
t_4
(if (<= y.re 1.4e-24)
(/
(sin (+ t_2 (* y.im (log (hypot x.re x.im)))))
(/ t_1 (pow (hypot x.re x.im) y.re)))
(if (<= y.re 1.5e+103) (/ (* t_3 y.im) t_1) t_4)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(t_0);
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_4 = exp(((t_3 * y_46_re) - t_0)) * sin(t_2);
double tmp;
if (y_46_re <= -2.65) {
tmp = t_4;
} else if (y_46_re <= 1.4e-24) {
tmp = sin((t_2 + (y_46_im * log(hypot(x_46_re, x_46_im))))) / (t_1 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 1.5e+103) {
tmp = (t_3 * y_46_im) / t_1;
} else {
tmp = t_4;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.exp(t_0);
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_4 = Math.exp(((t_3 * y_46_re) - t_0)) * Math.sin(t_2);
double tmp;
if (y_46_re <= -2.65) {
tmp = t_4;
} else if (y_46_re <= 1.4e-24) {
tmp = Math.sin((t_2 + (y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))))) / (t_1 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 1.5e+103) {
tmp = (t_3 * y_46_im) / t_1;
} else {
tmp = t_4;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.exp(t_0) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) t_4 = math.exp(((t_3 * y_46_re) - t_0)) * math.sin(t_2) tmp = 0 if y_46_re <= -2.65: tmp = t_4 elif y_46_re <= 1.4e-24: tmp = math.sin((t_2 + (y_46_im * math.log(math.hypot(x_46_re, x_46_im))))) / (t_1 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif y_46_re <= 1.5e+103: tmp = (t_3 * y_46_im) / t_1 else: tmp = t_4 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = exp(t_0) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_4 = Float64(exp(Float64(Float64(t_3 * y_46_re) - t_0)) * sin(t_2)) tmp = 0.0 if (y_46_re <= -2.65) tmp = t_4; elseif (y_46_re <= 1.4e-24) tmp = Float64(sin(Float64(t_2 + Float64(y_46_im * log(hypot(x_46_re, x_46_im))))) / Float64(t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (y_46_re <= 1.5e+103) tmp = Float64(Float64(t_3 * y_46_im) / t_1); else tmp = t_4; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = exp(t_0); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); t_4 = exp(((t_3 * y_46_re) - t_0)) * sin(t_2); tmp = 0.0; if (y_46_re <= -2.65) tmp = t_4; elseif (y_46_re <= 1.4e-24) tmp = sin((t_2 + (y_46_im * log(hypot(x_46_re, x_46_im))))) / (t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= 1.5e+103) tmp = (t_3 * y_46_im) / t_1; else tmp = t_4; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[(N[Exp[N[(N[(t$95$3 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$2], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.65], t$95$4, If[LessEqual[y$46$re, 1.4e-24], N[(N[Sin[N[(t$95$2 + N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(t$95$1 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.5e+103], N[(N[(t$95$3 * y$46$im), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$4]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{t\_0}\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_4 := e^{t\_3 \cdot y.re - t\_0} \cdot \sin t\_2\\
\mathbf{if}\;y.re \leq -2.65:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-24}:\\
\;\;\;\;\frac{\sin \left(t\_2 + y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\right)}{\frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;y.re \leq 1.5 \cdot 10^{+103}:\\
\;\;\;\;\frac{t\_3 \cdot y.im}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y.re < -2.64999999999999991 or 1.5e103 < y.re Initial program 43.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.7%
Simplified80.7%
if -2.64999999999999991 < y.re < 1.4000000000000001e-24Initial program 43.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.7%
if 1.4000000000000001e-24 < y.re < 1.5e103Initial program 29.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified45.1%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.0%
Simplified58.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6468.4%
Simplified68.4%
Final simplification81.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_1 (* (atan2 x.im x.re) y.im))
(t_2 (* (exp (- (* t_0 y.re) t_1)) (sin (* y.re (atan2 x.im x.re)))))
(t_3 (exp t_1)))
(if (<= y.re -1.15e-7)
t_2
(if (<= y.re 1.4e-24)
(/
(sin
(*
y.im
(+ (log (hypot x.im x.re)) (* y.re (/ (atan2 x.im x.re) y.im)))))
t_3)
(if (<= y.re 1.15e+103) (/ (* t_0 y.im) 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 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_1 = atan2(x_46_im, x_46_re) * y_46_im;
double t_2 = exp(((t_0 * y_46_re) - t_1)) * sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_3 = exp(t_1);
double tmp;
if (y_46_re <= -1.15e-7) {
tmp = t_2;
} else if (y_46_re <= 1.4e-24) {
tmp = sin((y_46_im * (log(hypot(x_46_im, x_46_re)) + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / t_3;
} else if (y_46_re <= 1.15e+103) {
tmp = (t_0 * y_46_im) / 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 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_1 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_2 = Math.exp(((t_0 * y_46_re) - t_1)) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_3 = Math.exp(t_1);
double tmp;
if (y_46_re <= -1.15e-7) {
tmp = t_2;
} else if (y_46_re <= 1.4e-24) {
tmp = Math.sin((y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) / t_3;
} else if (y_46_re <= 1.15e+103) {
tmp = (t_0 * y_46_im) / t_3;
} else {
tmp = t_2;
}
return tmp;
}
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)))) t_1 = math.atan2(x_46_im, x_46_re) * y_46_im t_2 = math.exp(((t_0 * y_46_re) - t_1)) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_3 = math.exp(t_1) tmp = 0 if y_46_re <= -1.15e-7: tmp = t_2 elif y_46_re <= 1.4e-24: tmp = math.sin((y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) / t_3 elif y_46_re <= 1.15e+103: tmp = (t_0 * y_46_im) / t_3 else: tmp = t_2 return tmp
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)))) t_1 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_2 = Float64(exp(Float64(Float64(t_0 * y_46_re) - t_1)) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))) t_3 = exp(t_1) tmp = 0.0 if (y_46_re <= -1.15e-7) tmp = t_2; elseif (y_46_re <= 1.4e-24) tmp = Float64(sin(Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) / t_3); elseif (y_46_re <= 1.15e+103) tmp = Float64(Float64(t_0 * y_46_im) / 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 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); t_1 = atan2(x_46_im, x_46_re) * y_46_im; t_2 = exp(((t_0 * y_46_re) - t_1)) * sin((y_46_re * atan2(x_46_im, x_46_re))); t_3 = exp(t_1); tmp = 0.0; if (y_46_re <= -1.15e-7) tmp = t_2; elseif (y_46_re <= 1.4e-24) tmp = sin((y_46_im * (log(hypot(x_46_im, x_46_re)) + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / t_3; elseif (y_46_re <= 1.15e+103) tmp = (t_0 * y_46_im) / 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[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $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[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - t$95$1), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Exp[t$95$1], $MachinePrecision]}, If[LessEqual[y$46$re, -1.15e-7], t$95$2, If[LessEqual[y$46$re, 1.4e-24], N[(N[Sin[N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[y$46$re, 1.15e+103], N[(N[(t$95$0 * y$46$im), $MachinePrecision] / t$95$3), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_1 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_2 := e^{t\_0 \cdot y.re - t\_1} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_3 := e^{t\_1}\\
\mathbf{if}\;y.re \leq -1.15 \cdot 10^{-7}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-24}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{t\_3}\\
\mathbf{elif}\;y.re \leq 1.15 \cdot 10^{+103}:\\
\;\;\;\;\frac{t\_0 \cdot y.im}{t\_3}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -1.14999999999999997e-7 or 1.15000000000000004e103 < y.re Initial program 43.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.7%
Simplified80.7%
if -1.14999999999999997e-7 < y.re < 1.4000000000000001e-24Initial program 43.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.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.6%
Simplified85.6%
rem-log-expN/A
*-commutativeN/A
exp-prodN/A
log-powN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f6485.0%
Applied egg-rr85.0%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.2%
Simplified85.2%
if 1.4000000000000001e-24 < y.re < 1.15000000000000004e103Initial program 29.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified45.1%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.0%
Simplified58.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6468.4%
Simplified68.4%
Final simplification81.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (exp t_0))
(t_2 (sin (* y.re (atan2 x.im x.re))))
(t_3 (+ (* x.re x.re) (* x.im x.im))))
(if (<= y.re -8.5e-39)
(* t_2 (pow (hypot x.im x.re) y.re))
(if (<= y.re 3.2e-98)
(* (exp (- 0.0 t_0)) (sin (* y.im (log (hypot x.im x.re)))))
(if (<= y.re 6e+33)
(/ t_2 (/ t_1 (pow (hypot x.re x.im) y.re)))
(if (<= y.re 4.1e+185)
(/ (* (log (sqrt t_3)) y.im) t_1)
(* t_2 (pow t_3 (/ y.re 2.0)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(t_0);
double t_2 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_3 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -8.5e-39) {
tmp = t_2 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 3.2e-98) {
tmp = exp((0.0 - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 6e+33) {
tmp = t_2 / (t_1 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 4.1e+185) {
tmp = (log(sqrt(t_3)) * y_46_im) / t_1;
} else {
tmp = t_2 * pow(t_3, (y_46_re / 2.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.exp(t_0);
double t_2 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_3 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -8.5e-39) {
tmp = t_2 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 3.2e-98) {
tmp = Math.exp((0.0 - t_0)) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 6e+33) {
tmp = t_2 / (t_1 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 4.1e+185) {
tmp = (Math.log(Math.sqrt(t_3)) * y_46_im) / t_1;
} else {
tmp = t_2 * Math.pow(t_3, (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.exp(t_0) t_2 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_3 = (x_46_re * x_46_re) + (x_46_im * x_46_im) tmp = 0 if y_46_re <= -8.5e-39: tmp = t_2 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 3.2e-98: tmp = math.exp((0.0 - t_0)) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 6e+33: tmp = t_2 / (t_1 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif y_46_re <= 4.1e+185: tmp = (math.log(math.sqrt(t_3)) * y_46_im) / t_1 else: tmp = t_2 * math.pow(t_3, (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = exp(t_0) t_2 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_3 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) tmp = 0.0 if (y_46_re <= -8.5e-39) tmp = Float64(t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 3.2e-98) tmp = Float64(exp(Float64(0.0 - t_0)) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); elseif (y_46_re <= 6e+33) tmp = Float64(t_2 / Float64(t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (y_46_re <= 4.1e+185) tmp = Float64(Float64(log(sqrt(t_3)) * y_46_im) / t_1); else tmp = Float64(t_2 * (t_3 ^ Float64(y_46_re / 2.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = exp(t_0); t_2 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_3 = (x_46_re * x_46_re) + (x_46_im * x_46_im); tmp = 0.0; if (y_46_re <= -8.5e-39) tmp = t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 3.2e-98) tmp = exp((0.0 - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 6e+33) tmp = t_2 / (t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= 4.1e+185) tmp = (log(sqrt(t_3)) * y_46_im) / t_1; else tmp = t_2 * (t_3 ^ (y_46_re / 2.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -8.5e-39], N[(t$95$2 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.2e-98], N[(N[Exp[N[(0.0 - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6e+33], N[(t$95$2 / N[(t$95$1 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.1e+185], N[(N[(N[Log[N[Sqrt[t$95$3], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] / t$95$1), $MachinePrecision], N[(t$95$2 * N[Power[t$95$3, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{t\_0}\\
t_2 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_3 := x.re \cdot x.re + x.im \cdot x.im\\
\mathbf{if}\;y.re \leq -8.5 \cdot 10^{-39}:\\
\;\;\;\;t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 3.2 \cdot 10^{-98}:\\
\;\;\;\;e^{0 - t\_0} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 6 \cdot 10^{+33}:\\
\;\;\;\;\frac{t\_2}{\frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;y.re \leq 4.1 \cdot 10^{+185}:\\
\;\;\;\;\frac{\log \left(\sqrt{t\_3}\right) \cdot y.im}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot {t\_3}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -8.5000000000000005e-39Initial program 42.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6481.1%
Simplified81.1%
if -8.5000000000000005e-39 < y.re < 3.2000000000000001e-98Initial program 43.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-commutativeN/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.f6470.3%
Simplified70.3%
if 3.2000000000000001e-98 < y.re < 5.99999999999999967e33Initial program 43.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified67.3%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6470.1%
Simplified70.1%
if 5.99999999999999967e33 < y.re < 4.1e185Initial program 33.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified46.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.f6453.3%
Simplified53.3%
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.f6470.6%
Simplified70.6%
if 4.1e185 < y.re Initial program 43.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.3%
Simplified65.3%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.3%
Applied egg-rr65.3%
Final simplification72.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (sin (* y.re (atan2 x.im x.re))))
(t_2 (exp (* (atan2 x.im x.re) y.im))))
(if (<= y.re -6.5e-13)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.re 1.4e-24)
(/
(sin
(*
y.im
(+ (log (hypot x.im x.re)) (* y.re (/ (atan2 x.im x.re) y.im)))))
t_2)
(if (<= y.re 6.8e+183)
(/ (* (log (sqrt t_0)) y.im) t_2)
(* t_1 (pow t_0 (/ y.re 2.0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_2 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -6.5e-13) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.4e-24) {
tmp = sin((y_46_im * (log(hypot(x_46_im, x_46_re)) + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / t_2;
} else if (y_46_re <= 6.8e+183) {
tmp = (log(sqrt(t_0)) * y_46_im) / t_2;
} else {
tmp = t_1 * pow(t_0, (y_46_re / 2.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_2 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -6.5e-13) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.4e-24) {
tmp = Math.sin((y_46_im * (Math.log(Math.hypot(x_46_im, x_46_re)) + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) / t_2;
} else if (y_46_re <= 6.8e+183) {
tmp = (Math.log(Math.sqrt(t_0)) * y_46_im) / t_2;
} else {
tmp = t_1 * Math.pow(t_0, (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_2 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_re <= -6.5e-13: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 1.4e-24: tmp = math.sin((y_46_im * (math.log(math.hypot(x_46_im, x_46_re)) + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) / t_2 elif y_46_re <= 6.8e+183: tmp = (math.log(math.sqrt(t_0)) * y_46_im) / t_2 else: tmp = t_1 * math.pow(t_0, (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_2 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) tmp = 0.0 if (y_46_re <= -6.5e-13) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 1.4e-24) tmp = Float64(sin(Float64(y_46_im * Float64(log(hypot(x_46_im, x_46_re)) + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) / t_2); elseif (y_46_re <= 6.8e+183) tmp = Float64(Float64(log(sqrt(t_0)) * y_46_im) / t_2); else tmp = Float64(t_1 * (t_0 ^ Float64(y_46_re / 2.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_2 = exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_re <= -6.5e-13) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 1.4e-24) tmp = sin((y_46_im * (log(hypot(x_46_im, x_46_re)) + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / t_2; elseif (y_46_re <= 6.8e+183) tmp = (log(sqrt(t_0)) * y_46_im) / t_2; else tmp = t_1 * (t_0 ^ (y_46_re / 2.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -6.5e-13], 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, 1.4e-24], N[(N[Sin[N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[y$46$re, 6.8e+183], N[(N[(N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] / t$95$2), $MachinePrecision], N[(t$95$1 * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_2 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.re \leq -6.5 \cdot 10^{-13}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-24}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{t\_2}\\
\mathbf{elif}\;y.re \leq 6.8 \cdot 10^{+183}:\\
\;\;\;\;\frac{\log \left(\sqrt{t\_0}\right) \cdot y.im}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -6.49999999999999957e-13Initial program 41.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6482.6%
Simplified82.6%
if -6.49999999999999957e-13 < y.re < 1.4000000000000001e-24Initial program 44.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.6%
Taylor expanded in y.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.5%
Simplified85.5%
rem-log-expN/A
*-commutativeN/A
exp-prodN/A
log-powN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f6484.9%
Applied egg-rr84.9%
Taylor expanded in y.re around 0
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6485.5%
Simplified85.5%
if 1.4000000000000001e-24 < y.re < 6.8e183Initial program 36.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.7%
Taylor expanded in y.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.f6459.1%
Simplified59.1%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.3%
Simplified64.3%
if 6.8e183 < y.re Initial program 43.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.3%
Simplified65.3%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.3%
Applied egg-rr65.3%
Final simplification79.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (exp t_0))
(t_2 (+ (* x.re x.re) (* x.im x.im)))
(t_3 (* y.re (atan2 x.im x.re)))
(t_4 (sin t_3)))
(if (<= y.re -4.8e-39)
(* t_4 (pow (hypot x.im x.re) y.re))
(if (<= y.re 1.25e-98)
(* (exp (- 0.0 t_0)) (sin (* y.im (log (hypot x.im x.re)))))
(if (<= y.re 2.9e-9)
(/ t_3 t_1)
(if (<= y.re 1.85e+187)
(/ (* (log (sqrt t_2)) y.im) t_1)
(* t_4 (pow t_2 (/ y.re 2.0)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(t_0);
double t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_3 = y_46_re * atan2(x_46_im, x_46_re);
double t_4 = sin(t_3);
double tmp;
if (y_46_re <= -4.8e-39) {
tmp = t_4 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.25e-98) {
tmp = exp((0.0 - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 2.9e-9) {
tmp = t_3 / t_1;
} else if (y_46_re <= 1.85e+187) {
tmp = (log(sqrt(t_2)) * y_46_im) / t_1;
} else {
tmp = t_4 * pow(t_2, (y_46_re / 2.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.exp(t_0);
double t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_3 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_4 = Math.sin(t_3);
double tmp;
if (y_46_re <= -4.8e-39) {
tmp = t_4 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.25e-98) {
tmp = Math.exp((0.0 - t_0)) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 2.9e-9) {
tmp = t_3 / t_1;
} else if (y_46_re <= 1.85e+187) {
tmp = (Math.log(Math.sqrt(t_2)) * y_46_im) / t_1;
} else {
tmp = t_4 * Math.pow(t_2, (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.exp(t_0) t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_3 = y_46_re * math.atan2(x_46_im, x_46_re) t_4 = math.sin(t_3) tmp = 0 if y_46_re <= -4.8e-39: tmp = t_4 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 1.25e-98: tmp = math.exp((0.0 - t_0)) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 2.9e-9: tmp = t_3 / t_1 elif y_46_re <= 1.85e+187: tmp = (math.log(math.sqrt(t_2)) * y_46_im) / t_1 else: tmp = t_4 * math.pow(t_2, (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = exp(t_0) t_2 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_3 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_4 = sin(t_3) tmp = 0.0 if (y_46_re <= -4.8e-39) tmp = Float64(t_4 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 1.25e-98) tmp = Float64(exp(Float64(0.0 - t_0)) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); elseif (y_46_re <= 2.9e-9) tmp = Float64(t_3 / t_1); elseif (y_46_re <= 1.85e+187) tmp = Float64(Float64(log(sqrt(t_2)) * y_46_im) / t_1); else tmp = Float64(t_4 * (t_2 ^ Float64(y_46_re / 2.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = exp(t_0); t_2 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_3 = y_46_re * atan2(x_46_im, x_46_re); t_4 = sin(t_3); tmp = 0.0; if (y_46_re <= -4.8e-39) tmp = t_4 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 1.25e-98) tmp = exp((0.0 - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 2.9e-9) tmp = t_3 / t_1; elseif (y_46_re <= 1.85e+187) tmp = (log(sqrt(t_2)) * y_46_im) / t_1; else tmp = t_4 * (t_2 ^ (y_46_re / 2.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Sin[t$95$3], $MachinePrecision]}, If[LessEqual[y$46$re, -4.8e-39], N[(t$95$4 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.25e-98], N[(N[Exp[N[(0.0 - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.9e-9], N[(t$95$3 / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 1.85e+187], N[(N[(N[Log[N[Sqrt[t$95$2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] / t$95$1), $MachinePrecision], N[(t$95$4 * N[Power[t$95$2, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{t\_0}\\
t_2 := x.re \cdot x.re + x.im \cdot x.im\\
t_3 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_4 := \sin t\_3\\
\mathbf{if}\;y.re \leq -4.8 \cdot 10^{-39}:\\
\;\;\;\;t\_4 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.25 \cdot 10^{-98}:\\
\;\;\;\;e^{0 - t\_0} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 2.9 \cdot 10^{-9}:\\
\;\;\;\;\frac{t\_3}{t\_1}\\
\mathbf{elif}\;y.re \leq 1.85 \cdot 10^{+187}:\\
\;\;\;\;\frac{\log \left(\sqrt{t\_2}\right) \cdot y.im}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_4 \cdot {t\_2}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -4.80000000000000031e-39Initial program 42.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6481.1%
Simplified81.1%
if -4.80000000000000031e-39 < y.re < 1.25000000000000005e-98Initial program 43.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
*-commutativeN/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.f6470.3%
Simplified70.3%
if 1.25000000000000005e-98 < y.re < 2.89999999999999991e-9Initial program 39.1%
Applied egg-rr39.1%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Simplified43.7%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.6%
Simplified76.6%
if 2.89999999999999991e-9 < y.re < 1.85000000000000009e187Initial program 38.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.6%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.1%
Simplified57.1%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.0%
Simplified65.0%
if 1.85000000000000009e187 < y.re Initial program 43.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.3%
Simplified65.3%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.3%
Applied egg-rr65.3%
Final simplification72.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (exp (* (atan2 x.im x.re) y.im)))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (sin t_2)))
(if (<= y.re -4.5e-38)
(* t_3 (pow (hypot x.im x.re) y.re))
(if (<= y.re 5e-99)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_1)
(if (<= y.re 1.05)
(/ t_2 t_1)
(if (<= y.re 2.15e+182)
(/ (* (log (sqrt t_0)) y.im) t_1)
(* t_3 (pow t_0 (/ y.re 2.0)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = sin(t_2);
double tmp;
if (y_46_re <= -4.5e-38) {
tmp = t_3 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5e-99) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_1;
} else if (y_46_re <= 1.05) {
tmp = t_2 / t_1;
} else if (y_46_re <= 2.15e+182) {
tmp = (log(sqrt(t_0)) * y_46_im) / t_1;
} else {
tmp = t_3 * pow(t_0, (y_46_re / 2.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = Math.sin(t_2);
double tmp;
if (y_46_re <= -4.5e-38) {
tmp = t_3 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5e-99) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_1;
} else if (y_46_re <= 1.05) {
tmp = t_2 / t_1;
} else if (y_46_re <= 2.15e+182) {
tmp = (Math.log(Math.sqrt(t_0)) * y_46_im) / t_1;
} else {
tmp = t_3 * Math.pow(t_0, (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = math.sin(t_2) tmp = 0 if y_46_re <= -4.5e-38: tmp = t_3 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 5e-99: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_1 elif y_46_re <= 1.05: tmp = t_2 / t_1 elif y_46_re <= 2.15e+182: tmp = (math.log(math.sqrt(t_0)) * y_46_im) / t_1 else: tmp = t_3 * math.pow(t_0, (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = sin(t_2) tmp = 0.0 if (y_46_re <= -4.5e-38) tmp = Float64(t_3 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 5e-99) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_1); elseif (y_46_re <= 1.05) tmp = Float64(t_2 / t_1); elseif (y_46_re <= 2.15e+182) tmp = Float64(Float64(log(sqrt(t_0)) * y_46_im) / t_1); else tmp = Float64(t_3 * (t_0 ^ Float64(y_46_re / 2.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = sin(t_2); tmp = 0.0; if (y_46_re <= -4.5e-38) tmp = t_3 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 5e-99) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_1; elseif (y_46_re <= 1.05) tmp = t_2 / t_1; elseif (y_46_re <= 2.15e+182) tmp = (log(sqrt(t_0)) * y_46_im) / t_1; else tmp = t_3 * (t_0 ^ (y_46_re / 2.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sin[t$95$2], $MachinePrecision]}, If[LessEqual[y$46$re, -4.5e-38], N[(t$95$3 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5e-99], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 1.05], N[(t$95$2 / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 2.15e+182], N[(N[(N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] / t$95$1), $MachinePrecision], N[(t$95$3 * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := \sin t\_2\\
\mathbf{if}\;y.re \leq -4.5 \cdot 10^{-38}:\\
\;\;\;\;t\_3 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{-99}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_1}\\
\mathbf{elif}\;y.re \leq 1.05:\\
\;\;\;\;\frac{t\_2}{t\_1}\\
\mathbf{elif}\;y.re \leq 2.15 \cdot 10^{+182}:\\
\;\;\;\;\frac{\log \left(\sqrt{t\_0}\right) \cdot y.im}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_3 \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -4.50000000000000009e-38Initial program 42.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6481.1%
Simplified81.1%
if -4.50000000000000009e-38 < y.re < 4.99999999999999969e-99Initial program 43.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.9%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6470.3%
Simplified70.3%
if 4.99999999999999969e-99 < y.re < 1.05000000000000004Initial program 39.1%
Applied egg-rr39.1%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6443.7%
Simplified43.7%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.6%
Simplified76.6%
if 1.05000000000000004 < y.re < 2.1500000000000001e182Initial program 38.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.6%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.1%
Simplified57.1%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.0%
Simplified65.0%
if 2.1500000000000001e182 < y.re Initial program 43.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6465.3%
Simplified65.3%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.3%
Applied egg-rr65.3%
Final simplification72.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.re x.re) (* x.im x.im)))
(t_2 (* (sin t_0) (pow t_1 (/ y.re 2.0))))
(t_3 (exp (* (atan2 x.im x.re) y.im))))
(if (<= y.re -300.0)
t_2
(if (<= y.re 0.000125)
(/ t_0 t_3)
(if (<= y.re 1.5e+182) (/ (* (log (sqrt t_1)) y.im) 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_re * x_46_re) + (x_46_im * x_46_im);
double t_2 = sin(t_0) * pow(t_1, (y_46_re / 2.0));
double t_3 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -300.0) {
tmp = t_2;
} else if (y_46_re <= 0.000125) {
tmp = t_0 / t_3;
} else if (y_46_re <= 1.5e+182) {
tmp = (log(sqrt(t_1)) * y_46_im) / t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
t_1 = (x_46re * x_46re) + (x_46im * x_46im)
t_2 = sin(t_0) * (t_1 ** (y_46re / 2.0d0))
t_3 = exp((atan2(x_46im, x_46re) * y_46im))
if (y_46re <= (-300.0d0)) then
tmp = t_2
else if (y_46re <= 0.000125d0) then
tmp = t_0 / t_3
else if (y_46re <= 1.5d+182) then
tmp = (log(sqrt(t_1)) * y_46im) / t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_2 = Math.sin(t_0) * Math.pow(t_1, (y_46_re / 2.0));
double t_3 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -300.0) {
tmp = t_2;
} else if (y_46_re <= 0.000125) {
tmp = t_0 / t_3;
} else if (y_46_re <= 1.5e+182) {
tmp = (Math.log(Math.sqrt(t_1)) * y_46_im) / 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_re * x_46_re) + (x_46_im * x_46_im) t_2 = math.sin(t_0) * math.pow(t_1, (y_46_re / 2.0)) t_3 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_re <= -300.0: tmp = t_2 elif y_46_re <= 0.000125: tmp = t_0 / t_3 elif y_46_re <= 1.5e+182: tmp = (math.log(math.sqrt(t_1)) * y_46_im) / 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_re * x_46_re) + Float64(x_46_im * x_46_im)) t_2 = Float64(sin(t_0) * (t_1 ^ Float64(y_46_re / 2.0))) t_3 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) tmp = 0.0 if (y_46_re <= -300.0) tmp = t_2; elseif (y_46_re <= 0.000125) tmp = Float64(t_0 / t_3); elseif (y_46_re <= 1.5e+182) tmp = Float64(Float64(log(sqrt(t_1)) * y_46_im) / 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_re * x_46_re) + (x_46_im * x_46_im); t_2 = sin(t_0) * (t_1 ^ (y_46_re / 2.0)); t_3 = exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_re <= -300.0) tmp = t_2; elseif (y_46_re <= 0.000125) tmp = t_0 / t_3; elseif (y_46_re <= 1.5e+182) tmp = (log(sqrt(t_1)) * y_46_im) / 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$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[t$95$1, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -300.0], t$95$2, If[LessEqual[y$46$re, 0.000125], N[(t$95$0 / t$95$3), $MachinePrecision], If[LessEqual[y$46$re, 1.5e+182], N[(N[(N[Log[N[Sqrt[t$95$1], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] / t$95$3), $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.re \cdot x.re + x.im \cdot x.im\\
t_2 := \sin t\_0 \cdot {t\_1}^{\left(\frac{y.re}{2}\right)}\\
t_3 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.re \leq -300:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 0.000125:\\
\;\;\;\;\frac{t\_0}{t\_3}\\
\mathbf{elif}\;y.re \leq 1.5 \cdot 10^{+182}:\\
\;\;\;\;\frac{\log \left(\sqrt{t\_1}\right) \cdot y.im}{t\_3}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -300 or 1.5000000000000001e182 < y.re Initial program 42.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6478.8%
Simplified78.8%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6478.8%
Applied egg-rr78.8%
if -300 < y.re < 1.25e-4Initial program 42.7%
Applied egg-rr42.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.5%
Simplified38.5%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6454.9%
Simplified54.9%
if 1.25e-4 < y.re < 1.5000000000000001e182Initial program 38.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.6%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6457.1%
Simplified57.1%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6465.0%
Simplified65.0%
Final simplification64.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (/ t_0 (exp (* (atan2 x.im x.re) y.im)))))
(if (<= y.im -2.8e+14)
t_1
(if (<= y.im 8.2e+27) (* (sin t_0) (pow (hypot x.im x.re) y.re)) t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -2.8e+14) {
tmp = t_1;
} else if (y_46_im <= 8.2e+27) {
tmp = sin(t_0) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -2.8e+14) {
tmp = t_1;
} else if (y_46_im <= 8.2e+27) {
tmp = Math.sin(t_0) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -2.8e+14: tmp = t_1 elif y_46_im <= 8.2e+27: tmp = math.sin(t_0) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -2.8e+14) tmp = t_1; elseif (y_46_im <= 8.2e+27) tmp = Float64(sin(t_0) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -2.8e+14) tmp = t_1; elseif (y_46_im <= 8.2e+27) tmp = sin(t_0) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2.8e+14], t$95$1, If[LessEqual[y$46$im, 8.2e+27], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{if}\;y.im \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 8.2 \cdot 10^{+27}:\\
\;\;\;\;\sin t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -2.8e14 or 8.2000000000000005e27 < y.im < 5.79999999999999949e226Initial program 36.9%
Applied egg-rr24.4%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6442.8%
Simplified42.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6462.0%
Simplified62.0%
if -2.8e14 < y.im < 8.2000000000000005e27Initial program 45.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6461.6%
Simplified61.6%
if 5.79999999999999949e226 < y.im Initial program 40.9%
Applied egg-rr31.8%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.9%
Simplified40.9%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6486.4%
Simplified86.4%
Final simplification59.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.im 0.5) (log (+ (* x.re x.re) (* x.im x.im)))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* (sin t_1) (pow x.im y.re))))
(if (<= y.re -950000000000.0)
t_2
(if (<= y.re -3e-128)
t_1
(if (<= y.re 5.2e-177)
t_0
(if (<= y.re 7.4e-25) t_1 (if (<= y.re 2.3e+96) 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_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1) * pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -950000000000.0) {
tmp = t_2;
} else if (y_46_re <= -3e-128) {
tmp = t_1;
} else if (y_46_re <= 5.2e-177) {
tmp = t_0;
} else if (y_46_re <= 7.4e-25) {
tmp = t_1;
} else if (y_46_re <= 2.3e+96) {
tmp = t_0;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (y_46im * 0.5d0) * log(((x_46re * x_46re) + (x_46im * x_46im)))
t_1 = y_46re * atan2(x_46im, x_46re)
t_2 = sin(t_1) * (x_46im ** y_46re)
if (y_46re <= (-950000000000.0d0)) then
tmp = t_2
else if (y_46re <= (-3d-128)) then
tmp = t_1
else if (y_46re <= 5.2d-177) then
tmp = t_0
else if (y_46re <= 7.4d-25) then
tmp = t_1
else if (y_46re <= 2.3d+96) then
tmp = t_0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1) * Math.pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -950000000000.0) {
tmp = t_2;
} else if (y_46_re <= -3e-128) {
tmp = t_1;
} else if (y_46_re <= 5.2e-177) {
tmp = t_0;
} else if (y_46_re <= 7.4e-25) {
tmp = t_1;
} else if (y_46_re <= 2.3e+96) {
tmp = 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_im * 0.5) * math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) * math.pow(x_46_im, y_46_re) tmp = 0 if y_46_re <= -950000000000.0: tmp = t_2 elif y_46_re <= -3e-128: tmp = t_1 elif y_46_re <= 5.2e-177: tmp = t_0 elif y_46_re <= 7.4e-25: tmp = t_1 elif y_46_re <= 2.3e+96: tmp = 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(Float64(y_46_im * 0.5) * log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(sin(t_1) * (x_46_im ^ y_46_re)) tmp = 0.0 if (y_46_re <= -950000000000.0) tmp = t_2; elseif (y_46_re <= -3e-128) tmp = t_1; elseif (y_46_re <= 5.2e-177) tmp = t_0; elseif (y_46_re <= 7.4e-25) tmp = t_1; elseif (y_46_re <= 2.3e+96) tmp = 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_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im))); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1) * (x_46_im ^ y_46_re); tmp = 0.0; if (y_46_re <= -950000000000.0) tmp = t_2; elseif (y_46_re <= -3e-128) tmp = t_1; elseif (y_46_re <= 5.2e-177) tmp = t_0; elseif (y_46_re <= 7.4e-25) tmp = t_1; elseif (y_46_re <= 2.3e+96) tmp = 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[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $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[Sin[t$95$1], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -950000000000.0], t$95$2, If[LessEqual[y$46$re, -3e-128], t$95$1, If[LessEqual[y$46$re, 5.2e-177], t$95$0, If[LessEqual[y$46$re, 7.4e-25], t$95$1, If[LessEqual[y$46$re, 2.3e+96], t$95$0, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re + x.im \cdot x.im\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1 \cdot {x.im}^{y.re}\\
\mathbf{if}\;y.re \leq -950000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq -3 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 5.2 \cdot 10^{-177}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 7.4 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 2.3 \cdot 10^{+96}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -9.5e11 or 2.30000000000000015e96 < y.re Initial program 43.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6474.2%
Simplified74.2%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6458.5%
Simplified58.5%
if -9.5e11 < y.re < -2.99999999999999978e-128 or 5.2000000000000002e-177 < y.re < 7.40000000000000017e-25Initial program 38.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6435.4%
Simplified35.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.4%
Simplified31.4%
if -2.99999999999999978e-128 < y.re < 5.2000000000000002e-177 or 7.40000000000000017e-25 < y.re < 2.30000000000000015e96Initial program 43.3%
Applied egg-rr41.2%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6434.7%
Simplified34.7%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.6%
Simplified39.6%
Final simplification45.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.re x.re) (* x.im x.im)))
(t_2 (* (sin t_0) (pow t_1 (/ y.re 2.0)))))
(if (<= y.re -300.0)
t_2
(if (<= y.re 185000.0)
(/ t_0 (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 8.6e+102) (* (* y.im 0.5) (log t_1)) t_2)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_2 = sin(t_0) * pow(t_1, (y_46_re / 2.0));
double tmp;
if (y_46_re <= -300.0) {
tmp = t_2;
} else if (y_46_re <= 185000.0) {
tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 8.6e+102) {
tmp = (y_46_im * 0.5) * log(t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
t_1 = (x_46re * x_46re) + (x_46im * x_46im)
t_2 = sin(t_0) * (t_1 ** (y_46re / 2.0d0))
if (y_46re <= (-300.0d0)) then
tmp = t_2
else if (y_46re <= 185000.0d0) then
tmp = t_0 / exp((atan2(x_46im, x_46re) * y_46im))
else if (y_46re <= 8.6d+102) then
tmp = (y_46im * 0.5d0) * log(t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_2 = Math.sin(t_0) * Math.pow(t_1, (y_46_re / 2.0));
double tmp;
if (y_46_re <= -300.0) {
tmp = t_2;
} else if (y_46_re <= 185000.0) {
tmp = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 8.6e+102) {
tmp = (y_46_im * 0.5) * Math.log(t_1);
} 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_re * x_46_re) + (x_46_im * x_46_im) t_2 = math.sin(t_0) * math.pow(t_1, (y_46_re / 2.0)) tmp = 0 if y_46_re <= -300.0: tmp = t_2 elif y_46_re <= 185000.0: tmp = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 8.6e+102: tmp = (y_46_im * 0.5) * math.log(t_1) else: tmp = t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_2 = Float64(sin(t_0) * (t_1 ^ Float64(y_46_re / 2.0))) tmp = 0.0 if (y_46_re <= -300.0) tmp = t_2; elseif (y_46_re <= 185000.0) tmp = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 8.6e+102) tmp = Float64(Float64(y_46_im * 0.5) * log(t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_2 = sin(t_0) * (t_1 ^ (y_46_re / 2.0)); tmp = 0.0; if (y_46_re <= -300.0) tmp = t_2; elseif (y_46_re <= 185000.0) tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 8.6e+102) tmp = (y_46_im * 0.5) * log(t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[t$95$1, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -300.0], t$95$2, If[LessEqual[y$46$re, 185000.0], N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 8.6e+102], N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[t$95$1], $MachinePrecision]), $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.re \cdot x.re + x.im \cdot x.im\\
t_2 := \sin t\_0 \cdot {t\_1}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{if}\;y.re \leq -300:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 185000:\\
\;\;\;\;\frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 8.6 \cdot 10^{+102}:\\
\;\;\;\;\left(y.im \cdot 0.5\right) \cdot \log t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -300 or 8.6000000000000002e102 < y.re Initial program 44.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6474.7%
Simplified74.7%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6474.7%
Applied egg-rr74.7%
if -300 < y.re < 185000Initial program 43.1%
Applied egg-rr42.4%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.2%
Simplified38.2%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.3%
Simplified55.3%
if 185000 < y.re < 8.6000000000000002e102Initial program 28.6%
Applied egg-rr14.3%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f647.8%
Simplified7.8%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6458.2%
Simplified58.2%
Final simplification63.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.im 0.5) (log (+ (* x.re x.re) (* x.im x.im)))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* t_1 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -8e-129)
t_2
(if (<= y.re 3.9e-181)
t_0
(if (<= y.re 1.05e+35)
t_2
(if (<= y.re 1.15e+103) t_0 (* (sin t_1) (pow x.re y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -8e-129) {
tmp = t_2;
} else if (y_46_re <= 3.9e-181) {
tmp = t_0;
} else if (y_46_re <= 1.05e+35) {
tmp = t_2;
} else if (y_46_re <= 1.15e+103) {
tmp = t_0;
} else {
tmp = sin(t_1) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -8e-129) {
tmp = t_2;
} else if (y_46_re <= 3.9e-181) {
tmp = t_0;
} else if (y_46_re <= 1.05e+35) {
tmp = t_2;
} else if (y_46_re <= 1.15e+103) {
tmp = t_0;
} else {
tmp = Math.sin(t_1) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_im * 0.5) * math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -8e-129: tmp = t_2 elif y_46_re <= 3.9e-181: tmp = t_0 elif y_46_re <= 1.05e+35: tmp = t_2 elif y_46_re <= 1.15e+103: tmp = t_0 else: tmp = math.sin(t_1) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_im * 0.5) * log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -8e-129) tmp = t_2; elseif (y_46_re <= 3.9e-181) tmp = t_0; elseif (y_46_re <= 1.05e+35) tmp = t_2; elseif (y_46_re <= 1.15e+103) tmp = t_0; else tmp = Float64(sin(t_1) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im))); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -8e-129) tmp = t_2; elseif (y_46_re <= 3.9e-181) tmp = t_0; elseif (y_46_re <= 1.05e+35) tmp = t_2; elseif (y_46_re <= 1.15e+103) tmp = t_0; else tmp = sin(t_1) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $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[(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, -8e-129], t$95$2, If[LessEqual[y$46$re, 3.9e-181], t$95$0, If[LessEqual[y$46$re, 1.05e+35], t$95$2, If[LessEqual[y$46$re, 1.15e+103], t$95$0, N[(N[Sin[t$95$1], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re + x.im \cdot x.im\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -8 \cdot 10^{-129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 3.9 \cdot 10^{-181}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.05 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.15 \cdot 10^{+103}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\sin t\_1 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -7.9999999999999994e-129 or 3.9e-181 < y.re < 1.0499999999999999e35Initial program 40.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6460.7%
Simplified60.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6456.3%
Simplified56.3%
if -7.9999999999999994e-129 < y.re < 3.9e-181 or 1.0499999999999999e35 < y.re < 1.15000000000000004e103Initial program 42.9%
Applied egg-rr44.1%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.7%
Simplified37.7%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.6%
Simplified39.6%
if 1.15000000000000004e103 < y.re Initial program 47.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6458.6%
Simplified58.6%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6453.2%
Simplified53.2%
Final simplification50.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.re -300.0)
(* t_0 (pow (hypot x.im x.re) y.re))
(if (<= y.re 225.0)
(/ t_0 (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 2.05e+103)
(* (* y.im 0.5) (log (+ (* x.re x.re) (* x.im x.im))))
(* (sin t_0) (pow x.re y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -300.0) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 225.0) {
tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 2.05e+103) {
tmp = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
} else {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -300.0) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 225.0) {
tmp = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 2.05e+103) {
tmp = (y_46_im * 0.5) * Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
} else {
tmp = Math.sin(t_0) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_re <= -300.0: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 225.0: tmp = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 2.05e+103: tmp = (y_46_im * 0.5) * math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) else: tmp = math.sin(t_0) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -300.0) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 225.0) tmp = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 2.05e+103) tmp = Float64(Float64(y_46_im * 0.5) * log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))); else tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_re <= -300.0) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 225.0) tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 2.05e+103) tmp = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im))); else tmp = sin(t_0) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -300.0], 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, 225.0], N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.05e+103], N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -300:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 225:\\
\;\;\;\;\frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 2.05 \cdot 10^{+103}:\\
\;\;\;\;\left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re + x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -300Initial program 42.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6483.5%
Simplified83.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6477.5%
Simplified77.5%
if -300 < y.re < 225Initial program 43.1%
Applied egg-rr42.4%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.2%
Simplified38.2%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6455.3%
Simplified55.3%
if 225 < y.re < 2.0500000000000001e103Initial program 28.6%
Applied egg-rr14.3%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f647.8%
Simplified7.8%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6458.2%
Simplified58.2%
if 2.0500000000000001e103 < y.re Initial program 47.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6458.6%
Simplified58.6%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6453.2%
Simplified53.2%
Final simplification61.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= x.im -1.5e+135)
(* (* y.im 0.5) (log (+ (* x.re x.re) (* x.im x.im))))
(if (<= x.im -1.4e-75)
(* y.re (log (exp (atan2 x.im x.re))))
(if (<= x.im 1.3e-304)
(* (* y.im 0.5) (log (* x.re x.re)))
(* (sin (* y.im (log x.im))) (pow x.im y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -1.5e+135) {
tmp = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
} else if (x_46_im <= -1.4e-75) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else if (x_46_im <= 1.3e-304) {
tmp = (y_46_im * 0.5) * log((x_46_re * x_46_re));
} else {
tmp = sin((y_46_im * log(x_46_im))) * pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= (-1.5d+135)) then
tmp = (y_46im * 0.5d0) * log(((x_46re * x_46re) + (x_46im * x_46im)))
else if (x_46im <= (-1.4d-75)) then
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
else if (x_46im <= 1.3d-304) then
tmp = (y_46im * 0.5d0) * log((x_46re * x_46re))
else
tmp = sin((y_46im * log(x_46im))) * (x_46im ** y_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -1.5e+135) {
tmp = (y_46_im * 0.5) * Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
} else if (x_46_im <= -1.4e-75) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else if (x_46_im <= 1.3e-304) {
tmp = (y_46_im * 0.5) * Math.log((x_46_re * x_46_re));
} else {
tmp = Math.sin((y_46_im * Math.log(x_46_im))) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_im <= -1.5e+135: tmp = (y_46_im * 0.5) * math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) elif x_46_im <= -1.4e-75: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) elif x_46_im <= 1.3e-304: tmp = (y_46_im * 0.5) * math.log((x_46_re * x_46_re)) else: tmp = math.sin((y_46_im * math.log(x_46_im))) * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= -1.5e+135) tmp = Float64(Float64(y_46_im * 0.5) * log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))); elseif (x_46_im <= -1.4e-75) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); elseif (x_46_im <= 1.3e-304) tmp = Float64(Float64(y_46_im * 0.5) * log(Float64(x_46_re * x_46_re))); else tmp = Float64(sin(Float64(y_46_im * log(x_46_im))) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_im <= -1.5e+135) tmp = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im))); elseif (x_46_im <= -1.4e-75) tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); elseif (x_46_im <= 1.3e-304) tmp = (y_46_im * 0.5) * log((x_46_re * x_46_re)); else tmp = sin((y_46_im * log(x_46_im))) * (x_46_im ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$im, -1.5e+135], N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, -1.4e-75], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 1.3e-304], N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(x$46$re * x$46$re), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq -1.5 \cdot 10^{+135}:\\
\;\;\;\;\left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re + x.im \cdot x.im\right)\\
\mathbf{elif}\;x.im \leq -1.4 \cdot 10^{-75}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{elif}\;x.im \leq 1.3 \cdot 10^{-304}:\\
\;\;\;\;\left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log x.im\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -1.5e135Initial program 9.7%
Applied egg-rr9.7%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f645.2%
Simplified5.2%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6435.5%
Simplified35.5%
if -1.5e135 < x.im < -1.39999999999999999e-75Initial program 82.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6454.5%
Simplified54.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6422.3%
Simplified22.3%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6429.7%
Applied egg-rr29.7%
if -1.39999999999999999e-75 < x.im < 1.29999999999999998e-304Initial program 37.0%
Applied egg-rr42.6%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6423.0%
Simplified23.0%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6424.0%
Simplified24.0%
Taylor expanded in x.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6427.5%
Simplified27.5%
if 1.29999999999999998e-304 < x.im Initial program 40.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6429.1%
Simplified29.1%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6447.8%
Simplified47.8%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6440.4%
Simplified40.4%
Final simplification35.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (/ t_0 (exp (* (atan2 x.im x.re) y.im)))))
(if (<= y.im -4.2e+17)
t_1
(if (<= y.im 1.6e+19) (* t_0 (pow (hypot x.im x.re) y.re)) t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -4.2e+17) {
tmp = t_1;
} else if (y_46_im <= 1.6e+19) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -4.2e+17) {
tmp = t_1;
} else if (y_46_im <= 1.6e+19) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -4.2e+17: tmp = t_1 elif y_46_im <= 1.6e+19: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -4.2e+17) tmp = t_1; elseif (y_46_im <= 1.6e+19) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -4.2e+17) tmp = t_1; elseif (y_46_im <= 1.6e+19) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4.2e+17], t$95$1, If[LessEqual[y$46$im, 1.6e+19], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{if}\;y.im \leq -4.2 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.6 \cdot 10^{+19}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -4.2e17 or 1.6e19 < y.im < 9.9999999999999996e216Initial program 37.7%
Applied egg-rr24.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.6%
Simplified41.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6462.2%
Simplified62.2%
if -4.2e17 < y.im < 1.6e19Initial program 45.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6460.8%
Simplified60.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.0%
Simplified60.0%
if 9.9999999999999996e216 < y.im Initial program 40.9%
Applied egg-rr31.8%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6440.9%
Simplified40.9%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6486.4%
Simplified86.4%
Final simplification58.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= x.im -9.2e+141)
(* (* y.im 0.5) (log (* x.im x.im)))
(if (<= x.im 3.6e-13)
(* (sin (* y.re (atan2 x.im x.re))) (pow x.re y.re))
(* (sin (* y.im (log x.im))) (pow x.im y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -9.2e+141) {
tmp = (y_46_im * 0.5) * log((x_46_im * x_46_im));
} else if (x_46_im <= 3.6e-13) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(x_46_re, y_46_re);
} else {
tmp = sin((y_46_im * log(x_46_im))) * pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= (-9.2d+141)) then
tmp = (y_46im * 0.5d0) * log((x_46im * x_46im))
else if (x_46im <= 3.6d-13) then
tmp = sin((y_46re * atan2(x_46im, x_46re))) * (x_46re ** y_46re)
else
tmp = sin((y_46im * log(x_46im))) * (x_46im ** y_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -9.2e+141) {
tmp = (y_46_im * 0.5) * Math.log((x_46_im * x_46_im));
} else if (x_46_im <= 3.6e-13) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(x_46_re, y_46_re);
} else {
tmp = Math.sin((y_46_im * Math.log(x_46_im))) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_im <= -9.2e+141: tmp = (y_46_im * 0.5) * math.log((x_46_im * x_46_im)) elif x_46_im <= 3.6e-13: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(x_46_re, y_46_re) else: tmp = math.sin((y_46_im * math.log(x_46_im))) * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= -9.2e+141) tmp = Float64(Float64(y_46_im * 0.5) * log(Float64(x_46_im * x_46_im))); elseif (x_46_im <= 3.6e-13) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (x_46_re ^ y_46_re)); else tmp = Float64(sin(Float64(y_46_im * log(x_46_im))) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_im <= -9.2e+141) tmp = (y_46_im * 0.5) * log((x_46_im * x_46_im)); elseif (x_46_im <= 3.6e-13) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (x_46_re ^ y_46_re); else tmp = sin((y_46_im * log(x_46_im))) * (x_46_im ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$im, -9.2e+141], N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 3.6e-13], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq -9.2 \cdot 10^{+141}:\\
\;\;\;\;\left(y.im \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\\
\mathbf{elif}\;x.im \leq 3.6 \cdot 10^{-13}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {x.re}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log x.im\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -9.2000000000000006e141Initial program 5.4%
Applied egg-rr5.4%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f645.4%
Simplified5.4%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6436.1%
Simplified36.1%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6436.1%
Simplified36.1%
if -9.2000000000000006e141 < x.im < 3.5999999999999998e-13Initial program 54.8%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6449.0%
Simplified49.0%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6443.7%
Simplified43.7%
if 3.5999999999999998e-13 < x.im Initial program 32.3%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6421.9%
Simplified21.9%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6450.9%
Simplified50.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.im 0.5) (log (+ (* x.re x.re) (* x.im x.im))))))
(if (<= y.re -9.2e-129)
(* y.re (log (exp (atan2 x.im x.re))))
(if (<= y.re 3.5e-179)
t_0
(if (<= y.re 1.4e-24) (* y.re (atan2 x.im x.re)) t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double tmp;
if (y_46_re <= -9.2e-129) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 3.5e-179) {
tmp = t_0;
} else if (y_46_re <= 1.4e-24) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (y_46im * 0.5d0) * log(((x_46re * x_46re) + (x_46im * x_46im)))
if (y_46re <= (-9.2d-129)) then
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
else if (y_46re <= 3.5d-179) then
tmp = t_0
else if (y_46re <= 1.4d-24) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double tmp;
if (y_46_re <= -9.2e-129) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 3.5e-179) {
tmp = t_0;
} else if (y_46_re <= 1.4e-24) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_im * 0.5) * math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) tmp = 0 if y_46_re <= -9.2e-129: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) elif y_46_re <= 3.5e-179: tmp = t_0 elif y_46_re <= 1.4e-24: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_im * 0.5) * log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) tmp = 0.0 if (y_46_re <= -9.2e-129) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); elseif (y_46_re <= 3.5e-179) tmp = t_0; elseif (y_46_re <= 1.4e-24) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im))); tmp = 0.0; if (y_46_re <= -9.2e-129) tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); elseif (y_46_re <= 3.5e-179) tmp = t_0; elseif (y_46_re <= 1.4e-24) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -9.2e-129], 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, 3.5e-179], t$95$0, If[LessEqual[y$46$re, 1.4e-24], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re + x.im \cdot x.im\right)\\
\mathbf{if}\;y.re \leq -9.2 \cdot 10^{-129}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{elif}\;y.re \leq 3.5 \cdot 10^{-179}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-24}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -9.1999999999999998e-129Initial program 38.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6472.6%
Simplified72.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.9%
Simplified16.9%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6425.7%
Applied egg-rr25.7%
if -9.1999999999999998e-129 < y.re < 3.50000000000000024e-179 or 1.4000000000000001e-24 < y.re Initial program 44.1%
Applied egg-rr38.7%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.3%
Simplified28.3%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6435.8%
Simplified35.8%
if 3.50000000000000024e-179 < y.re < 1.4000000000000001e-24Initial program 42.3%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6430.0%
Simplified30.0%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6430.0%
Simplified30.0%
Final simplification31.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.im 0.5) (log (* x.im x.im)))))
(if (<= y.im -3.1e+72)
(* (* y.im 0.5) (log (* x.re x.re)))
(if (<= y.im -9.2e-179)
t_0
(if (<= y.im 8.6e-125) (* y.re (atan2 x.im x.re)) t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * log((x_46_im * x_46_im));
double tmp;
if (y_46_im <= -3.1e+72) {
tmp = (y_46_im * 0.5) * log((x_46_re * x_46_re));
} else if (y_46_im <= -9.2e-179) {
tmp = t_0;
} else if (y_46_im <= 8.6e-125) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (y_46im * 0.5d0) * log((x_46im * x_46im))
if (y_46im <= (-3.1d+72)) then
tmp = (y_46im * 0.5d0) * log((x_46re * x_46re))
else if (y_46im <= (-9.2d-179)) then
tmp = t_0
else if (y_46im <= 8.6d-125) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * Math.log((x_46_im * x_46_im));
double tmp;
if (y_46_im <= -3.1e+72) {
tmp = (y_46_im * 0.5) * Math.log((x_46_re * x_46_re));
} else if (y_46_im <= -9.2e-179) {
tmp = t_0;
} else if (y_46_im <= 8.6e-125) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_im * 0.5) * math.log((x_46_im * x_46_im)) tmp = 0 if y_46_im <= -3.1e+72: tmp = (y_46_im * 0.5) * math.log((x_46_re * x_46_re)) elif y_46_im <= -9.2e-179: tmp = t_0 elif y_46_im <= 8.6e-125: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_im * 0.5) * log(Float64(x_46_im * x_46_im))) tmp = 0.0 if (y_46_im <= -3.1e+72) tmp = Float64(Float64(y_46_im * 0.5) * log(Float64(x_46_re * x_46_re))); elseif (y_46_im <= -9.2e-179) tmp = t_0; elseif (y_46_im <= 8.6e-125) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_im * 0.5) * log((x_46_im * x_46_im)); tmp = 0.0; if (y_46_im <= -3.1e+72) tmp = (y_46_im * 0.5) * log((x_46_re * x_46_re)); elseif (y_46_im <= -9.2e-179) tmp = t_0; elseif (y_46_im <= 8.6e-125) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -3.1e+72], N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(x$46$re * x$46$re), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -9.2e-179], t$95$0, If[LessEqual[y$46$im, 8.6e-125], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.im \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\\
\mathbf{if}\;y.im \leq -3.1 \cdot 10^{+72}:\\
\;\;\;\;\left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re\right)\\
\mathbf{elif}\;y.im \leq -9.2 \cdot 10^{-179}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 8.6 \cdot 10^{-125}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -3.09999999999999988e72Initial program 35.1%
Applied egg-rr16.9%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6430.7%
Simplified30.7%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6410.6%
Simplified10.6%
Taylor expanded in x.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6419.6%
Simplified19.6%
if -3.09999999999999988e72 < y.im < -9.1999999999999995e-179 or 8.6000000000000004e-125 < y.im Initial program 42.5%
Applied egg-rr38.5%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.0%
Simplified25.0%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6427.9%
Simplified27.9%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6425.0%
Simplified25.0%
if -9.1999999999999995e-179 < y.im < 8.6000000000000004e-125Initial program 45.3%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6471.4%
Simplified71.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.0%
Simplified41.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.im 0.5) (log (+ (* x.re x.re) (* x.im x.im))))))
(if (<= y.im -4.7e-179)
t_0
(if (<= y.im 3.8e-94) (* y.re (atan2 x.im x.re)) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double tmp;
if (y_46_im <= -4.7e-179) {
tmp = t_0;
} else if (y_46_im <= 3.8e-94) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (y_46im * 0.5d0) * log(((x_46re * x_46re) + (x_46im * x_46im)))
if (y_46im <= (-4.7d-179)) then
tmp = t_0
else if (y_46im <= 3.8d-94) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double tmp;
if (y_46_im <= -4.7e-179) {
tmp = t_0;
} else if (y_46_im <= 3.8e-94) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_im * 0.5) * math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) tmp = 0 if y_46_im <= -4.7e-179: tmp = t_0 elif y_46_im <= 3.8e-94: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_im * 0.5) * log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) tmp = 0.0 if (y_46_im <= -4.7e-179) tmp = t_0; elseif (y_46_im <= 3.8e-94) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_im * 0.5) * log(((x_46_re * x_46_re) + (x_46_im * x_46_im))); tmp = 0.0; if (y_46_im <= -4.7e-179) tmp = t_0; elseif (y_46_im <= 3.8e-94) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4.7e-179], t$95$0, If[LessEqual[y$46$im, 3.8e-94], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.im \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re + x.im \cdot x.im\right)\\
\mathbf{if}\;y.im \leq -4.7 \cdot 10^{-179}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 3.8 \cdot 10^{-94}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -4.7000000000000003e-179 or 3.79999999999999999e-94 < y.im Initial program 41.5%
Applied egg-rr33.9%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6427.4%
Simplified27.4%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6424.4%
Simplified24.4%
if -4.7000000000000003e-179 < y.im < 3.79999999999999999e-94Initial program 43.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6467.9%
Simplified67.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.2%
Simplified38.2%
Final simplification28.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (* y.im 0.5) (log (* x.im x.im)))))
(if (<= y.im -1.55e-177)
t_0
(if (<= y.im 7.2e-128) (* y.re (atan2 x.im x.re)) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * log((x_46_im * x_46_im));
double tmp;
if (y_46_im <= -1.55e-177) {
tmp = t_0;
} else if (y_46_im <= 7.2e-128) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (y_46im * 0.5d0) * log((x_46im * x_46im))
if (y_46im <= (-1.55d-177)) then
tmp = t_0
else if (y_46im <= 7.2d-128) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_im * 0.5) * Math.log((x_46_im * x_46_im));
double tmp;
if (y_46_im <= -1.55e-177) {
tmp = t_0;
} else if (y_46_im <= 7.2e-128) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_im * 0.5) * math.log((x_46_im * x_46_im)) tmp = 0 if y_46_im <= -1.55e-177: tmp = t_0 elif y_46_im <= 7.2e-128: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_im * 0.5) * log(Float64(x_46_im * x_46_im))) tmp = 0.0 if (y_46_im <= -1.55e-177) tmp = t_0; elseif (y_46_im <= 7.2e-128) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_im * 0.5) * log((x_46_im * x_46_im)); tmp = 0.0; if (y_46_im <= -1.55e-177) tmp = t_0; elseif (y_46_im <= 7.2e-128) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$im * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.55e-177], t$95$0, If[LessEqual[y$46$im, 7.2e-128], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y.im \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\\
\mathbf{if}\;y.im \leq -1.55 \cdot 10^{-177}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 7.2 \cdot 10^{-128}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -1.55000000000000009e-177 or 7.20000000000000049e-128 < y.im Initial program 40.8%
Applied egg-rr33.5%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6426.3%
Simplified26.3%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6424.0%
Simplified24.0%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6421.2%
Simplified21.2%
if -1.55000000000000009e-177 < y.im < 7.20000000000000049e-128Initial program 45.3%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6471.4%
Simplified71.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.0%
Simplified41.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im 2.55e-101) (* y.re (atan2 x.im x.re)) (* y.im (log x.im))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 2.55e-101) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * log(x_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= 2.55d-101) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = y_46im * log(x_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 2.55e-101) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = y_46_im * Math.log(x_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_im <= 2.55e-101: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = y_46_im * math.log(x_46_im) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= 2.55e-101) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = Float64(y_46_im * log(x_46_im)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_im <= 2.55e-101) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = y_46_im * log(x_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$im, 2.55e-101], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq 2.55 \cdot 10^{-101}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \log x.im\\
\end{array}
\end{array}
if x.im < 2.5500000000000001e-101Initial program 41.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6448.1%
Simplified48.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.6%
Simplified15.6%
if 2.5500000000000001e-101 < x.im Initial program 42.8%
Applied egg-rr39.3%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.6%
Simplified28.6%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6423.8%
Simplified23.8%
Taylor expanded in x.im around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-recN/A
mul-1-negN/A
*-lowering-*.f64N/A
log-lowering-log.f6418.1%
Simplified18.1%
Final simplification16.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 41.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6446.3%
Simplified46.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6414.7%
Simplified14.7%
herbie shell --seed 2024145
(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)))))