
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ (+ (* x.re y.re) (* x.im 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_re * y_46_re) + (x_46_im * 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_46re * y_46re) + (x_46im * 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_re * y_46_re) + (x_46_im * 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_re * y_46_re) + (x_46_im * 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_re * y_46_re) + Float64(x_46_im * 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_re * y_46_re) + (x_46_im * 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$re * y$46$re), $MachinePrecision] + N[(x$46$im * 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.re \cdot y.re + x.im \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im) :precision binary64 (/ (+ (* x.re y.re) (* x.im 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_re * y_46_re) + (x_46_im * 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_46re * y_46re) + (x_46im * 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_re * y_46_re) + (x_46_im * 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_re * y_46_re) + (x_46_im * 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_re * y_46_re) + Float64(x_46_im * 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_re * y_46_re) + (x_46_im * 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$re * y$46$re), $MachinePrecision] + N[(x$46$im * 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.re \cdot y.re + x.im \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
(let* ((t_0
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))))
(if (<= t_0 (- INFINITY))
(fma (/ y.re y.im) (/ x.re y.im) (/ x.im y.im))
(if (<= t_0 5e+267)
(/
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))
(hypot y.re y.im))
(/ (* x.im (/ y.im (hypot 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 = ((x_46_re * y_46_re) + (x_46_im * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = fma((y_46_re / y_46_im), (x_46_re / y_46_im), (x_46_im / y_46_im));
} else if (t_0 <= 5e+267) {
tmp = (fma(x_46_re, y_46_re, (x_46_im * y_46_im)) / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im);
} else {
tmp = (x_46_im * (y_46_im / hypot(y_46_re, y_46_im))) / 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(x_46_re * y_46_re) + Float64(x_46_im * y_46_im)) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = fma(Float64(y_46_re / y_46_im), Float64(x_46_re / y_46_im), Float64(x_46_im / y_46_im)); elseif (t_0 <= 5e+267) tmp = Float64(Float64(fma(x_46_re, y_46_re, Float64(x_46_im * y_46_im)) / hypot(y_46_re, y_46_im)) / hypot(y_46_re, y_46_im)); else tmp = Float64(Float64(x_46_im * Float64(y_46_im / hypot(y_46_re, y_46_im))) / hypot(y_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[(N[(x$46$re * y$46$re), $MachinePrecision] + N[(x$46$im * y$46$im), $MachinePrecision]), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(y$46$re / y$46$im), $MachinePrecision] * N[(x$46$re / y$46$im), $MachinePrecision] + N[(x$46$im / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+267], N[(N[(N[(x$46$re * y$46$re + N[(x$46$im * y$46$im), $MachinePrecision]), $MachinePrecision] / 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[(x$46$im * N[(y$46$im / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.re \cdot y.re + x.im \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{y.re}{y.im}, \frac{x.re}{y.im}, \frac{x.im}{y.im}\right)\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+267}:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(x.re, y.re, x.im \cdot y.im\right)}{\mathsf{hypot}\left(y.re, y.im\right)}}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im \cdot \frac{y.im}{\mathsf{hypot}\left(y.re, y.im\right)}}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x.re y.re) (*.f64 x.im y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) < -inf.0Initial program 61.9%
Taylor expanded in y.re around 0 60.5%
*-commutative60.5%
unpow260.5%
times-frac80.3%
fma-def85.3%
Simplified85.3%
if -inf.0 < (/.f64 (+.f64 (*.f64 x.re y.re) (*.f64 x.im y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) < 4.9999999999999999e267Initial program 76.7%
*-un-lft-identity76.7%
add-sqr-sqrt76.7%
times-frac76.7%
hypot-def76.7%
fma-def76.7%
hypot-def98.9%
Applied egg-rr98.9%
associate-*l/99.1%
*-un-lft-identity99.1%
Applied egg-rr99.1%
if 4.9999999999999999e267 < (/.f64 (+.f64 (*.f64 x.re y.re) (*.f64 x.im y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) Initial program 7.3%
Taylor expanded in x.re around 0 6.7%
add-sqr-sqrt6.7%
hypot-udef6.7%
hypot-udef6.7%
times-frac63.1%
Applied egg-rr63.1%
associate-*r/63.2%
Applied egg-rr63.2%
Final simplification89.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -7.8e-21)
(+ (/ x.im y.im) (/ (* y.re (/ x.re y.im)) y.im))
(if (<= y.im 1.15e+98)
(+ (/ x.re y.re) (* (/ y.im y.re) (/ x.im y.re)))
(+ (/ x.im y.im) (* y.re (* (/ x.re y.im) (/ 1.0 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_im <= -7.8e-21) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 1.15e+98) {
tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re));
} else {
tmp = (x_46_im / y_46_im) + (y_46_re * ((x_46_re / y_46_im) * (1.0 / 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_46im <= (-7.8d-21)) then
tmp = (x_46im / y_46im) + ((y_46re * (x_46re / y_46im)) / y_46im)
else if (y_46im <= 1.15d+98) then
tmp = (x_46re / y_46re) + ((y_46im / y_46re) * (x_46im / y_46re))
else
tmp = (x_46im / y_46im) + (y_46re * ((x_46re / y_46im) * (1.0d0 / 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_im <= -7.8e-21) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 1.15e+98) {
tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re));
} else {
tmp = (x_46_im / y_46_im) + (y_46_re * ((x_46_re / y_46_im) * (1.0 / y_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= -7.8e-21: tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im) elif y_46_im <= 1.15e+98: tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re)) else: tmp = (x_46_im / y_46_im) + (y_46_re * ((x_46_re / y_46_im) * (1.0 / 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_im <= -7.8e-21) tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re * Float64(x_46_re / y_46_im)) / y_46_im)); elseif (y_46_im <= 1.15e+98) tmp = Float64(Float64(x_46_re / y_46_re) + Float64(Float64(y_46_im / y_46_re) * Float64(x_46_im / y_46_re))); else tmp = Float64(Float64(x_46_im / y_46_im) + Float64(y_46_re * Float64(Float64(x_46_re / y_46_im) * Float64(1.0 / 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_im <= -7.8e-21) tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im); elseif (y_46_im <= 1.15e+98) tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re)); else tmp = (x_46_im / y_46_im) + (y_46_re * ((x_46_re / y_46_im) * (1.0 / 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$im, -7.8e-21], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.15e+98], N[(N[(x$46$re / y$46$re), $MachinePrecision] + N[(N[(y$46$im / y$46$re), $MachinePrecision] * N[(x$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(y$46$re * N[(N[(x$46$re / y$46$im), $MachinePrecision] * N[(1.0 / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -7.8 \cdot 10^{-21}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re \cdot \frac{x.re}{y.im}}{y.im}\\
\mathbf{elif}\;y.im \leq 1.15 \cdot 10^{+98}:\\
\;\;\;\;\frac{x.re}{y.re} + \frac{y.im}{y.re} \cdot \frac{x.im}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.im} + y.re \cdot \left(\frac{x.re}{y.im} \cdot \frac{1}{y.im}\right)\\
\end{array}
\end{array}
if y.im < -7.8000000000000001e-21Initial program 53.6%
Taylor expanded in y.re around 0 83.0%
+-commutative83.0%
*-commutative83.0%
unpow283.0%
times-frac89.6%
Simplified89.6%
associate-*l/89.7%
Applied egg-rr89.7%
if -7.8000000000000001e-21 < y.im < 1.15000000000000007e98Initial program 72.0%
*-un-lft-identity72.0%
add-sqr-sqrt72.0%
times-frac72.0%
hypot-def72.0%
fma-def72.0%
hypot-def82.7%
Applied egg-rr82.7%
Taylor expanded in y.re around inf 78.3%
unpow278.3%
times-frac79.7%
Simplified79.7%
if 1.15000000000000007e98 < y.im Initial program 36.6%
Taylor expanded in y.re around 0 72.6%
+-commutative72.6%
*-commutative72.6%
unpow272.6%
Simplified72.6%
times-frac80.1%
div-inv80.0%
associate-*l*81.9%
Applied egg-rr81.9%
Final simplification83.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -6.1e-18) (not (<= y.im 3e-46))) (+ (/ x.im y.im) (* (/ y.re y.im) (/ x.re y.im))) (/ x.re 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.1e-18) || !(y_46_im <= 3e-46)) {
tmp = (x_46_im / y_46_im) + ((y_46_re / y_46_im) * (x_46_re / y_46_im));
} else {
tmp = x_46_re / 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.1d-18)) .or. (.not. (y_46im <= 3d-46))) then
tmp = (x_46im / y_46im) + ((y_46re / y_46im) * (x_46re / y_46im))
else
tmp = x_46re / 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.1e-18) || !(y_46_im <= 3e-46)) {
tmp = (x_46_im / y_46_im) + ((y_46_re / y_46_im) * (x_46_re / y_46_im));
} else {
tmp = x_46_re / 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.1e-18) or not (y_46_im <= 3e-46): tmp = (x_46_im / y_46_im) + ((y_46_re / y_46_im) * (x_46_re / y_46_im)) else: tmp = x_46_re / 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.1e-18) || !(y_46_im <= 3e-46)) tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re / y_46_im) * Float64(x_46_re / y_46_im))); else tmp = Float64(x_46_re / y_46_re); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_im <= -6.1e-18) || ~((y_46_im <= 3e-46))) tmp = (x_46_im / y_46_im) + ((y_46_re / y_46_im) * (x_46_re / y_46_im)); else tmp = x_46_re / 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.1e-18], N[Not[LessEqual[y$46$im, 3e-46]], $MachinePrecision]], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re / y$46$im), $MachinePrecision] * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$46$re / y$46$re), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -6.1 \cdot 10^{-18} \lor \neg \left(y.im \leq 3 \cdot 10^{-46}\right):\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re}{y.im} \cdot \frac{x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.re}{y.re}\\
\end{array}
\end{array}
if y.im < -6.0999999999999999e-18 or 2.99999999999999987e-46 < y.im Initial program 49.6%
Taylor expanded in y.re around 0 72.5%
+-commutative72.5%
*-commutative72.5%
unpow272.5%
times-frac78.1%
Simplified78.1%
if -6.0999999999999999e-18 < y.im < 2.99999999999999987e-46Initial program 75.4%
Taylor expanded in y.re around inf 72.7%
Final simplification76.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -9.4e-14)
(+ (/ x.im y.im) (/ (* y.re (/ x.re y.im)) y.im))
(if (<= y.im 5.4e-42)
(/ x.re y.re)
(+ (/ x.im y.im) (* (/ 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 tmp;
if (y_46_im <= -9.4e-14) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 5.4e-42) {
tmp = x_46_re / y_46_re;
} else {
tmp = (x_46_im / y_46_im) + ((y_46_re / 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_46im <= (-9.4d-14)) then
tmp = (x_46im / y_46im) + ((y_46re * (x_46re / y_46im)) / y_46im)
else if (y_46im <= 5.4d-42) then
tmp = x_46re / y_46re
else
tmp = (x_46im / y_46im) + ((y_46re / 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_im <= -9.4e-14) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 5.4e-42) {
tmp = x_46_re / y_46_re;
} else {
tmp = (x_46_im / y_46_im) + ((y_46_re / 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_im <= -9.4e-14: tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im) elif y_46_im <= 5.4e-42: tmp = x_46_re / y_46_re else: tmp = (x_46_im / y_46_im) + ((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) tmp = 0.0 if (y_46_im <= -9.4e-14) tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re * Float64(x_46_re / y_46_im)) / y_46_im)); elseif (y_46_im <= 5.4e-42) tmp = Float64(x_46_re / y_46_re); else tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re / 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_im <= -9.4e-14) tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im); elseif (y_46_im <= 5.4e-42) tmp = x_46_re / y_46_re; else tmp = (x_46_im / y_46_im) + ((y_46_re / 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[LessEqual[y$46$im, -9.4e-14], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 5.4e-42], N[(x$46$re / y$46$re), $MachinePrecision], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re / y$46$im), $MachinePrecision] * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -9.4 \cdot 10^{-14}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re \cdot \frac{x.re}{y.im}}{y.im}\\
\mathbf{elif}\;y.im \leq 5.4 \cdot 10^{-42}:\\
\;\;\;\;\frac{x.re}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re}{y.im} \cdot \frac{x.re}{y.im}\\
\end{array}
\end{array}
if y.im < -9.4000000000000003e-14Initial program 53.6%
Taylor expanded in y.re around 0 83.0%
+-commutative83.0%
*-commutative83.0%
unpow283.0%
times-frac89.6%
Simplified89.6%
associate-*l/89.7%
Applied egg-rr89.7%
if -9.4000000000000003e-14 < y.im < 5.39999999999999998e-42Initial program 75.4%
Taylor expanded in y.re around inf 72.7%
if 5.39999999999999998e-42 < y.im Initial program 46.2%
Taylor expanded in y.re around 0 63.5%
+-commutative63.5%
*-commutative63.5%
unpow263.5%
times-frac68.1%
Simplified68.1%
Final simplification76.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -3.3e-12)
(+ (/ x.im y.im) (/ (* y.re (/ x.re y.im)) y.im))
(if (<= y.im 3.8e-45)
(/ x.re y.re)
(+ (/ x.im y.im) (/ (/ x.re y.im) (/ 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_im <= -3.3e-12) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 3.8e-45) {
tmp = x_46_re / y_46_re;
} else {
tmp = (x_46_im / y_46_im) + ((x_46_re / y_46_im) / (y_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 <= (-3.3d-12)) then
tmp = (x_46im / y_46im) + ((y_46re * (x_46re / y_46im)) / y_46im)
else if (y_46im <= 3.8d-45) then
tmp = x_46re / y_46re
else
tmp = (x_46im / y_46im) + ((x_46re / y_46im) / (y_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 <= -3.3e-12) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 3.8e-45) {
tmp = x_46_re / y_46_re;
} else {
tmp = (x_46_im / y_46_im) + ((x_46_re / y_46_im) / (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_im <= -3.3e-12: tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im) elif y_46_im <= 3.8e-45: tmp = x_46_re / y_46_re else: tmp = (x_46_im / y_46_im) + ((x_46_re / y_46_im) / (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_im <= -3.3e-12) tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re * Float64(x_46_re / y_46_im)) / y_46_im)); elseif (y_46_im <= 3.8e-45) tmp = Float64(x_46_re / y_46_re); else tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(x_46_re / y_46_im) / 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_im <= -3.3e-12) tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im); elseif (y_46_im <= 3.8e-45) tmp = x_46_re / y_46_re; else tmp = (x_46_im / y_46_im) + ((x_46_re / y_46_im) / (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$im, -3.3e-12], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 3.8e-45], N[(x$46$re / y$46$re), $MachinePrecision], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(x$46$re / y$46$im), $MachinePrecision] / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -3.3 \cdot 10^{-12}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re \cdot \frac{x.re}{y.im}}{y.im}\\
\mathbf{elif}\;y.im \leq 3.8 \cdot 10^{-45}:\\
\;\;\;\;\frac{x.re}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{\frac{x.re}{y.im}}{\frac{y.im}{y.re}}\\
\end{array}
\end{array}
if y.im < -3.3000000000000001e-12Initial program 53.6%
Taylor expanded in y.re around 0 83.0%
+-commutative83.0%
*-commutative83.0%
unpow283.0%
times-frac89.6%
Simplified89.6%
associate-*l/89.7%
Applied egg-rr89.7%
if -3.3000000000000001e-12 < y.im < 3.79999999999999997e-45Initial program 75.4%
Taylor expanded in y.re around inf 72.7%
if 3.79999999999999997e-45 < y.im Initial program 46.2%
Taylor expanded in y.re around 0 63.5%
+-commutative63.5%
*-commutative63.5%
unpow263.5%
times-frac68.1%
Simplified68.1%
*-commutative68.1%
clear-num68.0%
un-div-inv68.1%
Applied egg-rr68.1%
Final simplification76.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -1.3e-18)
(+ (/ x.im y.im) (/ (* y.re (/ x.re y.im)) y.im))
(if (<= y.im 2.4e-40)
(/ x.re y.re)
(+ (/ x.im y.im) (/ (/ y.re y.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_im <= -1.3e-18) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 2.4e-40) {
tmp = x_46_re / y_46_re;
} else {
tmp = (x_46_im / y_46_im) + ((y_46_re / y_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_46im <= (-1.3d-18)) then
tmp = (x_46im / y_46im) + ((y_46re * (x_46re / y_46im)) / y_46im)
else if (y_46im <= 2.4d-40) then
tmp = x_46re / y_46re
else
tmp = (x_46im / y_46im) + ((y_46re / y_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_im <= -1.3e-18) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 2.4e-40) {
tmp = x_46_re / y_46_re;
} else {
tmp = (x_46_im / y_46_im) + ((y_46_re / y_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_im <= -1.3e-18: tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im) elif y_46_im <= 2.4e-40: tmp = x_46_re / y_46_re else: tmp = (x_46_im / y_46_im) + ((y_46_re / y_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_im <= -1.3e-18) tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re * Float64(x_46_re / y_46_im)) / y_46_im)); elseif (y_46_im <= 2.4e-40) tmp = Float64(x_46_re / y_46_re); else tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re / y_46_im) / Float64(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_im <= -1.3e-18) tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im); elseif (y_46_im <= 2.4e-40) tmp = x_46_re / y_46_re; else tmp = (x_46_im / y_46_im) + ((y_46_re / y_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[LessEqual[y$46$im, -1.3e-18], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 2.4e-40], N[(x$46$re / y$46$re), $MachinePrecision], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re / y$46$im), $MachinePrecision] / N[(y$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -1.3 \cdot 10^{-18}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re \cdot \frac{x.re}{y.im}}{y.im}\\
\mathbf{elif}\;y.im \leq 2.4 \cdot 10^{-40}:\\
\;\;\;\;\frac{x.re}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{\frac{y.re}{y.im}}{\frac{y.im}{x.re}}\\
\end{array}
\end{array}
if y.im < -1.3e-18Initial program 53.6%
Taylor expanded in y.re around 0 83.0%
+-commutative83.0%
*-commutative83.0%
unpow283.0%
times-frac89.6%
Simplified89.6%
associate-*l/89.7%
Applied egg-rr89.7%
if -1.3e-18 < y.im < 2.39999999999999991e-40Initial program 75.4%
Taylor expanded in y.re around inf 72.7%
if 2.39999999999999991e-40 < y.im Initial program 46.2%
Taylor expanded in y.re around 0 63.5%
+-commutative63.5%
*-commutative63.5%
unpow263.5%
Simplified63.5%
Taylor expanded in y.re around 0 63.5%
unpow263.5%
times-frac68.1%
*-commutative68.1%
associate-*r/68.0%
associate-/l*69.2%
Simplified69.2%
Final simplification76.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.im -1.3e-16)
(+ (/ x.im y.im) (/ (* y.re (/ x.re y.im)) y.im))
(if (<= y.im 1.2e+98)
(+ (/ x.re y.re) (* (/ y.im y.re) (/ x.im y.re)))
(+ (/ x.im y.im) (/ (/ y.re y.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_im <= -1.3e-16) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 1.2e+98) {
tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re));
} else {
tmp = (x_46_im / y_46_im) + ((y_46_re / y_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_46im <= (-1.3d-16)) then
tmp = (x_46im / y_46im) + ((y_46re * (x_46re / y_46im)) / y_46im)
else if (y_46im <= 1.2d+98) then
tmp = (x_46re / y_46re) + ((y_46im / y_46re) * (x_46im / y_46re))
else
tmp = (x_46im / y_46im) + ((y_46re / y_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_im <= -1.3e-16) {
tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im);
} else if (y_46_im <= 1.2e+98) {
tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re));
} else {
tmp = (x_46_im / y_46_im) + ((y_46_re / y_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_im <= -1.3e-16: tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im) elif y_46_im <= 1.2e+98: tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re)) else: tmp = (x_46_im / y_46_im) + ((y_46_re / y_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_im <= -1.3e-16) tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re * Float64(x_46_re / y_46_im)) / y_46_im)); elseif (y_46_im <= 1.2e+98) tmp = Float64(Float64(x_46_re / y_46_re) + Float64(Float64(y_46_im / y_46_re) * Float64(x_46_im / y_46_re))); else tmp = Float64(Float64(x_46_im / y_46_im) + Float64(Float64(y_46_re / y_46_im) / Float64(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_im <= -1.3e-16) tmp = (x_46_im / y_46_im) + ((y_46_re * (x_46_re / y_46_im)) / y_46_im); elseif (y_46_im <= 1.2e+98) tmp = (x_46_re / y_46_re) + ((y_46_im / y_46_re) * (x_46_im / y_46_re)); else tmp = (x_46_im / y_46_im) + ((y_46_re / y_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[LessEqual[y$46$im, -1.3e-16], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re * N[(x$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.2e+98], N[(N[(x$46$re / y$46$re), $MachinePrecision] + N[(N[(y$46$im / y$46$re), $MachinePrecision] * N[(x$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$46$im / y$46$im), $MachinePrecision] + N[(N[(y$46$re / y$46$im), $MachinePrecision] / N[(y$46$im / x$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -1.3 \cdot 10^{-16}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{y.re \cdot \frac{x.re}{y.im}}{y.im}\\
\mathbf{elif}\;y.im \leq 1.2 \cdot 10^{+98}:\\
\;\;\;\;\frac{x.re}{y.re} + \frac{y.im}{y.re} \cdot \frac{x.im}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.im} + \frac{\frac{y.re}{y.im}}{\frac{y.im}{x.re}}\\
\end{array}
\end{array}
if y.im < -1.2999999999999999e-16Initial program 53.6%
Taylor expanded in y.re around 0 83.0%
+-commutative83.0%
*-commutative83.0%
unpow283.0%
times-frac89.6%
Simplified89.6%
associate-*l/89.7%
Applied egg-rr89.7%
if -1.2999999999999999e-16 < y.im < 1.1999999999999999e98Initial program 72.0%
*-un-lft-identity72.0%
add-sqr-sqrt72.0%
times-frac72.0%
hypot-def72.0%
fma-def72.0%
hypot-def82.7%
Applied egg-rr82.7%
Taylor expanded in y.re around inf 78.3%
unpow278.3%
times-frac79.7%
Simplified79.7%
if 1.1999999999999999e98 < y.im Initial program 36.6%
Taylor expanded in y.re around 0 72.6%
+-commutative72.6%
*-commutative72.6%
unpow272.6%
Simplified72.6%
Taylor expanded in y.re around 0 72.6%
unpow272.6%
times-frac80.1%
*-commutative80.1%
associate-*r/79.9%
associate-/l*81.8%
Simplified81.8%
Final simplification83.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= y.im -8.5e-10) (/ x.im y.im) (if (<= y.im 1.15e+98) (/ x.re y.re) (/ x.im 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_im <= -8.5e-10) {
tmp = x_46_im / y_46_im;
} else if (y_46_im <= 1.15e+98) {
tmp = x_46_re / y_46_re;
} else {
tmp = x_46_im / 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_46im <= (-8.5d-10)) then
tmp = x_46im / y_46im
else if (y_46im <= 1.15d+98) then
tmp = x_46re / y_46re
else
tmp = x_46im / 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_im <= -8.5e-10) {
tmp = x_46_im / y_46_im;
} else if (y_46_im <= 1.15e+98) {
tmp = x_46_re / y_46_re;
} else {
tmp = x_46_im / y_46_im;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if y_46_im <= -8.5e-10: tmp = x_46_im / y_46_im elif y_46_im <= 1.15e+98: tmp = x_46_re / y_46_re else: tmp = x_46_im / 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_im <= -8.5e-10) tmp = Float64(x_46_im / y_46_im); elseif (y_46_im <= 1.15e+98) tmp = Float64(x_46_re / y_46_re); else tmp = Float64(x_46_im / y_46_im); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (y_46_im <= -8.5e-10) tmp = x_46_im / y_46_im; elseif (y_46_im <= 1.15e+98) tmp = x_46_re / y_46_re; else tmp = x_46_im / 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$im, -8.5e-10], N[(x$46$im / y$46$im), $MachinePrecision], If[LessEqual[y$46$im, 1.15e+98], N[(x$46$re / y$46$re), $MachinePrecision], N[(x$46$im / y$46$im), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -8.5 \cdot 10^{-10}:\\
\;\;\;\;\frac{x.im}{y.im}\\
\mathbf{elif}\;y.im \leq 1.15 \cdot 10^{+98}:\\
\;\;\;\;\frac{x.re}{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.im}\\
\end{array}
\end{array}
if y.im < -8.4999999999999996e-10 or 1.15000000000000007e98 < y.im Initial program 46.5%
Taylor expanded in y.re around 0 72.0%
if -8.4999999999999996e-10 < y.im < 1.15000000000000007e98Initial program 72.0%
Taylor expanded in y.re around inf 65.5%
Final simplification68.6%
(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 59.6%
Taylor expanded in y.re around 0 46.6%
Final simplification46.6%
herbie shell --seed 2023193
(FPCore (x.re x.im y.re y.im)
:name "_divideComplex, real part"
:precision binary64
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im))))