
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1 (sin (* y.im t_0)))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (exp (* y.im (atan2 x.im x.re))))
(t_4 (/ t_3 (pow (hypot x.re x.im) y.re))))
(if (<= y.re -430.0)
(* t_2 (pow (hypot x.im x.re) y.re))
(if (<= y.re 0.00012)
(/ (sin (* y.im (+ t_0 (* y.re (/ (atan2 x.im x.re) y.im))))) t_4)
(if (<= y.re 8.2e+48)
(/ t_1 t_3)
(if (<= y.re 2.2e+223) (/ t_1 t_4) (* (sin t_2) (pow x.re y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = sin((y_46_im * t_0));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = exp((y_46_im * atan2(x_46_im, x_46_re)));
double t_4 = t_3 / pow(hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -430.0) {
tmp = t_2 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 0.00012) {
tmp = sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / t_4;
} else if (y_46_re <= 8.2e+48) {
tmp = t_1 / t_3;
} else if (y_46_re <= 2.2e+223) {
tmp = t_1 / t_4;
} else {
tmp = sin(t_2) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.sin((y_46_im * t_0));
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = Math.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
double t_4 = t_3 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -430.0) {
tmp = t_2 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 0.00012) {
tmp = Math.sin((y_46_im * (t_0 + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im))))) / t_4;
} else if (y_46_re <= 8.2e+48) {
tmp = t_1 / t_3;
} else if (y_46_re <= 2.2e+223) {
tmp = t_1 / t_4;
} else {
tmp = Math.sin(t_2) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) t_1 = math.sin((y_46_im * t_0)) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) t_4 = t_3 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re) tmp = 0 if y_46_re <= -430.0: tmp = t_2 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 0.00012: tmp = math.sin((y_46_im * (t_0 + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) / t_4 elif y_46_re <= 8.2e+48: tmp = t_1 / t_3 elif y_46_re <= 2.2e+223: tmp = t_1 / t_4 else: tmp = math.sin(t_2) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = sin(Float64(y_46_im * t_0)) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = exp(Float64(y_46_im * atan(x_46_im, x_46_re))) t_4 = Float64(t_3 / (hypot(x_46_re, x_46_im) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -430.0) tmp = Float64(t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 0.00012) tmp = Float64(sin(Float64(y_46_im * Float64(t_0 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) / t_4); elseif (y_46_re <= 8.2e+48) tmp = Float64(t_1 / t_3); elseif (y_46_re <= 2.2e+223) tmp = Float64(t_1 / t_4); else tmp = Float64(sin(t_2) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); t_1 = sin((y_46_im * t_0)); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = exp((y_46_im * atan2(x_46_im, x_46_re))); t_4 = t_3 / (hypot(x_46_re, x_46_im) ^ y_46_re); tmp = 0.0; if (y_46_re <= -430.0) tmp = t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 0.00012) tmp = sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) / t_4; elseif (y_46_re <= 8.2e+48) tmp = t_1 / t_3; elseif (y_46_re <= 2.2e+223) tmp = t_1 / t_4; else tmp = sin(t_2) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Exp[N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -430.0], N[(t$95$2 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 0.00012], N[(N[Sin[N[(y$46$im * N[(t$95$0 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$4), $MachinePrecision], If[LessEqual[y$46$re, 8.2e+48], N[(t$95$1 / t$95$3), $MachinePrecision], If[LessEqual[y$46$re, 2.2e+223], N[(t$95$1 / t$95$4), $MachinePrecision], N[(N[Sin[t$95$2], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := \sin \left(y.im \cdot t\_0\right)\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := e^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
t_4 := \frac{t\_3}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}\\
\mathbf{if}\;y.re \leq -430:\\
\;\;\;\;t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 0.00012:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \left(t\_0 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)}{t\_4}\\
\mathbf{elif}\;y.re \leq 8.2 \cdot 10^{+48}:\\
\;\;\;\;\frac{t\_1}{t\_3}\\
\mathbf{elif}\;y.re \leq 2.2 \cdot 10^{+223}:\\
\;\;\;\;\frac{t\_1}{t\_4}\\
\mathbf{else}:\\
\;\;\;\;\sin t\_2 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -430Initial program 31.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.f6471.7%
Simplified71.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6478.0%
Simplified78.0%
if -430 < y.re < 1.20000000000000003e-4Initial program 36.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.4%
Taylor expanded in y.im around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6485.4%
Simplified85.4%
if 1.20000000000000003e-4 < y.re < 8.2000000000000005e48Initial program 62.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified37.5%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6488.8%
Simplified88.8%
if 8.2000000000000005e48 < y.re < 2.2e223Initial program 44.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.2%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.7%
Simplified66.7%
if 2.2e223 < y.re Initial 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.f6457.2%
Simplified57.2%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
Final simplification78.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (atan2 x.im x.re)))
(t_1 (* y.im (log (hypot x.im x.re))))
(t_2 (log (/ -1.0 x.re))))
(if (<= x.re -5e-15)
(*
(exp (- (* (- 0.0 y.re) t_2) t_0))
(sin (- (* y.re (atan2 x.im x.re)) (* t_2 y.im))))
(/
(+ (sin t_1) (* y.re (* (atan2 x.im x.re) (cos t_1))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * atan2(x_46_im, x_46_re);
double t_1 = y_46_im * log(hypot(x_46_im, x_46_re));
double t_2 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -5e-15) {
tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) - (t_2 * y_46_im)));
} else {
tmp = (sin(t_1) + (y_46_re * (atan2(x_46_im, x_46_re) * cos(t_1)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.atan2(x_46_im, x_46_re);
double t_1 = y_46_im * Math.log(Math.hypot(x_46_im, x_46_re));
double t_2 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -5e-15) {
tmp = Math.exp((((0.0 - y_46_re) * t_2) - t_0)) * Math.sin(((y_46_re * Math.atan2(x_46_im, x_46_re)) - (t_2 * y_46_im)));
} else {
tmp = (Math.sin(t_1) + (y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.cos(t_1)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.atan2(x_46_im, x_46_re) t_1 = y_46_im * math.log(math.hypot(x_46_im, x_46_re)) t_2 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -5e-15: tmp = math.exp((((0.0 - y_46_re) * t_2) - t_0)) * math.sin(((y_46_re * math.atan2(x_46_im, x_46_re)) - (t_2 * y_46_im))) else: tmp = (math.sin(t_1) + (y_46_re * (math.atan2(x_46_im, x_46_re) * math.cos(t_1)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * atan(x_46_im, x_46_re)) t_1 = Float64(y_46_im * log(hypot(x_46_im, x_46_re))) t_2 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -5e-15) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_2) - t_0)) * sin(Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) - Float64(t_2 * y_46_im)))); else tmp = Float64(Float64(sin(t_1) + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * cos(t_1)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * atan2(x_46_im, x_46_re); t_1 = y_46_im * log(hypot(x_46_im, x_46_re)); t_2 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -5e-15) tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) - (t_2 * y_46_im))); else tmp = (sin(t_1) + (y_46_re * (atan2(x_46_im, x_46_re) * cos(t_1)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -5e-15], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$2), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[Sin[t$95$1], $MachinePrecision] + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_2 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -5 \cdot 10^{-15}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_2 - t\_0} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re} - t\_2 \cdot y.im\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin t\_1 + y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \cos t\_1\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if x.re < -4.99999999999999999e-15Initial program 35.2%
Taylor expanded in x.re around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified81.9%
if -4.99999999999999999e-15 < x.re Initial program 38.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified69.9%
Taylor expanded in y.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
Simplified73.4%
Final simplification75.7%
(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 (* y.im (atan2 x.im x.re))))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (/ t_1 (pow (hypot x.re x.im) y.re))))
(if (<= y.re -1950.0)
(* t_2 (pow (hypot x.im x.re) y.re))
(if (<= y.re 0.00012)
(/ (sin (+ t_2 (* y.im (log (hypot x.re x.im))))) t_3)
(if (<= y.re 8.2e+48)
(/ t_0 t_1)
(if (<= y.re 4.5e+223) (/ t_0 t_3) (* (sin t_2) (pow x.re y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_1 = exp((y_46_im * atan2(x_46_im, x_46_re)));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = t_1 / pow(hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -1950.0) {
tmp = t_2 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 0.00012) {
tmp = sin((t_2 + (y_46_im * log(hypot(x_46_re, x_46_im))))) / t_3;
} else if (y_46_re <= 8.2e+48) {
tmp = t_0 / t_1;
} else if (y_46_re <= 4.5e+223) {
tmp = t_0 / t_3;
} else {
tmp = sin(t_2) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_1 = Math.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = t_1 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
double tmp;
if (y_46_re <= -1950.0) {
tmp = t_2 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_re <= 0.00012) {
tmp = Math.sin((t_2 + (y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))))) / t_3;
} else if (y_46_re <= 8.2e+48) {
tmp = t_0 / t_1;
} else if (y_46_re <= 4.5e+223) {
tmp = t_0 / t_3;
} else {
tmp = Math.sin(t_2) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) t_1 = math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = t_1 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re) tmp = 0 if y_46_re <= -1950.0: tmp = t_2 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_re <= 0.00012: tmp = math.sin((t_2 + (y_46_im * math.log(math.hypot(x_46_re, x_46_im))))) / t_3 elif y_46_re <= 8.2e+48: tmp = t_0 / t_1 elif y_46_re <= 4.5e+223: tmp = t_0 / t_3 else: tmp = math.sin(t_2) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_1 = exp(Float64(y_46_im * atan(x_46_im, x_46_re))) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = Float64(t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -1950.0) tmp = Float64(t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_re <= 0.00012) tmp = Float64(sin(Float64(t_2 + Float64(y_46_im * log(hypot(x_46_re, x_46_im))))) / t_3); elseif (y_46_re <= 8.2e+48) tmp = Float64(t_0 / t_1); elseif (y_46_re <= 4.5e+223) tmp = Float64(t_0 / t_3); else tmp = Float64(sin(t_2) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); t_1 = exp((y_46_im * atan2(x_46_im, x_46_re))); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re); tmp = 0.0; if (y_46_re <= -1950.0) tmp = t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_re <= 0.00012) tmp = sin((t_2 + (y_46_im * log(hypot(x_46_re, x_46_im))))) / t_3; elseif (y_46_re <= 8.2e+48) tmp = t_0 / t_1; elseif (y_46_re <= 4.5e+223) tmp = t_0 / t_3; else tmp = sin(t_2) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[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[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1950.0], N[(t$95$2 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 0.00012], N[(N[Sin[N[(t$95$2 + N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[y$46$re, 8.2e+48], N[(t$95$0 / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 4.5e+223], N[(t$95$0 / t$95$3), $MachinePrecision], N[(N[Sin[t$95$2], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $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^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := \frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}\\
\mathbf{if}\;y.re \leq -1950:\\
\;\;\;\;t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 0.00012:\\
\;\;\;\;\frac{\sin \left(t\_2 + y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\right)}{t\_3}\\
\mathbf{elif}\;y.re \leq 8.2 \cdot 10^{+48}:\\
\;\;\;\;\frac{t\_0}{t\_1}\\
\mathbf{elif}\;y.re \leq 4.5 \cdot 10^{+223}:\\
\;\;\;\;\frac{t\_0}{t\_3}\\
\mathbf{else}:\\
\;\;\;\;\sin t\_2 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -1950Initial program 31.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.f6471.7%
Simplified71.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6478.0%
Simplified78.0%
if -1950 < y.re < 1.20000000000000003e-4Initial program 36.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.4%
if 1.20000000000000003e-4 < y.re < 8.2000000000000005e48Initial program 62.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified37.5%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6488.8%
Simplified88.8%
if 8.2000000000000005e48 < y.re < 4.5e223Initial program 44.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.2%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6466.7%
Simplified66.7%
if 4.5e223 < y.re Initial 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.f6457.2%
Simplified57.2%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
Final simplification78.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (atan2 x.im x.re)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (/ 1.0 x.re)))
(t_3 (log (/ -1.0 x.re))))
(if (<= x.re -1.45e-71)
(* (exp (- (* (- 0.0 y.re) t_3) t_0)) (sin (- t_1 (* t_3 y.im))))
(if (<= x.re 5e-15)
(/
(sin (* y.im (log (hypot x.im x.re))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(* (exp (- (* (- 0.0 y.re) t_2) t_0)) (sin (- t_1 (* y.im t_2))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * atan2(x_46_im, x_46_re);
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log((1.0 / x_46_re));
double t_3 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -1.45e-71) {
tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_1 - (t_3 * y_46_im)));
} else if (x_46_re <= 5e-15) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.atan2(x_46_im, x_46_re);
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log((1.0 / x_46_re));
double t_3 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -1.45e-71) {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_0)) * Math.sin((t_1 - (t_3 * y_46_im)));
} else if (x_46_re <= 5e-15) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = Math.exp((((0.0 - y_46_re) * t_2) - t_0)) * Math.sin((t_1 - (y_46_im * t_2)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.atan2(x_46_im, x_46_re) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log((1.0 / x_46_re)) t_3 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -1.45e-71: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_0)) * math.sin((t_1 - (t_3 * y_46_im))) elif x_46_re <= 5e-15: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = math.exp((((0.0 - y_46_re) * t_2) - t_0)) * math.sin((t_1 - (y_46_im * t_2))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * atan(x_46_im, x_46_re)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(Float64(1.0 / x_46_re)) t_3 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -1.45e-71) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_0)) * sin(Float64(t_1 - Float64(t_3 * y_46_im)))); elseif (x_46_re <= 5e-15) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_2) - t_0)) * sin(Float64(t_1 - Float64(y_46_im * t_2)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * atan2(x_46_im, x_46_re); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log((1.0 / x_46_re)); t_3 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -1.45e-71) tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_1 - (t_3 * y_46_im))); elseif (x_46_re <= 5e-15) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $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[Log[N[(1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1.45e-71], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$3), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(t$95$3 * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 5e-15], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$2), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\frac{1}{x.re}\right)\\
t_3 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -1.45 \cdot 10^{-71}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_0} \cdot \sin \left(t\_1 - t\_3 \cdot y.im\right)\\
\mathbf{elif}\;x.re \leq 5 \cdot 10^{-15}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_2 - t\_0} \cdot \sin \left(t\_1 - y.im \cdot t\_2\right)\\
\end{array}
\end{array}
if x.re < -1.4499999999999999e-71Initial program 41.4%
Taylor expanded in x.re around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified80.6%
if -1.4499999999999999e-71 < x.re < 4.99999999999999999e-15Initial program 39.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified73.5%
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.f6471.1%
Simplified71.1%
if 4.99999999999999999e-15 < x.re Initial program 30.2%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified67.8%
Final simplification73.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (/ 1.0 x.re)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (/ -1.0 x.re)))
(t_3 (* y.im (atan2 x.im x.re)))
(t_4 (exp t_3))
(t_5 (/ (sin (* y.im (log (hypot x.im x.re)))) t_4)))
(if (<= x.re -3.5e-73)
(* (exp (- (* (- 0.0 y.re) t_2) t_3)) (sin (- t_1 (* t_2 y.im))))
(if (<= x.re -2.1e-201)
t_5
(if (<= x.re 3.2e-127)
(/ t_1 (/ t_4 (pow (hypot x.re x.im) y.re)))
(if (<= x.re 8.5e-10)
t_5
(*
(exp (- (* (- 0.0 y.re) t_0) t_3))
(sin (- t_1 (* y.im t_0))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log((1.0 / x_46_re));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log((-1.0 / x_46_re));
double t_3 = y_46_im * atan2(x_46_im, x_46_re);
double t_4 = exp(t_3);
double t_5 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_4;
double tmp;
if (x_46_re <= -3.5e-73) {
tmp = exp((((0.0 - y_46_re) * t_2) - t_3)) * sin((t_1 - (t_2 * y_46_im)));
} else if (x_46_re <= -2.1e-201) {
tmp = t_5;
} else if (x_46_re <= 3.2e-127) {
tmp = t_1 / (t_4 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (x_46_re <= 8.5e-10) {
tmp = t_5;
} else {
tmp = exp((((0.0 - y_46_re) * t_0) - t_3)) * sin((t_1 - (y_46_im * 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.log((1.0 / x_46_re));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log((-1.0 / x_46_re));
double t_3 = y_46_im * Math.atan2(x_46_im, x_46_re);
double t_4 = Math.exp(t_3);
double t_5 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_4;
double tmp;
if (x_46_re <= -3.5e-73) {
tmp = Math.exp((((0.0 - y_46_re) * t_2) - t_3)) * Math.sin((t_1 - (t_2 * y_46_im)));
} else if (x_46_re <= -2.1e-201) {
tmp = t_5;
} else if (x_46_re <= 3.2e-127) {
tmp = t_1 / (t_4 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (x_46_re <= 8.5e-10) {
tmp = t_5;
} else {
tmp = Math.exp((((0.0 - y_46_re) * t_0) - t_3)) * Math.sin((t_1 - (y_46_im * t_0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log((1.0 / x_46_re)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log((-1.0 / x_46_re)) t_3 = y_46_im * math.atan2(x_46_im, x_46_re) t_4 = math.exp(t_3) t_5 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_4 tmp = 0 if x_46_re <= -3.5e-73: tmp = math.exp((((0.0 - y_46_re) * t_2) - t_3)) * math.sin((t_1 - (t_2 * y_46_im))) elif x_46_re <= -2.1e-201: tmp = t_5 elif x_46_re <= 3.2e-127: tmp = t_1 / (t_4 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif x_46_re <= 8.5e-10: tmp = t_5 else: tmp = math.exp((((0.0 - y_46_re) * t_0) - t_3)) * math.sin((t_1 - (y_46_im * t_0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(Float64(1.0 / x_46_re)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(Float64(-1.0 / x_46_re)) t_3 = Float64(y_46_im * atan(x_46_im, x_46_re)) t_4 = exp(t_3) t_5 = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_4) tmp = 0.0 if (x_46_re <= -3.5e-73) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_2) - t_3)) * sin(Float64(t_1 - Float64(t_2 * y_46_im)))); elseif (x_46_re <= -2.1e-201) tmp = t_5; elseif (x_46_re <= 3.2e-127) tmp = Float64(t_1 / Float64(t_4 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (x_46_re <= 8.5e-10) tmp = t_5; else tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_0) - t_3)) * sin(Float64(t_1 - Float64(y_46_im * t_0)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log((1.0 / x_46_re)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log((-1.0 / x_46_re)); t_3 = y_46_im * atan2(x_46_im, x_46_re); t_4 = exp(t_3); t_5 = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_4; tmp = 0.0; if (x_46_re <= -3.5e-73) tmp = exp((((0.0 - y_46_re) * t_2) - t_3)) * sin((t_1 - (t_2 * y_46_im))); elseif (x_46_re <= -2.1e-201) tmp = t_5; elseif (x_46_re <= 3.2e-127) tmp = t_1 / (t_4 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (x_46_re <= 8.5e-10) tmp = t_5; else tmp = exp((((0.0 - y_46_re) * t_0) - t_3)) * sin((t_1 - (y_46_im * 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[Log[N[(1.0 / x$46$re), $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[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Exp[t$95$3], $MachinePrecision]}, Block[{t$95$5 = N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$4), $MachinePrecision]}, If[LessEqual[x$46$re, -3.5e-73], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$2), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(t$95$2 * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, -2.1e-201], t$95$5, If[LessEqual[x$46$re, 3.2e-127], N[(t$95$1 / 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[x$46$re, 8.5e-10], t$95$5, N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$0), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 - N[(y$46$im * t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\frac{1}{x.re}\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\frac{-1}{x.re}\right)\\
t_3 := y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_4 := e^{t\_3}\\
t_5 := \frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_4}\\
\mathbf{if}\;x.re \leq -3.5 \cdot 10^{-73}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_2 - t\_3} \cdot \sin \left(t\_1 - t\_2 \cdot y.im\right)\\
\mathbf{elif}\;x.re \leq -2.1 \cdot 10^{-201}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;x.re \leq 3.2 \cdot 10^{-127}:\\
\;\;\;\;\frac{t\_1}{\frac{t\_4}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;x.re \leq 8.5 \cdot 10^{-10}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_0 - t\_3} \cdot \sin \left(t\_1 - y.im \cdot t\_0\right)\\
\end{array}
\end{array}
if x.re < -3.4999999999999998e-73Initial program 41.4%
Taylor expanded in x.re around -inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified80.6%
if -3.4999999999999998e-73 < x.re < -2.10000000000000012e-201 or 3.20000000000000017e-127 < x.re < 8.4999999999999996e-10Initial program 41.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified74.1%
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.f6465.4%
Simplified65.4%
if -2.10000000000000012e-201 < x.re < 3.20000000000000017e-127Initial program 38.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified72.7%
Taylor expanded in y.re around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
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
Simplified81.2%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.7%
Simplified69.7%
if 8.4999999999999996e-10 < x.re Initial program 28.6%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified67.8%
Final simplification72.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* y.im (atan2 x.im x.re))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* t_1 (pow (hypot x.im x.re) y.re)))
(t_3 (sin t_1)))
(if (<= y.re -24000.0)
t_2
(if (<= y.re 9.8e-150)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_0)
(if (<= y.re 7.2e+56)
(/ t_3 (/ t_0 (pow (hypot x.re x.im) y.re)))
(if (<= y.re 9.5e+227) t_2 (* t_3 (pow x.re y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((y_46_im * atan2(x_46_im, x_46_re)));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
double t_3 = sin(t_1);
double tmp;
if (y_46_re <= -24000.0) {
tmp = t_2;
} else if (y_46_re <= 9.8e-150) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 7.2e+56) {
tmp = t_3 / (t_0 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 9.5e+227) {
tmp = t_2;
} else {
tmp = t_3 * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_3 = Math.sin(t_1);
double tmp;
if (y_46_re <= -24000.0) {
tmp = t_2;
} else if (y_46_re <= 9.8e-150) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_0;
} else if (y_46_re <= 7.2e+56) {
tmp = t_3 / (t_0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 9.5e+227) {
tmp = t_2;
} else {
tmp = t_3 * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_3 = math.sin(t_1) tmp = 0 if y_46_re <= -24000.0: tmp = t_2 elif y_46_re <= 9.8e-150: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_0 elif y_46_re <= 7.2e+56: tmp = t_3 / (t_0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif y_46_re <= 9.5e+227: tmp = t_2 else: tmp = t_3 * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(y_46_im * atan(x_46_im, x_46_re))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)) t_3 = sin(t_1) tmp = 0.0 if (y_46_re <= -24000.0) tmp = t_2; elseif (y_46_re <= 9.8e-150) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0); elseif (y_46_re <= 7.2e+56) tmp = Float64(t_3 / Float64(t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (y_46_re <= 9.5e+227) tmp = t_2; else tmp = Float64(t_3 * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((y_46_im * atan2(x_46_im, x_46_re))); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); t_3 = sin(t_1); tmp = 0.0; if (y_46_re <= -24000.0) tmp = t_2; elseif (y_46_re <= 9.8e-150) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0; elseif (y_46_re <= 7.2e+56) tmp = t_3 / (t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= 9.5e+227) tmp = t_2; else tmp = t_3 * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sin[t$95$1], $MachinePrecision]}, If[LessEqual[y$46$re, -24000.0], t$95$2, If[LessEqual[y$46$re, 9.8e-150], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[y$46$re, 7.2e+56], N[(t$95$3 / N[(t$95$0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 9.5e+227], t$95$2, N[(t$95$3 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_3 := \sin t\_1\\
\mathbf{if}\;y.re \leq -24000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 9.8 \cdot 10^{-150}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_0}\\
\mathbf{elif}\;y.re \leq 7.2 \cdot 10^{+56}:\\
\;\;\;\;\frac{t\_3}{\frac{t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;y.re \leq 9.5 \cdot 10^{+227}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -24000 or 7.19999999999999996e56 < y.re < 9.5000000000000005e227Initial program 36.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.f6461.7%
Simplified61.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6474.2%
Simplified74.2%
if -24000 < y.re < 9.7999999999999991e-150Initial program 31.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.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.f6475.8%
Simplified75.8%
if 9.7999999999999991e-150 < y.re < 7.19999999999999996e56Initial program 48.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified76.5%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.4%
Simplified64.4%
if 9.5000000000000005e227 < y.re Initial 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.f6457.2%
Simplified57.2%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
Final simplification71.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -23000.0)
t_1
(if (<= y.re 5.4e+49)
(/
(sin (* y.im (log (hypot x.im x.re))))
(exp (* y.im (atan2 x.im x.re))))
(if (<= y.re 9.2e+224) t_1 (* (sin t_0) (pow x.re y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -23000.0) {
tmp = t_1;
} else if (y_46_re <= 5.4e+49) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((y_46_im * atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 9.2e+224) {
tmp = t_1;
} else {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -23000.0) {
tmp = t_1;
} else if (y_46_re <= 5.4e+49) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 9.2e+224) {
tmp = t_1;
} else {
tmp = Math.sin(t_0) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -23000.0: tmp = t_1 elif y_46_re <= 5.4e+49: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) elif y_46_re <= 9.2e+224: tmp = t_1 else: tmp = math.sin(t_0) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -23000.0) tmp = t_1; elseif (y_46_re <= 5.4e+49) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(Float64(y_46_im * atan(x_46_im, x_46_re)))); elseif (y_46_re <= 9.2e+224) tmp = t_1; else tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -23000.0) tmp = t_1; elseif (y_46_re <= 5.4e+49) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((y_46_im * atan2(x_46_im, x_46_re))); elseif (y_46_re <= 9.2e+224) tmp = t_1; else tmp = sin(t_0) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(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, -23000.0], t$95$1, If[LessEqual[y$46$re, 5.4e+49], 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[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 9.2e+224], t$95$1, N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -23000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 5.4 \cdot 10^{+49}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;y.re \leq 9.2 \cdot 10^{+224}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -23000 or 5.4000000000000002e49 < y.re < 9.20000000000000079e224Initial program 36.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.f6462.5%
Simplified62.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6473.7%
Simplified73.7%
if -23000 < y.re < 5.4000000000000002e49Initial program 37.3%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified82.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.0%
Simplified69.0%
if 9.20000000000000079e224 < y.re Initial 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.f6457.2%
Simplified57.2%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* y.im (atan2 x.im x.re))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (+ (* x.im x.im) (* x.re x.re))))
(if (<= y.im -320000.0)
(/ (* y.im (log (sqrt t_2))) t_0)
(if (<= y.im 1.65e-41)
(* t_1 (pow (hypot x.im x.re) y.re))
(if (<= y.im 1.7e+93)
(* (sin t_1) (pow t_2 (/ y.re 2.0)))
(/ (sin (* (log (/ -1.0 x.re)) (- 0.0 y.im))) t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((y_46_im * atan2(x_46_im, x_46_re)));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_im <= -320000.0) {
tmp = (y_46_im * log(sqrt(t_2))) / t_0;
} else if (y_46_im <= 1.65e-41) {
tmp = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 1.7e+93) {
tmp = sin(t_1) * pow(t_2, (y_46_re / 2.0));
} else {
tmp = sin((log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / 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.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double tmp;
if (y_46_im <= -320000.0) {
tmp = (y_46_im * Math.log(Math.sqrt(t_2))) / t_0;
} else if (y_46_im <= 1.65e-41) {
tmp = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 1.7e+93) {
tmp = Math.sin(t_1) * Math.pow(t_2, (y_46_re / 2.0));
} else {
tmp = Math.sin((Math.log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re) tmp = 0 if y_46_im <= -320000.0: tmp = (y_46_im * math.log(math.sqrt(t_2))) / t_0 elif y_46_im <= 1.65e-41: tmp = t_1 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_im <= 1.7e+93: tmp = math.sin(t_1) * math.pow(t_2, (y_46_re / 2.0)) else: tmp = math.sin((math.log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(y_46_im * atan(x_46_im, x_46_re))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) tmp = 0.0 if (y_46_im <= -320000.0) tmp = Float64(Float64(y_46_im * log(sqrt(t_2))) / t_0); elseif (y_46_im <= 1.65e-41) tmp = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_im <= 1.7e+93) tmp = Float64(sin(t_1) * (t_2 ^ Float64(y_46_re / 2.0))); else tmp = Float64(sin(Float64(log(Float64(-1.0 / x_46_re)) * Float64(0.0 - y_46_im))) / t_0); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((y_46_im * atan2(x_46_im, x_46_re))); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = (x_46_im * x_46_im) + (x_46_re * x_46_re); tmp = 0.0; if (y_46_im <= -320000.0) tmp = (y_46_im * log(sqrt(t_2))) / t_0; elseif (y_46_im <= 1.65e-41) tmp = t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_im <= 1.7e+93) tmp = sin(t_1) * (t_2 ^ (y_46_re / 2.0)); else tmp = sin((log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / 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[Exp[N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -320000.0], N[(N[(y$46$im * N[Log[N[Sqrt[t$95$2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[y$46$im, 1.65e-41], 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$im, 1.7e+93], N[(N[Sin[t$95$1], $MachinePrecision] * N[Power[t$95$2, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$0), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := x.im \cdot x.im + x.re \cdot x.re\\
\mathbf{if}\;y.im \leq -320000:\\
\;\;\;\;\frac{y.im \cdot \log \left(\sqrt{t\_2}\right)}{t\_0}\\
\mathbf{elif}\;y.im \leq 1.65 \cdot 10^{-41}:\\
\;\;\;\;t\_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq 1.7 \cdot 10^{+93}:\\
\;\;\;\;\sin t\_1 \cdot {t\_2}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(\log \left(\frac{-1}{x.re}\right) \cdot \left(0 - y.im\right)\right)}{t\_0}\\
\end{array}
\end{array}
if y.im < -3.2e5Initial program 33.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified47.4%
Taylor expanded in y.im around 0
+-lowering-+.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6453.4%
Simplified53.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.f6442.2%
Simplified42.2%
if -3.2e5 < y.im < 1.65000000000000012e-41Initial program 37.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.f6457.5%
Simplified57.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6460.5%
Simplified60.5%
if 1.65000000000000012e-41 < y.im < 1.7e93Initial program 56.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.f6436.9%
Simplified36.9%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6452.9%
Applied egg-rr52.9%
if 1.7e93 < y.im Initial program 34.6%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified56.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.f6467.7%
Simplified67.7%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6450.0%
Simplified50.0%
Final simplification53.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (exp (* y.im (atan2 x.im x.re)))))
(if (<= y.re -1.3e-36)
(* t_0 (pow (sqrt (+ (* x.im x.im) (* x.re x.re))) y.re))
(if (<= y.re 4.4e-305)
(/ (sin (* (log (/ -1.0 x.re)) (- 0.0 y.im))) t_1)
(if (<= y.re 2.1e-160)
(/ (sin (* (- 0.0 y.im) (log (/ -1.0 x.im)))) t_1)
(if (<= y.re 1.15e+224)
(* t_0 (pow (hypot x.im x.re) y.re))
(* (sin t_0) (pow x.re y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = exp((y_46_im * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -1.3e-36) {
tmp = t_0 * pow(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))), y_46_re);
} else if (y_46_re <= 4.4e-305) {
tmp = sin((log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / t_1;
} else if (y_46_re <= 2.1e-160) {
tmp = sin(((0.0 - y_46_im) * log((-1.0 / x_46_im)))) / t_1;
} else if (y_46_re <= 1.15e+224) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -1.3e-36) {
tmp = t_0 * Math.pow(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))), y_46_re);
} else if (y_46_re <= 4.4e-305) {
tmp = Math.sin((Math.log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / t_1;
} else if (y_46_re <= 2.1e-160) {
tmp = Math.sin(((0.0 - y_46_im) * Math.log((-1.0 / x_46_im)))) / t_1;
} else if (y_46_re <= 1.15e+224) {
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_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -1.3e-36: tmp = t_0 * math.pow(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))), y_46_re) elif y_46_re <= 4.4e-305: tmp = math.sin((math.log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / t_1 elif y_46_re <= 2.1e-160: tmp = math.sin(((0.0 - y_46_im) * math.log((-1.0 / x_46_im)))) / t_1 elif y_46_re <= 1.15e+224: 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_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = exp(Float64(y_46_im * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -1.3e-36) tmp = Float64(t_0 * (sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))) ^ y_46_re)); elseif (y_46_re <= 4.4e-305) tmp = Float64(sin(Float64(log(Float64(-1.0 / x_46_re)) * Float64(0.0 - y_46_im))) / t_1); elseif (y_46_re <= 2.1e-160) tmp = Float64(sin(Float64(Float64(0.0 - y_46_im) * log(Float64(-1.0 / x_46_im)))) / t_1); elseif (y_46_re <= 1.15e+224) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = exp((y_46_im * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -1.3e-36) tmp = t_0 * (sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))) ^ y_46_re); elseif (y_46_re <= 4.4e-305) tmp = sin((log((-1.0 / x_46_re)) * (0.0 - y_46_im))) / t_1; elseif (y_46_re <= 2.1e-160) tmp = sin(((0.0 - y_46_im) * log((-1.0 / x_46_im)))) / t_1; elseif (y_46_re <= 1.15e+224) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = sin(t_0) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -1.3e-36], N[(t$95$0 * N[Power[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.4e-305], N[(N[Sin[N[(N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision] * N[(0.0 - y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 2.1e-160], N[(N[Sin[N[(N[(0.0 - y$46$im), $MachinePrecision] * N[Log[N[(-1.0 / x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 1.15e+224], 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$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := e^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}\\
\mathbf{if}\;y.re \leq -1.3 \cdot 10^{-36}:\\
\;\;\;\;t\_0 \cdot {\left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 4.4 \cdot 10^{-305}:\\
\;\;\;\;\frac{\sin \left(\log \left(\frac{-1}{x.re}\right) \cdot \left(0 - y.im\right)\right)}{t\_1}\\
\mathbf{elif}\;y.re \leq 2.1 \cdot 10^{-160}:\\
\;\;\;\;\frac{\sin \left(\left(0 - y.im\right) \cdot \log \left(\frac{-1}{x.im}\right)\right)}{t\_1}\\
\mathbf{elif}\;y.re \leq 1.15 \cdot 10^{+224}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.3e-36Initial program 30.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified62.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
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified67.5%
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-*.f6474.3%
Simplified74.3%
if -1.3e-36 < y.re < 4.39999999999999993e-305Initial program 37.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified85.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6476.2%
Simplified76.2%
Taylor expanded in x.re around -inf
mul-1-negN/A
neg-lowering-neg.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6446.2%
Simplified46.2%
if 4.39999999999999993e-305 < y.re < 2.1e-160Initial program 24.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified90.7%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.3%
Simplified81.3%
Taylor expanded in x.im around -inf
mul-1-negN/A
neg-lowering-neg.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6442.0%
Simplified42.0%
if 2.1e-160 < y.re < 1.1500000000000001e224Initial program 46.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.f6439.3%
Simplified39.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6446.2%
Simplified46.2%
if 1.1500000000000001e224 < y.re Initial 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.f6457.2%
Simplified57.2%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
Final simplification54.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im 2800.0)
(* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re))
(if (<= y.im 1.2e+294)
(/ (sin (* y.im (log x.im))) (exp (* y.im (atan2 x.im x.re))))
(*
y.re
(* (atan2 x.im x.re) (+ 1.0 (* (* y.re 0.5) (log (* x.im x.im)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= 2800.0) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 1.2e+294) {
tmp = sin((y_46_im * log(x_46_im))) / exp((y_46_im * atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_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 (y_46_im <= 2800.0) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 1.2e+294) {
tmp = Math.sin((y_46_im * Math.log(x_46_im))) / Math.exp((y_46_im * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * Math.log((x_46_im * x_46_im)))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= 2800.0: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_im <= 1.2e+294: tmp = math.sin((y_46_im * math.log(x_46_im))) / math.exp((y_46_im * math.atan2(x_46_im, x_46_re))) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * math.log((x_46_im * x_46_im))))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_im <= 2800.0) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_im <= 1.2e+294) tmp = Float64(sin(Float64(y_46_im * log(x_46_im))) / exp(Float64(y_46_im * atan(x_46_im, x_46_re)))); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(1.0 + Float64(Float64(y_46_re * 0.5) * log(Float64(x_46_im * x_46_im)))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_im <= 2800.0) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_im <= 1.2e+294) tmp = sin((y_46_im * log(x_46_im))) / exp((y_46_im * atan2(x_46_im, x_46_re))); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_46_im))))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$im, 2800.0], N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.2e+294], N[(N[Sin[N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(y$46$im * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(1.0 + N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq 2800:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq 1.2 \cdot 10^{+294}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log x.im\right)}{e^{y.im \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(1 + \left(y.re \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\right)\right)\\
\end{array}
\end{array}
if y.im < 2800Initial program 36.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.f6445.9%
Simplified45.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.9%
Simplified49.9%
if 2800 < y.im < 1.20000000000000005e294Initial program 43.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified59.7%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6469.3%
Simplified69.3%
Taylor expanded in x.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6447.0%
Simplified47.0%
if 1.20000000000000005e294 < y.im Initial program 0.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.f6421.3%
Simplified21.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6460.0%
Simplified60.0%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr60.0%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6480.0%
Simplified80.0%
Final simplification49.8%
(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 -13500000.0)
t_0
(if (<= y.re -5e-63)
(*
y.re
(* (atan2 x.im x.re) (+ 1.0 (* (* y.re 0.5) (log (* x.re x.re))))))
(if (<= y.re 1.7e-189)
(* y.im (log (sqrt (+ (* x.im x.im) (* x.re x.re)))))
(if (<= y.re 3.7e+33) (* 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 <= -13500000.0) {
tmp = t_0;
} else if (y_46_re <= -5e-63) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_re * x_46_re)))));
} else if (y_46_re <= 1.7e-189) {
tmp = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
} else if (y_46_re <= 3.7e+33) {
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 <= (-13500000.0d0)) then
tmp = t_0
else if (y_46re <= (-5d-63)) then
tmp = y_46re * (atan2(x_46im, x_46re) * (1.0d0 + ((y_46re * 0.5d0) * log((x_46re * x_46re)))))
else if (y_46re <= 1.7d-189) then
tmp = y_46im * log(sqrt(((x_46im * x_46im) + (x_46re * x_46re))))
else if (y_46re <= 3.7d+33) 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 <= -13500000.0) {
tmp = t_0;
} else if (y_46_re <= -5e-63) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * Math.log((x_46_re * x_46_re)))));
} else if (y_46_re <= 1.7e-189) {
tmp = y_46_im * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
} else if (y_46_re <= 3.7e+33) {
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 <= -13500000.0: tmp = t_0 elif y_46_re <= -5e-63: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * math.log((x_46_re * x_46_re))))) elif y_46_re <= 1.7e-189: tmp = y_46_im * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))) elif y_46_re <= 3.7e+33: 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 <= -13500000.0) tmp = t_0; elseif (y_46_re <= -5e-63) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(1.0 + Float64(Float64(y_46_re * 0.5) * log(Float64(x_46_re * x_46_re)))))); elseif (y_46_re <= 1.7e-189) tmp = Float64(y_46_im * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))); elseif (y_46_re <= 3.7e+33) 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 <= -13500000.0) tmp = t_0; elseif (y_46_re <= -5e-63) tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_re * x_46_re))))); elseif (y_46_re <= 1.7e-189) tmp = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))); elseif (y_46_re <= 3.7e+33) 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, -13500000.0], t$95$0, If[LessEqual[y$46$re, -5e-63], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(1.0 + N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[N[(x$46$re * x$46$re), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.7e-189], N[(y$46$im * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.7e+33], 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 -13500000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq -5 \cdot 10^{-63}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(1 + \left(y.re \cdot 0.5\right) \cdot \log \left(x.re \cdot x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 1.7 \cdot 10^{-189}:\\
\;\;\;\;y.im \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)\\
\mathbf{elif}\;y.re \leq 3.7 \cdot 10^{+33}:\\
\;\;\;\;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 < -1.35e7 or 3.6999999999999999e33 < y.re Initial program 38.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6461.2%
Simplified61.2%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6448.7%
Simplified48.7%
if -1.35e7 < y.re < -5.0000000000000002e-63Initial program 26.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.f6434.8%
Simplified34.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6427.6%
Simplified27.6%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr27.6%
Taylor expanded in x.im around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6435.3%
Simplified35.3%
if -5.0000000000000002e-63 < y.re < 1.7000000000000001e-189Initial program 34.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified88.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6479.1%
Simplified79.1%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6426.7%
Simplified26.7%
if 1.7000000000000001e-189 < y.re < 3.6999999999999999e33Initial program 43.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.f6431.7%
Simplified31.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6428.7%
Simplified28.7%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6428.7%
Applied egg-rr28.7%
Final simplification37.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -6e-128)
t_1
(if (<= y.re 2.9e-194)
(* y.im (log (sqrt (+ (* x.im x.im) (* x.re x.re)))))
(if (<= y.re 2.9e+228) t_1 (* (sin t_0) (pow x.re y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6e-128) {
tmp = t_1;
} else if (y_46_re <= 2.9e-194) {
tmp = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
} else if (y_46_re <= 2.9e+228) {
tmp = t_1;
} else {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6e-128) {
tmp = t_1;
} else if (y_46_re <= 2.9e-194) {
tmp = y_46_im * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
} else if (y_46_re <= 2.9e+228) {
tmp = t_1;
} else {
tmp = Math.sin(t_0) * Math.pow(x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -6e-128: tmp = t_1 elif y_46_re <= 2.9e-194: tmp = y_46_im * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))) elif y_46_re <= 2.9e+228: tmp = t_1 else: tmp = math.sin(t_0) * math.pow(x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -6e-128) tmp = t_1; elseif (y_46_re <= 2.9e-194) tmp = Float64(y_46_im * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))); elseif (y_46_re <= 2.9e+228) tmp = t_1; else tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); tmp = 0.0; if (y_46_re <= -6e-128) tmp = t_1; elseif (y_46_re <= 2.9e-194) tmp = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))); elseif (y_46_re <= 2.9e+228) tmp = t_1; else tmp = sin(t_0) * (x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(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, -6e-128], t$95$1, If[LessEqual[y$46$re, 2.9e-194], N[(y$46$im * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2.9e+228], t$95$1, N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -6 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 2.9 \cdot 10^{-194}:\\
\;\;\;\;y.im \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)\\
\mathbf{elif}\;y.re \leq 2.9 \cdot 10^{+228}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\end{array}
\end{array}
if y.re < -5.99999999999999956e-128 or 2.8999999999999997e-194 < y.re < 2.90000000000000002e228Initial program 36.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.f6447.9%
Simplified47.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6453.3%
Simplified53.3%
if -5.99999999999999956e-128 < y.re < 2.8999999999999997e-194Initial program 38.4%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified89.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6481.4%
Simplified81.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.4%
Simplified28.4%
if 2.90000000000000002e228 < y.re Initial 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.f6457.2%
Simplified57.2%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6457.5%
Simplified57.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.im 4e-44)
(* t_0 (pow (hypot x.im x.re) y.re))
(* (sin t_0) (pow (+ (* x.im x.im) (* x.re x.re)) (/ 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 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= 4e-44) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = sin(t_0) * pow(((x_46_im * x_46_im) + (x_46_re * x_46_re)), (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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= 4e-44) {
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 * x_46_im) + (x_46_re * x_46_re)), (y_46_re / 2.0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_im <= 4e-44: 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 * x_46_im) + (x_46_re * x_46_re)), (y_46_re / 2.0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= 4e-44) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(sin(t_0) * (Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) ^ 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 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_im <= 4e-44) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = sin(t_0) * (((x_46_im * x_46_im) + (x_46_re * x_46_re)) ^ (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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, 4e-44], 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[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq 4 \cdot 10^{-44}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin t\_0 \cdot {\left(x.im \cdot x.im + x.re \cdot x.re\right)}^{\left(\frac{y.re}{2}\right)}\\
\end{array}
\end{array}
if y.im < 3.99999999999999981e-44Initial program 35.9%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6446.3%
Simplified46.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6450.5%
Simplified50.5%
if 3.99999999999999981e-44 < y.im Initial program 41.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.f6427.5%
Simplified27.5%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
+-commutativeN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6438.4%
Applied egg-rr38.4%
Final simplification46.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= y.im 5e-7)
(* t_0 (pow (hypot x.im x.re) y.re))
(* t_0 (pow (sqrt (+ (* x.im x.im) (* x.re x.re))) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= 5e-7) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_0 * pow(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))), y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= 5e-7) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = t_0 * Math.pow(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))), y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_im <= 5e-7: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = t_0 * math.pow(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))), y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= 5e-7) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64(t_0 * (sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))) ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (y_46_im <= 5e-7) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = t_0 * (sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))) ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, 5e-7], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq 5 \cdot 10^{-7}:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < 4.99999999999999977e-7Initial program 36.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.6%
Simplified45.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.6%
Simplified49.6%
if 4.99999999999999977e-7 < y.im Initial program 41.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified57.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
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
cos-lowering-cos.f64N/A
Simplified57.4%
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-*.f6436.8%
Simplified36.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= x.im -3.1e-5)
(*
y.re
(* (atan2 x.im x.re) (+ 1.0 (* (* y.re 0.5) (log (* x.im x.im))))))
(if (<= x.im 9e-14) (* t_0 (pow x.re y.re)) (* 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 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_im <= -3.1e-5) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_46_im)))));
} else if (x_46_im <= 9e-14) {
tmp = t_0 * pow(x_46_re, y_46_re);
} else {
tmp = t_0 * pow(x_46_im, y_46_re);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = sin((y_46re * atan2(x_46im, x_46re)))
if (x_46im <= (-3.1d-5)) then
tmp = y_46re * (atan2(x_46im, x_46re) * (1.0d0 + ((y_46re * 0.5d0) * log((x_46im * x_46im)))))
else if (x_46im <= 9d-14) then
tmp = t_0 * (x_46re ** y_46re)
else
tmp = t_0 * (x_46im ** y_46re)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (x_46_im <= -3.1e-5) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * Math.log((x_46_im * x_46_im)))));
} else if (x_46_im <= 9e-14) {
tmp = t_0 * Math.pow(x_46_re, y_46_re);
} else {
tmp = 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 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if x_46_im <= -3.1e-5: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * math.log((x_46_im * x_46_im))))) elif x_46_im <= 9e-14: tmp = t_0 * math.pow(x_46_re, y_46_re) else: tmp = 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 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (x_46_im <= -3.1e-5) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(1.0 + Float64(Float64(y_46_re * 0.5) * log(Float64(x_46_im * x_46_im)))))); elseif (x_46_im <= 9e-14) tmp = Float64(t_0 * (x_46_re ^ y_46_re)); else tmp = Float64(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 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (x_46_im <= -3.1e-5) tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_46_im))))); elseif (x_46_im <= 9e-14) tmp = t_0 * (x_46_re ^ y_46_re); else tmp = 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[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$im, -3.1e-5], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(1.0 + N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 9e-14], N[(t$95$0 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Power[x$46$im, y$46$re], $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}\;x.im \leq -3.1 \cdot 10^{-5}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(1 + \left(y.re \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\right)\right)\\
\mathbf{elif}\;x.im \leq 9 \cdot 10^{-14}:\\
\;\;\;\;t\_0 \cdot {x.re}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if x.im < -3.10000000000000014e-5Initial program 23.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.f6436.2%
Simplified36.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6429.4%
Simplified29.4%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr29.4%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6431.4%
Simplified31.4%
if -3.10000000000000014e-5 < x.im < 8.9999999999999995e-14Initial program 47.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.f6439.5%
Simplified39.5%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6432.3%
Simplified32.3%
if 8.9999999999999995e-14 < x.im Initial program 34.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.f6446.4%
Simplified46.4%
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.f6446.4%
Simplified46.4%
Final simplification36.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.im x.im) (* x.re x.re))) (t_1 (* y.im (log (sqrt t_0)))))
(if (<= y.im -2.05e-73)
t_1
(if (<= y.im 1.25e-123)
(* y.re (log (exp (atan2 x.im x.re))))
(if (<= y.im 0.006)
t_1
(if (<= y.im 2.9e+72)
(*
(* y.re y.re)
(*
(atan2 x.im x.re)
(log (+ x.im (/ (* (* x.re x.re) 0.5) x.im)))))
(* y.re (* (atan2 x.im x.re) (* (* y.re 0.5) (log t_0))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_1 = y_46_im * log(sqrt(t_0));
double tmp;
if (y_46_im <= -2.05e-73) {
tmp = t_1;
} else if (y_46_im <= 1.25e-123) {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
} else if (y_46_im <= 0.006) {
tmp = t_1;
} else if (y_46_im <= 2.9e+72) {
tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))));
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * log(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) :: t_1
real(8) :: tmp
t_0 = (x_46im * x_46im) + (x_46re * x_46re)
t_1 = y_46im * log(sqrt(t_0))
if (y_46im <= (-2.05d-73)) then
tmp = t_1
else if (y_46im <= 1.25d-123) then
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
else if (y_46im <= 0.006d0) then
tmp = t_1
else if (y_46im <= 2.9d+72) then
tmp = (y_46re * y_46re) * (atan2(x_46im, x_46re) * log((x_46im + (((x_46re * x_46re) * 0.5d0) / x_46im))))
else
tmp = y_46re * (atan2(x_46im, x_46re) * ((y_46re * 0.5d0) * log(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 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_1 = y_46_im * Math.log(Math.sqrt(t_0));
double tmp;
if (y_46_im <= -2.05e-73) {
tmp = t_1;
} else if (y_46_im <= 1.25e-123) {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
} else if (y_46_im <= 0.006) {
tmp = t_1;
} else if (y_46_im <= 2.9e+72) {
tmp = (y_46_re * y_46_re) * (Math.atan2(x_46_im, x_46_re) * Math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))));
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * Math.log(t_0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_1 = y_46_im * math.log(math.sqrt(t_0)) tmp = 0 if y_46_im <= -2.05e-73: tmp = t_1 elif y_46_im <= 1.25e-123: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) elif y_46_im <= 0.006: tmp = t_1 elif y_46_im <= 2.9e+72: tmp = (y_46_re * y_46_re) * (math.atan2(x_46_im, x_46_re) * math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)))) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * math.log(t_0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_1 = Float64(y_46_im * log(sqrt(t_0))) tmp = 0.0 if (y_46_im <= -2.05e-73) tmp = t_1; elseif (y_46_im <= 1.25e-123) tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); elseif (y_46_im <= 0.006) tmp = t_1; elseif (y_46_im <= 2.9e+72) tmp = Float64(Float64(y_46_re * y_46_re) * Float64(atan(x_46_im, x_46_re) * log(Float64(x_46_im + Float64(Float64(Float64(x_46_re * x_46_re) * 0.5) / x_46_im))))); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(Float64(y_46_re * 0.5) * log(t_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_im * x_46_im) + (x_46_re * x_46_re); t_1 = y_46_im * log(sqrt(t_0)); tmp = 0.0; if (y_46_im <= -2.05e-73) tmp = t_1; elseif (y_46_im <= 1.25e-123) tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); elseif (y_46_im <= 0.006) tmp = t_1; elseif (y_46_im <= 2.9e+72) tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)))); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * log(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[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2.05e-73], t$95$1, If[LessEqual[y$46$im, 1.25e-123], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 0.006], t$95$1, If[LessEqual[y$46$im, 2.9e+72], N[(N[(y$46$re * y$46$re), $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Log[N[(x$46$im + N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.im \cdot x.im + x.re \cdot x.re\\
t_1 := y.im \cdot \log \left(\sqrt{t\_0}\right)\\
\mathbf{if}\;y.im \leq -2.05 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 1.25 \cdot 10^{-123}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\mathbf{elif}\;y.im \leq 0.006:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 2.9 \cdot 10^{+72}:\\
\;\;\;\;\left(y.re \cdot y.re\right) \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \log \left(x.im + \frac{\left(x.re \cdot x.re\right) \cdot 0.5}{x.im}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(\left(y.re \cdot 0.5\right) \cdot \log t\_0\right)\right)\\
\end{array}
\end{array}
if y.im < -2.05000000000000008e-73 or 1.25000000000000007e-123 < y.im < 0.0060000000000000001Initial program 31.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified64.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6453.6%
Simplified53.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6426.4%
Simplified26.4%
if -2.05000000000000008e-73 < y.im < 1.25000000000000007e-123Initial program 42.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.f6469.2%
Simplified69.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.9%
Simplified31.9%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6437.7%
Applied egg-rr37.7%
if 0.0060000000000000001 < y.im < 2.90000000000000017e72Initial program 60.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.f6429.1%
Simplified29.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f648.4%
Simplified8.4%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
unpow2N/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.f648.0%
Simplified8.0%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.8%
Simplified40.8%
if 2.90000000000000017e72 < y.im Initial program 35.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.f6426.2%
Simplified26.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6427.1%
Simplified27.1%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr27.1%
Taylor expanded in y.re around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6429.0%
Simplified29.0%
Final simplification31.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.im x.im) (* x.re x.re))) (t_1 (* y.im (log (sqrt t_0)))))
(if (<= y.im -4.3e-77)
t_1
(if (<= y.im 8.5e-125)
(* y.re (atan2 x.im x.re))
(if (<= y.im 4300000.0)
t_1
(if (<= y.im 2.9e+72)
(*
(* y.re y.re)
(*
(atan2 x.im x.re)
(log (+ x.im (/ (* (* x.re x.re) 0.5) x.im)))))
(* y.re (* (atan2 x.im x.re) (* (* y.re 0.5) (log t_0))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_1 = y_46_im * log(sqrt(t_0));
double tmp;
if (y_46_im <= -4.3e-77) {
tmp = t_1;
} else if (y_46_im <= 8.5e-125) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else if (y_46_im <= 4300000.0) {
tmp = t_1;
} else if (y_46_im <= 2.9e+72) {
tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))));
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * log(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) :: t_1
real(8) :: tmp
t_0 = (x_46im * x_46im) + (x_46re * x_46re)
t_1 = y_46im * log(sqrt(t_0))
if (y_46im <= (-4.3d-77)) then
tmp = t_1
else if (y_46im <= 8.5d-125) then
tmp = y_46re * atan2(x_46im, x_46re)
else if (y_46im <= 4300000.0d0) then
tmp = t_1
else if (y_46im <= 2.9d+72) then
tmp = (y_46re * y_46re) * (atan2(x_46im, x_46re) * log((x_46im + (((x_46re * x_46re) * 0.5d0) / x_46im))))
else
tmp = y_46re * (atan2(x_46im, x_46re) * ((y_46re * 0.5d0) * log(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 = (x_46_im * x_46_im) + (x_46_re * x_46_re);
double t_1 = y_46_im * Math.log(Math.sqrt(t_0));
double tmp;
if (y_46_im <= -4.3e-77) {
tmp = t_1;
} else if (y_46_im <= 8.5e-125) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else if (y_46_im <= 4300000.0) {
tmp = t_1;
} else if (y_46_im <= 2.9e+72) {
tmp = (y_46_re * y_46_re) * (Math.atan2(x_46_im, x_46_re) * Math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))));
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * Math.log(t_0)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im * x_46_im) + (x_46_re * x_46_re) t_1 = y_46_im * math.log(math.sqrt(t_0)) tmp = 0 if y_46_im <= -4.3e-77: tmp = t_1 elif y_46_im <= 8.5e-125: tmp = y_46_re * math.atan2(x_46_im, x_46_re) elif y_46_im <= 4300000.0: tmp = t_1 elif y_46_im <= 2.9e+72: tmp = (y_46_re * y_46_re) * (math.atan2(x_46_im, x_46_re) * math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)))) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * math.log(t_0))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re)) t_1 = Float64(y_46_im * log(sqrt(t_0))) tmp = 0.0 if (y_46_im <= -4.3e-77) tmp = t_1; elseif (y_46_im <= 8.5e-125) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); elseif (y_46_im <= 4300000.0) tmp = t_1; elseif (y_46_im <= 2.9e+72) tmp = Float64(Float64(y_46_re * y_46_re) * Float64(atan(x_46_im, x_46_re) * log(Float64(x_46_im + Float64(Float64(Float64(x_46_re * x_46_re) * 0.5) / x_46_im))))); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(Float64(y_46_re * 0.5) * log(t_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_im * x_46_im) + (x_46_re * x_46_re); t_1 = y_46_im * log(sqrt(t_0)); tmp = 0.0; if (y_46_im <= -4.3e-77) tmp = t_1; elseif (y_46_im <= 8.5e-125) tmp = y_46_re * atan2(x_46_im, x_46_re); elseif (y_46_im <= 4300000.0) tmp = t_1; elseif (y_46_im <= 2.9e+72) tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)))); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * ((y_46_re * 0.5) * log(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[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$im * N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4.3e-77], t$95$1, If[LessEqual[y$46$im, 8.5e-125], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 4300000.0], t$95$1, If[LessEqual[y$46$im, 2.9e+72], N[(N[(y$46$re * y$46$re), $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Log[N[(x$46$im + N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.im \cdot x.im + x.re \cdot x.re\\
t_1 := y.im \cdot \log \left(\sqrt{t\_0}\right)\\
\mathbf{if}\;y.im \leq -4.3 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 8.5 \cdot 10^{-125}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{elif}\;y.im \leq 4300000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 2.9 \cdot 10^{+72}:\\
\;\;\;\;\left(y.re \cdot y.re\right) \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \log \left(x.im + \frac{\left(x.re \cdot x.re\right) \cdot 0.5}{x.im}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(\left(y.re \cdot 0.5\right) \cdot \log t\_0\right)\right)\\
\end{array}
\end{array}
if y.im < -4.3000000000000002e-77 or 8.5000000000000002e-125 < y.im < 4.3e6Initial program 31.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified64.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6453.6%
Simplified53.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6426.4%
Simplified26.4%
if -4.3000000000000002e-77 < y.im < 8.5000000000000002e-125Initial program 42.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.f6469.2%
Simplified69.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.9%
Simplified31.9%
if 4.3e6 < y.im < 2.90000000000000017e72Initial program 60.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.f6429.1%
Simplified29.1%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f648.4%
Simplified8.4%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
unpow2N/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.f648.0%
Simplified8.0%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.8%
Simplified40.8%
if 2.90000000000000017e72 < y.im Initial program 35.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.f6426.2%
Simplified26.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6427.1%
Simplified27.1%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr27.1%
Taylor expanded in y.re around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6429.0%
Simplified29.0%
Final simplification29.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (sqrt (+ (* x.im x.im) (* x.re x.re)))))))
(if (<= y.im -1.04e-79)
t_0
(if (<= y.im 2e-124)
(* y.re (atan2 x.im x.re))
(if (<= y.im 820000.0)
t_0
(if (<= y.im 4.4e+79)
(*
(* y.re y.re)
(*
(atan2 x.im x.re)
(log (+ x.im (/ (* (* x.re x.re) 0.5) x.im)))))
(*
y.re
(*
(atan2 x.im x.re)
(+ 1.0 (* (* y.re 0.5) (log (* x.im x.im))))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
double tmp;
if (y_46_im <= -1.04e-79) {
tmp = t_0;
} else if (y_46_im <= 2e-124) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else if (y_46_im <= 820000.0) {
tmp = t_0;
} else if (y_46_im <= 4.4e+79) {
tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))));
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_46_im)))));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46im * log(sqrt(((x_46im * x_46im) + (x_46re * x_46re))))
if (y_46im <= (-1.04d-79)) then
tmp = t_0
else if (y_46im <= 2d-124) then
tmp = y_46re * atan2(x_46im, x_46re)
else if (y_46im <= 820000.0d0) then
tmp = t_0
else if (y_46im <= 4.4d+79) then
tmp = (y_46re * y_46re) * (atan2(x_46im, x_46re) * log((x_46im + (((x_46re * x_46re) * 0.5d0) / x_46im))))
else
tmp = y_46re * (atan2(x_46im, x_46re) * (1.0d0 + ((y_46re * 0.5d0) * log((x_46im * x_46im)))))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
double tmp;
if (y_46_im <= -1.04e-79) {
tmp = t_0;
} else if (y_46_im <= 2e-124) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else if (y_46_im <= 820000.0) {
tmp = t_0;
} else if (y_46_im <= 4.4e+79) {
tmp = (y_46_re * y_46_re) * (Math.atan2(x_46_im, x_46_re) * Math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im))));
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * Math.log((x_46_im * x_46_im)))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))) tmp = 0 if y_46_im <= -1.04e-79: tmp = t_0 elif y_46_im <= 2e-124: tmp = y_46_re * math.atan2(x_46_im, x_46_re) elif y_46_im <= 820000.0: tmp = t_0 elif y_46_im <= 4.4e+79: tmp = (y_46_re * y_46_re) * (math.atan2(x_46_im, x_46_re) * math.log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)))) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * math.log((x_46_im * x_46_im))))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))) tmp = 0.0 if (y_46_im <= -1.04e-79) tmp = t_0; elseif (y_46_im <= 2e-124) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); elseif (y_46_im <= 820000.0) tmp = t_0; elseif (y_46_im <= 4.4e+79) tmp = Float64(Float64(y_46_re * y_46_re) * Float64(atan(x_46_im, x_46_re) * log(Float64(x_46_im + Float64(Float64(Float64(x_46_re * x_46_re) * 0.5) / x_46_im))))); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(1.0 + Float64(Float64(y_46_re * 0.5) * log(Float64(x_46_im * x_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_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))); tmp = 0.0; if (y_46_im <= -1.04e-79) tmp = t_0; elseif (y_46_im <= 2e-124) tmp = y_46_re * atan2(x_46_im, x_46_re); elseif (y_46_im <= 820000.0) tmp = t_0; elseif (y_46_im <= 4.4e+79) tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log((x_46_im + (((x_46_re * x_46_re) * 0.5) / x_46_im)))); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_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$im * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.04e-79], t$95$0, If[LessEqual[y$46$im, 2e-124], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 820000.0], t$95$0, If[LessEqual[y$46$im, 4.4e+79], N[(N[(y$46$re * y$46$re), $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Log[N[(x$46$im + N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * 0.5), $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(1.0 + N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)\\
\mathbf{if}\;y.im \leq -1.04 \cdot 10^{-79}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 2 \cdot 10^{-124}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{elif}\;y.im \leq 820000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 4.4 \cdot 10^{+79}:\\
\;\;\;\;\left(y.re \cdot y.re\right) \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \log \left(x.im + \frac{\left(x.re \cdot x.re\right) \cdot 0.5}{x.im}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(1 + \left(y.re \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\right)\right)\\
\end{array}
\end{array}
if y.im < -1.04e-79 or 1.99999999999999987e-124 < y.im < 8.2e5Initial program 31.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified64.0%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6453.6%
Simplified53.6%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6426.4%
Simplified26.4%
if -1.04e-79 < y.im < 1.99999999999999987e-124Initial program 42.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.f6469.2%
Simplified69.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.9%
Simplified31.9%
if 8.2e5 < y.im < 4.3999999999999998e79Initial program 58.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.f6437.4%
Simplified37.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6419.2%
Simplified19.2%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
unpow2N/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.f6418.8%
Simplified18.8%
Taylor expanded in x.re around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6447.8%
Simplified47.8%
if 4.3999999999999998e79 < y.im Initial program 34.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.f6423.3%
Simplified23.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6424.3%
Simplified24.3%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr24.3%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6422.9%
Simplified22.9%
Final simplification28.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (sqrt (+ (* x.im x.im) (* x.re x.re)))))))
(if (<= y.im -7.5e-80)
t_0
(if (<= y.im 8.2e-124)
(* y.re (atan2 x.im x.re))
(if (<= y.im 530000000.0)
t_0
(*
y.re
(*
(atan2 x.im x.re)
(+ 1.0 (* (* y.re 0.5) (log (* x.im x.im)))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
double tmp;
if (y_46_im <= -7.5e-80) {
tmp = t_0;
} else if (y_46_im <= 8.2e-124) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else if (y_46_im <= 530000000.0) {
tmp = t_0;
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_46_im)))));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46im * log(sqrt(((x_46im * x_46im) + (x_46re * x_46re))))
if (y_46im <= (-7.5d-80)) then
tmp = t_0
else if (y_46im <= 8.2d-124) then
tmp = y_46re * atan2(x_46im, x_46re)
else if (y_46im <= 530000000.0d0) then
tmp = t_0
else
tmp = y_46re * (atan2(x_46im, x_46re) * (1.0d0 + ((y_46re * 0.5d0) * log((x_46im * x_46im)))))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
double tmp;
if (y_46_im <= -7.5e-80) {
tmp = t_0;
} else if (y_46_im <= 8.2e-124) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else if (y_46_im <= 530000000.0) {
tmp = t_0;
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * Math.log((x_46_im * x_46_im)))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))) tmp = 0 if y_46_im <= -7.5e-80: tmp = t_0 elif y_46_im <= 8.2e-124: tmp = y_46_re * math.atan2(x_46_im, x_46_re) elif y_46_im <= 530000000.0: tmp = t_0 else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * math.log((x_46_im * x_46_im))))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))) tmp = 0.0 if (y_46_im <= -7.5e-80) tmp = t_0; elseif (y_46_im <= 8.2e-124) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); elseif (y_46_im <= 530000000.0) tmp = t_0; else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * Float64(1.0 + Float64(Float64(y_46_re * 0.5) * log(Float64(x_46_im * x_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_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))); tmp = 0.0; if (y_46_im <= -7.5e-80) tmp = t_0; elseif (y_46_im <= 8.2e-124) tmp = y_46_re * atan2(x_46_im, x_46_re); elseif (y_46_im <= 530000000.0) tmp = t_0; else tmp = y_46_re * (atan2(x_46_im, x_46_re) * (1.0 + ((y_46_re * 0.5) * log((x_46_im * x_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$im * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -7.5e-80], t$95$0, If[LessEqual[y$46$im, 8.2e-124], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 530000000.0], t$95$0, N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(1.0 + N[(N[(y$46$re * 0.5), $MachinePrecision] * N[Log[N[(x$46$im * x$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)\\
\mathbf{if}\;y.im \leq -7.5 \cdot 10^{-80}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 8.2 \cdot 10^{-124}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{elif}\;y.im \leq 530000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(1 + \left(y.re \cdot 0.5\right) \cdot \log \left(x.im \cdot x.im\right)\right)\right)\\
\end{array}
\end{array}
if y.im < -7.49999999999999999e-80 or 8.2000000000000008e-124 < y.im < 5.3e8Initial program 32.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified64.1%
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.f6454.0%
Simplified54.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.7%
Simplified25.7%
if -7.49999999999999999e-80 < y.im < 8.2000000000000008e-124Initial program 42.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.f6469.2%
Simplified69.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.9%
Simplified31.9%
if 5.3e8 < y.im Initial program 39.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.f6426.3%
Simplified26.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6424.1%
Simplified24.1%
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr24.1%
Taylor expanded in x.re around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
unpow2N/A
*-lowering-*.f6421.5%
Simplified21.5%
Final simplification26.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.im (log (sqrt (+ (* x.im x.im) (* x.re x.re)))))))
(if (<= y.im -1.7e-79)
t_0
(if (<= y.im 2.3e-123) (* y.re (atan2 x.im x.re)) t_0))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
double tmp;
if (y_46_im <= -1.7e-79) {
tmp = t_0;
} else if (y_46_im <= 2.3e-123) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46im * log(sqrt(((x_46im * x_46im) + (x_46re * x_46re))))
if (y_46im <= (-1.7d-79)) then
tmp = t_0
else if (y_46im <= 2.3d-123) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_im * Math.log(Math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re))));
double tmp;
if (y_46_im <= -1.7e-79) {
tmp = t_0;
} else if (y_46_im <= 2.3e-123) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_im * math.log(math.sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))) tmp = 0 if y_46_im <= -1.7e-79: tmp = t_0 elif y_46_im <= 2.3e-123: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_im * log(sqrt(Float64(Float64(x_46_im * x_46_im) + Float64(x_46_re * x_46_re))))) tmp = 0.0 if (y_46_im <= -1.7e-79) tmp = t_0; elseif (y_46_im <= 2.3e-123) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_im * log(sqrt(((x_46_im * x_46_im) + (x_46_re * x_46_re)))); tmp = 0.0; if (y_46_im <= -1.7e-79) tmp = t_0; elseif (y_46_im <= 2.3e-123) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$im * N[Log[N[Sqrt[N[(N[(x$46$im * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -1.7e-79], t$95$0, If[LessEqual[y$46$im, 2.3e-123], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.im \cdot \log \left(\sqrt{x.im \cdot x.im + x.re \cdot x.re}\right)\\
\mathbf{if}\;y.im \leq -1.7 \cdot 10^{-79}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 2.3 \cdot 10^{-123}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.im < -1.69999999999999988e-79 or 2.29999999999999987e-123 < y.im Initial program 35.1%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified61.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.f6459.0%
Simplified59.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6420.0%
Simplified20.0%
if -1.69999999999999988e-79 < y.im < 2.29999999999999987e-123Initial program 42.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.f6469.2%
Simplified69.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6431.9%
Simplified31.9%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.im 1.5) (* y.re (atan2 x.im x.re)) (* (* y.re y.re) (* (atan2 x.im x.re) (log x.im)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= 1.5) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log(x_46_im));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46im <= 1.5d0) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = (y_46re * y_46re) * (atan2(x_46im, x_46re) * log(x_46im))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_im <= 1.5) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = (y_46_re * y_46_re) * (Math.atan2(x_46_im, x_46_re) * Math.log(x_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= 1.5: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = (y_46_re * y_46_re) * (math.atan2(x_46_im, x_46_re) * math.log(x_46_im)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_im <= 1.5) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = Float64(Float64(y_46_re * y_46_re) * Float64(atan(x_46_im, x_46_re) * log(x_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_im <= 1.5) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = (y_46_re * y_46_re) * (atan2(x_46_im, x_46_re) * log(x_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$im, 1.5], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], N[(N[(y$46$re * y$46$re), $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq 1.5:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;\left(y.re \cdot y.re\right) \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \log x.im\right)\\
\end{array}
\end{array}
if y.im < 1.5Initial program 36.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.f6445.9%
Simplified45.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6418.1%
Simplified18.1%
if 1.5 < y.im Initial 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.f6426.8%
Simplified26.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
atan2-lowering-atan2.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.f6423.1%
Simplified23.1%
Taylor expanded in y.re around inf
*-lowering-*.f64N/A
unpow2N/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.f6424.4%
Simplified24.4%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
atan2-lowering-atan2.f6414.2%
Simplified14.2%
Final simplification17.1%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 37.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.f6440.8%
Simplified40.8%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6414.1%
Simplified14.1%
herbie shell --seed 2024158
(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)))))