
(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 (* y.re (atan2 x.im x.re)))
(t_2 (sin t_1))
(t_3 (sqrt (+ (* x.re x.re) (* x.im x.im))))
(t_4 (log (hypot x.im x.re))))
(if (<= y.re -3.15e+65)
(* (exp (- (* y.re (log t_3)) t_0)) t_2)
(if (<= y.re 1.22e+34)
(/
(+ t_2 (* y.im (* t_4 (cos t_1))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(* (pow t_3 y.re) (sin (* y.im 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 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1);
double t_3 = sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_4 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -3.15e+65) {
tmp = exp(((y_46_re * log(t_3)) - t_0)) * t_2;
} else if (y_46_re <= 1.22e+34) {
tmp = (t_2 + (y_46_im * (t_4 * cos(t_1)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = pow(t_3, y_46_re) * sin((y_46_im * 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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1);
double t_3 = Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_4 = Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -3.15e+65) {
tmp = Math.exp(((y_46_re * Math.log(t_3)) - t_0)) * t_2;
} else if (y_46_re <= 1.22e+34) {
tmp = (t_2 + (y_46_im * (t_4 * Math.cos(t_1)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = Math.pow(t_3, y_46_re) * Math.sin((y_46_im * 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 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) t_3 = math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) t_4 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_re <= -3.15e+65: tmp = math.exp(((y_46_re * math.log(t_3)) - t_0)) * t_2 elif y_46_re <= 1.22e+34: tmp = (t_2 + (y_46_im * (t_4 * math.cos(t_1)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = math.pow(t_3, y_46_re) * math.sin((y_46_im * 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 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = sin(t_1) t_3 = sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) t_4 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -3.15e+65) tmp = Float64(exp(Float64(Float64(y_46_re * log(t_3)) - t_0)) * t_2); elseif (y_46_re <= 1.22e+34) tmp = Float64(Float64(t_2 + Float64(y_46_im * Float64(t_4 * cos(t_1)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64((t_3 ^ y_46_re) * sin(Float64(y_46_im * 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 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1); t_3 = sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))); t_4 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_re <= -3.15e+65) tmp = exp(((y_46_re * log(t_3)) - t_0)) * t_2; elseif (y_46_re <= 1.22e+34) tmp = (t_2 + (y_46_im * (t_4 * cos(t_1)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = (t_3 ^ y_46_re) * sin((y_46_im * 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -3.15e+65], N[(N[Exp[N[(N[(y$46$re * N[Log[t$95$3], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[y$46$re, 1.22e+34], N[(N[(t$95$2 + N[(y$46$im * N[(t$95$4 * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[t$95$3, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$4), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1\\
t_3 := \sqrt{x.re \cdot x.re + x.im \cdot x.im}\\
t_4 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -3.15 \cdot 10^{+65}:\\
\;\;\;\;e^{y.re \cdot \log t\_3 - t\_0} \cdot t\_2\\
\mathbf{elif}\;y.re \leq 1.22 \cdot 10^{+34}:\\
\;\;\;\;\frac{t\_2 + y.im \cdot \left(t\_4 \cdot \cos t\_1\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;{t\_3}^{y.re} \cdot \sin \left(y.im \cdot t\_4\right)\\
\end{array}
\end{array}
if y.re < -3.14999999999999999e65Initial program 40.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.9%
Simplified81.9%
if -3.14999999999999999e65 < y.re < 1.2200000000000001e34Initial program 41.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified76.3%
Taylor expanded in y.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.f6480.7%
Simplified80.7%
if 1.2200000000000001e34 < y.re Initial program 31.3%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6464.1%
Simplified64.1%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.1%
Simplified64.1%
Final simplification76.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (+ (* x.re x.re) (* x.im x.im)))
(t_2 (log (sqrt t_1)))
(t_3 (* (atan2 x.im x.re) y.im))
(t_4 (exp t_3)))
(if (<= (* (exp (- (* y.re t_2) t_3)) (sin (+ t_0 (* t_2 y.im)))) INFINITY)
(/
(/ (sin (+ t_0 (* (/ y.im 2.0) (log t_1)))) t_4)
(pow t_1 (/ y.re -2.0)))
(/
(sin (+ t_0 (* y.im (log (hypot x.re x.im)))))
(/ t_4 (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 = 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 = log(sqrt(t_1));
double t_3 = atan2(x_46_im, x_46_re) * y_46_im;
double t_4 = exp(t_3);
double tmp;
if ((exp(((y_46_re * t_2) - t_3)) * sin((t_0 + (t_2 * y_46_im)))) <= ((double) INFINITY)) {
tmp = (sin((t_0 + ((y_46_im / 2.0) * log(t_1)))) / t_4) / pow(t_1, (y_46_re / -2.0));
} else {
tmp = sin((t_0 + (y_46_im * log(hypot(x_46_re, x_46_im))))) / (t_4 / 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 = 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.log(Math.sqrt(t_1));
double t_3 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_4 = Math.exp(t_3);
double tmp;
if ((Math.exp(((y_46_re * t_2) - t_3)) * Math.sin((t_0 + (t_2 * y_46_im)))) <= Double.POSITIVE_INFINITY) {
tmp = (Math.sin((t_0 + ((y_46_im / 2.0) * Math.log(t_1)))) / t_4) / Math.pow(t_1, (y_46_re / -2.0));
} else {
tmp = Math.sin((t_0 + (y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))))) / (t_4 / 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 = 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.log(math.sqrt(t_1)) t_3 = math.atan2(x_46_im, x_46_re) * y_46_im t_4 = math.exp(t_3) tmp = 0 if (math.exp(((y_46_re * t_2) - t_3)) * math.sin((t_0 + (t_2 * y_46_im)))) <= math.inf: tmp = (math.sin((t_0 + ((y_46_im / 2.0) * math.log(t_1)))) / t_4) / math.pow(t_1, (y_46_re / -2.0)) else: tmp = math.sin((t_0 + (y_46_im * math.log(math.hypot(x_46_re, x_46_im))))) / (t_4 / 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(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 = log(sqrt(t_1)) t_3 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_4 = exp(t_3) tmp = 0.0 if (Float64(exp(Float64(Float64(y_46_re * t_2) - t_3)) * sin(Float64(t_0 + Float64(t_2 * y_46_im)))) <= Inf) tmp = Float64(Float64(sin(Float64(t_0 + Float64(Float64(y_46_im / 2.0) * log(t_1)))) / t_4) / (t_1 ^ Float64(y_46_re / -2.0))); else tmp = Float64(sin(Float64(t_0 + Float64(y_46_im * log(hypot(x_46_re, x_46_im))))) / Float64(t_4 / (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 = 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 = log(sqrt(t_1)); t_3 = atan2(x_46_im, x_46_re) * y_46_im; t_4 = exp(t_3); tmp = 0.0; if ((exp(((y_46_re * t_2) - t_3)) * sin((t_0 + (t_2 * y_46_im)))) <= Inf) tmp = (sin((t_0 + ((y_46_im / 2.0) * log(t_1)))) / t_4) / (t_1 ^ (y_46_re / -2.0)); else tmp = sin((t_0 + (y_46_im * log(hypot(x_46_re, x_46_im))))) / (t_4 / (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[(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[Log[N[Sqrt[t$95$1], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$4 = N[Exp[t$95$3], $MachinePrecision]}, If[LessEqual[N[(N[Exp[N[(N[(y$46$re * t$95$2), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 + N[(t$95$2 * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[Sin[N[(t$95$0 + N[(N[(y$46$im / 2.0), $MachinePrecision] * N[Log[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$4), $MachinePrecision] / N[Power[t$95$1, N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(t$95$4 / 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 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := x.re \cdot x.re + x.im \cdot x.im\\
t_2 := \log \left(\sqrt{t\_1}\right)\\
t_3 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_4 := e^{t\_3}\\
\mathbf{if}\;e^{y.re \cdot t\_2 - t\_3} \cdot \sin \left(t\_0 + t\_2 \cdot y.im\right) \leq \infty:\\
\;\;\;\;\frac{\frac{\sin \left(t\_0 + \frac{y.im}{2} \cdot \log t\_1\right)}{t\_4}}{{t\_1}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(t\_0 + y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\right)}{\frac{t\_4}{{\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 74.3%
Applied egg-rr76.5%
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%
Final simplification69.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (/ -1.0 x.im)))
(t_1 (* (atan2 x.im x.re) y.im))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (log (/ 1.0 x.im))))
(if (<= x.im -1750000000000.0)
(* (exp (- 0.0 (+ t_1 (* y.re t_0)))) (sin (- t_2 (* y.im t_0))))
(if (<= x.im -1.6e-105)
(/ (sin t_2) (/ (exp t_1) (pow (hypot x.re x.im) y.re)))
(if (<= x.im 1.45e-65)
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_1))
(sin (* y.im (log (hypot x.im x.re)))))
(* (exp (- (* (- 0.0 y.re) t_3) t_1)) (sin (- t_2 (* y.im t_3)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log((-1.0 / x_46_im));
double t_1 = 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 = log((1.0 / x_46_im));
double tmp;
if (x_46_im <= -1750000000000.0) {
tmp = exp((0.0 - (t_1 + (y_46_re * t_0)))) * sin((t_2 - (y_46_im * t_0)));
} else if (x_46_im <= -1.6e-105) {
tmp = sin(t_2) / (exp(t_1) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (x_46_im <= 1.45e-65) {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = exp((((0.0 - y_46_re) * t_3) - t_1)) * sin((t_2 - (y_46_im * t_3)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log((-1.0 / x_46_im));
double t_1 = 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.log((1.0 / x_46_im));
double tmp;
if (x_46_im <= -1750000000000.0) {
tmp = Math.exp((0.0 - (t_1 + (y_46_re * t_0)))) * Math.sin((t_2 - (y_46_im * t_0)));
} else if (x_46_im <= -1.6e-105) {
tmp = Math.sin(t_2) / (Math.exp(t_1) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (x_46_im <= 1.45e-65) {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1)) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_1)) * Math.sin((t_2 - (y_46_im * t_3)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log((-1.0 / x_46_im)) t_1 = 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.log((1.0 / x_46_im)) tmp = 0 if x_46_im <= -1750000000000.0: tmp = math.exp((0.0 - (t_1 + (y_46_re * t_0)))) * math.sin((t_2 - (y_46_im * t_0))) elif x_46_im <= -1.6e-105: tmp = math.sin(t_2) / (math.exp(t_1) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif x_46_im <= 1.45e-65: tmp = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1)) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_1)) * math.sin((t_2 - (y_46_im * t_3))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(Float64(-1.0 / x_46_im)) t_1 = 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 = log(Float64(1.0 / x_46_im)) tmp = 0.0 if (x_46_im <= -1750000000000.0) tmp = Float64(exp(Float64(0.0 - Float64(t_1 + Float64(y_46_re * t_0)))) * sin(Float64(t_2 - Float64(y_46_im * t_0)))); elseif (x_46_im <= -1.6e-105) tmp = Float64(sin(t_2) / Float64(exp(t_1) / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (x_46_im <= 1.45e-65) tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - t_1)) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_1)) * sin(Float64(t_2 - Float64(y_46_im * t_3)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log((-1.0 / x_46_im)); t_1 = atan2(x_46_im, x_46_re) * y_46_im; t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = log((1.0 / x_46_im)); tmp = 0.0; if (x_46_im <= -1750000000000.0) tmp = exp((0.0 - (t_1 + (y_46_re * t_0)))) * sin((t_2 - (y_46_im * t_0))); elseif (x_46_im <= -1.6e-105) tmp = sin(t_2) / (exp(t_1) / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (x_46_im <= 1.45e-65) tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_1)) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = exp((((0.0 - y_46_re) * t_3) - t_1)) * sin((t_2 - (y_46_im * t_3))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[(-1.0 / x$46$im), $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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Log[N[(1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$im, -1750000000000.0], N[(N[Exp[N[(0.0 - N[(t$95$1 + N[(y$46$re * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$2 - N[(y$46$im * t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, -1.6e-105], N[(N[Sin[t$95$2], $MachinePrecision] / N[(N[Exp[t$95$1], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 1.45e-65], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$3), $MachinePrecision] - t$95$1), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$2 - N[(y$46$im * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\frac{-1}{x.im}\right)\\
t_1 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := \log \left(\frac{1}{x.im}\right)\\
\mathbf{if}\;x.im \leq -1750000000000:\\
\;\;\;\;e^{0 - \left(t\_1 + y.re \cdot t\_0\right)} \cdot \sin \left(t\_2 - y.im \cdot t\_0\right)\\
\mathbf{elif}\;x.im \leq -1.6 \cdot 10^{-105}:\\
\;\;\;\;\frac{\sin t\_2}{\frac{e^{t\_1}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;x.im \leq 1.45 \cdot 10^{-65}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t\_1} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_1} \cdot \sin \left(t\_2 - y.im \cdot t\_3\right)\\
\end{array}
\end{array}
if x.im < -1.75e12Initial program 29.4%
Taylor expanded in x.im around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified78.3%
if -1.75e12 < x.im < -1.59999999999999991e-105Initial program 42.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified57.1%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6471.6%
Simplified71.6%
if -1.59999999999999991e-105 < x.im < 1.4499999999999999e-65Initial program 50.2%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.8%
Simplified62.8%
if 1.4499999999999999e-65 < x.im Initial program 33.7%
Taylor expanded in x.im around inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified73.4%
Final simplification70.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (sin (* y.im (log (hypot x.im x.re)))))
(t_2 (sin (* y.re (atan2 x.im x.re))))
(t_3 (sqrt (+ (* x.re x.re) (* x.im x.im))))
(t_4 (exp t_0))
(t_5 (/ t_2 (/ t_4 (pow (hypot x.re x.im) y.re)))))
(if (<= y.re -720000.0)
(* (exp (- (* y.re (log t_3)) t_0)) t_2)
(if (<= y.re -1.06e-184)
t_5
(if (<= y.re 1.6e-127)
(/ t_1 t_4)
(if (<= y.re 1.4e+16) t_5 (* (pow t_3 y.re) t_1)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_2 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_3 = sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_4 = exp(t_0);
double t_5 = t_2 / (t_4 / pow(hypot(x_46_re, x_46_im), y_46_re));
double tmp;
if (y_46_re <= -720000.0) {
tmp = exp(((y_46_re * log(t_3)) - t_0)) * t_2;
} else if (y_46_re <= -1.06e-184) {
tmp = t_5;
} else if (y_46_re <= 1.6e-127) {
tmp = t_1 / t_4;
} else if (y_46_re <= 1.4e+16) {
tmp = t_5;
} else {
tmp = pow(t_3, y_46_re) * t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_2 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_3 = Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)));
double t_4 = Math.exp(t_0);
double t_5 = t_2 / (t_4 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
double tmp;
if (y_46_re <= -720000.0) {
tmp = Math.exp(((y_46_re * Math.log(t_3)) - t_0)) * t_2;
} else if (y_46_re <= -1.06e-184) {
tmp = t_5;
} else if (y_46_re <= 1.6e-127) {
tmp = t_1 / t_4;
} else if (y_46_re <= 1.4e+16) {
tmp = t_5;
} else {
tmp = Math.pow(t_3, y_46_re) * t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) t_2 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_3 = math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) t_4 = math.exp(t_0) t_5 = t_2 / (t_4 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) tmp = 0 if y_46_re <= -720000.0: tmp = math.exp(((y_46_re * math.log(t_3)) - t_0)) * t_2 elif y_46_re <= -1.06e-184: tmp = t_5 elif y_46_re <= 1.6e-127: tmp = t_1 / t_4 elif y_46_re <= 1.4e+16: tmp = t_5 else: tmp = math.pow(t_3, y_46_re) * t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_2 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) t_3 = sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) t_4 = exp(t_0) t_5 = Float64(t_2 / Float64(t_4 / (hypot(x_46_re, x_46_im) ^ y_46_re))) tmp = 0.0 if (y_46_re <= -720000.0) tmp = Float64(exp(Float64(Float64(y_46_re * log(t_3)) - t_0)) * t_2); elseif (y_46_re <= -1.06e-184) tmp = t_5; elseif (y_46_re <= 1.6e-127) tmp = Float64(t_1 / t_4); elseif (y_46_re <= 1.4e+16) tmp = t_5; else tmp = Float64((t_3 ^ y_46_re) * t_1); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); t_2 = sin((y_46_re * atan2(x_46_im, x_46_re))); t_3 = sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))); t_4 = exp(t_0); t_5 = t_2 / (t_4 / (hypot(x_46_re, x_46_im) ^ y_46_re)); tmp = 0.0; if (y_46_re <= -720000.0) tmp = exp(((y_46_re * log(t_3)) - t_0)) * t_2; elseif (y_46_re <= -1.06e-184) tmp = t_5; elseif (y_46_re <= 1.6e-127) tmp = t_1 / t_4; elseif (y_46_re <= 1.4e+16) tmp = t_5; else tmp = (t_3 ^ y_46_re) * t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$5 = N[(t$95$2 / N[(t$95$4 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -720000.0], N[(N[Exp[N[(N[(y$46$re * N[Log[t$95$3], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[y$46$re, -1.06e-184], t$95$5, If[LessEqual[y$46$re, 1.6e-127], N[(t$95$1 / t$95$4), $MachinePrecision], If[LessEqual[y$46$re, 1.4e+16], t$95$5, N[(N[Power[t$95$3, y$46$re], $MachinePrecision] * t$95$1), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
t_2 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_3 := \sqrt{x.re \cdot x.re + x.im \cdot x.im}\\
t_4 := e^{t\_0}\\
t_5 := \frac{t\_2}{\frac{t\_4}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{if}\;y.re \leq -720000:\\
\;\;\;\;e^{y.re \cdot \log t\_3 - t\_0} \cdot t\_2\\
\mathbf{elif}\;y.re \leq -1.06 \cdot 10^{-184}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y.re \leq 1.6 \cdot 10^{-127}:\\
\;\;\;\;\frac{t\_1}{t\_4}\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{+16}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;{t\_3}^{y.re} \cdot t\_1\\
\end{array}
\end{array}
if y.re < -7.2e5Initial program 40.7%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.4%
Simplified76.4%
if -7.2e5 < y.re < -1.05999999999999995e-184 or 1.60000000000000009e-127 < y.re < 1.4e16Initial program 34.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified77.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.0%
Simplified66.0%
if -1.05999999999999995e-184 < y.re < 1.60000000000000009e-127Initial program 53.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified83.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.7%
Simplified72.7%
if 1.4e16 < y.re Initial program 28.6%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6461.5%
Simplified61.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6461.5%
Simplified61.5%
Final simplification68.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* (atan2 x.im x.re) y.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (/ (sin t_1) (/ t_0 (pow (hypot x.re x.im) y.re))))
(t_3 (sin (* y.im (log (hypot x.im x.re))))))
(if (<= y.re -2.85e+97)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.re -2.8e-182)
t_2
(if (<= y.re 1.65e-124)
(/ t_3 t_0)
(if (<= y.re 1.75e+16)
t_2
(* (pow (sqrt (+ (* x.re x.re) (* x.im x.im))) y.re) t_3)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1) / (t_0 / pow(hypot(x_46_re, x_46_im), y_46_re));
double t_3 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double tmp;
if (y_46_re <= -2.85e+97) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= -2.8e-182) {
tmp = t_2;
} else if (y_46_re <= 1.65e-124) {
tmp = t_3 / t_0;
} else if (y_46_re <= 1.75e+16) {
tmp = t_2;
} else {
tmp = pow(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_3;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.sin(t_1) / (t_0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
double t_3 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double tmp;
if (y_46_re <= -2.85e+97) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= -2.8e-182) {
tmp = t_2;
} else if (y_46_re <= 1.65e-124) {
tmp = t_3 / t_0;
} else if (y_46_re <= 1.75e+16) {
tmp = t_2;
} else {
tmp = Math.pow(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_3;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) / (t_0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) t_3 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) tmp = 0 if y_46_re <= -2.85e+97: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= -2.8e-182: tmp = t_2 elif y_46_re <= 1.65e-124: tmp = t_3 / t_0 elif y_46_re <= 1.75e+16: tmp = t_2 else: tmp = math.pow(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_3 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(sin(t_1) / Float64(t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re))) t_3 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) tmp = 0.0 if (y_46_re <= -2.85e+97) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= -2.8e-182) tmp = t_2; elseif (y_46_re <= 1.65e-124) tmp = Float64(t_3 / t_0); elseif (y_46_re <= 1.75e+16) tmp = t_2; else tmp = Float64((sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) ^ y_46_re) * t_3); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1) / (t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); t_3 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); tmp = 0.0; if (y_46_re <= -2.85e+97) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= -2.8e-182) tmp = t_2; elseif (y_46_re <= 1.65e-124) tmp = t_3 / t_0; elseif (y_46_re <= 1.75e+16) tmp = t_2; else tmp = (sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) ^ y_46_re) * t_3; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(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[(t$95$0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -2.85e+97], 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, -2.8e-182], t$95$2, If[LessEqual[y$46$re, 1.65e-124], N[(t$95$3 / t$95$0), $MachinePrecision], If[LessEqual[y$46$re, 1.75e+16], t$95$2, N[(N[Power[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision] * t$95$3), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \frac{\sin t\_1}{\frac{t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
t_3 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{if}\;y.re \leq -2.85 \cdot 10^{+97}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq -2.8 \cdot 10^{-182}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.65 \cdot 10^{-124}:\\
\;\;\;\;\frac{t\_3}{t\_0}\\
\mathbf{elif}\;y.re \leq 1.75 \cdot 10^{+16}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;{\left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}^{y.re} \cdot t\_3\\
\end{array}
\end{array}
if y.re < -2.8500000000000001e97Initial program 42.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.f6479.1%
Simplified79.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.7%
Simplified81.7%
if -2.8500000000000001e97 < y.re < -2.79999999999999993e-182 or 1.64999999999999992e-124 < y.re < 1.75e16Initial program 35.2%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified71.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.2%
Simplified66.2%
if -2.79999999999999993e-182 < y.re < 1.64999999999999992e-124Initial program 53.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified83.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6472.7%
Simplified72.7%
if 1.75e16 < y.re Initial program 28.6%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6461.5%
Simplified61.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6461.5%
Simplified61.5%
Final simplification68.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (/ -1.0 x.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* (atan2 x.im x.re) y.im))
(t_3 (log (/ 1.0 x.im))))
(if (<= x.im -3.9e-198)
(* (exp (- 0.0 (+ t_2 (* y.re t_0)))) (sin (- t_1 (* y.im t_0))))
(if (<= x.im 3.8e-81)
(/
(sin
(*
y.im
(+ (log (hypot x.im x.re)) (* y.re (/ (atan2 x.im x.re) y.im)))))
(/ 1.0 (pow (hypot x.re x.im) y.re)))
(* (exp (- (* (- 0.0 y.re) t_3) t_2)) (sin (- t_1 (* y.im t_3))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log((-1.0 / x_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = atan2(x_46_im, x_46_re) * y_46_im;
double t_3 = log((1.0 / x_46_im));
double tmp;
if (x_46_im <= -3.9e-198) {
tmp = exp((0.0 - (t_2 + (y_46_re * t_0)))) * sin((t_1 - (y_46_im * t_0)));
} else if (x_46_im <= 3.8e-81) {
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))))) / (1.0 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = exp((((0.0 - y_46_re) * t_3) - t_2)) * sin((t_1 - (y_46_im * t_3)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log((-1.0 / x_46_im));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_3 = Math.log((1.0 / x_46_im));
double tmp;
if (x_46_im <= -3.9e-198) {
tmp = Math.exp((0.0 - (t_2 + (y_46_re * t_0)))) * Math.sin((t_1 - (y_46_im * t_0)));
} else if (x_46_im <= 3.8e-81) {
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))))) / (1.0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_2)) * Math.sin((t_1 - (y_46_im * t_3)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log((-1.0 / x_46_im)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.atan2(x_46_im, x_46_re) * y_46_im t_3 = math.log((1.0 / x_46_im)) tmp = 0 if x_46_im <= -3.9e-198: tmp = math.exp((0.0 - (t_2 + (y_46_re * t_0)))) * math.sin((t_1 - (y_46_im * t_0))) elif x_46_im <= 3.8e-81: 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))))) / (1.0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_2)) * math.sin((t_1 - (y_46_im * t_3))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(Float64(-1.0 / x_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_3 = log(Float64(1.0 / x_46_im)) tmp = 0.0 if (x_46_im <= -3.9e-198) tmp = Float64(exp(Float64(0.0 - Float64(t_2 + Float64(y_46_re * t_0)))) * sin(Float64(t_1 - Float64(y_46_im * t_0)))); elseif (x_46_im <= 3.8e-81) 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(1.0 / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_2)) * sin(Float64(t_1 - Float64(y_46_im * t_3)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log((-1.0 / x_46_im)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = atan2(x_46_im, x_46_re) * y_46_im; t_3 = log((1.0 / x_46_im)); tmp = 0.0; if (x_46_im <= -3.9e-198) tmp = exp((0.0 - (t_2 + (y_46_re * t_0)))) * sin((t_1 - (y_46_im * t_0))); elseif (x_46_im <= 3.8e-81) 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))))) / (1.0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = exp((((0.0 - y_46_re) * t_3) - t_2)) * sin((t_1 - (y_46_im * t_3))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[(-1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$3 = N[Log[N[(1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$im, -3.9e-198], N[(N[Exp[N[(0.0 - N[(t$95$2 + N[(y$46$re * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 3.8e-81], 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[(1.0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$3), $MachinePrecision] - t$95$2), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\frac{-1}{x.im}\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_3 := \log \left(\frac{1}{x.im}\right)\\
\mathbf{if}\;x.im \leq -3.9 \cdot 10^{-198}:\\
\;\;\;\;e^{0 - \left(t\_2 + y.re \cdot t\_0\right)} \cdot \sin \left(t\_1 - y.im \cdot t\_0\right)\\
\mathbf{elif}\;x.im \leq 3.8 \cdot 10^{-81}:\\
\;\;\;\;\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{1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_2} \cdot \sin \left(t\_1 - y.im \cdot t\_3\right)\\
\end{array}
\end{array}
if x.im < -3.8999999999999999e-198Initial program 35.7%
Taylor expanded in x.im around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified67.9%
if -3.8999999999999999e-198 < x.im < 3.7999999999999999e-81Initial program 51.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.5%
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.f6470.5%
Simplified70.5%
Taylor expanded in y.im around 0
Simplified64.1%
if 3.7999999999999999e-81 < x.im Initial program 33.7%
Taylor expanded in x.im around inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified72.2%
Final simplification68.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (/ -1.0 x.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* (atan2 x.im x.re) y.im)))
(if (<= x.im -3.9e-198)
(* (exp (- 0.0 (+ t_2 (* y.re t_0)))) (sin (- t_1 (* y.im t_0))))
(if (<= x.im 9.2e-85)
(/
(sin
(*
y.im
(+ (log (hypot x.im x.re)) (* y.re (/ (atan2 x.im x.re) y.im)))))
(/ 1.0 (pow (hypot x.re x.im) y.re)))
(* (+ t_1 (* y.im (log x.im))) (/ (pow x.im y.re) (exp t_2)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log((-1.0 / x_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (x_46_im <= -3.9e-198) {
tmp = exp((0.0 - (t_2 + (y_46_re * t_0)))) * sin((t_1 - (y_46_im * t_0)));
} else if (x_46_im <= 9.2e-85) {
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))))) / (1.0 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = (t_1 + (y_46_im * log(x_46_im))) * (pow(x_46_im, y_46_re) / exp(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((-1.0 / x_46_im));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if (x_46_im <= -3.9e-198) {
tmp = Math.exp((0.0 - (t_2 + (y_46_re * t_0)))) * Math.sin((t_1 - (y_46_im * t_0)));
} else if (x_46_im <= 9.2e-85) {
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))))) / (1.0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = (t_1 + (y_46_im * Math.log(x_46_im))) * (Math.pow(x_46_im, y_46_re) / Math.exp(t_2));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log((-1.0 / x_46_im)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.atan2(x_46_im, x_46_re) * y_46_im tmp = 0 if x_46_im <= -3.9e-198: tmp = math.exp((0.0 - (t_2 + (y_46_re * t_0)))) * math.sin((t_1 - (y_46_im * t_0))) elif x_46_im <= 9.2e-85: 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))))) / (1.0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = (t_1 + (y_46_im * math.log(x_46_im))) * (math.pow(x_46_im, y_46_re) / math.exp(t_2)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(Float64(-1.0 / x_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if (x_46_im <= -3.9e-198) tmp = Float64(exp(Float64(0.0 - Float64(t_2 + Float64(y_46_re * t_0)))) * sin(Float64(t_1 - Float64(y_46_im * t_0)))); elseif (x_46_im <= 9.2e-85) 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(1.0 / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(Float64(t_1 + Float64(y_46_im * log(x_46_im))) * Float64((x_46_im ^ y_46_re) / exp(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((-1.0 / x_46_im)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = atan2(x_46_im, x_46_re) * y_46_im; tmp = 0.0; if (x_46_im <= -3.9e-198) tmp = exp((0.0 - (t_2 + (y_46_re * t_0)))) * sin((t_1 - (y_46_im * t_0))); elseif (x_46_im <= 9.2e-85) 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))))) / (1.0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = (t_1 + (y_46_im * log(x_46_im))) * ((x_46_im ^ y_46_re) / exp(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[(-1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[x$46$im, -3.9e-198], N[(N[Exp[N[(0.0 - N[(t$95$2 + N[(y$46$re * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 9.2e-85], 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[(1.0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$1 + N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[x$46$im, y$46$re], $MachinePrecision] / N[Exp[t$95$2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\frac{-1}{x.im}\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;x.im \leq -3.9 \cdot 10^{-198}:\\
\;\;\;\;e^{0 - \left(t\_2 + y.re \cdot t\_0\right)} \cdot \sin \left(t\_1 - y.im \cdot t\_0\right)\\
\mathbf{elif}\;x.im \leq 9.2 \cdot 10^{-85}:\\
\;\;\;\;\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{1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;\left(t\_1 + y.im \cdot \log x.im\right) \cdot \frac{{x.im}^{y.re}}{e^{t\_2}}\\
\end{array}
\end{array}
if x.im < -3.8999999999999999e-198Initial program 35.7%
Taylor expanded in x.im around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified67.9%
if -3.8999999999999999e-198 < x.im < 9.2000000000000001e-85Initial program 51.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.5%
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.f6470.5%
Simplified70.5%
Taylor expanded in y.im around 0
Simplified64.1%
if 9.2000000000000001e-85 < x.im Initial program 33.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.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.f6468.5%
Simplified68.5%
Taylor expanded in x.re around 0
associate-/l*N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
Simplified64.6%
Taylor expanded in y.re around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6467.8%
Simplified67.8%
Final simplification66.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.im (log (hypot x.im x.re)))))
(t_1 (exp (* (atan2 x.im x.re) y.im)))
(t_2 (* y.re (atan2 x.im x.re))))
(if (<= y.re -1.6e-68)
(* (sin t_2) (pow (hypot x.im x.re) y.re))
(if (<= y.re 1.52e-59)
(/ t_0 t_1)
(if (<= y.re 1.05e+28)
(* (+ t_2 (* y.im (log x.im))) (/ (pow x.im y.re) t_1))
(* (pow (sqrt (+ (* x.re x.re) (* x.im x.im))) y.re) t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -1.6e-68) {
tmp = sin(t_2) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.52e-59) {
tmp = t_0 / t_1;
} else if (y_46_re <= 1.05e+28) {
tmp = (t_2 + (y_46_im * log(x_46_im))) * (pow(x_46_im, y_46_re) / t_1);
} else {
tmp = pow(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_1 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -1.6e-68) {
tmp = Math.sin(t_2) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 1.52e-59) {
tmp = t_0 / t_1;
} else if (y_46_re <= 1.05e+28) {
tmp = (t_2 + (y_46_im * Math.log(x_46_im))) * (Math.pow(x_46_im, y_46_re) / t_1);
} else {
tmp = Math.pow(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) t_1 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_re <= -1.6e-68: tmp = math.sin(t_2) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 1.52e-59: tmp = t_0 / t_1 elif y_46_re <= 1.05e+28: tmp = (t_2 + (y_46_im * math.log(x_46_im))) * (math.pow(x_46_im, y_46_re) / t_1) else: tmp = math.pow(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_1 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -1.6e-68) tmp = Float64(sin(t_2) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 1.52e-59) tmp = Float64(t_0 / t_1); elseif (y_46_re <= 1.05e+28) tmp = Float64(Float64(t_2 + Float64(y_46_im * log(x_46_im))) * Float64((x_46_im ^ y_46_re) / t_1)); else tmp = Float64((sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) ^ y_46_re) * t_0); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); 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); tmp = 0.0; if (y_46_re <= -1.6e-68) tmp = sin(t_2) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 1.52e-59) tmp = t_0 / t_1; elseif (y_46_re <= 1.05e+28) tmp = (t_2 + (y_46_im * log(x_46_im))) * ((x_46_im ^ y_46_re) / t_1); else tmp = (sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) ^ y_46_re) * t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.6e-68], N[(N[Sin[t$95$2], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.52e-59], N[(t$95$0 / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 1.05e+28], N[(N[(t$95$2 + N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[x$46$im, y$46$re], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision] * t$95$0), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
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}\\
\mathbf{if}\;y.re \leq -1.6 \cdot 10^{-68}:\\
\;\;\;\;\sin t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.52 \cdot 10^{-59}:\\
\;\;\;\;\frac{t\_0}{t\_1}\\
\mathbf{elif}\;y.re \leq 1.05 \cdot 10^{+28}:\\
\;\;\;\;\left(t\_2 + y.im \cdot \log x.im\right) \cdot \frac{{x.im}^{y.re}}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;{\left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}^{y.re} \cdot t\_0\\
\end{array}
\end{array}
if y.re < -1.5999999999999999e-68Initial program 38.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.f6472.9%
Simplified72.9%
if -1.5999999999999999e-68 < y.re < 1.51999999999999998e-59Initial program 46.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified81.2%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6463.4%
Simplified63.4%
if 1.51999999999999998e-59 < y.re < 1.04999999999999995e28Initial program 33.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified60.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.f6466.7%
Simplified66.7%
Taylor expanded in x.re around 0
associate-/l*N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
Simplified50.0%
Taylor expanded in y.re around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6456.6%
Simplified56.6%
if 1.04999999999999995e28 < y.re Initial program 29.9%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6462.8%
Simplified62.8%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.8%
Simplified62.8%
Final simplification65.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.im (log (hypot x.im x.re))))))
(if (<= y.re -8.8e-68)
(* (sin (* y.re (atan2 x.im x.re))) (pow (hypot x.im x.re) y.re))
(if (<= y.re 8.8e+33)
(/ t_0 (exp (* (atan2 x.im x.re) y.im)))
(* (pow (sqrt (+ (* x.re x.re) (* x.im x.im))) y.re) t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double tmp;
if (y_46_re <= -8.8e-68) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 8.8e+33) {
tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = pow(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double tmp;
if (y_46_re <= -8.8e-68) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 8.8e+33) {
tmp = t_0 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = Math.pow(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) tmp = 0 if y_46_re <= -8.8e-68: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 8.8e+33: tmp = t_0 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) else: tmp = math.pow(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) * t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) tmp = 0.0 if (y_46_re <= -8.8e-68) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 8.8e+33) tmp = Float64(t_0 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); else tmp = Float64((sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) ^ y_46_re) * t_0); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); tmp = 0.0; if (y_46_re <= -8.8e-68) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 8.8e+33) tmp = t_0 / exp((atan2(x_46_im, x_46_re) * y_46_im)); else tmp = (sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) ^ y_46_re) * t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -8.8e-68], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 8.8e+33], N[(t$95$0 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Power[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision] * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{if}\;y.re \leq -8.8 \cdot 10^{-68}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 8.8 \cdot 10^{+33}:\\
\;\;\;\;\frac{t\_0}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}^{y.re} \cdot t\_0\\
\end{array}
\end{array}
if y.re < -8.80000000000000009e-68Initial program 38.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.f6472.9%
Simplified72.9%
if -8.80000000000000009e-68 < y.re < 8.79999999999999975e33Initial program 43.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified77.3%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.3%
Simplified58.3%
if 8.79999999999999975e33 < y.re Initial program 31.3%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6464.1%
Simplified64.1%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.1%
Simplified64.1%
Final simplification63.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -1.45e-68)
(* t_0 (pow (hypot x.im x.re) y.re))
(if (<= y.re 5.7e-55)
(/
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) y.im)))
(* t_0 (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -1.45e-68) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5.7e-55) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = t_0 * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -1.45e-68) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5.7e-55) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = t_0 * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -1.45e-68: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 5.7e-55: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) else: tmp = t_0 * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -1.45e-68) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 5.7e-55) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); else tmp = Float64(t_0 * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -1.45e-68) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 5.7e-55) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); else tmp = t_0 * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -1.45e-68], 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, 5.7e-55], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -1.45 \cdot 10^{-68}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 5.7 \cdot 10^{-55}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -1.45e-68Initial program 38.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.f6472.9%
Simplified72.9%
if -1.45e-68 < y.re < 5.7000000000000002e-55Initial program 45.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified80.4%
Taylor expanded in y.re around 0
/-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.f6462.8%
Simplified62.8%
if 5.7000000000000002e-55 < y.re Initial program 30.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.f6453.3%
Simplified53.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.f6454.5%
Applied egg-rr54.5%
Final simplification63.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -1.36e-68)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.re 5.2e-78)
(/ (* (log (sqrt t_0)) y.im) (exp (* (atan2 x.im x.re) y.im)))
(* 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 tmp;
if (y_46_re <= -1.36e-68) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5.2e-78) {
tmp = (log(sqrt(t_0)) * y_46_im) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} 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 tmp;
if (y_46_re <= -1.36e-68) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 5.2e-78) {
tmp = (Math.log(Math.sqrt(t_0)) * y_46_im) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} 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))) tmp = 0 if y_46_re <= -1.36e-68: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 5.2e-78: tmp = (math.log(math.sqrt(t_0)) * y_46_im) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) 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))) tmp = 0.0 if (y_46_re <= -1.36e-68) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 5.2e-78) tmp = Float64(Float64(log(sqrt(t_0)) * y_46_im) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); 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))); tmp = 0.0; if (y_46_re <= -1.36e-68) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 5.2e-78) tmp = (log(sqrt(t_0)) * y_46_im) / exp((atan2(x_46_im, x_46_re) * y_46_im)); 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]}, If[LessEqual[y$46$re, -1.36e-68], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.2e-78], N[(N[(N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $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)\\
\mathbf{if}\;y.re \leq -1.36 \cdot 10^{-68}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 5.2 \cdot 10^{-78}:\\
\;\;\;\;\frac{\log \left(\sqrt{t\_0}\right) \cdot y.im}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.re < -1.36000000000000003e-68Initial program 38.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.f6472.9%
Simplified72.9%
if -1.36000000000000003e-68 < y.re < 5.2000000000000002e-78Initial program 46.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified79.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.f6483.4%
Simplified83.4%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6447.1%
Simplified47.1%
if 5.2000000000000002e-78 < y.re Initial program 31.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.f6452.2%
Simplified52.2%
*-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.f6453.1%
Applied egg-rr53.1%
Final simplification56.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (sin t_1)))
(if (<= y.im -1.36e+144)
(/ t_2 (pow t_0 (/ y.re -2.0)))
(if (<= y.im 1.2e+97)
(* t_2 (pow (hypot x.im x.re) y.re))
(* t_1 (pow (sqrt t_0) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1);
double tmp;
if (y_46_im <= -1.36e+144) {
tmp = t_2 / pow(t_0, (y_46_re / -2.0));
} else if (y_46_im <= 1.2e+97) {
tmp = t_2 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1 * pow(sqrt(t_0), 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 = (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);
double tmp;
if (y_46_im <= -1.36e+144) {
tmp = t_2 / Math.pow(t_0, (y_46_re / -2.0));
} else if (y_46_im <= 1.2e+97) {
tmp = t_2 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_1 * Math.pow(Math.sqrt(t_0), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) tmp = 0 if y_46_im <= -1.36e+144: tmp = t_2 / math.pow(t_0, (y_46_re / -2.0)) elif y_46_im <= 1.2e+97: tmp = t_2 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = t_1 * math.pow(math.sqrt(t_0), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = sin(t_1) tmp = 0.0 if (y_46_im <= -1.36e+144) tmp = Float64(t_2 / (t_0 ^ Float64(y_46_re / -2.0))); elseif (y_46_im <= 1.2e+97) tmp = Float64(t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(t_1 * (sqrt(t_0) ^ 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 = (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); tmp = 0.0; if (y_46_im <= -1.36e+144) tmp = t_2 / (t_0 ^ (y_46_re / -2.0)); elseif (y_46_im <= 1.2e+97) tmp = t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = t_1 * (sqrt(t_0) ^ 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[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, If[LessEqual[y$46$im, -1.36e+144], N[(t$95$2 / N[Power[t$95$0, N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.2e+97], N[(t$95$2 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Power[N[Sqrt[t$95$0], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1\\
\mathbf{if}\;y.im \leq -1.36 \cdot 10^{+144}:\\
\;\;\;\;\frac{t\_2}{{t\_0}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.im \leq 1.2 \cdot 10^{+97}:\\
\;\;\;\;t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot {\left(\sqrt{t\_0}\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < -1.35999999999999993e144Initial program 35.4%
Applied egg-rr37.5%
Taylor expanded in y.im around 0
mul-1-negN/A
neg-lowering-neg.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.1%
Simplified41.1%
if -1.35999999999999993e144 < y.im < 1.2e97Initial 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.f6456.6%
Simplified56.6%
if 1.2e97 < y.im Initial program 34.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified57.2%
Taylor expanded in y.re around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified57.2%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6447.7%
Simplified47.7%
Final simplification50.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (sin t_1))
(t_3 (* t_2 (pow t_0 (/ y.re 2.0)))))
(if (<= y.im -4e+136)
(/ t_2 (pow t_0 (/ y.re -2.0)))
(if (<= y.im -6.8e-128)
t_3
(if (<= y.im 2.35e-69) (* t_1 (pow (hypot x.im x.re) y.re)) t_3)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = sin(t_1);
double t_3 = t_2 * pow(t_0, (y_46_re / 2.0));
double tmp;
if (y_46_im <= -4e+136) {
tmp = t_2 / pow(t_0, (y_46_re / -2.0));
} else if (y_46_im <= -6.8e-128) {
tmp = t_3;
} else if (y_46_im <= 2.35e-69) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} 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 = (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);
double t_3 = t_2 * Math.pow(t_0, (y_46_re / 2.0));
double tmp;
if (y_46_im <= -4e+136) {
tmp = t_2 / Math.pow(t_0, (y_46_re / -2.0));
} else if (y_46_im <= -6.8e-128) {
tmp = t_3;
} else if (y_46_im <= 2.35e-69) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_3;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.sin(t_1) t_3 = t_2 * math.pow(t_0, (y_46_re / 2.0)) tmp = 0 if y_46_im <= -4e+136: tmp = t_2 / math.pow(t_0, (y_46_re / -2.0)) elif y_46_im <= -6.8e-128: tmp = t_3 elif y_46_im <= 2.35e-69: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = t_3 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = sin(t_1) t_3 = Float64(t_2 * (t_0 ^ Float64(y_46_re / 2.0))) tmp = 0.0 if (y_46_im <= -4e+136) tmp = Float64(t_2 / (t_0 ^ Float64(y_46_re / -2.0))); elseif (y_46_im <= -6.8e-128) tmp = t_3; elseif (y_46_im <= 2.35e-69) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); 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 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = sin(t_1); t_3 = t_2 * (t_0 ^ (y_46_re / 2.0)); tmp = 0.0; if (y_46_im <= -4e+136) tmp = t_2 / (t_0 ^ (y_46_re / -2.0)); elseif (y_46_im <= -6.8e-128) tmp = t_3; elseif (y_46_im <= 2.35e-69) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); 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[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$1], $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4e+136], N[(t$95$2 / N[Power[t$95$0, N[(y$46$re / -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, -6.8e-128], t$95$3, If[LessEqual[y$46$im, 2.35e-69], N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sin t\_1\\
t_3 := t\_2 \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{if}\;y.im \leq -4 \cdot 10^{+136}:\\
\;\;\;\;\frac{t\_2}{{t\_0}^{\left(\frac{y.re}{-2}\right)}}\\
\mathbf{elif}\;y.im \leq -6.8 \cdot 10^{-128}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y.im \leq 2.35 \cdot 10^{-69}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y.im < -4.00000000000000023e136Initial program 34.0%
Applied egg-rr38.0%
Taylor expanded in y.im around 0
mul-1-negN/A
neg-lowering-neg.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6441.5%
Simplified41.5%
if -4.00000000000000023e136 < y.im < -6.7999999999999995e-128 or 2.34999999999999984e-69 < y.im Initial program 38.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.f6442.6%
Simplified42.6%
*-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.f6449.5%
Applied egg-rr49.5%
if -6.7999999999999995e-128 < y.im < 2.34999999999999984e-69Initial 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.f6466.3%
Simplified66.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6468.4%
Simplified68.4%
Final simplification51.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* (sin t_0) (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))))
(if (<= y.im -4.2e-128)
t_1
(if (<= y.im 4.8e-71) (* 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 = sin(t_0) * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
double tmp;
if (y_46_im <= -4.2e-128) {
tmp = t_1;
} else if (y_46_im <= 4.8e-71) {
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 = Math.sin(t_0) * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
double tmp;
if (y_46_im <= -4.2e-128) {
tmp = t_1;
} else if (y_46_im <= 4.8e-71) {
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 = math.sin(t_0) * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) tmp = 0 if y_46_im <= -4.2e-128: tmp = t_1 elif y_46_im <= 4.8e-71: 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(sin(t_0) * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))) tmp = 0.0 if (y_46_im <= -4.2e-128) tmp = t_1; elseif (y_46_im <= 4.8e-71) 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 = sin(t_0) * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); tmp = 0.0; if (y_46_im <= -4.2e-128) tmp = t_1; elseif (y_46_im <= 4.8e-71) 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[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4.2e-128], t$95$1, If[LessEqual[y$46$im, 4.8e-71], 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 := \sin t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{if}\;y.im \leq -4.2 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 4.8 \cdot 10^{-71}:\\
\;\;\;\;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.2000000000000002e-128 or 4.8e-71 < y.im Initial program 37.3%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6437.5%
Simplified37.5%
*-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.f6444.6%
Applied egg-rr44.6%
if -4.2000000000000002e-128 < y.im < 4.8e-71Initial 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.f6466.3%
Simplified66.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6468.4%
Simplified68.4%
Final simplification51.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.im 1e+72)
(* t_0 (pow (sqrt (+ (* x.re x.re) (* x.im x.im))) y.re))
(if (<= x.im 5.3e+198)
(* (sin t_0) (pow x.im y.re))
(/ (* y.im (log x.im)) (exp (* (atan2 x.im x.re) y.im)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_im <= 1e+72) {
tmp = t_0 * pow(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re);
} else if (x_46_im <= 5.3e+198) {
tmp = sin(t_0) * pow(x_46_im, y_46_re);
} else {
tmp = (y_46_im * log(x_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
if (x_46im <= 1d+72) then
tmp = t_0 * (sqrt(((x_46re * x_46re) + (x_46im * x_46im))) ** y_46re)
else if (x_46im <= 5.3d+198) then
tmp = sin(t_0) * (x_46im ** y_46re)
else
tmp = (y_46im * log(x_46im)) / exp((atan2(x_46im, x_46re) * y_46im))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_im <= 1e+72) {
tmp = t_0 * Math.pow(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re);
} else if (x_46_im <= 5.3e+198) {
tmp = Math.sin(t_0) * Math.pow(x_46_im, y_46_re);
} else {
tmp = (y_46_im * Math.log(x_46_im)) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_im <= 1e+72: tmp = t_0 * math.pow(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) elif x_46_im <= 5.3e+198: tmp = math.sin(t_0) * math.pow(x_46_im, y_46_re) else: tmp = (y_46_im * math.log(x_46_im)) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_im <= 1e+72) tmp = Float64(t_0 * (sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) ^ y_46_re)); elseif (x_46_im <= 5.3e+198) tmp = Float64(sin(t_0) * (x_46_im ^ y_46_re)); else tmp = Float64(Float64(y_46_im * log(x_46_im)) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_im <= 1e+72) tmp = t_0 * (sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) ^ y_46_re); elseif (x_46_im <= 5.3e+198) tmp = sin(t_0) * (x_46_im ^ y_46_re); else tmp = (y_46_im * log(x_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$im, 1e+72], N[(t$95$0 * N[Power[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 5.3e+198], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.im \leq 10^{+72}:\\
\;\;\;\;t\_0 \cdot {\left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}^{y.re}\\
\mathbf{elif}\;x.im \leq 5.3 \cdot 10^{+198}:\\
\;\;\;\;\sin t\_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.im \cdot \log x.im}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\end{array}
\end{array}
if x.im < 9.99999999999999944e71Initial program 43.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified67.5%
Taylor expanded in y.re around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified66.3%
Taylor expanded in y.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.0%
Simplified45.0%
if 9.99999999999999944e71 < x.im < 5.30000000000000024e198Initial program 40.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6461.9%
Simplified61.9%
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.f6461.9%
Simplified61.9%
if 5.30000000000000024e198 < x.im Initial program 0.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.6%
Simplified66.6%
Taylor expanded in x.re around 0
associate-/l*N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
Simplified66.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.2%
Simplified67.2%
Final simplification49.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (sin (* y.re (atan2 x.im x.re))) (pow x.im y.re))))
(if (<= y.re -0.042)
t_0
(if (<= y.re 1.85e-5) (* y.re (log (exp (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 = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -0.042) {
tmp = t_0;
} else if (y_46_re <= 1.85e-5) {
tmp = y_46_re * log(exp(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 = sin((y_46re * atan2(x_46im, x_46re))) * (x_46im ** y_46re)
if (y_46re <= (-0.042d0)) then
tmp = t_0
else if (y_46re <= 1.85d-5) then
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -0.042) {
tmp = t_0;
} else if (y_46_re <= 1.85e-5) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(x_46_im, y_46_re) tmp = 0 if y_46_re <= -0.042: tmp = t_0 elif y_46_re <= 1.85e-5: tmp = y_46_re * math.log(math.exp(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(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (x_46_im ^ y_46_re)) tmp = 0.0 if (y_46_re <= -0.042) tmp = t_0; elseif (y_46_re <= 1.85e-5) tmp = Float64(y_46_re * log(exp(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 = sin((y_46_re * atan2(x_46_im, x_46_re))) * (x_46_im ^ y_46_re); tmp = 0.0; if (y_46_re <= -0.042) tmp = t_0; elseif (y_46_re <= 1.85e-5) tmp = y_46_re * log(exp(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[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -0.042], t$95$0, If[LessEqual[y$46$re, 1.85e-5], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {x.im}^{y.re}\\
\mathbf{if}\;y.re \leq -0.042:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 1.85 \cdot 10^{-5}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -0.0420000000000000026 or 1.84999999999999991e-5 < y.re Initial program 34.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.f6465.3%
Simplified65.3%
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.f6457.5%
Simplified57.5%
if -0.0420000000000000026 < y.re < 1.84999999999999991e-5Initial 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.f6423.7%
Simplified23.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6423.0%
Simplified23.0%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6425.3%
Applied egg-rr25.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im 5.2e+198) (* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re)) (/ (* y.im (log x.im)) (exp (* (atan2 x.im x.re) y.im)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 5.2e+198) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = (y_46_im * log(x_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= 5.2e+198) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = (y_46_im * Math.log(x_46_im)) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_im <= 5.2e+198: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = (y_46_im * math.log(x_46_im)) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= 5.2e+198) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(Float64(y_46_im * log(x_46_im)) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_im <= 5.2e+198) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = (y_46_im * log(x_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$im, 5.2e+198], N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq 5.2 \cdot 10^{+198}:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.im \cdot \log x.im}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\end{array}
\end{array}
if x.im < 5.19999999999999961e198Initial program 42.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.2%
Simplified46.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6444.8%
Simplified44.8%
if 5.19999999999999961e198 < x.im Initial program 0.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified70.8%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6466.6%
Simplified66.6%
Taylor expanded in x.re around 0
associate-/l*N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
Simplified66.6%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6467.2%
Simplified67.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.im 1e-63)
(* t_0 (pow (hypot x.im x.re) y.re))
(* (sin t_0) (pow x.im y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_im <= 1e-63) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin(t_0) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_im <= 1e-63) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.sin(t_0) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_im <= 1e-63: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.sin(t_0) * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_im <= 1e-63) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(t_0) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_im <= 1e-63) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = sin(t_0) * (x_46_im ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$im, 1e-63], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.im \leq 10^{-63}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < 1.00000000000000007e-63Initial program 41.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.f6444.3%
Simplified44.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6442.9%
Simplified42.9%
if 1.00000000000000007e-63 < x.im Initial program 33.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.f6448.1%
Simplified48.1%
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.f6449.3%
Simplified49.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= x.re 8e-307)
(*
y.re
(*
(atan2 x.im x.re)
(+ (* y.re (* (log (+ (* x.re x.re) (* x.im x.im))) 0.5)) 1.0)))
(* y.re (log (exp (atan2 x.im x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 8e-307) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * (log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0));
} else {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46re <= 8d-307) then
tmp = y_46re * (atan2(x_46im, x_46re) * ((y_46re * (log(((x_46re * x_46re) + (x_46im * x_46im))) * 0.5d0)) + 1.0d0))
else
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 8e-307) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * ((y_46_re * (Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0));
} else {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 8e-307: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * ((y_46_re * (math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0)) else: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 8e-307) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(Float64(y_46_re * Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) * 0.5)) + 1.0))); else tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 8e-307) tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * (log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0)); else tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 8e-307], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(N[(y$46$re * N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 8 \cdot 10^{-307}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(y.re \cdot \left(\log \left(x.re \cdot x.re + x.im \cdot x.im\right) \cdot 0.5\right) + 1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\end{array}
\end{array}
if x.re < 7.99999999999999927e-307Initial program 42.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.6%
Simplified45.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6425.6%
Simplified25.6%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr25.6%
if 7.99999999999999927e-307 < x.re Initial program 35.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.f6445.7%
Simplified45.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6410.0%
Simplified10.0%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6420.6%
Applied egg-rr20.6%
Final simplification23.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (* (atan2 x.im x.re) (+ (* y.re (* (log (+ (* x.re x.re) (* x.im x.im))) 0.5)) 1.0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * (log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * (atan2(x_46im, x_46re) * ((y_46re * (log(((x_46re * x_46re) + (x_46im * x_46im))) * 0.5d0)) + 1.0d0))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (Math.atan2(x_46_im, x_46_re) * ((y_46_re * (Math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * (math.atan2(x_46_im, x_46_re) * ((y_46_re * (math.log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(Float64(y_46_re * Float64(log(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) * 0.5)) + 1.0))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * (log(((x_46_re * x_46_re) + (x_46_im * x_46_im))) * 0.5)) + 1.0)); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(N[(y$46$re * N[(N[Log[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(y.re \cdot \left(\log \left(x.re \cdot x.re + x.im \cdot x.im\right) \cdot 0.5\right) + 1\right)\right)
\end{array}
Initial program 38.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.f6445.6%
Simplified45.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6419.1%
Simplified19.1%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr19.1%
Final simplification19.1%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.im -5e-310) (* y.re (* (atan2 x.im x.re) (+ (* y.re (log (- 0.0 x.im))) 1.0))) (* y.re (atan2 x.im x.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -5e-310) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * log((0.0 - x_46_im))) + 1.0));
} else {
tmp = y_46_re * atan2(x_46_im, x_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46im <= (-5d-310)) then
tmp = y_46re * (atan2(x_46im, x_46re) * ((y_46re * log((0.0d0 - x_46im))) + 1.0d0))
else
tmp = y_46re * atan2(x_46im, x_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_im <= -5e-310) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * ((y_46_re * Math.log((0.0 - x_46_im))) + 1.0));
} else {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_im <= -5e-310: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * ((y_46_re * math.log((0.0 - x_46_im))) + 1.0)) else: tmp = y_46_re * math.atan2(x_46_im, x_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_im <= -5e-310) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(Float64(y_46_re * log(Float64(0.0 - x_46_im))) + 1.0))); else tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_im <= -5e-310) tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * log((0.0 - x_46_im))) + 1.0)); else tmp = y_46_re * atan2(x_46_im, x_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$im, -5e-310], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(N[(y$46$re * N[Log[N[(0.0 - x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.im \leq -5 \cdot 10^{-310}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(y.re \cdot \log \left(0 - x.im\right) + 1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\end{array}
\end{array}
if x.im < -4.999999999999985e-310Initial program 37.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.5%
Simplified45.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6418.9%
Simplified18.9%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f6417.8%
Simplified17.8%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr17.8%
if -4.999999999999985e-310 < x.im Initial program 39.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.f6445.8%
Simplified45.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6413.2%
Simplified13.2%
Final simplification15.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.im -2.2e-78) (* y.re (* y.re (* (atan2 x.im x.re) (log (- 0.0 x.im))))) (* y.re (atan2 x.im x.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= -2.2e-78) {
tmp = y_46_re * (y_46_re * (atan2(x_46_im, x_46_re) * log((0.0 - x_46_im))));
} else {
tmp = y_46_re * atan2(x_46_im, x_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46im <= (-2.2d-78)) then
tmp = y_46re * (y_46re * (atan2(x_46im, x_46re) * log((0.0d0 - x_46im))))
else
tmp = y_46re * atan2(x_46im, x_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= -2.2e-78) {
tmp = y_46_re * (y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.log((0.0 - x_46_im))));
} else {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= -2.2e-78: tmp = y_46_re * (y_46_re * (math.atan2(x_46_im, x_46_re) * math.log((0.0 - x_46_im)))) else: tmp = y_46_re * math.atan2(x_46_im, x_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_im <= -2.2e-78) tmp = Float64(y_46_re * Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * log(Float64(0.0 - x_46_im))))); else tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_im <= -2.2e-78) tmp = y_46_re * (y_46_re * (atan2(x_46_im, x_46_re) * log((0.0 - x_46_im)))); else tmp = y_46_re * atan2(x_46_im, x_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$im, -2.2e-78], N[(y$46$re * N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Log[N[(0.0 - x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -2.2 \cdot 10^{-78}:\\
\;\;\;\;y.re \cdot \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \log \left(0 - x.im\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\end{array}
\end{array}
if y.im < -2.1999999999999999e-78Initial program 33.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.f6433.7%
Simplified33.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
atan2-lowering-atan2.f6413.2%
Simplified13.2%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f646.8%
Simplified6.8%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
neg-sub0N/A
--lowering--.f64N/A
atan2-lowering-atan2.f6413.0%
Simplified13.0%
if -2.1999999999999999e-78 < y.im Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6452.3%
Simplified52.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6416.6%
Simplified16.6%
Final simplification15.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 38.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.f6445.6%
Simplified45.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.5%
Simplified12.5%
herbie shell --seed 2024155
(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)))))