
(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 19 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 (* (/ 1.0 (hypot y.re y.im)) (- (/ x.im (/ (hypot y.re y.im) y.re)) (/ x.re (/ (hypot 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 (1.0 / hypot(y_46_re, y_46_im)) * ((x_46_im / (hypot(y_46_re, y_46_im) / y_46_re)) - (x_46_re / (hypot(y_46_re, y_46_im) / y_46_im)));
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (1.0 / Math.hypot(y_46_re, y_46_im)) * ((x_46_im / (Math.hypot(y_46_re, y_46_im) / y_46_re)) - (x_46_re / (Math.hypot(y_46_re, y_46_im) / y_46_im)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return (1.0 / math.hypot(y_46_re, y_46_im)) * ((x_46_im / (math.hypot(y_46_re, y_46_im) / y_46_re)) - (x_46_re / (math.hypot(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(1.0 / hypot(y_46_re, y_46_im)) * Float64(Float64(x_46_im / Float64(hypot(y_46_re, y_46_im) / y_46_re)) - Float64(x_46_re / Float64(hypot(y_46_re, y_46_im) / y_46_im)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = (1.0 / hypot(y_46_re, y_46_im)) * ((x_46_im / (hypot(y_46_re, y_46_im) / y_46_re)) - (x_46_re / (hypot(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[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] * N[(N[(x$46$im / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\mathsf{hypot}\left(y.re, y.im\right)} \cdot \left(\frac{x.im}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{y.re}} - \frac{x.re}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{y.im}}\right)
\end{array}
Initial program 58.2%
*-un-lft-identity58.2%
add-sqr-sqrt58.2%
times-frac58.3%
hypot-def58.3%
hypot-def77.4%
Applied egg-rr77.4%
div-sub77.4%
sub-neg77.4%
Applied egg-rr77.4%
sub-neg77.4%
associate-/l*88.0%
associate-/l*98.6%
Simplified98.6%
Final simplification98.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* (/ 1.0 (hypot y.re y.im)) (- (/ x.im (/ (hypot y.re y.im) 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 (1.0 / hypot(y_46_re, y_46_im)) * ((x_46_im / (hypot(y_46_re, y_46_im) / 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 (1.0 / Math.hypot(y_46_re, y_46_im)) * ((x_46_im / (Math.hypot(y_46_re, y_46_im) / 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 (1.0 / math.hypot(y_46_re, y_46_im)) * ((x_46_im / (math.hypot(y_46_re, y_46_im) / 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(1.0 / hypot(y_46_re, y_46_im)) * Float64(Float64(x_46_im / Float64(hypot(y_46_re, y_46_im) / y_46_re)) - Float64(y_46_im * Float64(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 = (1.0 / hypot(y_46_re, y_46_im)) * ((x_46_im / (hypot(y_46_re, y_46_im) / 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[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] * N[(N[(x$46$im / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision] - N[(y$46$im * N[(x$46$re / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\mathsf{hypot}\left(y.re, y.im\right)} \cdot \left(\frac{x.im}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{y.re}} - y.im \cdot \frac{x.re}{\mathsf{hypot}\left(y.re, y.im\right)}\right)
\end{array}
Initial program 58.2%
*-un-lft-identity58.2%
add-sqr-sqrt58.2%
times-frac58.3%
hypot-def58.3%
hypot-def77.4%
Applied egg-rr77.4%
div-sub77.4%
sub-neg77.4%
Applied egg-rr77.4%
sub-neg77.4%
associate-/l*88.0%
associate-/l*98.6%
Simplified98.6%
associate-/r/97.4%
Applied egg-rr97.4%
Final simplification97.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ 1.0 (hypot y.re y.im))) (t_1 (- (* y.re x.im) (* y.im x.re))))
(if (<= (/ t_1 (+ (* y.re y.re) (* y.im y.im))) 5e+283)
(* t_0 (/ t_1 (hypot y.re y.im)))
(* t_0 (- x.im (/ x.re (/ (hypot y.re y.im) y.im)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 1.0 / hypot(y_46_re, y_46_im);
double t_1 = (y_46_re * x_46_im) - (y_46_im * x_46_re);
double tmp;
if ((t_1 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= 5e+283) {
tmp = t_0 * (t_1 / hypot(y_46_re, y_46_im));
} else {
tmp = t_0 * (x_46_im - (x_46_re / (hypot(y_46_re, y_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 = 1.0 / Math.hypot(y_46_re, y_46_im);
double t_1 = (y_46_re * x_46_im) - (y_46_im * x_46_re);
double tmp;
if ((t_1 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= 5e+283) {
tmp = t_0 * (t_1 / Math.hypot(y_46_re, y_46_im));
} else {
tmp = t_0 * (x_46_im - (x_46_re / (Math.hypot(y_46_re, y_46_im) / y_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = 1.0 / math.hypot(y_46_re, y_46_im) t_1 = (y_46_re * x_46_im) - (y_46_im * x_46_re) tmp = 0 if (t_1 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= 5e+283: tmp = t_0 * (t_1 / math.hypot(y_46_re, y_46_im)) else: tmp = t_0 * (x_46_im - (x_46_re / (math.hypot(y_46_re, y_46_im) / y_46_im))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(1.0 / hypot(y_46_re, y_46_im)) t_1 = Float64(Float64(y_46_re * x_46_im) - Float64(y_46_im * x_46_re)) tmp = 0.0 if (Float64(t_1 / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) <= 5e+283) tmp = Float64(t_0 * Float64(t_1 / hypot(y_46_re, y_46_im))); else tmp = Float64(t_0 * Float64(x_46_im - Float64(x_46_re / Float64(hypot(y_46_re, y_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 = 1.0 / hypot(y_46_re, y_46_im); t_1 = (y_46_re * x_46_im) - (y_46_im * x_46_re); tmp = 0.0; if ((t_1 / ((y_46_re * y_46_re) + (y_46_im * y_46_im))) <= 5e+283) tmp = t_0 * (t_1 / hypot(y_46_re, y_46_im)); else tmp = t_0 * (x_46_im - (x_46_re / (hypot(y_46_re, y_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[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(y$46$re * x$46$im), $MachinePrecision] - N[(y$46$im * x$46$re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+283], N[(t$95$0 * N[(t$95$1 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(x$46$im - N[(x$46$re / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{\mathsf{hypot}\left(y.re, y.im\right)}\\
t_1 := y.re \cdot x.im - y.im \cdot x.re\\
\mathbf{if}\;\frac{t_1}{y.re \cdot y.re + y.im \cdot y.im} \leq 5 \cdot 10^{+283}:\\
\;\;\;\;t_0 \cdot \frac{t_1}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(x.im - \frac{x.re}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{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))) < 5.0000000000000004e283Initial program 74.8%
*-un-lft-identity74.8%
add-sqr-sqrt74.8%
times-frac74.8%
hypot-def74.9%
hypot-def97.2%
Applied egg-rr97.2%
if 5.0000000000000004e283 < (/.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 7.4%
*-un-lft-identity7.4%
add-sqr-sqrt7.4%
times-frac7.4%
hypot-def7.4%
hypot-def16.7%
Applied egg-rr16.7%
div-sub16.7%
sub-neg16.7%
Applied egg-rr16.7%
sub-neg16.7%
associate-/l*56.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in y.re around inf 73.2%
Final simplification91.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ 1.0 (hypot y.re y.im))))
(if (<= y.re -1.8e+112)
(* t_0 (- (/ x.re (/ y.re y.im)) x.im))
(if (<= y.re -1.45e-43)
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.re 1e-148)
(* (/ 1.0 y.im) (- (/ (* y.re x.im) y.im) x.re))
(* t_0 (- x.im (/ x.re (/ (hypot y.re y.im) y.im)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 1.0 / hypot(y_46_re, y_46_im);
double tmp;
if (y_46_re <= -1.8e+112) {
tmp = t_0 * ((x_46_re / (y_46_re / y_46_im)) - x_46_im);
} else if (y_46_re <= -1.45e-43) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 1e-148) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = t_0 * (x_46_im - (x_46_re / (hypot(y_46_re, y_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 = 1.0 / Math.hypot(y_46_re, y_46_im);
double tmp;
if (y_46_re <= -1.8e+112) {
tmp = t_0 * ((x_46_re / (y_46_re / y_46_im)) - x_46_im);
} else if (y_46_re <= -1.45e-43) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 1e-148) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = t_0 * (x_46_im - (x_46_re / (Math.hypot(y_46_re, y_46_im) / y_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = 1.0 / math.hypot(y_46_re, y_46_im) tmp = 0 if y_46_re <= -1.8e+112: tmp = t_0 * ((x_46_re / (y_46_re / y_46_im)) - x_46_im) elif y_46_re <= -1.45e-43: tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_re <= 1e-148: tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re) else: tmp = t_0 * (x_46_im - (x_46_re / (math.hypot(y_46_re, y_46_im) / y_46_im))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(1.0 / hypot(y_46_re, y_46_im)) tmp = 0.0 if (y_46_re <= -1.8e+112) tmp = Float64(t_0 * Float64(Float64(x_46_re / Float64(y_46_re / y_46_im)) - x_46_im)); elseif (y_46_re <= -1.45e-43) tmp = 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))); elseif (y_46_re <= 1e-148) tmp = Float64(Float64(1.0 / y_46_im) * Float64(Float64(Float64(y_46_re * x_46_im) / y_46_im) - x_46_re)); else tmp = Float64(t_0 * Float64(x_46_im - Float64(x_46_re / Float64(hypot(y_46_re, y_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 = 1.0 / hypot(y_46_re, y_46_im); tmp = 0.0; if (y_46_re <= -1.8e+112) tmp = t_0 * ((x_46_re / (y_46_re / y_46_im)) - x_46_im); elseif (y_46_re <= -1.45e-43) tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_re <= 1e-148) tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re); else tmp = t_0 * (x_46_im - (x_46_re / (hypot(y_46_re, y_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[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.8e+112], N[(t$95$0 * N[(N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -1.45e-43], 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, 1e-148], N[(N[(1.0 / y$46$im), $MachinePrecision] * N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] / y$46$im), $MachinePrecision] - x$46$re), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(x$46$im - N[(x$46$re / N[(N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{if}\;y.re \leq -1.8 \cdot 10^{+112}:\\
\;\;\;\;t_0 \cdot \left(\frac{x.re}{\frac{y.re}{y.im}} - x.im\right)\\
\mathbf{elif}\;y.re \leq -1.45 \cdot 10^{-43}:\\
\;\;\;\;\frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.re \leq 10^{-148}:\\
\;\;\;\;\frac{1}{y.im} \cdot \left(\frac{y.re \cdot x.im}{y.im} - x.re\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(x.im - \frac{x.re}{\frac{\mathsf{hypot}\left(y.re, y.im\right)}{y.im}}\right)\\
\end{array}
\end{array}
if y.re < -1.8e112Initial program 31.2%
*-un-lft-identity31.2%
add-sqr-sqrt31.2%
times-frac31.2%
hypot-def31.2%
hypot-def64.5%
Applied egg-rr64.5%
Taylor expanded in y.re around -inf 87.9%
+-commutative87.9%
neg-mul-187.9%
unsub-neg87.9%
associate-/l*91.0%
Simplified91.0%
if -1.8e112 < y.re < -1.4500000000000001e-43Initial program 84.5%
if -1.4500000000000001e-43 < y.re < 9.99999999999999936e-149Initial program 67.5%
*-un-lft-identity67.5%
add-sqr-sqrt67.5%
times-frac67.5%
hypot-def67.5%
hypot-def88.6%
Applied egg-rr88.6%
Taylor expanded in y.re around 0 44.1%
Taylor expanded in y.re around 0 85.3%
if 9.99999999999999936e-149 < y.re Initial program 50.1%
*-un-lft-identity50.1%
add-sqr-sqrt50.1%
times-frac50.2%
hypot-def50.2%
hypot-def67.5%
Applied egg-rr67.5%
div-sub67.5%
sub-neg67.5%
Applied egg-rr67.5%
sub-neg67.5%
associate-/l*84.9%
associate-/l*98.8%
Simplified98.8%
Taylor expanded in y.re around inf 87.1%
Final simplification86.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.re -1.65e+112)
(- (/ x.im y.re) (* y.im (/ (/ x.re y.re) y.re)))
(if (<= y.re -1.05e-53)
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.re 110000000000.0)
(* (/ 1.0 y.im) (- (/ (* y.re x.im) y.im) x.re))
(* (/ 1.0 (hypot y.re y.im)) (- x.im (* x.re (/ y.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_re <= -1.65e+112) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else if (y_46_re <= -1.05e-53) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 110000000000.0) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = (1.0 / hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re * (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 tmp;
if (y_46_re <= -1.65e+112) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else if (y_46_re <= -1.05e-53) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 110000000000.0) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = (1.0 / Math.hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re * (y_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_re <= -1.65e+112: tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)) elif y_46_re <= -1.05e-53: tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_re <= 110000000000.0: tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re) else: tmp = (1.0 / math.hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re * (y_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_re <= -1.65e+112) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / y_46_re))); elseif (y_46_re <= -1.05e-53) tmp = 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))); elseif (y_46_re <= 110000000000.0) tmp = Float64(Float64(1.0 / y_46_im) * Float64(Float64(Float64(y_46_re * x_46_im) / y_46_im) - x_46_re)); else tmp = Float64(Float64(1.0 / hypot(y_46_re, y_46_im)) * Float64(x_46_im - Float64(x_46_re * Float64(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) tmp = 0.0; if (y_46_re <= -1.65e+112) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)); elseif (y_46_re <= -1.05e-53) tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_re <= 110000000000.0) tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re); else tmp = (1.0 / hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re * (y_46_im / y_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, -1.65e+112], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -1.05e-53], 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, 110000000000.0], N[(N[(1.0 / y$46$im), $MachinePrecision] * N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] / y$46$im), $MachinePrecision] - x$46$re), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] * N[(x$46$im - N[(x$46$re * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.65 \cdot 10^{+112}:\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{elif}\;y.re \leq -1.05 \cdot 10^{-53}:\\
\;\;\;\;\frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.re \leq 110000000000:\\
\;\;\;\;\frac{1}{y.im} \cdot \left(\frac{y.re \cdot x.im}{y.im} - x.re\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{hypot}\left(y.re, y.im\right)} \cdot \left(x.im - x.re \cdot \frac{y.im}{y.re}\right)\\
\end{array}
\end{array}
if y.re < -1.64999999999999995e112Initial program 31.2%
Taylor expanded in y.re around inf 83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
associate-/l*81.0%
associate-/r/84.0%
Simplified84.0%
*-un-lft-identity84.0%
unpow284.0%
times-frac89.6%
Applied egg-rr89.6%
associate-*l/89.6%
*-lft-identity89.6%
Simplified89.6%
if -1.64999999999999995e112 < y.re < -1.04999999999999989e-53Initial program 84.5%
if -1.04999999999999989e-53 < y.re < 1.1e11Initial program 67.5%
*-un-lft-identity67.5%
add-sqr-sqrt67.5%
times-frac67.6%
hypot-def67.6%
hypot-def86.7%
Applied egg-rr86.7%
Taylor expanded in y.re around 0 38.8%
Taylor expanded in y.re around 0 81.2%
if 1.1e11 < y.re Initial program 42.2%
*-un-lft-identity42.2%
add-sqr-sqrt42.2%
times-frac42.2%
hypot-def42.2%
hypot-def60.8%
Applied egg-rr60.8%
div-sub60.8%
sub-neg60.8%
Applied egg-rr60.8%
sub-neg60.8%
associate-/l*86.1%
associate-/l*98.4%
Simplified98.4%
associate-/r/99.6%
Applied egg-rr99.6%
Taylor expanded in y.re around inf 76.2%
mul-1-neg76.2%
*-commutative76.2%
associate-*r/81.7%
unsub-neg81.7%
associate-*r/76.2%
*-commutative76.2%
associate-*r/80.4%
Simplified80.4%
Final simplification82.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.re -1.65e+112)
(- (/ x.im y.re) (* y.im (/ (/ x.re y.re) y.re)))
(if (<= y.re -4.5e-49)
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.re 270000000000.0)
(* (/ 1.0 y.im) (- (/ (* y.re x.im) y.im) x.re))
(* (/ 1.0 (hypot y.re y.im)) (- x.im (/ x.re (/ y.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 <= -1.65e+112) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else if (y_46_re <= -4.5e-49) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 270000000000.0) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = (1.0 / hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re / (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 tmp;
if (y_46_re <= -1.65e+112) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else if (y_46_re <= -4.5e-49) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 270000000000.0) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = (1.0 / Math.hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re / (y_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 <= -1.65e+112: tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)) elif y_46_re <= -4.5e-49: tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_re <= 270000000000.0: tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re) else: tmp = (1.0 / math.hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re / (y_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 <= -1.65e+112) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / y_46_re))); elseif (y_46_re <= -4.5e-49) tmp = 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))); elseif (y_46_re <= 270000000000.0) tmp = Float64(Float64(1.0 / y_46_im) * Float64(Float64(Float64(y_46_re * x_46_im) / y_46_im) - x_46_re)); else tmp = Float64(Float64(1.0 / hypot(y_46_re, y_46_im)) * Float64(x_46_im - Float64(x_46_re / Float64(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) tmp = 0.0; if (y_46_re <= -1.65e+112) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)); elseif (y_46_re <= -4.5e-49) tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_re <= 270000000000.0) tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re); else tmp = (1.0 / hypot(y_46_re, y_46_im)) * (x_46_im - (x_46_re / (y_46_re / y_46_im))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[y$46$re, -1.65e+112], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -4.5e-49], 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, 270000000000.0], N[(N[(1.0 / y$46$im), $MachinePrecision] * N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] / y$46$im), $MachinePrecision] - x$46$re), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] * N[(x$46$im - N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.65 \cdot 10^{+112}:\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{elif}\;y.re \leq -4.5 \cdot 10^{-49}:\\
\;\;\;\;\frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.re \leq 270000000000:\\
\;\;\;\;\frac{1}{y.im} \cdot \left(\frac{y.re \cdot x.im}{y.im} - x.re\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{hypot}\left(y.re, y.im\right)} \cdot \left(x.im - \frac{x.re}{\frac{y.re}{y.im}}\right)\\
\end{array}
\end{array}
if y.re < -1.64999999999999995e112Initial program 31.2%
Taylor expanded in y.re around inf 83.5%
+-commutative83.5%
mul-1-neg83.5%
unsub-neg83.5%
associate-/l*81.0%
associate-/r/84.0%
Simplified84.0%
*-un-lft-identity84.0%
unpow284.0%
times-frac89.6%
Applied egg-rr89.6%
associate-*l/89.6%
*-lft-identity89.6%
Simplified89.6%
if -1.64999999999999995e112 < y.re < -4.5000000000000002e-49Initial program 84.5%
if -4.5000000000000002e-49 < y.re < 2.7e11Initial program 67.5%
*-un-lft-identity67.5%
add-sqr-sqrt67.5%
times-frac67.6%
hypot-def67.6%
hypot-def86.7%
Applied egg-rr86.7%
Taylor expanded in y.re around 0 38.8%
Taylor expanded in y.re around 0 81.2%
if 2.7e11 < y.re Initial program 42.2%
*-un-lft-identity42.2%
add-sqr-sqrt42.2%
times-frac42.2%
hypot-def42.2%
hypot-def60.8%
Applied egg-rr60.8%
Taylor expanded in y.re around inf 76.2%
mul-1-neg76.2%
unsub-neg76.2%
associate-/l*80.5%
Simplified80.5%
Final simplification82.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ 1.0 (hypot y.re y.im))) (t_1 (/ x.re (/ y.re y.im))))
(if (<= y.re -1.6e+112)
(* t_0 (- t_1 x.im))
(if (<= y.re -2.2e-52)
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.re 540000000.0)
(* (/ 1.0 y.im) (- (/ (* y.re x.im) y.im) x.re))
(* t_0 (- x.im t_1)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 1.0 / hypot(y_46_re, y_46_im);
double t_1 = x_46_re / (y_46_re / y_46_im);
double tmp;
if (y_46_re <= -1.6e+112) {
tmp = t_0 * (t_1 - x_46_im);
} else if (y_46_re <= -2.2e-52) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 540000000.0) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = t_0 * (x_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 = 1.0 / Math.hypot(y_46_re, y_46_im);
double t_1 = x_46_re / (y_46_re / y_46_im);
double tmp;
if (y_46_re <= -1.6e+112) {
tmp = t_0 * (t_1 - x_46_im);
} else if (y_46_re <= -2.2e-52) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 540000000.0) {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re);
} else {
tmp = t_0 * (x_46_im - t_1);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = 1.0 / math.hypot(y_46_re, y_46_im) t_1 = x_46_re / (y_46_re / y_46_im) tmp = 0 if y_46_re <= -1.6e+112: tmp = t_0 * (t_1 - x_46_im) elif y_46_re <= -2.2e-52: tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_re <= 540000000.0: tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re) else: tmp = t_0 * (x_46_im - t_1) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(1.0 / hypot(y_46_re, y_46_im)) t_1 = Float64(x_46_re / Float64(y_46_re / y_46_im)) tmp = 0.0 if (y_46_re <= -1.6e+112) tmp = Float64(t_0 * Float64(t_1 - x_46_im)); elseif (y_46_re <= -2.2e-52) tmp = 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))); elseif (y_46_re <= 540000000.0) tmp = Float64(Float64(1.0 / y_46_im) * Float64(Float64(Float64(y_46_re * x_46_im) / y_46_im) - x_46_re)); else tmp = Float64(t_0 * Float64(x_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 = 1.0 / hypot(y_46_re, y_46_im); t_1 = x_46_re / (y_46_re / y_46_im); tmp = 0.0; if (y_46_re <= -1.6e+112) tmp = t_0 * (t_1 - x_46_im); elseif (y_46_re <= -2.2e-52) tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_re <= 540000000.0) tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_46_re); else tmp = t_0 * (x_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[(1.0 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.6e+112], N[(t$95$0 * N[(t$95$1 - x$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -2.2e-52], 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, 540000000.0], N[(N[(1.0 / y$46$im), $MachinePrecision] * N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] / y$46$im), $MachinePrecision] - x$46$re), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(x$46$im - t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{\mathsf{hypot}\left(y.re, y.im\right)}\\
t_1 := \frac{x.re}{\frac{y.re}{y.im}}\\
\mathbf{if}\;y.re \leq -1.6 \cdot 10^{+112}:\\
\;\;\;\;t_0 \cdot \left(t_1 - x.im\right)\\
\mathbf{elif}\;y.re \leq -2.2 \cdot 10^{-52}:\\
\;\;\;\;\frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.re \leq 540000000:\\
\;\;\;\;\frac{1}{y.im} \cdot \left(\frac{y.re \cdot x.im}{y.im} - x.re\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(x.im - t_1\right)\\
\end{array}
\end{array}
if y.re < -1.59999999999999993e112Initial program 31.2%
*-un-lft-identity31.2%
add-sqr-sqrt31.2%
times-frac31.2%
hypot-def31.2%
hypot-def64.5%
Applied egg-rr64.5%
Taylor expanded in y.re around -inf 87.9%
+-commutative87.9%
neg-mul-187.9%
unsub-neg87.9%
associate-/l*91.0%
Simplified91.0%
if -1.59999999999999993e112 < y.re < -2.20000000000000009e-52Initial program 84.5%
if -2.20000000000000009e-52 < y.re < 5.4e8Initial program 67.5%
*-un-lft-identity67.5%
add-sqr-sqrt67.5%
times-frac67.6%
hypot-def67.6%
hypot-def86.7%
Applied egg-rr86.7%
Taylor expanded in y.re around 0 38.8%
Taylor expanded in y.re around 0 81.2%
if 5.4e8 < y.re Initial program 42.2%
*-un-lft-identity42.2%
add-sqr-sqrt42.2%
times-frac42.2%
hypot-def42.2%
hypot-def60.8%
Applied egg-rr60.8%
Taylor expanded in y.re around inf 76.2%
mul-1-neg76.2%
unsub-neg76.2%
associate-/l*80.5%
Simplified80.5%
Final simplification82.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (/ 1.0 y.re) (- x.im (/ (* y.im x.re) y.re)))))
(if (<= y.im -43000000.0)
(- (/ (* y.re (/ x.im y.im)) y.im) (/ x.re y.im))
(if (<= y.im 7e-130)
t_0
(if (<= y.im 1.85e+18)
(/ (- (* y.re x.im) (* y.im x.re)) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.im 7.5e+88)
t_0
(- (/ y.re (/ y.im (/ x.im 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 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re));
double tmp;
if (y_46_im <= -43000000.0) {
tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im);
} else if (y_46_im <= 7e-130) {
tmp = t_0;
} else if (y_46_im <= 1.85e+18) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_im <= 7.5e+88) {
tmp = t_0;
} else {
tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (1.0d0 / y_46re) * (x_46im - ((y_46im * x_46re) / y_46re))
if (y_46im <= (-43000000.0d0)) then
tmp = ((y_46re * (x_46im / y_46im)) / y_46im) - (x_46re / y_46im)
else if (y_46im <= 7d-130) then
tmp = t_0
else if (y_46im <= 1.85d+18) then
tmp = ((y_46re * x_46im) - (y_46im * x_46re)) / ((y_46re * y_46re) + (y_46im * y_46im))
else if (y_46im <= 7.5d+88) then
tmp = t_0
else
tmp = (y_46re / (y_46im / (x_46im / y_46im))) - (x_46re / y_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re));
double tmp;
if (y_46_im <= -43000000.0) {
tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im);
} else if (y_46_im <= 7e-130) {
tmp = t_0;
} else if (y_46_im <= 1.85e+18) {
tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_im <= 7.5e+88) {
tmp = t_0;
} else {
tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re)) tmp = 0 if y_46_im <= -43000000.0: tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im) elif y_46_im <= 7e-130: tmp = t_0 elif y_46_im <= 1.85e+18: tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_im <= 7.5e+88: tmp = t_0 else: tmp = (y_46_re / (y_46_im / (x_46_im / 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(1.0 / y_46_re) * Float64(x_46_im - Float64(Float64(y_46_im * x_46_re) / y_46_re))) tmp = 0.0 if (y_46_im <= -43000000.0) tmp = Float64(Float64(Float64(y_46_re * Float64(x_46_im / y_46_im)) / y_46_im) - Float64(x_46_re / y_46_im)); elseif (y_46_im <= 7e-130) tmp = t_0; elseif (y_46_im <= 1.85e+18) tmp = 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))); elseif (y_46_im <= 7.5e+88) tmp = t_0; else tmp = Float64(Float64(y_46_re / Float64(y_46_im / Float64(x_46_im / y_46_im))) - 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) t_0 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re)); tmp = 0.0; if (y_46_im <= -43000000.0) tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im); elseif (y_46_im <= 7e-130) tmp = t_0; elseif (y_46_im <= 1.85e+18) tmp = ((y_46_re * x_46_im) - (y_46_im * x_46_re)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_im <= 7.5e+88) tmp = t_0; else tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(1.0 / y$46$re), $MachinePrecision] * N[(x$46$im - N[(N[(y$46$im * x$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -43000000.0], N[(N[(N[(y$46$re * N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 7e-130], t$95$0, If[LessEqual[y$46$im, 1.85e+18], 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$im, 7.5e+88], t$95$0, N[(N[(y$46$re / N[(y$46$im / N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{y.re} \cdot \left(x.im - \frac{y.im \cdot x.re}{y.re}\right)\\
\mathbf{if}\;y.im \leq -43000000:\\
\;\;\;\;\frac{y.re \cdot \frac{x.im}{y.im}}{y.im} - \frac{x.re}{y.im}\\
\mathbf{elif}\;y.im \leq 7 \cdot 10^{-130}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.im \leq 1.85 \cdot 10^{+18}:\\
\;\;\;\;\frac{y.re \cdot x.im - y.im \cdot x.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.im \leq 7.5 \cdot 10^{+88}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re}{\frac{y.im}{\frac{x.im}{y.im}}} - \frac{x.re}{y.im}\\
\end{array}
\end{array}
if y.im < -4.3e7Initial program 39.2%
Taylor expanded in y.re around 0 74.7%
+-commutative74.7%
mul-1-neg74.7%
unsub-neg74.7%
*-commutative74.7%
associate-/l*76.1%
Simplified76.1%
pow276.1%
*-un-lft-identity76.1%
times-frac78.9%
Applied egg-rr78.9%
/-rgt-identity78.9%
associate-/r*78.7%
div-inv78.7%
Applied egg-rr78.7%
associate-*l/80.3%
associate-/r/80.3%
associate-*l/80.4%
*-lft-identity80.4%
Simplified80.4%
if -4.3e7 < y.im < 6.9999999999999998e-130 or 1.85e18 < y.im < 7.50000000000000031e88Initial program 69.5%
*-un-lft-identity69.5%
add-sqr-sqrt69.5%
times-frac69.6%
hypot-def69.6%
hypot-def85.6%
Applied egg-rr85.6%
div-sub85.6%
sub-neg85.6%
Applied egg-rr85.6%
sub-neg85.6%
associate-/l*99.6%
associate-/l*98.9%
Simplified98.9%
Taylor expanded in y.re around inf 53.0%
+-commutative53.0%
associate-*r/53.0%
neg-mul-153.0%
distribute-rgt-neg-in53.0%
Simplified53.0%
Taylor expanded in y.re around inf 86.0%
if 6.9999999999999998e-130 < y.im < 1.85e18Initial program 86.6%
if 7.50000000000000031e88 < y.im Initial program 32.9%
Taylor expanded in y.re around 0 72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
associate-/l*75.2%
Simplified75.2%
pow275.2%
*-un-lft-identity75.2%
times-frac79.8%
Applied egg-rr79.8%
/-rgt-identity79.8%
clear-num79.8%
un-div-inv79.9%
Applied egg-rr79.9%
Final simplification83.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (/ 1.0 y.re) (- x.im (/ (* y.im x.re) y.re))))
(t_1 (- (/ (* y.re (/ x.im y.im)) y.im) (/ x.re y.im))))
(if (<= y.im -2600000.0)
t_1
(if (<= y.im 1.32e-73)
t_0
(if (<= y.im 6200000000.0)
t_1
(if (<= y.im 7.5e+88)
t_0
(- (/ y.re (/ y.im (/ x.im 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 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re));
double t_1 = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im);
double tmp;
if (y_46_im <= -2600000.0) {
tmp = t_1;
} else if (y_46_im <= 1.32e-73) {
tmp = t_0;
} else if (y_46_im <= 6200000000.0) {
tmp = t_1;
} else if (y_46_im <= 7.5e+88) {
tmp = t_0;
} else {
tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (1.0d0 / y_46re) * (x_46im - ((y_46im * x_46re) / y_46re))
t_1 = ((y_46re * (x_46im / y_46im)) / y_46im) - (x_46re / y_46im)
if (y_46im <= (-2600000.0d0)) then
tmp = t_1
else if (y_46im <= 1.32d-73) then
tmp = t_0
else if (y_46im <= 6200000000.0d0) then
tmp = t_1
else if (y_46im <= 7.5d+88) then
tmp = t_0
else
tmp = (y_46re / (y_46im / (x_46im / y_46im))) - (x_46re / y_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re));
double t_1 = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im);
double tmp;
if (y_46_im <= -2600000.0) {
tmp = t_1;
} else if (y_46_im <= 1.32e-73) {
tmp = t_0;
} else if (y_46_im <= 6200000000.0) {
tmp = t_1;
} else if (y_46_im <= 7.5e+88) {
tmp = t_0;
} else {
tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re)) t_1 = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im) tmp = 0 if y_46_im <= -2600000.0: tmp = t_1 elif y_46_im <= 1.32e-73: tmp = t_0 elif y_46_im <= 6200000000.0: tmp = t_1 elif y_46_im <= 7.5e+88: tmp = t_0 else: tmp = (y_46_re / (y_46_im / (x_46_im / 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(1.0 / y_46_re) * Float64(x_46_im - Float64(Float64(y_46_im * x_46_re) / y_46_re))) t_1 = Float64(Float64(Float64(y_46_re * Float64(x_46_im / y_46_im)) / y_46_im) - Float64(x_46_re / y_46_im)) tmp = 0.0 if (y_46_im <= -2600000.0) tmp = t_1; elseif (y_46_im <= 1.32e-73) tmp = t_0; elseif (y_46_im <= 6200000000.0) tmp = t_1; elseif (y_46_im <= 7.5e+88) tmp = t_0; else tmp = Float64(Float64(y_46_re / Float64(y_46_im / Float64(x_46_im / y_46_im))) - 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) t_0 = (1.0 / y_46_re) * (x_46_im - ((y_46_im * x_46_re) / y_46_re)); t_1 = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im); tmp = 0.0; if (y_46_im <= -2600000.0) tmp = t_1; elseif (y_46_im <= 1.32e-73) tmp = t_0; elseif (y_46_im <= 6200000000.0) tmp = t_1; elseif (y_46_im <= 7.5e+88) tmp = t_0; else tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(1.0 / y$46$re), $MachinePrecision] * N[(x$46$im - N[(N[(y$46$im * x$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(y$46$re * N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -2600000.0], t$95$1, If[LessEqual[y$46$im, 1.32e-73], t$95$0, If[LessEqual[y$46$im, 6200000000.0], t$95$1, If[LessEqual[y$46$im, 7.5e+88], t$95$0, N[(N[(y$46$re / N[(y$46$im / N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{y.re} \cdot \left(x.im - \frac{y.im \cdot x.re}{y.re}\right)\\
t_1 := \frac{y.re \cdot \frac{x.im}{y.im}}{y.im} - \frac{x.re}{y.im}\\
\mathbf{if}\;y.im \leq -2600000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.im \leq 1.32 \cdot 10^{-73}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.im \leq 6200000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.im \leq 7.5 \cdot 10^{+88}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re}{\frac{y.im}{\frac{x.im}{y.im}}} - \frac{x.re}{y.im}\\
\end{array}
\end{array}
if y.im < -2.6e6 or 1.31999999999999998e-73 < y.im < 6.2e9Initial program 48.5%
Taylor expanded in y.re around 0 73.3%
+-commutative73.3%
mul-1-neg73.3%
unsub-neg73.3%
*-commutative73.3%
associate-/l*74.4%
Simplified74.4%
pow274.4%
*-un-lft-identity74.4%
times-frac76.7%
Applied egg-rr76.7%
/-rgt-identity76.7%
associate-/r*76.5%
div-inv76.5%
Applied egg-rr76.5%
associate-*l/77.9%
associate-/r/77.8%
associate-*l/77.9%
*-lft-identity77.9%
Simplified77.9%
if -2.6e6 < y.im < 1.31999999999999998e-73 or 6.2e9 < y.im < 7.50000000000000031e88Initial program 71.3%
*-un-lft-identity71.3%
add-sqr-sqrt71.3%
times-frac71.3%
hypot-def71.3%
hypot-def87.1%
Applied egg-rr87.1%
div-sub87.1%
sub-neg87.1%
Applied egg-rr87.1%
sub-neg87.1%
associate-/l*99.6%
associate-/l*99.0%
Simplified99.0%
Taylor expanded in y.re around inf 53.0%
+-commutative53.0%
associate-*r/53.0%
neg-mul-153.0%
distribute-rgt-neg-in53.0%
Simplified53.0%
Taylor expanded in y.re around inf 86.0%
if 7.50000000000000031e88 < y.im Initial program 32.9%
Taylor expanded in y.re around 0 72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
associate-/l*75.2%
Simplified75.2%
pow275.2%
*-un-lft-identity75.2%
times-frac79.8%
Applied egg-rr79.8%
/-rgt-identity79.8%
clear-num79.8%
un-div-inv79.9%
Applied egg-rr79.9%
Final simplification82.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.re) y.im)))
(if (<= y.im -0.0017)
t_0
(if (<= y.im 1.36e-188)
(/ x.im y.re)
(if (<= y.im 9.2e+88)
(- (/ x.im y.re) (* y.im (/ x.re (* y.re y.re))))
t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = -x_46_re / y_46_im;
double tmp;
if (y_46_im <= -0.0017) {
tmp = t_0;
} else if (y_46_im <= 1.36e-188) {
tmp = x_46_im / y_46_re;
} else if (y_46_im <= 9.2e+88) {
tmp = (x_46_im / y_46_re) - (y_46_im * (x_46_re / (y_46_re * y_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_46re / y_46im
if (y_46im <= (-0.0017d0)) then
tmp = t_0
else if (y_46im <= 1.36d-188) then
tmp = x_46im / y_46re
else if (y_46im <= 9.2d+88) then
tmp = (x_46im / y_46re) - (y_46im * (x_46re / (y_46re * y_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 = -x_46_re / y_46_im;
double tmp;
if (y_46_im <= -0.0017) {
tmp = t_0;
} else if (y_46_im <= 1.36e-188) {
tmp = x_46_im / y_46_re;
} else if (y_46_im <= 9.2e+88) {
tmp = (x_46_im / y_46_re) - (y_46_im * (x_46_re / (y_46_re * y_46_re)));
} 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 tmp = 0 if y_46_im <= -0.0017: tmp = t_0 elif y_46_im <= 1.36e-188: tmp = x_46_im / y_46_re elif y_46_im <= 9.2e+88: tmp = (x_46_im / y_46_re) - (y_46_im * (x_46_re / (y_46_re * y_46_re))) else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(-x_46_re) / y_46_im) tmp = 0.0 if (y_46_im <= -0.0017) tmp = t_0; elseif (y_46_im <= 1.36e-188) tmp = Float64(x_46_im / y_46_re); elseif (y_46_im <= 9.2e+88) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(x_46_re / Float64(y_46_re * y_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_re / y_46_im; tmp = 0.0; if (y_46_im <= -0.0017) tmp = t_0; elseif (y_46_im <= 1.36e-188) tmp = x_46_im / y_46_re; elseif (y_46_im <= 9.2e+88) tmp = (x_46_im / y_46_re) - (y_46_im * (x_46_re / (y_46_re * y_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[((-x$46$re) / y$46$im), $MachinePrecision]}, If[LessEqual[y$46$im, -0.0017], t$95$0, If[LessEqual[y$46$im, 1.36e-188], N[(x$46$im / y$46$re), $MachinePrecision], If[LessEqual[y$46$im, 9.2e+88], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(x$46$re / N[(y$46$re * y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-x.re}{y.im}\\
\mathbf{if}\;y.im \leq -0.0017:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.im \leq 1.36 \cdot 10^{-188}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\mathbf{elif}\;y.im \leq 9.2 \cdot 10^{+88}:\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{x.re}{y.re \cdot y.re}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y.im < -0.00169999999999999991 or 9.2000000000000007e88 < y.im Initial program 36.9%
Taylor expanded in y.re around 0 69.4%
associate-*r/69.4%
neg-mul-169.4%
Simplified69.4%
if -0.00169999999999999991 < y.im < 1.36e-188Initial program 73.1%
Taylor expanded in y.re around inf 76.0%
if 1.36e-188 < y.im < 9.2000000000000007e88Initial program 73.0%
Taylor expanded in y.re around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-/l*61.2%
associate-/r/62.9%
Simplified62.9%
unpow262.9%
Applied egg-rr62.9%
Final simplification70.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -4e-36) (not (<= y.re 175000000000.0))) (- (/ x.im y.re) (* y.im (/ (/ x.re y.re) 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 <= -4e-36) || !(y_46_re <= 175000000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / 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 <= (-4d-36)) .or. (.not. (y_46re <= 175000000000.0d0))) then
tmp = (x_46im / y_46re) - (y_46im * ((x_46re / y_46re) / 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 <= -4e-36) || !(y_46_re <= 175000000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / 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 <= -4e-36) or not (y_46_re <= 175000000000.0): tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / 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 <= -4e-36) || !(y_46_re <= 175000000000.0)) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / 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 <= -4e-36) || ~((y_46_re <= 175000000000.0))) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / 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, -4e-36], N[Not[LessEqual[y$46$re, 175000000000.0]], $MachinePrecision]], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-x$46$re) / y$46$im), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -4 \cdot 10^{-36} \lor \neg \left(y.re \leq 175000000000\right):\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x.re}{y.im}\\
\end{array}
\end{array}
if y.re < -3.9999999999999998e-36 or 1.75e11 < y.re Initial program 50.8%
Taylor expanded in y.re around inf 72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
associate-/l*71.6%
associate-/r/74.3%
Simplified74.3%
*-un-lft-identity74.3%
unpow274.3%
times-frac79.0%
Applied egg-rr79.0%
associate-*l/79.0%
*-lft-identity79.0%
Simplified79.0%
if -3.9999999999999998e-36 < y.re < 1.75e11Initial program 67.3%
Taylor expanded in y.re around 0 62.5%
associate-*r/62.5%
neg-mul-162.5%
Simplified62.5%
Final simplification71.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -6e-15) (not (<= y.re 4200000000.0))) (- (/ x.im y.re) (* y.im (/ (/ x.re y.re) y.re))) (- (/ y.re (/ y.im (/ x.im 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 tmp;
if ((y_46_re <= -6e-15) || !(y_46_re <= 4200000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46re <= (-6d-15)) .or. (.not. (y_46re <= 4200000000.0d0))) then
tmp = (x_46im / y_46re) - (y_46im * ((x_46re / y_46re) / y_46re))
else
tmp = (y_46re / (y_46im / (x_46im / y_46im))) - (x_46re / y_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -6e-15) || !(y_46_re <= 4200000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -6e-15) or not (y_46_re <= 4200000000.0): tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)) else: tmp = (y_46_re / (y_46_im / (x_46_im / 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) tmp = 0.0 if ((y_46_re <= -6e-15) || !(y_46_re <= 4200000000.0)) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / y_46_re))); else tmp = Float64(Float64(y_46_re / Float64(y_46_im / Float64(x_46_im / y_46_im))) - 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 <= -6e-15) || ~((y_46_re <= 4200000000.0))) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)); else tmp = (y_46_re / (y_46_im / (x_46_im / y_46_im))) - (x_46_re / y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -6e-15], N[Not[LessEqual[y$46$re, 4200000000.0]], $MachinePrecision]], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y$46$re / N[(y$46$im / N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -6 \cdot 10^{-15} \lor \neg \left(y.re \leq 4200000000\right):\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re}{\frac{y.im}{\frac{x.im}{y.im}}} - \frac{x.re}{y.im}\\
\end{array}
\end{array}
if y.re < -6e-15 or 4.2e9 < y.re Initial program 49.1%
Taylor expanded in y.re around inf 73.8%
+-commutative73.8%
mul-1-neg73.8%
unsub-neg73.8%
associate-/l*72.7%
associate-/r/75.5%
Simplified75.5%
*-un-lft-identity75.5%
unpow275.5%
times-frac80.3%
Applied egg-rr80.3%
associate-*l/80.4%
*-lft-identity80.4%
Simplified80.4%
if -6e-15 < y.re < 4.2e9Initial program 68.6%
Taylor expanded in y.re around 0 70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
associate-/l*68.4%
Simplified68.4%
pow268.4%
*-un-lft-identity68.4%
times-frac71.7%
Applied egg-rr71.7%
/-rgt-identity71.7%
clear-num71.7%
un-div-inv71.7%
Applied egg-rr71.7%
Final simplification76.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -5e-15) (not (<= y.re 750000000000.0))) (- (/ x.im y.re) (* y.im (/ (/ x.re y.re) y.re))) (- (/ (* y.re (/ x.im y.im)) 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 tmp;
if ((y_46_re <= -5e-15) || !(y_46_re <= 750000000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46re <= (-5d-15)) .or. (.not. (y_46re <= 750000000000.0d0))) then
tmp = (x_46im / y_46re) - (y_46im * ((x_46re / y_46re) / y_46re))
else
tmp = ((y_46re * (x_46im / y_46im)) / y_46im) - (x_46re / y_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -5e-15) || !(y_46_re <= 750000000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -5e-15) or not (y_46_re <= 750000000000.0): tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)) else: tmp = ((y_46_re * (x_46_im / y_46_im)) / 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) tmp = 0.0 if ((y_46_re <= -5e-15) || !(y_46_re <= 750000000000.0)) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / y_46_re))); else tmp = Float64(Float64(Float64(y_46_re * Float64(x_46_im / y_46_im)) / y_46_im) - 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 <= -5e-15) || ~((y_46_re <= 750000000000.0))) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)); else tmp = ((y_46_re * (x_46_im / y_46_im)) / y_46_im) - (x_46_re / y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -5e-15], N[Not[LessEqual[y$46$re, 750000000000.0]], $MachinePrecision]], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y$46$re * N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -5 \cdot 10^{-15} \lor \neg \left(y.re \leq 750000000000\right):\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{y.re \cdot \frac{x.im}{y.im}}{y.im} - \frac{x.re}{y.im}\\
\end{array}
\end{array}
if y.re < -4.99999999999999999e-15 or 7.5e11 < y.re Initial program 49.1%
Taylor expanded in y.re around inf 73.8%
+-commutative73.8%
mul-1-neg73.8%
unsub-neg73.8%
associate-/l*72.7%
associate-/r/75.5%
Simplified75.5%
*-un-lft-identity75.5%
unpow275.5%
times-frac80.3%
Applied egg-rr80.3%
associate-*l/80.4%
*-lft-identity80.4%
Simplified80.4%
if -4.99999999999999999e-15 < y.re < 7.5e11Initial program 68.6%
Taylor expanded in y.re around 0 70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
associate-/l*68.4%
Simplified68.4%
pow268.4%
*-un-lft-identity68.4%
times-frac71.7%
Applied egg-rr71.7%
/-rgt-identity71.7%
associate-/r*73.8%
div-inv73.3%
Applied egg-rr73.3%
associate-*l/74.2%
associate-/r/74.2%
associate-*l/74.2%
*-lft-identity74.2%
Simplified74.2%
Final simplification77.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -3.1e-15) (not (<= y.re 105000000.0))) (- (/ x.im y.re) (* y.im (/ (/ x.re y.re) y.re))) (- (/ (/ y.re (/ y.im x.im)) 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 tmp;
if ((y_46_re <= -3.1e-15) || !(y_46_re <= 105000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = ((y_46_re / (y_46_im / x_46_im)) / y_46_im) - (x_46_re / y_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46re <= (-3.1d-15)) .or. (.not. (y_46re <= 105000000.0d0))) then
tmp = (x_46im / y_46re) - (y_46im * ((x_46re / y_46re) / y_46re))
else
tmp = ((y_46re / (y_46im / x_46im)) / y_46im) - (x_46re / y_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -3.1e-15) || !(y_46_re <= 105000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = ((y_46_re / (y_46_im / x_46_im)) / y_46_im) - (x_46_re / y_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -3.1e-15) or not (y_46_re <= 105000000.0): tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)) else: tmp = ((y_46_re / (y_46_im / x_46_im)) / 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) tmp = 0.0 if ((y_46_re <= -3.1e-15) || !(y_46_re <= 105000000.0)) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / y_46_re))); else tmp = Float64(Float64(Float64(y_46_re / Float64(y_46_im / x_46_im)) / y_46_im) - 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 <= -3.1e-15) || ~((y_46_re <= 105000000.0))) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)); else tmp = ((y_46_re / (y_46_im / x_46_im)) / y_46_im) - (x_46_re / y_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -3.1e-15], N[Not[LessEqual[y$46$re, 105000000.0]], $MachinePrecision]], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y$46$re / N[(y$46$im / x$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision] - N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -3.1 \cdot 10^{-15} \lor \neg \left(y.re \leq 105000000\right):\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y.re}{\frac{y.im}{x.im}}}{y.im} - \frac{x.re}{y.im}\\
\end{array}
\end{array}
if y.re < -3.0999999999999999e-15 or 1.05e8 < y.re Initial program 49.1%
Taylor expanded in y.re around inf 73.8%
+-commutative73.8%
mul-1-neg73.8%
unsub-neg73.8%
associate-/l*72.7%
associate-/r/75.5%
Simplified75.5%
*-un-lft-identity75.5%
unpow275.5%
times-frac80.3%
Applied egg-rr80.3%
associate-*l/80.4%
*-lft-identity80.4%
Simplified80.4%
if -3.0999999999999999e-15 < y.re < 1.05e8Initial program 68.6%
Taylor expanded in y.re around 0 70.0%
+-commutative70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
associate-/l*68.4%
Simplified68.4%
pow268.4%
*-un-lft-identity68.4%
times-frac71.7%
Applied egg-rr71.7%
/-rgt-identity71.7%
*-un-lft-identity71.7%
times-frac74.8%
Applied egg-rr74.8%
associate-*l/74.7%
*-lft-identity74.7%
Simplified74.7%
Final simplification77.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -1.55e-15) (not (<= y.re 76000000.0))) (- (/ x.im y.re) (* y.im (/ (/ x.re y.re) y.re))) (* (/ 1.0 y.im) (- (/ (* y.re x.im) y.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.55e-15) || !(y_46_re <= 76000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_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.55d-15)) .or. (.not. (y_46re <= 76000000.0d0))) then
tmp = (x_46im / y_46re) - (y_46im * ((x_46re / y_46re) / y_46re))
else
tmp = (1.0d0 / y_46im) * (((y_46re * x_46im) / y_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.55e-15) || !(y_46_re <= 76000000.0)) {
tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re));
} else {
tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_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.55e-15) or not (y_46_re <= 76000000.0): tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)) else: tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_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.55e-15) || !(y_46_re <= 76000000.0)) tmp = Float64(Float64(x_46_im / y_46_re) - Float64(y_46_im * Float64(Float64(x_46_re / y_46_re) / y_46_re))); else tmp = Float64(Float64(1.0 / y_46_im) * Float64(Float64(Float64(y_46_re * x_46_im) / y_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.55e-15) || ~((y_46_re <= 76000000.0))) tmp = (x_46_im / y_46_re) - (y_46_im * ((x_46_re / y_46_re) / y_46_re)); else tmp = (1.0 / y_46_im) * (((y_46_re * x_46_im) / y_46_im) - x_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$re, -1.55e-15], N[Not[LessEqual[y$46$re, 76000000.0]], $MachinePrecision]], N[(N[(x$46$im / y$46$re), $MachinePrecision] - N[(y$46$im * N[(N[(x$46$re / y$46$re), $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / y$46$im), $MachinePrecision] * N[(N[(N[(y$46$re * x$46$im), $MachinePrecision] / y$46$im), $MachinePrecision] - x$46$re), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -1.55 \cdot 10^{-15} \lor \neg \left(y.re \leq 76000000\right):\\
\;\;\;\;\frac{x.im}{y.re} - y.im \cdot \frac{\frac{x.re}{y.re}}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y.im} \cdot \left(\frac{y.re \cdot x.im}{y.im} - x.re\right)\\
\end{array}
\end{array}
if y.re < -1.5499999999999999e-15 or 7.6e7 < y.re Initial program 49.1%
Taylor expanded in y.re around inf 73.8%
+-commutative73.8%
mul-1-neg73.8%
unsub-neg73.8%
associate-/l*72.7%
associate-/r/75.5%
Simplified75.5%
*-un-lft-identity75.5%
unpow275.5%
times-frac80.3%
Applied egg-rr80.3%
associate-*l/80.4%
*-lft-identity80.4%
Simplified80.4%
if -1.5499999999999999e-15 < y.re < 7.6e7Initial program 68.6%
*-un-lft-identity68.6%
add-sqr-sqrt68.6%
times-frac68.7%
hypot-def68.7%
hypot-def87.5%
Applied egg-rr87.5%
Taylor expanded in y.re around 0 39.2%
Taylor expanded in y.re around 0 79.9%
Final simplification80.1%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -4.4e-10) (not (<= y.im 1.12e+89))) (/ (- 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 <= -4.4e-10) || !(y_46_im <= 1.12e+89)) {
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 <= (-4.4d-10)) .or. (.not. (y_46im <= 1.12d+89))) 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 <= -4.4e-10) || !(y_46_im <= 1.12e+89)) {
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 <= -4.4e-10) or not (y_46_im <= 1.12e+89): 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 <= -4.4e-10) || !(y_46_im <= 1.12e+89)) tmp = Float64(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 <= -4.4e-10) || ~((y_46_im <= 1.12e+89))) 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, -4.4e-10], N[Not[LessEqual[y$46$im, 1.12e+89]], $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 -4.4 \cdot 10^{-10} \lor \neg \left(y.im \leq 1.12 \cdot 10^{+89}\right):\\
\;\;\;\;\frac{-x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\end{array}
\end{array}
if y.im < -4.3999999999999998e-10 or 1.11999999999999995e89 < y.im Initial program 36.9%
Taylor expanded in y.re around 0 69.4%
associate-*r/69.4%
neg-mul-169.4%
Simplified69.4%
if -4.3999999999999998e-10 < y.im < 1.11999999999999995e89Initial program 73.0%
Taylor expanded in y.re around inf 68.5%
Final simplification68.8%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -6.2e+178) (not (<= y.im 5.8e+217))) (/ 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 <= -6.2e+178) || !(y_46_im <= 5.8e+217)) {
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 <= (-6.2d+178)) .or. (.not. (y_46im <= 5.8d+217))) 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 <= -6.2e+178) || !(y_46_im <= 5.8e+217)) {
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 <= -6.2e+178) or not (y_46_im <= 5.8e+217): 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 <= -6.2e+178) || !(y_46_im <= 5.8e+217)) 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 <= -6.2e+178) || ~((y_46_im <= 5.8e+217))) 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, -6.2e+178], N[Not[LessEqual[y$46$im, 5.8e+217]], $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 -6.2 \cdot 10^{+178} \lor \neg \left(y.im \leq 5.8 \cdot 10^{+217}\right):\\
\;\;\;\;\frac{x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\end{array}
\end{array}
if y.im < -6.19999999999999982e178 or 5.7999999999999997e217 < y.im Initial program 32.4%
*-un-lft-identity32.4%
add-sqr-sqrt32.4%
times-frac32.4%
hypot-def32.4%
hypot-def63.6%
Applied egg-rr63.6%
Taylor expanded in y.im around -inf 66.2%
Taylor expanded in y.re around 0 32.1%
if -6.19999999999999982e178 < y.im < 5.7999999999999997e217Initial program 63.4%
Taylor expanded in y.re around inf 55.7%
Final simplification51.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 58.2%
*-un-lft-identity58.2%
add-sqr-sqrt58.2%
times-frac58.3%
hypot-def58.3%
hypot-def77.4%
Applied egg-rr77.4%
Taylor expanded in y.re around 0 25.3%
Taylor expanded in y.re around inf 9.0%
Final simplification9.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ x.im y.re))
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;
}
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
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;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return x_46_im / y_46_re
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(x_46_im / y_46_re) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = x_46_im / y_46_re; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(x$46$im / y$46$re), $MachinePrecision]
\begin{array}{l}
\\
\frac{x.im}{y.re}
\end{array}
Initial program 58.2%
Taylor expanded in y.re around inf 47.9%
Final simplification47.9%
herbie shell --seed 2023321
(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))))