
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * 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 = ((x_46im * y_46re) - (x_46re * y_46im)) / ((y_46re * y_46re) + (y_46im * 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 ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(Float64(Float64(x_46_im * y_46_re) - Float64(x_46_re * y_46_im)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[(N[(x$46$im * y$46$re), $MachinePrecision] - N[(x$46$re * y$46$im), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * 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 = ((x_46im * y_46re) - (x_46re * y_46im)) / ((y_46re * y_46re) + (y_46im * 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 ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im))
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(Float64(Float64(x_46_im * y_46_re) - Float64(x_46_re * y_46_im)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[(N[(x$46$im * y$46$re), $MachinePrecision] - N[(x$46$re * y$46$im), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\end{array}
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ (- (/ y.re (/ (hypot y.re y.im) x.im)) (/ y.im (/ (hypot y.re y.im) x.re))) (hypot y.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 / (hypot(y_46_re, y_46_im) / x_46_im)) - (y_46_im / (hypot(y_46_re, y_46_im) / x_46_re))) / hypot(y_46_re, y_46_im);
}
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.hypot(y_46_re, y_46_im) / x_46_im)) - (y_46_im / (Math.hypot(y_46_re, y_46_im) / x_46_re))) / Math.hypot(y_46_re, y_46_im);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return ((y_46_re / (math.hypot(y_46_re, y_46_im) / x_46_im)) - (y_46_im / (math.hypot(y_46_re, y_46_im) / x_46_re))) / math.hypot(y_46_re, y_46_im)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(Float64(Float64(y_46_re / Float64(hypot(y_46_re, y_46_im) / x_46_im)) - Float64(y_46_im / Float64(hypot(y_46_re, y_46_im) / x_46_re))) / hypot(y_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 / (hypot(y_46_re, y_46_im) / x_46_im)) - (y_46_im / (hypot(y_46_re, y_46_im) / x_46_re))) / hypot(y_46_re, y_46_im); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[(N[(y$46$re / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / x$46$im), $MachinePrecision]), $MachinePrecision] - N[(y$46$im / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{y.re}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{x.im}} - \frac{y.im}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{x.re}}}{\mathsf{hypot}\left(y.re, y.im\right)}
\end{array}
Initial program 63.5%
*-un-lft-identity63.5%
add-sqr-sqrt63.5%
times-frac63.4%
hypot-def63.5%
hypot-def76.4%
Applied egg-rr76.4%
associate-*l/76.6%
*-un-lft-identity76.6%
*-commutative76.6%
*-commutative76.6%
Applied egg-rr76.6%
div-sub76.6%
sub-neg76.6%
Applied egg-rr76.6%
sub-neg76.6%
associate-/l*84.9%
associate-/l*97.2%
Simplified97.2%
Final simplification97.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (- (* y.re x.im) (* y.im x.re))))
(if (<= (/ t_0 (+ (* y.re y.re) (* y.im y.im))) 1e+254)
(/ (/ t_0 (hypot y.re y.im)) (hypot y.re y.im))
(fma
(/ y.re (hypot y.re y.im))
(/ x.im (hypot y.re y.im))
(/ (- x.re) y.im)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * x_46_im) - (y_46_im * x_46_re);
double tmp;
if ((t_0 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= 1e+254) {
tmp = (t_0 / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im);
} else {
tmp = fma((y_46_re / hypot(y_46_re, y_46_im)), (x_46_im / hypot(y_46_re, y_46_im)), (-x_46_re / y_46_im));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) tmp = 0.0 if (Float64(t_0 / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) <= 1e+254) tmp = Float64(Float64(t_0 / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im)); else tmp = fma(Float64(y_46_re / hypot(y_46_re, y_46_im)), Float64(x_46_im / hypot(y_46_re, y_46_im)), Float64(Float64(-x_46_re) / y_46_im)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$0 / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+254], N[(N[(t$95$0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision], N[(N[(y$46$re / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] * N[(x$46$im / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] + N[((-x$46$re) / y$46$im), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot x.im - y.im \cdot x.re\\
\mathbf{if}\;\frac{t_0}{y.re \cdot y.re + y.im \cdot y.im} \leq 10^{+254}:\\
\;\;\;\;\frac{\frac{t_0}{\mathsf{hypot}\left(y.re, y.im\right)}}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y.re}{\mathsf{hypot}\left(y.re, y.im\right)}, \frac{x.im}{\mathsf{hypot}\left(y.re, y.im\right)}, \frac{-x.re}{y.im}\right)\\
\end{array}
\end{array}
if (/.f64 (-.f64 (*.f64 x.im y.re) (*.f64 x.re y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) < 9.9999999999999994e253Initial program 82.7%
*-un-lft-identity82.7%
add-sqr-sqrt82.7%
times-frac82.7%
hypot-def82.7%
hypot-def97.0%
Applied egg-rr97.0%
associate-*l/97.3%
*-un-lft-identity97.3%
*-commutative97.3%
*-commutative97.3%
Applied egg-rr97.3%
if 9.9999999999999994e253 < (/.f64 (-.f64 (*.f64 x.im y.re) (*.f64 x.re y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) Initial program 11.4%
div-sub9.4%
sub-neg9.4%
*-commutative9.4%
add-sqr-sqrt9.4%
times-frac16.3%
fma-def16.3%
hypot-def16.3%
hypot-def45.6%
associate-/l*58.1%
add-sqr-sqrt58.1%
pow258.1%
hypot-def58.1%
Applied egg-rr58.1%
Taylor expanded in y.re around 0 67.8%
Final simplification89.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im))))
(t_1 (- (/ x.im (/ (pow y.im 2.0) y.re)) (/ x.re y.im))))
(if (<= y.re -1.3e+95)
(/ (- (/ x.re (/ y.re y.im)) x.im) (hypot y.re y.im))
(if (<= y.re -4.4e-100)
t_0
(if (<= y.re 1.8e-145)
t_1
(if (<= y.re 5e-66)
t_0
(if (<= y.re 2.35e-10)
t_1
(* (/ y.re (hypot y.im y.re)) (/ x.im (hypot y.im y.re))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / (pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
double tmp;
if (y_46_re <= -1.3e+95) {
tmp = ((x_46_re / (y_46_re / y_46_im)) - x_46_im) / hypot(y_46_re, y_46_im);
} else if (y_46_re <= -4.4e-100) {
tmp = t_0;
} else if (y_46_re <= 1.8e-145) {
tmp = t_1;
} else if (y_46_re <= 5e-66) {
tmp = t_0;
} else if (y_46_re <= 2.35e-10) {
tmp = t_1;
} else {
tmp = (y_46_re / hypot(y_46_im, y_46_re)) * (x_46_im / hypot(y_46_im, y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / (Math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
double tmp;
if (y_46_re <= -1.3e+95) {
tmp = ((x_46_re / (y_46_re / y_46_im)) - x_46_im) / Math.hypot(y_46_re, y_46_im);
} else if (y_46_re <= -4.4e-100) {
tmp = t_0;
} else if (y_46_re <= 1.8e-145) {
tmp = t_1;
} else if (y_46_re <= 5e-66) {
tmp = t_0;
} else if (y_46_re <= 2.35e-10) {
tmp = t_1;
} else {
tmp = (y_46_re / Math.hypot(y_46_im, y_46_re)) * (x_46_im / Math.hypot(y_46_im, y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) t_1 = (x_46_im / (math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im) tmp = 0 if y_46_re <= -1.3e+95: tmp = ((x_46_re / (y_46_re / y_46_im)) - x_46_im) / math.hypot(y_46_re, y_46_im) elif y_46_re <= -4.4e-100: tmp = t_0 elif y_46_re <= 1.8e-145: tmp = t_1 elif y_46_re <= 5e-66: tmp = t_0 elif y_46_re <= 2.35e-10: tmp = t_1 else: tmp = (y_46_re / math.hypot(y_46_im, y_46_re)) * (x_46_im / math.hypot(y_46_im, y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) t_1 = Float64(Float64(x_46_im / Float64((y_46_im ^ 2.0) / y_46_re)) - Float64(x_46_re / y_46_im)) tmp = 0.0 if (y_46_re <= -1.3e+95) tmp = Float64(Float64(Float64(x_46_re / Float64(y_46_re / y_46_im)) - x_46_im) / hypot(y_46_re, y_46_im)); elseif (y_46_re <= -4.4e-100) tmp = t_0; elseif (y_46_re <= 1.8e-145) tmp = t_1; elseif (y_46_re <= 5e-66) tmp = t_0; elseif (y_46_re <= 2.35e-10) tmp = t_1; else tmp = Float64(Float64(y_46_re / hypot(y_46_im, y_46_re)) * Float64(x_46_im / hypot(y_46_im, y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); t_1 = (x_46_im / ((y_46_im ^ 2.0) / y_46_re)) - (x_46_re / y_46_im); tmp = 0.0; if (y_46_re <= -1.3e+95) tmp = ((x_46_re / (y_46_re / y_46_im)) - x_46_im) / hypot(y_46_re, y_46_im); elseif (y_46_re <= -4.4e-100) tmp = t_0; elseif (y_46_re <= 1.8e-145) tmp = t_1; elseif (y_46_re <= 5e-66) tmp = t_0; elseif (y_46_re <= 2.35e-10) tmp = t_1; else tmp = (y_46_re / hypot(y_46_im, y_46_re)) * (x_46_im / hypot(y_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[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im / N[(N[Power[y$46$im, 2.0], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.3e+95], N[(N[(N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$im), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -4.4e-100], t$95$0, If[LessEqual[y$46$re, 1.8e-145], t$95$1, If[LessEqual[y$46$re, 5e-66], t$95$0, If[LessEqual[y$46$re, 2.35e-10], t$95$1, N[(N[(y$46$re / N[Sqrt[y$46$im ^ 2 + y$46$re ^ 2], $MachinePrecision]), $MachinePrecision] * N[(x$46$im / N[Sqrt[y$46$im ^ 2 + y$46$re ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
t_1 := \frac{x.im}{\frac{{y.im}^{2}}{y.re}} - \frac{x.re}{y.im}\\
\mathbf{if}\;y.re \leq -1.3 \cdot 10^{+95}:\\
\;\;\;\;\frac{\frac{x.re}{\frac{y.re}{y.im}} - x.im}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{elif}\;y.re \leq -4.4 \cdot 10^{-100}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 1.8 \cdot 10^{-145}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{-66}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 2.35 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \frac{x.im}{\mathsf{hypot}\left(y.im, y.re\right)}\\
\end{array}
\end{array}
if y.re < -1.29999999999999995e95Initial program 49.8%
*-un-lft-identity49.8%
add-sqr-sqrt49.8%
times-frac49.8%
hypot-def49.8%
hypot-def65.8%
Applied egg-rr65.8%
associate-*l/65.7%
*-un-lft-identity65.7%
*-commutative65.7%
*-commutative65.7%
Applied egg-rr65.7%
Taylor expanded in y.re around -inf 89.5%
+-commutative89.5%
mul-1-neg89.5%
unsub-neg89.5%
associate-/l*95.0%
Simplified95.0%
if -1.29999999999999995e95 < y.re < -4.39999999999999978e-100 or 1.8e-145 < y.re < 4.99999999999999962e-66Initial program 93.2%
if -4.39999999999999978e-100 < y.re < 1.8e-145 or 4.99999999999999962e-66 < y.re < 2.3500000000000002e-10Initial program 59.4%
Taylor expanded in y.re around 0 77.5%
+-commutative77.5%
mul-1-neg77.5%
unsub-neg77.5%
associate-/l*77.7%
Simplified77.7%
if 2.3500000000000002e-10 < y.re Initial program 47.4%
Taylor expanded in x.im around inf 43.8%
*-commutative43.8%
Simplified43.8%
add-sqr-sqrt43.8%
hypot-udef43.8%
hypot-udef43.8%
times-frac83.7%
hypot-udef48.1%
+-commutative48.1%
hypot-def83.7%
hypot-udef48.1%
+-commutative48.1%
hypot-def83.7%
Applied egg-rr83.7%
Final simplification85.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (- (* y.re x.im) (* y.im x.re))))
(if (<= (/ t_0 (+ (* y.re y.re) (* y.im y.im))) INFINITY)
(/ (/ t_0 (hypot y.re y.im)) (hypot y.re y.im))
(* (/ y.re (hypot y.im y.re)) (/ x.im (hypot y.im y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * x_46_im) - (y_46_im * x_46_re);
double tmp;
if ((t_0 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= ((double) INFINITY)) {
tmp = (t_0 / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im);
} else {
tmp = (y_46_re / hypot(y_46_im, y_46_re)) * (x_46_im / hypot(y_46_im, y_46_re));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * x_46_im) - (y_46_im * x_46_re);
double tmp;
if ((t_0 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= Double.POSITIVE_INFINITY) {
tmp = (t_0 / Math.hypot(y_46_re, y_46_im)) / Math.hypot(y_46_re, y_46_im);
} else {
tmp = (y_46_re / Math.hypot(y_46_im, y_46_re)) * (x_46_im / Math.hypot(y_46_im, y_46_re));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_re * x_46_im) - (y_46_im * x_46_re) tmp = 0 if (t_0 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= math.inf: tmp = (t_0 / math.hypot(y_46_re, y_46_im)) / math.hypot(y_46_re, y_46_im) else: tmp = (y_46_re / math.hypot(y_46_im, y_46_re)) * (x_46_im / math.hypot(y_46_im, y_46_re)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) tmp = 0.0 if (Float64(t_0 / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) <= Inf) tmp = Float64(Float64(t_0 / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im)); else tmp = Float64(Float64(y_46_re / hypot(y_46_im, y_46_re)) * Float64(x_46_im / hypot(y_46_im, y_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_re * x_46_im) - (y_46_im * x_46_re); tmp = 0.0; if ((t_0 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= Inf) tmp = (t_0 / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im); else tmp = (y_46_re / hypot(y_46_im, y_46_re)) * (x_46_im / hypot(y_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[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$0 / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(t$95$0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision], N[(N[(y$46$re / N[Sqrt[y$46$im ^ 2 + y$46$re ^ 2], $MachinePrecision]), $MachinePrecision] * N[(x$46$im / N[Sqrt[y$46$im ^ 2 + y$46$re ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot x.im - y.im \cdot x.re\\
\mathbf{if}\;\frac{t_0}{y.re \cdot y.re + y.im \cdot y.im} \leq \infty:\\
\;\;\;\;\frac{\frac{t_0}{\mathsf{hypot}\left(y.re, y.im\right)}}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \frac{x.im}{\mathsf{hypot}\left(y.im, y.re\right)}\\
\end{array}
\end{array}
if (/.f64 (-.f64 (*.f64 x.im y.re) (*.f64 x.re y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) < +inf.0Initial program 77.8%
*-un-lft-identity77.8%
add-sqr-sqrt77.8%
times-frac77.7%
hypot-def77.7%
hypot-def93.0%
Applied egg-rr93.0%
associate-*l/93.2%
*-un-lft-identity93.2%
*-commutative93.2%
*-commutative93.2%
Applied egg-rr93.2%
if +inf.0 < (/.f64 (-.f64 (*.f64 x.im y.re) (*.f64 x.re y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) Initial program 0.0%
Taylor expanded in x.im around inf 1.5%
*-commutative1.5%
Simplified1.5%
add-sqr-sqrt1.5%
hypot-udef1.5%
hypot-udef1.5%
times-frac57.1%
hypot-udef3.8%
+-commutative3.8%
hypot-def57.1%
hypot-udef3.8%
+-commutative3.8%
hypot-def57.1%
Applied egg-rr57.1%
Final simplification86.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im)))))
(if (<= y.re -2.7e+90)
(- (/ x.im y.re) (/ y.im (/ 1.0 (/ (/ x.re y.re) y.re))))
(if (<= y.re -6e-100)
t_0
(if (<= y.re 1.1e-146)
(- (/ x.im (/ (pow y.im 2.0) y.re)) (/ x.re y.im))
(if (<= y.re 3.4e+80)
t_0
(/ (- x.im (/ x.re (/ y.re y.im))) (hypot y.re y.im))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (y_46_re <= -2.7e+90) {
tmp = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
} else if (y_46_re <= -6e-100) {
tmp = t_0;
} else if (y_46_re <= 1.1e-146) {
tmp = (x_46_im / (pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
} else if (y_46_re <= 3.4e+80) {
tmp = t_0;
} else {
tmp = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / hypot(y_46_re, y_46_im);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (y_46_re <= -2.7e+90) {
tmp = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
} else if (y_46_re <= -6e-100) {
tmp = t_0;
} else if (y_46_re <= 1.1e-146) {
tmp = (x_46_im / (Math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
} else if (y_46_re <= 3.4e+80) {
tmp = t_0;
} else {
tmp = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / Math.hypot(y_46_re, y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) tmp = 0 if y_46_re <= -2.7e+90: tmp = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))) elif y_46_re <= -6e-100: tmp = t_0 elif y_46_re <= 1.1e-146: tmp = (x_46_im / (math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im) elif y_46_re <= 3.4e+80: tmp = t_0 else: tmp = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / math.hypot(y_46_re, y_46_im) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) tmp = 0.0 if (y_46_re <= -2.7e+90) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im / Float64(1.0 / Float64(Float64(x_46_re / y_46_re) / y_46_re)))); elseif (y_46_re <= -6e-100) tmp = t_0; elseif (y_46_re <= 1.1e-146) tmp = Float64(Float64(x_46_im / Float64((y_46_im ^ 2.0) / y_46_re)) - Float64(x_46_re / y_46_im)); elseif (y_46_re <= 3.4e+80) tmp = t_0; else tmp = Float64(Float64(x_46_im - Float64(x_46_re / Float64(y_46_re / y_46_im))) / hypot(y_46_re, y_46_im)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); tmp = 0.0; if (y_46_re <= -2.7e+90) tmp = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))); elseif (y_46_re <= -6e-100) tmp = t_0; elseif (y_46_re <= 1.1e-146) tmp = (x_46_im / ((y_46_im ^ 2.0) / y_46_re)) - (x_46_re / y_46_im); elseif (y_46_re <= 3.4e+80) tmp = t_0; else tmp = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / hypot(y_46_re, y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.7e+90], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im / N[(1.0 / N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -6e-100], t$95$0, If[LessEqual[y$46$re, 1.1e-146], N[(N[(x$46$im / N[(N[Power[y$46$im, 2.0], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.4e+80], t$95$0, N[(N[(x$46$im - N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{if}\;y.re \leq -2.7 \cdot 10^{+90}:\\
\;\;\;\;\frac{x.im}{y.re} - \frac{y.im}{\frac{1}{\frac{\frac{x.re}{y.re}}{y.re}}}\\
\mathbf{elif}\;y.re \leq -6 \cdot 10^{-100}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 1.1 \cdot 10^{-146}:\\
\;\;\;\;\frac{x.im}{\frac{{y.im}^{2}}{y.re}} - \frac{x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 3.4 \cdot 10^{+80}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im - \frac{x.re}{\frac{y.re}{y.im}}}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\end{array}
\end{array}
if y.re < -2.7e90Initial program 49.8%
Taylor expanded in y.re around inf 84.3%
+-commutative84.3%
mul-1-neg84.3%
unsub-neg84.3%
*-commutative84.3%
associate-/l*87.4%
Simplified87.4%
add-sqr-sqrt51.9%
sqrt-div51.9%
unpow251.9%
sqrt-prod0.0%
add-sqr-sqrt51.9%
sqrt-div51.9%
unpow251.9%
sqrt-prod0.0%
add-sqr-sqrt54.1%
Applied egg-rr54.1%
unpow254.1%
Simplified54.1%
unpow254.1%
clear-num54.1%
clear-num54.1%
frac-times54.1%
metadata-eval54.1%
Applied egg-rr54.1%
associate-*r/54.2%
associate-*l/54.2%
rem-square-sqrt92.4%
Simplified92.4%
if -2.7e90 < y.re < -6.0000000000000001e-100 or 1.1e-146 < y.re < 3.39999999999999992e80Initial program 86.4%
if -6.0000000000000001e-100 < y.re < 1.1e-146Initial program 59.3%
Taylor expanded in y.re around 0 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
associate-/l*76.8%
Simplified76.8%
if 3.39999999999999992e80 < y.re Initial program 31.2%
*-un-lft-identity31.2%
add-sqr-sqrt31.2%
times-frac31.2%
hypot-def31.2%
hypot-def50.0%
Applied egg-rr50.0%
associate-*l/50.1%
*-un-lft-identity50.1%
*-commutative50.1%
*-commutative50.1%
Applied egg-rr50.1%
Taylor expanded in y.re around inf 83.4%
mul-1-neg83.4%
unsub-neg83.4%
associate-/l*88.8%
Simplified88.8%
Final simplification84.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im))))
(t_1 (/ x.re (/ y.re y.im))))
(if (<= y.re -5.8e+88)
(/ (- t_1 x.im) (hypot y.re y.im))
(if (<= y.re -4.8e-100)
t_0
(if (<= y.re 3e-142)
(- (/ x.im (/ (pow y.im 2.0) y.re)) (/ x.re y.im))
(if (<= y.re 1.65e+81) t_0 (/ (- x.im t_1) (hypot y.re y.im))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = x_46_re / (y_46_re / y_46_im);
double tmp;
if (y_46_re <= -5.8e+88) {
tmp = (t_1 - x_46_im) / hypot(y_46_re, y_46_im);
} else if (y_46_re <= -4.8e-100) {
tmp = t_0;
} else if (y_46_re <= 3e-142) {
tmp = (x_46_im / (pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
} else if (y_46_re <= 1.65e+81) {
tmp = t_0;
} else {
tmp = (x_46_im - t_1) / hypot(y_46_re, y_46_im);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = x_46_re / (y_46_re / y_46_im);
double tmp;
if (y_46_re <= -5.8e+88) {
tmp = (t_1 - x_46_im) / Math.hypot(y_46_re, y_46_im);
} else if (y_46_re <= -4.8e-100) {
tmp = t_0;
} else if (y_46_re <= 3e-142) {
tmp = (x_46_im / (Math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
} else if (y_46_re <= 1.65e+81) {
tmp = t_0;
} else {
tmp = (x_46_im - t_1) / Math.hypot(y_46_re, y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) t_1 = x_46_re / (y_46_re / y_46_im) tmp = 0 if y_46_re <= -5.8e+88: tmp = (t_1 - x_46_im) / math.hypot(y_46_re, y_46_im) elif y_46_re <= -4.8e-100: tmp = t_0 elif y_46_re <= 3e-142: tmp = (x_46_im / (math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im) elif y_46_re <= 1.65e+81: tmp = t_0 else: tmp = (x_46_im - t_1) / math.hypot(y_46_re, y_46_im) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) t_1 = Float64(x_46_re / Float64(y_46_re / y_46_im)) tmp = 0.0 if (y_46_re <= -5.8e+88) tmp = Float64(Float64(t_1 - x_46_im) / hypot(y_46_re, y_46_im)); elseif (y_46_re <= -4.8e-100) tmp = t_0; elseif (y_46_re <= 3e-142) tmp = Float64(Float64(x_46_im / Float64((y_46_im ^ 2.0) / y_46_re)) - Float64(x_46_re / y_46_im)); elseif (y_46_re <= 1.65e+81) tmp = t_0; else tmp = Float64(Float64(x_46_im - t_1) / hypot(y_46_re, y_46_im)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); t_1 = x_46_re / (y_46_re / y_46_im); tmp = 0.0; if (y_46_re <= -5.8e+88) tmp = (t_1 - x_46_im) / hypot(y_46_re, y_46_im); elseif (y_46_re <= -4.8e-100) tmp = t_0; elseif (y_46_re <= 3e-142) tmp = (x_46_im / ((y_46_im ^ 2.0) / y_46_re)) - (x_46_re / y_46_im); elseif (y_46_re <= 1.65e+81) tmp = t_0; else tmp = (x_46_im - t_1) / hypot(y_46_re, y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -5.8e+88], N[(N[(t$95$1 - x$46$im), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -4.8e-100], t$95$0, If[LessEqual[y$46$re, 3e-142], N[(N[(x$46$im / N[(N[Power[y$46$im, 2.0], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.65e+81], t$95$0, N[(N[(x$46$im - t$95$1), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
t_1 := \frac{x.re}{\frac{y.re}{y.im}}\\
\mathbf{if}\;y.re \leq -5.8 \cdot 10^{+88}:\\
\;\;\;\;\frac{t_1 - x.im}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{elif}\;y.re \leq -4.8 \cdot 10^{-100}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 3 \cdot 10^{-142}:\\
\;\;\;\;\frac{x.im}{\frac{{y.im}^{2}}{y.re}} - \frac{x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 1.65 \cdot 10^{+81}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im - t_1}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\end{array}
\end{array}
if y.re < -5.7999999999999999e88Initial program 49.8%
*-un-lft-identity49.8%
add-sqr-sqrt49.8%
times-frac49.8%
hypot-def49.8%
hypot-def65.8%
Applied egg-rr65.8%
associate-*l/65.7%
*-un-lft-identity65.7%
*-commutative65.7%
*-commutative65.7%
Applied egg-rr65.7%
Taylor expanded in y.re around -inf 89.5%
+-commutative89.5%
mul-1-neg89.5%
unsub-neg89.5%
associate-/l*95.0%
Simplified95.0%
if -5.7999999999999999e88 < y.re < -4.8000000000000005e-100 or 3.0000000000000001e-142 < y.re < 1.65e81Initial program 86.4%
if -4.8000000000000005e-100 < y.re < 3.0000000000000001e-142Initial program 59.3%
Taylor expanded in y.re around 0 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
associate-/l*76.8%
Simplified76.8%
if 1.65e81 < y.re Initial program 31.2%
*-un-lft-identity31.2%
add-sqr-sqrt31.2%
times-frac31.2%
hypot-def31.2%
hypot-def50.0%
Applied egg-rr50.0%
associate-*l/50.1%
*-un-lft-identity50.1%
*-commutative50.1%
*-commutative50.1%
Applied egg-rr50.1%
Taylor expanded in y.re around inf 83.4%
mul-1-neg83.4%
unsub-neg83.4%
associate-/l*88.8%
Simplified88.8%
Final simplification84.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im))))
(t_1 (- (/ x.im y.re) (/ y.im (/ 1.0 (/ (/ x.re y.re) y.re))))))
(if (<= y.re -1.05e+86)
t_1
(if (<= y.re -6.2e-100)
t_0
(if (<= y.re 3.2e-144)
(- (/ x.im (/ (pow y.im 2.0) y.re)) (/ x.re y.im))
(if (<= y.re 4.2e+80) t_0 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
double tmp;
if (y_46_re <= -1.05e+86) {
tmp = t_1;
} else if (y_46_re <= -6.2e-100) {
tmp = t_0;
} else if (y_46_re <= 3.2e-144) {
tmp = (x_46_im / (pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
} else if (y_46_re <= 4.2e+80) {
tmp = t_0;
} else {
tmp = t_1;
}
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 * x_46im) - (y_46im * x_46re)) / ((y_46re * y_46re) + (y_46im * y_46im))
t_1 = (x_46im / y_46re) - (y_46im / (1.0d0 / ((x_46re / y_46re) / y_46re)))
if (y_46re <= (-1.05d+86)) then
tmp = t_1
else if (y_46re <= (-6.2d-100)) then
tmp = t_0
else if (y_46re <= 3.2d-144) then
tmp = (x_46im / ((y_46im ** 2.0d0) / y_46re)) - (x_46re / y_46im)
else if (y_46re <= 4.2d+80) then
tmp = t_0
else
tmp = t_1
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 * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
double tmp;
if (y_46_re <= -1.05e+86) {
tmp = t_1;
} else if (y_46_re <= -6.2e-100) {
tmp = t_0;
} else if (y_46_re <= 3.2e-144) {
tmp = (x_46_im / (Math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im);
} else if (y_46_re <= 4.2e+80) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))) tmp = 0 if y_46_re <= -1.05e+86: tmp = t_1 elif y_46_re <= -6.2e-100: tmp = t_0 elif y_46_re <= 3.2e-144: tmp = (x_46_im / (math.pow(y_46_im, 2.0) / y_46_re)) - (x_46_re / y_46_im) elif y_46_re <= 4.2e+80: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) t_1 = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im / Float64(1.0 / Float64(Float64(x_46_re / y_46_re) / y_46_re)))) tmp = 0.0 if (y_46_re <= -1.05e+86) tmp = t_1; elseif (y_46_re <= -6.2e-100) tmp = t_0; elseif (y_46_re <= 3.2e-144) tmp = Float64(Float64(x_46_im / Float64((y_46_im ^ 2.0) / y_46_re)) - Float64(x_46_re / y_46_im)); elseif (y_46_re <= 4.2e+80) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))); tmp = 0.0; if (y_46_re <= -1.05e+86) tmp = t_1; elseif (y_46_re <= -6.2e-100) tmp = t_0; elseif (y_46_re <= 3.2e-144) tmp = (x_46_im / ((y_46_im ^ 2.0) / y_46_re)) - (x_46_re / y_46_im); elseif (y_46_re <= 4.2e+80) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im / N[(1.0 / N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.05e+86], t$95$1, If[LessEqual[y$46$re, -6.2e-100], t$95$0, If[LessEqual[y$46$re, 3.2e-144], N[(N[(x$46$im / N[(N[Power[y$46$im, 2.0], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 4.2e+80], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
t_1 := \frac{x.im}{y.re} - \frac{y.im}{\frac{1}{\frac{\frac{x.re}{y.re}}{y.re}}}\\
\mathbf{if}\;y.re \leq -1.05 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq -6.2 \cdot 10^{-100}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 3.2 \cdot 10^{-144}:\\
\;\;\;\;\frac{x.im}{\frac{{y.im}^{2}}{y.re}} - \frac{x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 4.2 \cdot 10^{+80}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y.re < -1.0499999999999999e86 or 4.20000000000000003e80 < y.re Initial program 40.0%
Taylor expanded in y.re around inf 80.9%
+-commutative80.9%
mul-1-neg80.9%
unsub-neg80.9%
*-commutative80.9%
associate-/l*83.9%
Simplified83.9%
add-sqr-sqrt49.9%
sqrt-div49.9%
unpow249.9%
sqrt-prod25.3%
add-sqr-sqrt49.9%
sqrt-div49.9%
unpow249.9%
sqrt-prod26.5%
add-sqr-sqrt52.2%
Applied egg-rr52.2%
unpow252.2%
Simplified52.2%
unpow252.2%
clear-num52.2%
clear-num52.2%
frac-times52.2%
metadata-eval52.2%
Applied egg-rr52.2%
associate-*r/52.2%
associate-*l/52.2%
rem-square-sqrt87.5%
Simplified87.5%
if -1.0499999999999999e86 < y.re < -6.1999999999999997e-100 or 3.19999999999999973e-144 < y.re < 4.20000000000000003e80Initial program 86.4%
if -6.1999999999999997e-100 < y.re < 3.19999999999999973e-144Initial program 59.3%
Taylor expanded in y.re around 0 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
associate-/l*76.8%
Simplified76.8%
Final simplification83.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im))))
(t_1 (- (/ x.im y.re) (/ y.im (/ 1.0 (/ (/ x.re y.re) y.re))))))
(if (<= y.re -2.5e+94)
t_1
(if (<= y.re -3.2e-156)
t_0
(if (<= y.re 1.1e-146)
(/ (- x.re) y.im)
(if (<= y.re 1.35e+81) t_0 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
double tmp;
if (y_46_re <= -2.5e+94) {
tmp = t_1;
} else if (y_46_re <= -3.2e-156) {
tmp = t_0;
} else if (y_46_re <= 1.1e-146) {
tmp = -x_46_re / y_46_im;
} else if (y_46_re <= 1.35e+81) {
tmp = t_0;
} else {
tmp = t_1;
}
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 * x_46im) - (y_46im * x_46re)) / ((y_46re * y_46re) + (y_46im * y_46im))
t_1 = (x_46im / y_46re) - (y_46im / (1.0d0 / ((x_46re / y_46re) / y_46re)))
if (y_46re <= (-2.5d+94)) then
tmp = t_1
else if (y_46re <= (-3.2d-156)) then
tmp = t_0
else if (y_46re <= 1.1d-146) then
tmp = -x_46re / y_46im
else if (y_46re <= 1.35d+81) then
tmp = t_0
else
tmp = t_1
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 * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
double tmp;
if (y_46_re <= -2.5e+94) {
tmp = t_1;
} else if (y_46_re <= -3.2e-156) {
tmp = t_0;
} else if (y_46_re <= 1.1e-146) {
tmp = -x_46_re / y_46_im;
} else if (y_46_re <= 1.35e+81) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))) tmp = 0 if y_46_re <= -2.5e+94: tmp = t_1 elif y_46_re <= -3.2e-156: tmp = t_0 elif y_46_re <= 1.1e-146: tmp = -x_46_re / y_46_im elif y_46_re <= 1.35e+81: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) t_1 = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im / Float64(1.0 / Float64(Float64(x_46_re / y_46_re) / y_46_re)))) tmp = 0.0 if (y_46_re <= -2.5e+94) tmp = t_1; elseif (y_46_re <= -3.2e-156) tmp = t_0; elseif (y_46_re <= 1.1e-146) tmp = Float64(Float64(-x_46_re) / y_46_im); elseif (y_46_re <= 1.35e+81) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))); tmp = 0.0; if (y_46_re <= -2.5e+94) tmp = t_1; elseif (y_46_re <= -3.2e-156) tmp = t_0; elseif (y_46_re <= 1.1e-146) tmp = -x_46_re / y_46_im; elseif (y_46_re <= 1.35e+81) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im / N[(1.0 / N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.5e+94], t$95$1, If[LessEqual[y$46$re, -3.2e-156], t$95$0, If[LessEqual[y$46$re, 1.1e-146], N[((-x$46$re) / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, 1.35e+81], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
t_1 := \frac{x.im}{y.re} - \frac{y.im}{\frac{1}{\frac{\frac{x.re}{y.re}}{y.re}}}\\
\mathbf{if}\;y.re \leq -2.5 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq -3.2 \cdot 10^{-156}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 1.1 \cdot 10^{-146}:\\
\;\;\;\;\frac{-x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 1.35 \cdot 10^{+81}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y.re < -2.50000000000000005e94 or 1.35e81 < y.re Initial program 40.0%
Taylor expanded in y.re around inf 80.9%
+-commutative80.9%
mul-1-neg80.9%
unsub-neg80.9%
*-commutative80.9%
associate-/l*83.9%
Simplified83.9%
add-sqr-sqrt49.9%
sqrt-div49.9%
unpow249.9%
sqrt-prod25.3%
add-sqr-sqrt49.9%
sqrt-div49.9%
unpow249.9%
sqrt-prod26.5%
add-sqr-sqrt52.2%
Applied egg-rr52.2%
unpow252.2%
Simplified52.2%
unpow252.2%
clear-num52.2%
clear-num52.2%
frac-times52.2%
metadata-eval52.2%
Applied egg-rr52.2%
associate-*r/52.2%
associate-*l/52.2%
rem-square-sqrt87.5%
Simplified87.5%
if -2.50000000000000005e94 < y.re < -3.19999999999999982e-156 or 1.1e-146 < y.re < 1.35e81Initial program 85.0%
if -3.19999999999999982e-156 < y.re < 1.1e-146Initial program 57.2%
Taylor expanded in y.re around 0 72.9%
associate-*r/72.9%
neg-mul-172.9%
Simplified72.9%
Final simplification82.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (* y.re x.im) (+ (* y.re y.re) (* y.im y.im))))
(t_1 (- (/ x.im y.re) (/ y.im (/ 1.0 (/ (/ x.re y.re) y.re))))))
(if (<= y.re -1.6e+44)
t_1
(if (<= y.re -9.8e-138)
t_0
(if (<= y.re 2.15e-10)
(/ (- x.re) y.im)
(if (<= y.re 1.05e+80) t_0 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
double tmp;
if (y_46_re <= -1.6e+44) {
tmp = t_1;
} else if (y_46_re <= -9.8e-138) {
tmp = t_0;
} else if (y_46_re <= 2.15e-10) {
tmp = -x_46_re / y_46_im;
} else if (y_46_re <= 1.05e+80) {
tmp = t_0;
} else {
tmp = t_1;
}
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 * x_46im) / ((y_46re * y_46re) + (y_46im * y_46im))
t_1 = (x_46im / y_46re) - (y_46im / (1.0d0 / ((x_46re / y_46re) / y_46re)))
if (y_46re <= (-1.6d+44)) then
tmp = t_1
else if (y_46re <= (-9.8d-138)) then
tmp = t_0
else if (y_46re <= 2.15d-10) then
tmp = -x_46re / y_46im
else if (y_46re <= 1.05d+80) then
tmp = t_0
else
tmp = t_1
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 * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re)));
double tmp;
if (y_46_re <= -1.6e+44) {
tmp = t_1;
} else if (y_46_re <= -9.8e-138) {
tmp = t_0;
} else if (y_46_re <= 2.15e-10) {
tmp = -x_46_re / y_46_im;
} else if (y_46_re <= 1.05e+80) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))) tmp = 0 if y_46_re <= -1.6e+44: tmp = t_1 elif y_46_re <= -9.8e-138: tmp = t_0 elif y_46_re <= 2.15e-10: tmp = -x_46_re / y_46_im elif y_46_re <= 1.05e+80: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(y_46_re * x_46_im) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) t_1 = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im / Float64(1.0 / Float64(Float64(x_46_re / y_46_re) / y_46_re)))) tmp = 0.0 if (y_46_re <= -1.6e+44) tmp = t_1; elseif (y_46_re <= -9.8e-138) tmp = t_0; elseif (y_46_re <= 2.15e-10) tmp = Float64(Float64(-x_46_re) / y_46_im); elseif (y_46_re <= 1.05e+80) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); t_1 = (x_46_im / y_46_re) - (y_46_im / (1.0 / ((x_46_re / y_46_re) / y_46_re))); tmp = 0.0; if (y_46_re <= -1.6e+44) tmp = t_1; elseif (y_46_re <= -9.8e-138) tmp = t_0; elseif (y_46_re <= 2.15e-10) tmp = -x_46_re / y_46_im; elseif (y_46_re <= 1.05e+80) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(y$46$re * x$46$im), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im / N[(1.0 / N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.6e+44], t$95$1, If[LessEqual[y$46$re, -9.8e-138], t$95$0, If[LessEqual[y$46$re, 2.15e-10], N[((-x$46$re) / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, 1.05e+80], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im}{y.re \cdot y.re + y.im \cdot y.im}\\
t_1 := \frac{x.im}{y.re} - \frac{y.im}{\frac{1}{\frac{\frac{x.re}{y.re}}{y.re}}}\\
\mathbf{if}\;y.re \leq -1.6 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq -9.8 \cdot 10^{-138}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 2.15 \cdot 10^{-10}:\\
\;\;\;\;\frac{-x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 1.05 \cdot 10^{+80}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y.re < -1.60000000000000002e44 or 1.05000000000000001e80 < y.re Initial program 46.9%
Taylor expanded in y.re around inf 79.2%
+-commutative79.2%
mul-1-neg79.2%
unsub-neg79.2%
*-commutative79.2%
associate-/l*81.9%
Simplified81.9%
add-sqr-sqrt49.9%
sqrt-div49.9%
unpow249.9%
sqrt-prod21.9%
add-sqr-sqrt47.8%
sqrt-div47.8%
unpow247.8%
sqrt-prod23.0%
add-sqr-sqrt51.9%
Applied egg-rr51.9%
unpow251.9%
Simplified51.9%
unpow251.9%
clear-num51.9%
clear-num51.9%
frac-times51.9%
metadata-eval51.9%
Applied egg-rr51.9%
associate-*r/51.9%
associate-*l/51.9%
rem-square-sqrt84.9%
Simplified84.9%
if -1.60000000000000002e44 < y.re < -9.80000000000000033e-138 or 2.15000000000000007e-10 < y.re < 1.05000000000000001e80Initial program 86.6%
Taylor expanded in x.im around inf 72.1%
*-commutative72.1%
Simplified72.1%
if -9.80000000000000033e-138 < y.re < 2.15000000000000007e-10Initial program 64.5%
Taylor expanded in y.re around 0 68.5%
associate-*r/68.5%
neg-mul-168.5%
Simplified68.5%
Final simplification75.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (* y.re x.im) (+ (* y.re y.re) (* y.im y.im)))))
(if (<= y.re -2.8e+97)
(/ x.im y.re)
(if (<= y.re -8.6e-138)
t_0
(if (<= y.re 2.15e-10)
(/ (- x.re) y.im)
(if (<= y.re 1.12e+80) t_0 (/ x.im y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (y_46_re <= -2.8e+97) {
tmp = x_46_im / y_46_re;
} else if (y_46_re <= -8.6e-138) {
tmp = t_0;
} else if (y_46_re <= 2.15e-10) {
tmp = -x_46_re / y_46_im;
} else if (y_46_re <= 1.12e+80) {
tmp = t_0;
} else {
tmp = x_46_im / y_46_re;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (y_46re * x_46im) / ((y_46re * y_46re) + (y_46im * y_46im))
if (y_46re <= (-2.8d+97)) then
tmp = x_46im / y_46re
else if (y_46re <= (-8.6d-138)) then
tmp = t_0
else if (y_46re <= 2.15d-10) then
tmp = -x_46re / y_46im
else if (y_46re <= 1.12d+80) then
tmp = t_0
else
tmp = x_46im / y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (y_46_re <= -2.8e+97) {
tmp = x_46_im / y_46_re;
} else if (y_46_re <= -8.6e-138) {
tmp = t_0;
} else if (y_46_re <= 2.15e-10) {
tmp = -x_46_re / y_46_im;
} else if (y_46_re <= 1.12e+80) {
tmp = t_0;
} else {
tmp = x_46_im / y_46_re;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) tmp = 0 if y_46_re <= -2.8e+97: tmp = x_46_im / y_46_re elif y_46_re <= -8.6e-138: tmp = t_0 elif y_46_re <= 2.15e-10: tmp = -x_46_re / y_46_im elif y_46_re <= 1.12e+80: tmp = t_0 else: tmp = 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(Float64(y_46_re * x_46_im) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) tmp = 0.0 if (y_46_re <= -2.8e+97) tmp = Float64(x_46_im / y_46_re); elseif (y_46_re <= -8.6e-138) tmp = t_0; elseif (y_46_re <= 2.15e-10) tmp = Float64(Float64(-x_46_re) / y_46_im); elseif (y_46_re <= 1.12e+80) tmp = t_0; else tmp = Float64(x_46_im / y_46_re); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (y_46_re * x_46_im) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); tmp = 0.0; if (y_46_re <= -2.8e+97) tmp = x_46_im / y_46_re; elseif (y_46_re <= -8.6e-138) tmp = t_0; elseif (y_46_re <= 2.15e-10) tmp = -x_46_re / y_46_im; elseif (y_46_re <= 1.12e+80) tmp = t_0; else tmp = 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[(y$46$re * x$46$im), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.8e+97], N[(x$46$im / y$46$re), $MachinePrecision], If[LessEqual[y$46$re, -8.6e-138], t$95$0, If[LessEqual[y$46$re, 2.15e-10], N[((-x$46$re) / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, 1.12e+80], t$95$0, N[(x$46$im / y$46$re), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y.re \cdot x.im}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{if}\;y.re \leq -2.8 \cdot 10^{+97}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\mathbf{elif}\;y.re \leq -8.6 \cdot 10^{-138}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 2.15 \cdot 10^{-10}:\\
\;\;\;\;\frac{-x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 1.12 \cdot 10^{+80}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\end{array}
\end{array}
if y.re < -2.7999999999999999e97 or 1.12e80 < y.re Initial program 40.0%
Taylor expanded in y.re around inf 82.3%
if -2.7999999999999999e97 < y.re < -8.6000000000000001e-138 or 2.15000000000000007e-10 < y.re < 1.12e80Initial program 87.4%
Taylor expanded in x.im around inf 71.4%
*-commutative71.4%
Simplified71.4%
if -8.6000000000000001e-138 < y.re < 2.15000000000000007e-10Initial program 64.5%
Taylor expanded in y.re around 0 68.5%
associate-*r/68.5%
neg-mul-168.5%
Simplified68.5%
Final simplification73.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.re) y.im))
(t_1 (- (/ x.im y.re) (/ x.re (* y.re (/ y.re y.im))))))
(if (<= y.im -2.2e+46)
t_0
(if (<= y.im 2.7e-51)
t_1
(if (<= y.im 6e-8)
(/ (* y.im (- x.re)) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.im 6.5e+58) t_1 t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = -x_46_re / y_46_im;
double t_1 = (x_46_im / y_46_re) - (x_46_re / (y_46_re * (y_46_re / y_46_im)));
double tmp;
if (y_46_im <= -2.2e+46) {
tmp = t_0;
} else if (y_46_im <= 2.7e-51) {
tmp = t_1;
} else if (y_46_im <= 6e-8) {
tmp = (y_46_im * -x_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_im <= 6.5e+58) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_0 = -x_46re / y_46im
t_1 = (x_46im / y_46re) - (x_46re / (y_46re * (y_46re / y_46im)))
if (y_46im <= (-2.2d+46)) then
tmp = t_0
else if (y_46im <= 2.7d-51) then
tmp = t_1
else if (y_46im <= 6d-8) then
tmp = (y_46im * -x_46re) / ((y_46re * y_46re) + (y_46im * y_46im))
else if (y_46im <= 6.5d+58) then
tmp = t_1
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 = -x_46_re / y_46_im;
double t_1 = (x_46_im / y_46_re) - (x_46_re / (y_46_re * (y_46_re / y_46_im)));
double tmp;
if (y_46_im <= -2.2e+46) {
tmp = t_0;
} else if (y_46_im <= 2.7e-51) {
tmp = t_1;
} else if (y_46_im <= 6e-8) {
tmp = (y_46_im * -x_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_im <= 6.5e+58) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = -x_46_re / y_46_im t_1 = (x_46_im / y_46_re) - (x_46_re / (y_46_re * (y_46_re / y_46_im))) tmp = 0 if y_46_im <= -2.2e+46: tmp = t_0 elif y_46_im <= 2.7e-51: tmp = t_1 elif y_46_im <= 6e-8: tmp = (y_46_im * -x_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_im <= 6.5e+58: tmp = t_1 else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(-x_46_re) / y_46_im) t_1 = Float64(Float64(x_46_im / y_46_re) - Float64(x_46_re / Float64(y_46_re * Float64(y_46_re / y_46_im)))) tmp = 0.0 if (y_46_im <= -2.2e+46) tmp = t_0; elseif (y_46_im <= 2.7e-51) tmp = t_1; elseif (y_46_im <= 6e-8) tmp = Float64(Float64(y_46_im * Float64(-x_46_re)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))); elseif (y_46_im <= 6.5e+58) tmp = t_1; 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_re / y_46_im; t_1 = (x_46_im / y_46_re) - (x_46_re / (y_46_re * (y_46_re / y_46_im))); tmp = 0.0; if (y_46_im <= -2.2e+46) tmp = t_0; elseif (y_46_im <= 2.7e-51) tmp = t_1; elseif (y_46_im <= 6e-8) tmp = (y_46_im * -x_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_im <= 6.5e+58) tmp = t_1; 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[((-x$46$re) / y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(x$46$re / N[(y$46$re * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2.2e+46], t$95$0, If[LessEqual[y$46$im, 2.7e-51], t$95$1, If[LessEqual[y$46$im, 6e-8], N[(N[(y$46$im * (-x$46$re)), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 6.5e+58], t$95$1, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-x.re}{y.im}\\
t_1 := \frac{x.im}{y.re} - \frac{x.re}{y.re \cdot \frac{y.re}{y.im}}\\
\mathbf{if}\;y.im \leq -2.2 \cdot 10^{+46}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.im \leq 2.7 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.im \leq 6 \cdot 10^{-8}:\\
\;\;\;\;\frac{y.im \cdot \left(-x.re\right)}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.im \leq 6.5 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y.im < -2.2e46 or 6.49999999999999998e58 < y.im Initial program 50.0%
Taylor expanded in y.re around 0 77.0%
associate-*r/77.0%
neg-mul-177.0%
Simplified77.0%
if -2.2e46 < y.im < 2.6999999999999997e-51 or 5.99999999999999946e-8 < y.im < 6.49999999999999998e58Initial program 71.0%
*-un-lft-identity71.0%
add-sqr-sqrt71.0%
times-frac70.9%
hypot-def71.0%
hypot-def85.0%
Applied egg-rr85.0%
associate-*l/85.2%
*-un-lft-identity85.2%
*-commutative85.2%
*-commutative85.2%
Applied egg-rr85.2%
Taylor expanded in y.re around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
associate-/l*66.2%
Simplified66.2%
pow266.2%
*-un-lft-identity66.2%
times-frac72.5%
Applied egg-rr72.5%
if 2.6999999999999997e-51 < y.im < 5.99999999999999946e-8Initial program 100.0%
Taylor expanded in x.im around 0 86.6%
associate-*r*86.6%
neg-mul-186.6%
*-commutative86.6%
Simplified86.6%
Final simplification74.8%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -29500.0) (not (<= y.re 1.35e+51))) (/ x.im y.re) (/ (- x.re) y.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -29500.0) || !(y_46_re <= 1.35e+51)) {
tmp = x_46_im / y_46_re;
} else {
tmp = -x_46_re / y_46_im;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46re <= (-29500.0d0)) .or. (.not. (y_46re <= 1.35d+51))) then
tmp = x_46im / y_46re
else
tmp = -x_46re / y_46im
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -29500.0) || !(y_46_re <= 1.35e+51)) {
tmp = x_46_im / y_46_re;
} else {
tmp = -x_46_re / y_46_im;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -29500.0) or not (y_46_re <= 1.35e+51): tmp = x_46_im / y_46_re else: tmp = -x_46_re / y_46_im return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_re <= -29500.0) || !(y_46_re <= 1.35e+51)) tmp = Float64(x_46_im / y_46_re); else tmp = Float64(Float64(-x_46_re) / y_46_im); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_re <= -29500.0) || ~((y_46_re <= 1.35e+51))) tmp = x_46_im / y_46_re; else tmp = -x_46_re / y_46_im; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -29500.0], N[Not[LessEqual[y$46$re, 1.35e+51]], $MachinePrecision]], N[(x$46$im / y$46$re), $MachinePrecision], N[((-x$46$re) / y$46$im), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -29500 \lor \neg \left(y.re \leq 1.35 \cdot 10^{+51}\right):\\
\;\;\;\;\frac{x.im}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x.re}{y.im}\\
\end{array}
\end{array}
if y.re < -29500 or 1.34999999999999996e51 < y.re Initial program 52.6%
Taylor expanded in y.re around inf 75.1%
if -29500 < y.re < 1.34999999999999996e51Initial program 70.6%
Taylor expanded in y.re around 0 60.8%
associate-*r/60.8%
neg-mul-160.8%
Simplified60.8%
Final simplification66.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -8.2e+257) (not (<= y.im 1.75e+172))) (/ x.im y.im) (/ x.im y.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_im <= -8.2e+257) || !(y_46_im <= 1.75e+172)) {
tmp = x_46_im / y_46_im;
} else {
tmp = x_46_im / y_46_re;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46im <= (-8.2d+257)) .or. (.not. (y_46im <= 1.75d+172))) then
tmp = x_46im / y_46im
else
tmp = x_46im / y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_im <= -8.2e+257) || !(y_46_im <= 1.75e+172)) {
tmp = x_46_im / y_46_im;
} else {
tmp = x_46_im / y_46_re;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_im <= -8.2e+257) or not (y_46_im <= 1.75e+172): tmp = x_46_im / y_46_im else: tmp = x_46_im / y_46_re return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_im <= -8.2e+257) || !(y_46_im <= 1.75e+172)) tmp = Float64(x_46_im / y_46_im); else tmp = Float64(x_46_im / y_46_re); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_im <= -8.2e+257) || ~((y_46_im <= 1.75e+172))) tmp = x_46_im / y_46_im; else tmp = x_46_im / y_46_re; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$im, -8.2e+257], N[Not[LessEqual[y$46$im, 1.75e+172]], $MachinePrecision]], N[(x$46$im / y$46$im), $MachinePrecision], N[(x$46$im / y$46$re), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -8.2 \cdot 10^{+257} \lor \neg \left(y.im \leq 1.75 \cdot 10^{+172}\right):\\
\;\;\;\;\frac{x.im}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\end{array}
\end{array}
if y.im < -8.20000000000000038e257 or 1.74999999999999989e172 < y.im Initial program 53.4%
*-un-lft-identity53.4%
add-sqr-sqrt53.4%
times-frac53.4%
hypot-def53.4%
hypot-def66.7%
Applied egg-rr66.7%
Taylor expanded in y.re around -inf 44.9%
neg-mul-144.9%
Simplified44.9%
Taylor expanded in y.im around -inf 45.0%
if -8.20000000000000038e257 < y.im < 1.74999999999999989e172Initial program 65.3%
Taylor expanded in y.re around inf 49.3%
Final simplification48.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -1.4e+169) (not (<= y.im 5.1e+110))) (/ x.re y.im) (/ x.im y.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_im <= -1.4e+169) || !(y_46_im <= 5.1e+110)) {
tmp = x_46_re / y_46_im;
} else {
tmp = x_46_im / y_46_re;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46im <= (-1.4d+169)) .or. (.not. (y_46im <= 5.1d+110))) then
tmp = x_46re / y_46im
else
tmp = x_46im / y_46re
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_im <= -1.4e+169) || !(y_46_im <= 5.1e+110)) {
tmp = x_46_re / y_46_im;
} else {
tmp = x_46_im / y_46_re;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_im <= -1.4e+169) or not (y_46_im <= 5.1e+110): tmp = x_46_re / y_46_im else: tmp = x_46_im / y_46_re return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_im <= -1.4e+169) || !(y_46_im <= 5.1e+110)) tmp = Float64(x_46_re / y_46_im); else tmp = Float64(x_46_im / y_46_re); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_im <= -1.4e+169) || ~((y_46_im <= 5.1e+110))) tmp = x_46_re / y_46_im; else tmp = x_46_im / y_46_re; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$im, -1.4e+169], N[Not[LessEqual[y$46$im, 5.1e+110]], $MachinePrecision]], N[(x$46$re / y$46$im), $MachinePrecision], N[(x$46$im / y$46$re), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -1.4 \cdot 10^{+169} \lor \neg \left(y.im \leq 5.1 \cdot 10^{+110}\right):\\
\;\;\;\;\frac{x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\end{array}
\end{array}
if y.im < -1.4000000000000001e169 or 5.1000000000000002e110 < y.im Initial program 50.9%
*-un-lft-identity50.9%
add-sqr-sqrt50.9%
times-frac50.8%
hypot-def50.8%
hypot-def65.3%
Applied egg-rr65.3%
Taylor expanded in y.re around 0 71.8%
neg-mul-171.8%
+-commutative71.8%
unsub-neg71.8%
associate-/l*75.1%
Simplified75.1%
Taylor expanded in y.im around -inf 45.3%
if -1.4000000000000001e169 < y.im < 5.1000000000000002e110Initial program 67.5%
Taylor expanded in y.re around inf 52.5%
Final simplification50.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ x.im y.im))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return x_46_im / 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 = x_46im / 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 x_46_im / y_46_im;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return x_46_im / y_46_im
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(x_46_im / y_46_im) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = x_46_im / y_46_im; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(x$46$im / y$46$im), $MachinePrecision]
\begin{array}{l}
\\
\frac{x.im}{y.im}
\end{array}
Initial program 63.5%
*-un-lft-identity63.5%
add-sqr-sqrt63.5%
times-frac63.4%
hypot-def63.5%
hypot-def76.4%
Applied egg-rr76.4%
Taylor expanded in y.re around -inf 33.8%
neg-mul-133.8%
Simplified33.8%
Taylor expanded in y.im around -inf 14.9%
Final simplification14.9%
herbie shell --seed 2024019
(FPCore (x.re x.im y.re y.im)
:name "_divideComplex, imaginary part"
:precision binary64
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))