
(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 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_3 (* (exp (- (* t_2 y.re) t_0)) (sin (+ t_1 (* t_2 y.im))))))
(if (<= t_3 INFINITY)
t_3
(/
(sin (+ (* y.im (log (hypot x.re x.im))) t_1))
(/ (exp t_0) (pow (hypot x.re x.im) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = exp(((t_2 * y_46_re) - t_0)) * sin((t_1 + (t_2 * y_46_im)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + t_1)) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = Math.exp(((t_2 * y_46_re) - t_0)) * Math.sin((t_1 + (t_2 * y_46_im)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = Math.sin(((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))) + t_1)) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) t_3 = math.exp(((t_2 * y_46_re) - t_0)) * math.sin((t_1 + (t_2 * y_46_im))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = math.sin(((y_46_im * math.log(math.hypot(x_46_re, x_46_im))) + t_1)) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_3 = Float64(exp(Float64(Float64(t_2 * y_46_re) - t_0)) * sin(Float64(t_1 + Float64(t_2 * y_46_im)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(sin(Float64(Float64(y_46_im * log(hypot(x_46_re, x_46_im))) + t_1)) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); t_3 = exp(((t_2 * y_46_re) - t_0)) * sin((t_1 + (t_2 * y_46_im))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + t_1)) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 + N[(t$95$2 * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(N[Sin[N[(N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_3 := e^{t\_2 \cdot y.re - t\_0} \cdot \sin \left(t\_1 + t\_2 \cdot y.im\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) + t\_1\right)}{\frac{e^{t\_0}}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\end{array}
\end{array}
if (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) < +inf.0Initial program 79.7%
if +inf.0 < (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) Initial program 0.0%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified74.9%
Final simplification77.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (/ -1.0 x.re))))
(if (<= x.re -9.5e-86)
(* (exp (- (* (- 0.0 y.re) t_2) t_0)) (sin (- t_1 (* y.im t_2))))
(/
(sin (+ (* y.im (log (hypot x.re x.im))) t_1))
(/ (exp t_0) (pow (hypot x.re x.im) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -9.5e-86) {
tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2)));
} else {
tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + t_1)) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -9.5e-86) {
tmp = Math.exp((((0.0 - y_46_re) * t_2) - t_0)) * Math.sin((t_1 - (y_46_im * t_2)));
} else {
tmp = Math.sin(((y_46_im * Math.log(Math.hypot(x_46_re, x_46_im))) + t_1)) / (Math.exp(t_0) / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -9.5e-86: tmp = math.exp((((0.0 - y_46_re) * t_2) - t_0)) * math.sin((t_1 - (y_46_im * t_2))) else: tmp = math.sin(((y_46_im * math.log(math.hypot(x_46_re, x_46_im))) + t_1)) / (math.exp(t_0) / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -9.5e-86) 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)))); else tmp = Float64(sin(Float64(Float64(y_46_im * log(hypot(x_46_re, x_46_im))) + t_1)) / Float64(exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -9.5e-86) tmp = exp((((0.0 - y_46_re) * t_2) - t_0)) * sin((t_1 - (y_46_im * t_2))); else tmp = sin(((y_46_im * log(hypot(x_46_re, x_46_im))) + t_1)) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -9.5e-86], 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], N[(N[Sin[N[(N[(y$46$im * N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[t$95$0], $MachinePrecision] / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -9.5 \cdot 10^{-86}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_2 - t\_0} \cdot \sin \left(t\_1 - y.im \cdot t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) + 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 < -9.4999999999999996e-86Initial program 37.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
Simplified73.2%
if -9.4999999999999996e-86 < x.re Initial program 44.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified79.0%
Final simplification77.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)) (t_1 (log (/ -1.0 x.re))))
(if (<= x.re -1.15e-129)
(*
(exp (- (* (- 0.0 y.re) t_1) t_0))
(sin (- (* y.re (atan2 x.im x.re)) (* y.im t_1))))
(/
(sin (* y.im (log (hypot x.im x.re))))
(/ (exp t_0) (pow (hypot x.re x.im) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -1.15e-129) {
tmp = exp((((0.0 - y_46_re) * t_1) - t_0)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) - (y_46_im * t_1)));
} else {
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));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -1.15e-129) {
tmp = Math.exp((((0.0 - y_46_re) * t_1) - t_0)) * Math.sin(((y_46_re * Math.atan2(x_46_im, x_46_re)) - (y_46_im * t_1)));
} else {
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));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -1.15e-129: tmp = math.exp((((0.0 - y_46_re) * t_1) - t_0)) * math.sin(((y_46_re * math.atan2(x_46_im, x_46_re)) - (y_46_im * t_1))) else: 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)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -1.15e-129) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_1) - t_0)) * sin(Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) - Float64(y_46_im * t_1)))); else 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))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -1.15e-129) tmp = exp((((0.0 - y_46_re) * t_1) - t_0)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) - (y_46_im * t_1))); else 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)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1.15e-129], N[(N[Exp[N[(N[(N[(0.0 - y$46$re), $MachinePrecision] * t$95$1), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] - N[(y$46$im * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 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]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -1.15 \cdot 10^{-129}:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_1 - t\_0} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re} - y.im \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\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}}}\\
\end{array}
\end{array}
if x.re < -1.15e-129Initial program 41.0%
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
Simplified73.7%
if -1.15e-129 < x.re Initial program 42.7%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified78.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.f6473.6%
Simplified73.6%
Final simplification73.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (log (/ 1.0 x.re)))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (log (/ -1.0 x.re))))
(if (<= x.re -0.0014)
(* (exp (- (* (- 0.0 y.re) t_3) t_0)) (sin (- t_2 (* y.im t_3))))
(if (<= x.re 0.68)
(/ (sin t_2) (/ (exp t_0) (pow (hypot x.re x.im) y.re)))
(* (exp (- (* (- 0.0 y.re) t_1) t_0)) (sin (- t_2 (* y.im t_1))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = log((1.0 / x_46_re));
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -0.0014) {
tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_2 - (y_46_im * t_3)));
} else if (x_46_re <= 0.68) {
tmp = sin(t_2) / (exp(t_0) / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = exp((((0.0 - y_46_re) * t_1) - t_0)) * sin((t_2 - (y_46_im * t_1)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.log((1.0 / x_46_re));
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -0.0014) {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_0)) * Math.sin((t_2 - (y_46_im * t_3)));
} else if (x_46_re <= 0.68) {
tmp = Math.sin(t_2) / (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_1) - t_0)) * Math.sin((t_2 - (y_46_im * t_1)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.log((1.0 / x_46_re)) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -0.0014: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_0)) * math.sin((t_2 - (y_46_im * t_3))) elif x_46_re <= 0.68: tmp = math.sin(t_2) / (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_1) - t_0)) * math.sin((t_2 - (y_46_im * t_1))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = log(Float64(1.0 / x_46_re)) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -0.0014) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_0)) * sin(Float64(t_2 - Float64(y_46_im * t_3)))); elseif (x_46_re <= 0.68) tmp = Float64(sin(t_2) / 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_1) - t_0)) * sin(Float64(t_2 - Float64(y_46_im * t_1)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = log((1.0 / x_46_re)); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -0.0014) tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_2 - (y_46_im * t_3))); elseif (x_46_re <= 0.68) tmp = sin(t_2) / (exp(t_0) / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = exp((((0.0 - y_46_re) * t_1) - t_0)) * sin((t_2 - (y_46_im * t_1))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[(1.0 / x$46$re), $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[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -0.0014], 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$2 - N[(y$46$im * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 0.68], N[(N[Sin[t$95$2], $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$1), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$2 - N[(y$46$im * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \log \left(\frac{1}{x.re}\right)\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -0.0014:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_0} \cdot \sin \left(t\_2 - y.im \cdot t\_3\right)\\
\mathbf{elif}\;x.re \leq 0.68:\\
\;\;\;\;\frac{\sin t\_2}{\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\_1 - t\_0} \cdot \sin \left(t\_2 - y.im \cdot t\_1\right)\\
\end{array}
\end{array}
if x.re < -0.00139999999999999999Initial 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
Simplified79.3%
if -0.00139999999999999999 < x.re < 0.680000000000000049Initial program 53.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified73.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.2%
Simplified64.2%
if 0.680000000000000049 < x.re Initial program 28.5%
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
Simplified77.5%
Final simplification71.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (exp t_0))
(t_2 (* y.re (atan2 x.im x.re)))
(t_3 (log (/ -1.0 x.re))))
(if (<= x.re -0.0014)
(* (exp (- (* (- 0.0 y.re) t_3) t_0)) (sin (- t_2 (* y.im t_3))))
(if (<= x.re 3.3)
(/ (sin t_2) (/ t_1 (pow (hypot x.re x.im) y.re)))
(* (/ (pow x.re y.re) t_1) (sin (+ t_2 (* y.im (log x.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = exp(t_0);
double t_2 = y_46_re * atan2(x_46_im, x_46_re);
double t_3 = log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -0.0014) {
tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_2 - (y_46_im * t_3)));
} else if (x_46_re <= 3.3) {
tmp = sin(t_2) / (t_1 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = (pow(x_46_re, y_46_re) / t_1) * sin((t_2 + (y_46_im * log(x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.exp(t_0);
double t_2 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_3 = Math.log((-1.0 / x_46_re));
double tmp;
if (x_46_re <= -0.0014) {
tmp = Math.exp((((0.0 - y_46_re) * t_3) - t_0)) * Math.sin((t_2 - (y_46_im * t_3)));
} else if (x_46_re <= 3.3) {
tmp = Math.sin(t_2) / (t_1 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else {
tmp = (Math.pow(x_46_re, y_46_re) / t_1) * Math.sin((t_2 + (y_46_im * Math.log(x_46_re))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.exp(t_0) t_2 = y_46_re * math.atan2(x_46_im, x_46_re) t_3 = math.log((-1.0 / x_46_re)) tmp = 0 if x_46_re <= -0.0014: tmp = math.exp((((0.0 - y_46_re) * t_3) - t_0)) * math.sin((t_2 - (y_46_im * t_3))) elif x_46_re <= 3.3: tmp = math.sin(t_2) / (t_1 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) else: tmp = (math.pow(x_46_re, y_46_re) / t_1) * math.sin((t_2 + (y_46_im * math.log(x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = exp(t_0) t_2 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_3 = log(Float64(-1.0 / x_46_re)) tmp = 0.0 if (x_46_re <= -0.0014) tmp = Float64(exp(Float64(Float64(Float64(0.0 - y_46_re) * t_3) - t_0)) * sin(Float64(t_2 - Float64(y_46_im * t_3)))); elseif (x_46_re <= 3.3) tmp = Float64(sin(t_2) / Float64(t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re))); else tmp = Float64(Float64((x_46_re ^ y_46_re) / t_1) * sin(Float64(t_2 + Float64(y_46_im * log(x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = exp(t_0); t_2 = y_46_re * atan2(x_46_im, x_46_re); t_3 = log((-1.0 / x_46_re)); tmp = 0.0; if (x_46_re <= -0.0014) tmp = exp((((0.0 - y_46_re) * t_3) - t_0)) * sin((t_2 - (y_46_im * t_3))); elseif (x_46_re <= 3.3) tmp = sin(t_2) / (t_1 / (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = ((x_46_re ^ y_46_re) / t_1) * sin((t_2 + (y_46_im * log(x_46_re)))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Exp[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -0.0014], 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$2 - N[(y$46$im * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 3.3], N[(N[Sin[t$95$2], $MachinePrecision] / N[(t$95$1 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[x$46$re, y$46$re], $MachinePrecision] / t$95$1), $MachinePrecision] * N[Sin[N[(t$95$2 + N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := e^{t\_0}\\
t_2 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_3 := \log \left(\frac{-1}{x.re}\right)\\
\mathbf{if}\;x.re \leq -0.0014:\\
\;\;\;\;e^{\left(0 - y.re\right) \cdot t\_3 - t\_0} \cdot \sin \left(t\_2 - y.im \cdot t\_3\right)\\
\mathbf{elif}\;x.re \leq 3.3:\\
\;\;\;\;\frac{\sin t\_2}{\frac{t\_1}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{x.re}^{y.re}}{t\_1} \cdot \sin \left(t\_2 + y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < -0.00139999999999999999Initial 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
Simplified79.3%
if -0.00139999999999999999 < x.re < 3.2999999999999998Initial program 53.8%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified73.9%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.2%
Simplified64.2%
if 3.2999999999999998 < x.re Initial program 28.5%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
exp-diffN/A
*-commutativeN/A
exp-to-powN/A
/-lowering-/.f64N/A
pow-lowering-pow.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
sin-lowering-sin.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6476.2%
Simplified76.2%
Final simplification71.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* (atan2 x.im x.re) y.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -1.75e+235)
(* t_1 t_2)
(if (<= y.re -2.5e-154)
(/ (sin t_1) (/ t_0 (pow (hypot x.re x.im) y.re)))
(if (<= y.re 7.5e+27)
(/ (sin (* y.im (log (hypot x.im x.re)))) t_0)
(* t_2 (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.75e+235) {
tmp = t_1 * t_2;
} else if (y_46_re <= -2.5e-154) {
tmp = sin(t_1) / (t_0 / pow(hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 7.5e+27) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0;
} else {
tmp = t_2 * (log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.75e+235) {
tmp = t_1 * t_2;
} else if (y_46_re <= -2.5e-154) {
tmp = Math.sin(t_1) / (t_0 / Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re));
} else if (y_46_re <= 7.5e+27) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / t_0;
} else {
tmp = t_2 * (Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -1.75e+235: tmp = t_1 * t_2 elif y_46_re <= -2.5e-154: tmp = math.sin(t_1) / (t_0 / math.pow(math.hypot(x_46_re, x_46_im), y_46_re)) elif y_46_re <= 7.5e+27: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / t_0 else: tmp = t_2 * (math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -1.75e+235) tmp = Float64(t_1 * t_2); elseif (y_46_re <= -2.5e-154) tmp = Float64(sin(t_1) / Float64(t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re))); elseif (y_46_re <= 7.5e+27) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0); else tmp = Float64(t_2 * Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_im)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -1.75e+235) tmp = t_1 * t_2; elseif (y_46_re <= -2.5e-154) tmp = sin(t_1) / (t_0 / (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= 7.5e+27) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / t_0; else tmp = t_2 * (log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -1.75e+235], N[(t$95$1 * t$95$2), $MachinePrecision], If[LessEqual[y$46$re, -2.5e-154], N[(N[Sin[t$95$1], $MachinePrecision] / N[(t$95$0 / N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 7.5e+27], 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], N[(t$95$2 * N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1.75 \cdot 10^{+235}:\\
\;\;\;\;t\_1 \cdot t\_2\\
\mathbf{elif}\;y.re \leq -2.5 \cdot 10^{-154}:\\
\;\;\;\;\frac{\sin t\_1}{\frac{t\_0}{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}}\\
\mathbf{elif}\;y.re \leq 7.5 \cdot 10^{+27}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \left(\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.im\right)\\
\end{array}
\end{array}
if y.re < -1.74999999999999995e235Initial program 35.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.f6476.5%
Simplified76.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6488.2%
Simplified88.2%
if -1.74999999999999995e235 < y.re < -2.5000000000000001e-154Initial program 34.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified86.2%
Taylor expanded in y.im around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6480.7%
Simplified80.7%
if -2.5000000000000001e-154 < y.re < 7.5000000000000002e27Initial program 44.9%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified78.8%
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.f6466.5%
Simplified66.5%
if 7.5000000000000002e27 < y.re Initial program 47.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.8%
Simplified45.8%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6445.8%
Simplified45.8%
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-*.f6464.5%
Simplified64.5%
Final simplification71.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im))))
(if (<= y.re -7.8e+31)
(* (sin (* y.re (atan2 x.im x.re))) (pow t_0 (/ y.re 2.0)))
(if (<= y.re 9e+29)
(/
(sin (* y.im (log (hypot x.im x.re))))
(exp (* (atan2 x.im x.re) y.im)))
(* (pow (hypot x.im x.re) y.re) (* (log (sqrt t_0)) y.im))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -7.8e+31) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(t_0, (y_46_re / 2.0));
} else if (y_46_re <= 9e+29) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * (log(sqrt(t_0)) * y_46_im);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double tmp;
if (y_46_re <= -7.8e+31) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(t_0, (y_46_re / 2.0));
} else if (y_46_re <= 9e+29) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * (Math.log(Math.sqrt(t_0)) * y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) tmp = 0 if y_46_re <= -7.8e+31: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(t_0, (y_46_re / 2.0)) elif y_46_re <= 9e+29: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) else: tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * (math.log(math.sqrt(t_0)) * y_46_im) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) tmp = 0.0 if (y_46_re <= -7.8e+31) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (t_0 ^ Float64(y_46_re / 2.0))); elseif (y_46_re <= 9e+29) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); else tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * Float64(log(sqrt(t_0)) * y_46_im)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); tmp = 0.0; if (y_46_re <= -7.8e+31) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (t_0 ^ (y_46_re / 2.0)); elseif (y_46_re <= 9e+29) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); else tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * (log(sqrt(t_0)) * y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -7.8e+31], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 9e+29], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[(N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
\mathbf{if}\;y.re \leq -7.8 \cdot 10^{+31}:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{elif}\;y.re \leq 9 \cdot 10^{+29}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \left(\log \left(\sqrt{t\_0}\right) \cdot y.im\right)\\
\end{array}
\end{array}
if y.re < -7.79999999999999999e31Initial 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.f6484.7%
Simplified84.7%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6484.7%
Applied egg-rr84.7%
if -7.79999999999999999e31 < y.re < 9.0000000000000005e29Initial program 42.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified80.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.f6465.7%
Simplified65.7%
if 9.0000000000000005e29 < y.re Initial program 47.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.8%
Simplified45.8%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6445.8%
Simplified45.8%
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-*.f6464.5%
Simplified64.5%
Final simplification69.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (+ (* x.re x.re) (* x.im x.im)))
(t_1 (* (sin (* y.re (atan2 x.im x.re))) (pow t_0 (/ y.re 2.0))))
(t_2 (* (log (sqrt t_0)) y.im)))
(if (<= y.re -6.5e-163)
t_1
(if (<= y.re 5.2e-84)
(/ t_2 (exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 4.6e-5) t_1 (* (pow (hypot x.im x.re) y.re) t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(t_0, (y_46_re / 2.0));
double t_2 = log(sqrt(t_0)) * y_46_im;
double tmp;
if (y_46_re <= -6.5e-163) {
tmp = t_1;
} else if (y_46_re <= 5.2e-84) {
tmp = t_2 / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 4.6e-5) {
tmp = t_1;
} else {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im);
double t_1 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(t_0, (y_46_re / 2.0));
double t_2 = Math.log(Math.sqrt(t_0)) * y_46_im;
double tmp;
if (y_46_re <= -6.5e-163) {
tmp = t_1;
} else if (y_46_re <= 5.2e-84) {
tmp = t_2 / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 4.6e-5) {
tmp = t_1;
} else {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im) t_1 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(t_0, (y_46_re / 2.0)) t_2 = math.log(math.sqrt(t_0)) * y_46_im tmp = 0 if y_46_re <= -6.5e-163: tmp = t_1 elif y_46_re <= 5.2e-84: tmp = t_2 / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 4.6e-5: tmp = t_1 else: tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) t_1 = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (t_0 ^ Float64(y_46_re / 2.0))) t_2 = Float64(log(sqrt(t_0)) * y_46_im) tmp = 0.0 if (y_46_re <= -6.5e-163) tmp = t_1; elseif (y_46_re <= 5.2e-84) tmp = Float64(t_2 / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 4.6e-5) tmp = t_1; else tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * t_2); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_re * x_46_re) + (x_46_im * x_46_im); t_1 = sin((y_46_re * atan2(x_46_im, x_46_re))) * (t_0 ^ (y_46_re / 2.0)); t_2 = log(sqrt(t_0)) * y_46_im; tmp = 0.0; if (y_46_re <= -6.5e-163) tmp = t_1; elseif (y_46_re <= 5.2e-84) tmp = t_2 / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 4.6e-5) tmp = t_1; else tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * t_2; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[t$95$0, N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Log[N[Sqrt[t$95$0], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[LessEqual[y$46$re, -6.5e-163], t$95$1, If[LessEqual[y$46$re, 5.2e-84], N[(t$95$2 / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.6e-5], t$95$1, N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot x.re + x.im \cdot x.im\\
t_1 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {t\_0}^{\left(\frac{y.re}{2}\right)}\\
t_2 := \log \left(\sqrt{t\_0}\right) \cdot y.im\\
\mathbf{if}\;y.re \leq -6.5 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 5.2 \cdot 10^{-84}:\\
\;\;\;\;\frac{t\_2}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 4.6 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot t\_2\\
\end{array}
\end{array}
if y.re < -6.4999999999999999e-163 or 5.2e-84 < y.re < 4.6e-5Initial 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.f6457.3%
Simplified57.3%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6464.4%
Applied egg-rr64.4%
if -6.4999999999999999e-163 < y.re < 5.2e-84Initial program 45.5%
exp-diffN/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
associate-/r/N/A
exp-diffN/A
Simplified78.0%
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.f6476.8%
Simplified76.8%
Taylor expanded in y.re around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sqrt-lowering-sqrt.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6449.5%
Simplified49.5%
if 4.6e-5 < y.re Initial program 46.3%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6444.8%
Simplified44.8%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6444.8%
Simplified44.8%
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-*.f6459.9%
Simplified59.9%
Final simplification58.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.re 2.9e-186)
(* (sin t_0) (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))
(if (<= x.re 0.46)
(* t_0 (pow (hypot x.im x.re) y.re))
(* (pow x.re y.re) (sin (+ t_0 (* y.im (log x.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= 2.9e-186) {
tmp = sin(t_0) * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else if (x_46_re <= 0.46) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = pow(x_46_re, y_46_re) * sin((t_0 + (y_46_im * log(x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= 2.9e-186) {
tmp = Math.sin(t_0) * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else if (x_46_re <= 0.46) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.pow(x_46_re, y_46_re) * Math.sin((t_0 + (y_46_im * Math.log(x_46_re))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_re <= 2.9e-186: tmp = math.sin(t_0) * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) elif x_46_re <= 0.46: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.pow(x_46_re, y_46_re) * math.sin((t_0 + (y_46_im * math.log(x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_re <= 2.9e-186) tmp = Float64(sin(t_0) * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); elseif (x_46_re <= 0.46) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64((x_46_re ^ y_46_re) * sin(Float64(t_0 + Float64(y_46_im * log(x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_re <= 2.9e-186) tmp = sin(t_0) * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); elseif (x_46_re <= 0.46) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = (x_46_re ^ y_46_re) * sin((t_0 + (y_46_im * log(x_46_re)))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$re, 2.9e-186], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 0.46], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * N[Sin[N[(t$95$0 + N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.re \leq 2.9 \cdot 10^{-186}:\\
\;\;\;\;\sin t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{elif}\;x.re \leq 0.46:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re} \cdot \sin \left(t\_0 + y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < 2.90000000000000019e-186Initial program 42.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.9%
Simplified45.9%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6451.1%
Applied egg-rr51.1%
if 2.90000000000000019e-186 < x.re < 0.46000000000000002Initial program 61.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.f6448.9%
Simplified48.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.4%
Simplified58.4%
if 0.46000000000000002 < x.re Initial program 28.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6424.3%
Simplified24.3%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6462.3%
Simplified62.3%
Final simplification55.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (sin t_0)))
(if (<= x.re -1e+89)
(/ y.im (/ y.im t_0))
(if (<= x.re -1.1)
(* t_1 (pow x.re y.re))
(if (<= x.re 1.4)
(* t_1 (pow x.im y.re))
(* (pow x.re y.re) (sin (* y.im (log x.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 = sin(t_0);
double tmp;
if (x_46_re <= -1e+89) {
tmp = y_46_im / (y_46_im / t_0);
} else if (x_46_re <= -1.1) {
tmp = t_1 * pow(x_46_re, y_46_re);
} else if (x_46_re <= 1.4) {
tmp = t_1 * pow(x_46_im, y_46_re);
} else {
tmp = pow(x_46_re, y_46_re) * sin((y_46_im * log(x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
t_1 = sin(t_0)
if (x_46re <= (-1d+89)) then
tmp = y_46im / (y_46im / t_0)
else if (x_46re <= (-1.1d0)) then
tmp = t_1 * (x_46re ** y_46re)
else if (x_46re <= 1.4d0) then
tmp = t_1 * (x_46im ** y_46re)
else
tmp = (x_46re ** y_46re) * sin((y_46im * log(x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double tmp;
if (x_46_re <= -1e+89) {
tmp = y_46_im / (y_46_im / t_0);
} else if (x_46_re <= -1.1) {
tmp = t_1 * Math.pow(x_46_re, y_46_re);
} else if (x_46_re <= 1.4) {
tmp = t_1 * Math.pow(x_46_im, y_46_re);
} else {
tmp = Math.pow(x_46_re, y_46_re) * Math.sin((y_46_im * Math.log(x_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.sin(t_0) tmp = 0 if x_46_re <= -1e+89: tmp = y_46_im / (y_46_im / t_0) elif x_46_re <= -1.1: tmp = t_1 * math.pow(x_46_re, y_46_re) elif x_46_re <= 1.4: tmp = t_1 * math.pow(x_46_im, y_46_re) else: tmp = math.pow(x_46_re, y_46_re) * math.sin((y_46_im * math.log(x_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 = sin(t_0) tmp = 0.0 if (x_46_re <= -1e+89) tmp = Float64(y_46_im / Float64(y_46_im / t_0)); elseif (x_46_re <= -1.1) tmp = Float64(t_1 * (x_46_re ^ y_46_re)); elseif (x_46_re <= 1.4) tmp = Float64(t_1 * (x_46_im ^ y_46_re)); else tmp = Float64((x_46_re ^ y_46_re) * sin(Float64(y_46_im * log(x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = sin(t_0); tmp = 0.0; if (x_46_re <= -1e+89) tmp = y_46_im / (y_46_im / t_0); elseif (x_46_re <= -1.1) tmp = t_1 * (x_46_re ^ y_46_re); elseif (x_46_re <= 1.4) tmp = t_1 * (x_46_im ^ y_46_re); else tmp = (x_46_re ^ y_46_re) * sin((y_46_im * log(x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[x$46$re, -1e+89], N[(y$46$im / N[(y$46$im / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, -1.1], N[(t$95$1 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 1.4], N[(t$95$1 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
\mathbf{if}\;x.re \leq -1 \cdot 10^{+89}:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{t\_0}}\\
\mathbf{elif}\;x.re \leq -1.1:\\
\;\;\;\;t\_1 \cdot {x.re}^{y.re}\\
\mathbf{elif}\;x.re \leq 1.4:\\
\;\;\;\;t\_1 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re} \cdot \sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < -9.99999999999999995e88Initial program 20.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.f6434.9%
Simplified34.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6415.4%
Simplified15.4%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
frac-2negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6430.7%
Applied egg-rr30.7%
if -9.99999999999999995e88 < x.re < -1.1000000000000001Initial program 60.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6444.8%
Simplified44.8%
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.f6439.1%
Simplified39.1%
if -1.1000000000000001 < x.re < 1.3999999999999999Initial program 54.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.f6451.2%
Simplified51.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.f6443.6%
Simplified43.6%
if 1.3999999999999999 < x.re Initial program 28.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6424.3%
Simplified24.3%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6423.7%
Simplified23.7%
Taylor expanded in x.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6460.4%
Simplified60.4%
Final simplification44.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.re 6e-188)
(* (sin t_0) (pow (+ (* x.re x.re) (* x.im x.im)) (/ y.re 2.0)))
(if (<= x.re 0.58)
(* t_0 (pow (hypot x.im x.re) y.re))
(* (pow x.re y.re) (sin (* y.im (log x.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= 6e-188) {
tmp = sin(t_0) * pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else if (x_46_re <= 0.58) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = pow(x_46_re, y_46_re) * sin((y_46_im * log(x_46_re)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= 6e-188) {
tmp = Math.sin(t_0) * Math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0));
} else if (x_46_re <= 0.58) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.pow(x_46_re, y_46_re) * Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_re <= 6e-188: tmp = math.sin(t_0) * math.pow(((x_46_re * x_46_re) + (x_46_im * x_46_im)), (y_46_re / 2.0)) elif x_46_re <= 0.58: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.pow(x_46_re, y_46_re) * math.sin((y_46_im * math.log(x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_re <= 6e-188) tmp = Float64(sin(t_0) * (Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)) ^ Float64(y_46_re / 2.0))); elseif (x_46_re <= 0.58) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64((x_46_re ^ y_46_re) * sin(Float64(y_46_im * log(x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_re <= 6e-188) tmp = sin(t_0) * (((x_46_re * x_46_re) + (x_46_im * x_46_im)) ^ (y_46_re / 2.0)); elseif (x_46_re <= 0.58) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = (x_46_re ^ y_46_re) * sin((y_46_im * log(x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$re, 6e-188], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$re / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 0.58], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.re \leq 6 \cdot 10^{-188}:\\
\;\;\;\;\sin t\_0 \cdot {\left(x.re \cdot x.re + x.im \cdot x.im\right)}^{\left(\frac{y.re}{2}\right)}\\
\mathbf{elif}\;x.re \leq 0.58:\\
\;\;\;\;t\_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re} \cdot \sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < 6.00000000000000033e-188Initial program 42.7%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6445.9%
Simplified45.9%
*-commutativeN/A
sqrt-pow2N/A
+-commutativeN/A
sqrt-pow2N/A
*-lowering-*.f64N/A
sqrt-pow2N/A
pow-lowering-pow.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6451.1%
Applied egg-rr51.1%
if 6.00000000000000033e-188 < x.re < 0.57999999999999996Initial program 61.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.f6448.9%
Simplified48.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6458.4%
Simplified58.4%
if 0.57999999999999996 < x.re Initial program 28.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6424.3%
Simplified24.3%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6423.7%
Simplified23.7%
Taylor expanded in x.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6460.4%
Simplified60.4%
Final simplification54.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (<= x.re -5.2e+58)
(/ y.im (/ y.im t_0))
(if (<= x.re 0.14)
(* (sin t_0) (pow x.im y.re))
(* (pow x.re y.re) (sin (* y.im (log x.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= -5.2e+58) {
tmp = y_46_im / (y_46_im / t_0);
} else if (x_46_re <= 0.14) {
tmp = sin(t_0) * pow(x_46_im, y_46_re);
} else {
tmp = pow(x_46_re, y_46_re) * sin((y_46_im * log(x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
if (x_46re <= (-5.2d+58)) then
tmp = y_46im / (y_46im / t_0)
else if (x_46re <= 0.14d0) then
tmp = sin(t_0) * (x_46im ** y_46re)
else
tmp = (x_46re ** y_46re) * sin((y_46im * log(x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (x_46_re <= -5.2e+58) {
tmp = y_46_im / (y_46_im / t_0);
} else if (x_46_re <= 0.14) {
tmp = Math.sin(t_0) * Math.pow(x_46_im, y_46_re);
} else {
tmp = Math.pow(x_46_re, y_46_re) * Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if x_46_re <= -5.2e+58: tmp = y_46_im / (y_46_im / t_0) elif x_46_re <= 0.14: tmp = math.sin(t_0) * math.pow(x_46_im, y_46_re) else: tmp = math.pow(x_46_re, y_46_re) * math.sin((y_46_im * math.log(x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (x_46_re <= -5.2e+58) tmp = Float64(y_46_im / Float64(y_46_im / t_0)); elseif (x_46_re <= 0.14) tmp = Float64(sin(t_0) * (x_46_im ^ y_46_re)); else tmp = Float64((x_46_re ^ y_46_re) * sin(Float64(y_46_im * log(x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if (x_46_re <= -5.2e+58) tmp = y_46_im / (y_46_im / t_0); elseif (x_46_re <= 0.14) tmp = sin(t_0) * (x_46_im ^ y_46_re); else tmp = (x_46_re ^ y_46_re) * sin((y_46_im * log(x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$re, -5.2e+58], N[(y$46$im / N[(y$46$im / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 0.14], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;x.re \leq -5.2 \cdot 10^{+58}:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{t\_0}}\\
\mathbf{elif}\;x.re \leq 0.14:\\
\;\;\;\;\sin t\_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re} \cdot \sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < -5.19999999999999976e58Initial program 26.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.f6435.6%
Simplified35.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6414.2%
Simplified14.2%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
frac-2negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.7%
Applied egg-rr29.7%
if -5.19999999999999976e58 < x.re < 0.14000000000000001Initial program 54.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.f6450.5%
Simplified50.5%
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.f6440.3%
Simplified40.3%
if 0.14000000000000001 < x.re Initial program 28.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6424.3%
Simplified24.3%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6423.7%
Simplified23.7%
Taylor expanded in x.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6460.4%
Simplified60.4%
Final simplification43.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (pow x.im y.re) (sin (* y.im (log x.im))))))
(if (<= y.re -2.1e+50)
t_0
(if (<= y.re 76000000000000.0)
(/ y.im (/ y.im (* 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 = pow(x_46_im, y_46_re) * sin((y_46_im * log(x_46_im)));
double tmp;
if (y_46_re <= -2.1e+50) {
tmp = t_0;
} else if (y_46_re <= 76000000000000.0) {
tmp = y_46_im / (y_46_im / (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 = (x_46im ** y_46re) * sin((y_46im * log(x_46im)))
if (y_46re <= (-2.1d+50)) then
tmp = t_0
else if (y_46re <= 76000000000000.0d0) then
tmp = y_46im / (y_46im / (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 = Math.pow(x_46_im, y_46_re) * Math.sin((y_46_im * Math.log(x_46_im)));
double tmp;
if (y_46_re <= -2.1e+50) {
tmp = t_0;
} else if (y_46_re <= 76000000000000.0) {
tmp = y_46_im / (y_46_im / (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 = math.pow(x_46_im, y_46_re) * math.sin((y_46_im * math.log(x_46_im))) tmp = 0 if y_46_re <= -2.1e+50: tmp = t_0 elif y_46_re <= 76000000000000.0: tmp = y_46_im / (y_46_im / (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((x_46_im ^ y_46_re) * sin(Float64(y_46_im * log(x_46_im)))) tmp = 0.0 if (y_46_re <= -2.1e+50) tmp = t_0; elseif (y_46_re <= 76000000000000.0) tmp = Float64(y_46_im / Float64(y_46_im / 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 = (x_46_im ^ y_46_re) * sin((y_46_im * log(x_46_im))); tmp = 0.0; if (y_46_re <= -2.1e+50) tmp = t_0; elseif (y_46_re <= 76000000000000.0) tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re))); else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Power[x$46$im, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.1e+50], t$95$0, If[LessEqual[y$46$re, 76000000000000.0], N[(y$46$im / N[(y$46$im / N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {x.im}^{y.re} \cdot \sin \left(y.im \cdot \log x.im\right)\\
\mathbf{if}\;y.re \leq -2.1 \cdot 10^{+50}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq 76000000000000:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -2.1e50 or 7.6e13 < y.re Initial program 41.1%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6439.4%
Simplified39.4%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6437.6%
Simplified37.6%
Taylor expanded in x.re around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6436.0%
Simplified36.0%
if -2.1e50 < y.re < 7.6e13Initial program 42.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.f6421.5%
Simplified21.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6418.0%
Simplified18.0%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6429.8%
Applied egg-rr29.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= x.re 1100000.0)
(/ y.im (/ y.im (* y.re (atan2 x.im x.re))))
(if (<= x.re 1.4e+213)
(sin (* y.im (log x.re)))
(* y.re (log (exp (atan2 x.im x.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1100000.0) {
tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re)));
} else if (x_46_re <= 1.4e+213) {
tmp = sin((y_46_im * log(x_46_re)));
} else {
tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46re <= 1100000.0d0) then
tmp = y_46im / (y_46im / (y_46re * atan2(x_46im, x_46re)))
else if (x_46re <= 1.4d+213) then
tmp = sin((y_46im * log(x_46re)))
else
tmp = y_46re * log(exp(atan2(x_46im, x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1100000.0) {
tmp = y_46_im / (y_46_im / (y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (x_46_re <= 1.4e+213) {
tmp = Math.sin((y_46_im * Math.log(x_46_re)));
} else {
tmp = y_46_re * Math.log(Math.exp(Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 1100000.0: tmp = y_46_im / (y_46_im / (y_46_re * math.atan2(x_46_im, x_46_re))) elif x_46_re <= 1.4e+213: tmp = math.sin((y_46_im * math.log(x_46_re))) else: tmp = y_46_re * math.log(math.exp(math.atan2(x_46_im, x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 1100000.0) tmp = Float64(y_46_im / Float64(y_46_im / Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (x_46_re <= 1.4e+213) tmp = sin(Float64(y_46_im * log(x_46_re))); else tmp = Float64(y_46_re * log(exp(atan(x_46_im, x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 1100000.0) tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re))); elseif (x_46_re <= 1.4e+213) tmp = sin((y_46_im * log(x_46_re))); else tmp = y_46_re * log(exp(atan2(x_46_im, x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 1100000.0], N[(y$46$im / N[(y$46$im / N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 1.4e+213], N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(y$46$re * N[Log[N[Exp[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1100000:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;x.re \leq 1.4 \cdot 10^{+213}:\\
\;\;\;\;\sin \left(y.im \cdot \log x.re\right)\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \log \left(e^{\tan^{-1}_* \frac{x.im}{x.re}}\right)\\
\end{array}
\end{array}
if x.re < 1.1e6Initial program 46.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.f6446.4%
Simplified46.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6411.8%
Simplified11.8%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
frac-2negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6424.2%
Applied egg-rr24.2%
if 1.1e6 < x.re < 1.39999999999999995e213Initial program 39.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6432.9%
Simplified32.9%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6462.7%
Simplified62.7%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6434.0%
Simplified34.0%
if 1.39999999999999995e213 < x.re 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.f6446.3%
Simplified46.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6430.4%
Simplified30.4%
rem-log-expN/A
log-lowering-log.f64N/A
exp-lowering-exp.f64N/A
atan2-lowering-atan2.f6451.3%
Applied egg-rr51.3%
Final simplification27.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 12.5) (* (* y.re (atan2 x.im x.re)) (pow (hypot x.im x.re) y.re)) (* (pow x.re y.re) (sin (* y.im (log x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 12.5) {
tmp = (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = pow(x_46_re, y_46_re) * sin((y_46_im * log(x_46_re)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 12.5) {
tmp = (y_46_re * Math.atan2(x_46_im, x_46_re)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else {
tmp = Math.pow(x_46_re, y_46_re) * Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 12.5: tmp = (y_46_re * math.atan2(x_46_im, x_46_re)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) else: tmp = math.pow(x_46_re, y_46_re) * math.sin((y_46_im * math.log(x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 12.5) tmp = Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); else tmp = Float64((x_46_re ^ y_46_re) * sin(Float64(y_46_im * log(x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 12.5) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); else tmp = (x_46_re ^ y_46_re) * sin((y_46_im * log(x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 12.5], N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 12.5:\\
\;\;\;\;\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re} \cdot \sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < 12.5Initial program 47.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.f6446.6%
Simplified46.6%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6445.5%
Simplified45.5%
if 12.5 < x.re Initial program 28.5%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6424.3%
Simplified24.3%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6423.7%
Simplified23.7%
Taylor expanded in x.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6460.4%
Simplified60.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 2.05e-301) (/ y.im (/ y.im (* y.re (atan2 x.im x.re)))) (* (pow x.re y.re) (sin (* y.im (log x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 2.05e-301) {
tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = pow(x_46_re, y_46_re) * sin((y_46_im * log(x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46re <= 2.05d-301) then
tmp = y_46im / (y_46im / (y_46re * atan2(x_46im, x_46re)))
else
tmp = (x_46re ** y_46re) * sin((y_46im * log(x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 2.05e-301) {
tmp = y_46_im / (y_46_im / (y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = Math.pow(x_46_re, y_46_re) * Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 2.05e-301: tmp = y_46_im / (y_46_im / (y_46_re * math.atan2(x_46_im, x_46_re))) else: tmp = math.pow(x_46_re, y_46_re) * math.sin((y_46_im * math.log(x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 2.05e-301) tmp = Float64(y_46_im / Float64(y_46_im / Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = Float64((x_46_re ^ y_46_re) * sin(Float64(y_46_im * log(x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 2.05e-301) tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re))); else tmp = (x_46_re ^ y_46_re) * sin((y_46_im * log(x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 2.05e-301], N[(y$46$im / N[(y$46$im / N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[x$46$re, y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 2.05 \cdot 10^{-301}:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{else}:\\
\;\;\;\;{x.re}^{y.re} \cdot \sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < 2.04999999999999979e-301Initial program 43.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.f6443.7%
Simplified43.7%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6413.3%
Simplified13.3%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6427.2%
Applied egg-rr27.2%
if 2.04999999999999979e-301 < x.re Initial program 40.8%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6432.9%
Simplified32.9%
Taylor expanded in y.re around 0
sin-lowering-sin.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-*.f6430.3%
Simplified30.3%
Taylor expanded in x.im around 0
*-commutativeN/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6446.2%
Simplified46.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= x.re 900000.0)
(/ y.im (/ y.im (* y.re (atan2 x.im x.re))))
(if (<= x.re 7.8e+214)
(sin (* y.im (log x.re)))
(/ (* y.re y.im) (/ y.im (atan2 x.im x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 900000.0) {
tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re)));
} else if (x_46_re <= 7.8e+214) {
tmp = sin((y_46_im * log(x_46_re)));
} else {
tmp = (y_46_re * y_46_im) / (y_46_im / atan2(x_46_im, x_46_re));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46re <= 900000.0d0) then
tmp = y_46im / (y_46im / (y_46re * atan2(x_46im, x_46re)))
else if (x_46re <= 7.8d+214) then
tmp = sin((y_46im * log(x_46re)))
else
tmp = (y_46re * y_46im) / (y_46im / atan2(x_46im, x_46re))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 900000.0) {
tmp = y_46_im / (y_46_im / (y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (x_46_re <= 7.8e+214) {
tmp = Math.sin((y_46_im * Math.log(x_46_re)));
} else {
tmp = (y_46_re * y_46_im) / (y_46_im / Math.atan2(x_46_im, x_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 900000.0: tmp = y_46_im / (y_46_im / (y_46_re * math.atan2(x_46_im, x_46_re))) elif x_46_re <= 7.8e+214: tmp = math.sin((y_46_im * math.log(x_46_re))) else: tmp = (y_46_re * y_46_im) / (y_46_im / math.atan2(x_46_im, x_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 900000.0) tmp = Float64(y_46_im / Float64(y_46_im / Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (x_46_re <= 7.8e+214) tmp = sin(Float64(y_46_im * log(x_46_re))); else tmp = Float64(Float64(y_46_re * y_46_im) / Float64(y_46_im / atan(x_46_im, x_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 900000.0) tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re))); elseif (x_46_re <= 7.8e+214) tmp = sin((y_46_im * log(x_46_re))); else tmp = (y_46_re * y_46_im) / (y_46_im / atan2(x_46_im, x_46_re)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 900000.0], N[(y$46$im / N[(y$46$im / N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 7.8e+214], N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(y$46$re * y$46$im), $MachinePrecision] / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 900000:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;x.re \leq 7.8 \cdot 10^{+214}:\\
\;\;\;\;\sin \left(y.im \cdot \log x.re\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re \cdot y.im}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\end{array}
\end{array}
if x.re < 9e5Initial program 46.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.f6446.4%
Simplified46.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6411.8%
Simplified11.8%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
frac-2negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6424.2%
Applied egg-rr24.2%
if 9e5 < x.re < 7.80000000000000027e214Initial program 39.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6432.9%
Simplified32.9%
Taylor expanded in x.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6462.7%
Simplified62.7%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6434.0%
Simplified34.0%
if 7.80000000000000027e214 < x.re 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.f6446.3%
Simplified46.3%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6430.4%
Simplified30.4%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6435.4%
Applied egg-rr35.4%
Final simplification26.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -1.05e+108) (* (* y.re y.im) (/ (atan2 x.im x.re) y.im)) (/ y.im (/ y.im (* y.re (atan2 x.im x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -1.05e+108) {
tmp = (y_46_re * y_46_im) * (atan2(x_46_im, x_46_re) / y_46_im);
} else {
tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46re <= (-1.05d+108)) then
tmp = (y_46re * y_46im) * (atan2(x_46im, x_46re) / y_46im)
else
tmp = y_46im / (y_46im / (y_46re * atan2(x_46im, x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -1.05e+108) {
tmp = (y_46_re * y_46_im) * (Math.atan2(x_46_im, x_46_re) / y_46_im);
} else {
tmp = y_46_im / (y_46_im / (y_46_re * Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_re <= -1.05e+108: tmp = (y_46_re * y_46_im) * (math.atan2(x_46_im, x_46_re) / y_46_im) else: tmp = y_46_im / (y_46_im / (y_46_re * math.atan2(x_46_im, x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_re <= -1.05e+108) tmp = Float64(Float64(y_46_re * y_46_im) * Float64(atan(x_46_im, x_46_re) / y_46_im)); else tmp = Float64(y_46_im / Float64(y_46_im / Float64(y_46_re * atan(x_46_im, x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_re <= -1.05e+108) tmp = (y_46_re * y_46_im) * (atan2(x_46_im, x_46_re) / y_46_im); else tmp = y_46_im / (y_46_im / (y_46_re * atan2(x_46_im, x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, -1.05e+108], N[(N[(y$46$re * y$46$im), $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$im / N[(y$46$im / N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.05 \cdot 10^{+108}:\\
\;\;\;\;\left(y.re \cdot y.im\right) \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.im}{\frac{y.im}{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}}\\
\end{array}
\end{array}
if y.re < -1.05000000000000005e108Initial program 32.4%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6483.9%
Simplified83.9%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f647.9%
Simplified7.9%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f6423.0%
Applied egg-rr23.0%
if -1.05000000000000005e108 < y.re Initial program 43.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.f6435.2%
Simplified35.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.7%
Simplified12.7%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6423.8%
Applied egg-rr23.8%
Final simplification23.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.re -2.6e+110) (* (* y.re y.im) (/ (atan2 x.im x.re) y.im)) (* y.im (/ y.re (/ y.im (atan2 x.im x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -2.6e+110) {
tmp = (y_46_re * y_46_im) * (atan2(x_46_im, x_46_re) / y_46_im);
} else {
tmp = y_46_im * (y_46_re / (y_46_im / atan2(x_46_im, x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (y_46re <= (-2.6d+110)) then
tmp = (y_46re * y_46im) * (atan2(x_46im, x_46re) / y_46im)
else
tmp = y_46im * (y_46re / (y_46im / atan2(x_46im, x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (y_46_re <= -2.6e+110) {
tmp = (y_46_re * y_46_im) * (Math.atan2(x_46_im, x_46_re) / y_46_im);
} else {
tmp = y_46_im * (y_46_re / (y_46_im / Math.atan2(x_46_im, x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_re <= -2.6e+110: tmp = (y_46_re * y_46_im) * (math.atan2(x_46_im, x_46_re) / y_46_im) else: tmp = y_46_im * (y_46_re / (y_46_im / math.atan2(x_46_im, x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (y_46_re <= -2.6e+110) tmp = Float64(Float64(y_46_re * y_46_im) * Float64(atan(x_46_im, x_46_re) / y_46_im)); else tmp = Float64(y_46_im * Float64(y_46_re / Float64(y_46_im / atan(x_46_im, x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_re <= -2.6e+110) tmp = (y_46_re * y_46_im) * (atan2(x_46_im, x_46_re) / y_46_im); else tmp = y_46_im * (y_46_re / (y_46_im / atan2(x_46_im, x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, -2.6e+110], N[(N[(y$46$re * y$46$im), $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], N[(y$46$im * N[(y$46$re / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -2.6 \cdot 10^{+110}:\\
\;\;\;\;\left(y.re \cdot y.im\right) \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\\
\mathbf{else}:\\
\;\;\;\;y.im \cdot \frac{y.re}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\end{array}
\end{array}
if y.re < -2.6e110Initial program 33.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.f6483.4%
Simplified83.4%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f648.1%
Simplified8.1%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f64N/A
*-lowering-*.f6423.6%
Applied egg-rr23.6%
if -2.6e110 < y.re Initial program 43.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6435.5%
Simplified35.5%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.6%
Simplified12.6%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6413.0%
Applied egg-rr13.0%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
clear-numN/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6423.3%
Applied egg-rr23.3%
Final simplification23.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ y.im (/ y.im (* y.re (atan2 x.im x.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_im / (y_46_im / (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_46im / (y_46im / (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_im / (y_46_im / (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_im / (y_46_im / (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_im / Float64(y_46_im / 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_im / (y_46_im / (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$im / N[(y$46$im / N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y.im}{\frac{y.im}{y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}}}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.2%
Simplified42.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.0%
Simplified12.0%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
clear-numN/A
associate-*l/N/A
*-lft-identityN/A
frac-2negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6422.7%
Applied egg-rr22.7%
Final simplification21.9%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.im (/ y.re (/ y.im (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_im * (y_46_re / (y_46_im / 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_46im * (y_46re / (y_46im / 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_im * (y_46_re / (y_46_im / 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_im * (y_46_re / (y_46_im / 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_im * Float64(y_46_re / Float64(y_46_im / 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_im * (y_46_re / (y_46_im / atan2(x_46_im, x_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$im * N[(y$46$re / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.im \cdot \frac{y.re}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.2%
Simplified42.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.0%
Simplified12.0%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6412.3%
Applied egg-rr12.3%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
clear-numN/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6421.5%
Applied egg-rr21.5%
Final simplification21.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* (* (atan2 x.im x.re) y.im) (/ y.re y.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im);
}
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 = (atan2(x_46im, x_46re) * y_46im) * (y_46re / y_46im)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (Math.atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return (math.atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(Float64(atan(x_46_im, x_46_re) * y_46_im) * Float64(y_46_re / y_46_im)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = (atan2(x_46_im, x_46_re) * y_46_im) * (y_46_re / y_46_im); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision] * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\right) \cdot \frac{y.re}{y.im}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.2%
Simplified42.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.0%
Simplified12.0%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6412.3%
Applied egg-rr12.3%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-/r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f6420.7%
Applied egg-rr20.7%
Final simplification20.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (/ y.im (/ y.im (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 * (y_46_im / (y_46_im / 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 * (y_46im / (y_46im / 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 * (y_46_im / (y_46_im / 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 * (y_46_im / (y_46_im / 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 * Float64(y_46_im / Float64(y_46_im / 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 * (y_46_im / (y_46_im / 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[(y$46$im / N[(y$46$im / N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \frac{y.im}{\frac{y.im}{\tan^{-1}_* \frac{x.im}{x.re}}}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.2%
Simplified42.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.0%
Simplified12.0%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6412.3%
Applied egg-rr12.3%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6412.7%
Applied egg-rr12.7%
Final simplification12.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (* y.im (/ (atan2 x.im x.re) y.im))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / y_46_im));
}
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 * (y_46im * (atan2(x_46im, x_46re) / y_46im))
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 * (y_46_im * (Math.atan2(x_46_im, x_46_re) / y_46_im));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * (y_46_im * (math.atan2(x_46_im, x_46_re) / y_46_im))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * Float64(y_46_im * Float64(atan(x_46_im, x_46_re) / y_46_im))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * (y_46_im * (atan2(x_46_im, x_46_re) / y_46_im)); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[(y$46$im * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \left(y.im \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.2%
Simplified42.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.0%
Simplified12.0%
*-rgt-identityN/A
lft-mult-inverseN/A
associate-*l*N/A
div-invN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
atan2-lowering-atan2.f6412.3%
Applied egg-rr12.3%
Final simplification12.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6442.2%
Simplified42.2%
Taylor expanded in y.re around 0
*-lowering-*.f64N/A
atan2-lowering-atan2.f6412.0%
Simplified12.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.im (log x.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_im * log(x_46_im);
}
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_46im * log(x_46im)
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_im * Math.log(x_46_im);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_im * math.log(x_46_im)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_im * log(x_46_im)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_im * log(x_46_im); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.im \cdot \log x.im
\end{array}
Initial program 42.0%
Taylor expanded in y.im around 0
pow-lowering-pow.f64N/A
unpow2N/A
unpow2N/A
hypot-defineN/A
hypot-lowering-hypot.f6432.2%
Simplified32.2%
Taylor expanded in x.re around 0
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
atan2-lowering-atan2.f64N/A
pow-lowering-pow.f6420.1%
Simplified20.1%
Taylor expanded in y.re around 0
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f642.5%
Simplified2.5%
Taylor expanded in y.im around 0
*-lowering-*.f64N/A
log-lowering-log.f642.4%
Simplified2.4%
herbie shell --seed 2024154
(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)))))