
(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 10 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
(let* ((t_0
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))
(t_1 (cbrt (fma x.im y.re (* x.re (- y.im))))))
(if (<= t_0 (- INFINITY))
(/ (- x.im (* x.re (/ y.im y.re))) y.re)
(if (<= t_0 2e+186)
(* (/ (pow t_1 2.0) (hypot y.re y.im)) (/ t_1 (hypot y.re y.im)))
(/ (- x.im (/ x.re (/ y.re y.im))) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double t_1 = cbrt(fma(x_46_im, y_46_re, (x_46_re * -y_46_im)));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re;
} else if (t_0 <= 2e+186) {
tmp = (pow(t_1, 2.0) / hypot(y_46_re, y_46_im)) * (t_1 / hypot(y_46_re, y_46_im));
} else {
tmp = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(Float64(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))) t_1 = cbrt(fma(x_46_im, y_46_re, Float64(x_46_re * Float64(-y_46_im)))) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(x_46_im - Float64(x_46_re * Float64(y_46_im / y_46_re))) / y_46_re); elseif (t_0 <= 2e+186) tmp = Float64(Float64((t_1 ^ 2.0) / hypot(y_46_re, y_46_im)) * Float64(t_1 / hypot(y_46_re, y_46_im))); else tmp = Float64(Float64(x_46_im - Float64(x_46_re / Float64(y_46_re / y_46_im))) / y_46_re); 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$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]}, Block[{t$95$1 = N[Power[N[(x$46$im * y$46$re + N[(x$46$re * (-y$46$im)), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(x$46$im - N[(x$46$re * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision], If[LessEqual[t$95$0, 2e+186], N[(N[(N[Power[t$95$1, 2.0], $MachinePrecision] / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision] * N[(t$95$1 / N[Sqrt[y$46$re ^ 2 + y$46$im ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$46$im - N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\\
t_1 := \sqrt[3]{\mathsf{fma}\left(x.im, y.re, x.re \cdot \left(-y.im\right)\right)}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\frac{x.im - x.re \cdot \frac{y.im}{y.re}}{y.re}\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{+186}:\\
\;\;\;\;\frac{{t\_1}^{2}}{\mathsf{hypot}\left(y.re, y.im\right)} \cdot \frac{t\_1}{\mathsf{hypot}\left(y.re, y.im\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im - \frac{x.re}{\frac{y.re}{y.im}}}{y.re}\\
\end{array}
\end{array}
if (/.f64 (-.f64 (*.f64 x.im y.re) (*.f64 x.re y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) < -inf.0Initial program 43.7%
Taylor expanded in y.re around inf 71.9%
mul-1-neg71.9%
unsub-neg71.9%
unsub-neg71.9%
remove-double-neg71.9%
mul-1-neg71.9%
neg-mul-171.9%
mul-1-neg71.9%
distribute-lft-in71.9%
distribute-lft-in71.9%
mul-1-neg71.9%
unsub-neg71.9%
neg-mul-171.9%
mul-1-neg71.9%
remove-double-neg71.9%
associate-/l*77.7%
Simplified77.7%
if -inf.0 < (/.f64 (-.f64 (*.f64 x.im y.re) (*.f64 x.re y.im)) (+.f64 (*.f64 y.re y.re) (*.f64 y.im y.im))) < 1.99999999999999996e186Initial program 82.4%
add-cube-cbrt81.6%
add-sqr-sqrt81.6%
times-frac81.6%
pow281.6%
fma-neg81.6%
distribute-rgt-neg-in81.6%
hypot-define81.6%
fma-neg81.6%
distribute-rgt-neg-in81.6%
hypot-define97.9%
Applied egg-rr97.9%
if 1.99999999999999996e186 < (/.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 16.6%
Taylor expanded in y.re around inf 60.3%
mul-1-neg60.3%
unsub-neg60.3%
unsub-neg60.3%
remove-double-neg60.3%
mul-1-neg60.3%
neg-mul-160.3%
mul-1-neg60.3%
distribute-lft-in60.3%
distribute-lft-in60.3%
mul-1-neg60.3%
unsub-neg60.3%
neg-mul-160.3%
mul-1-neg60.3%
remove-double-neg60.3%
associate-/l*66.4%
Simplified66.4%
add-cube-cbrt65.2%
pow365.3%
Applied egg-rr65.3%
rem-cube-cbrt66.4%
div-sub66.3%
associate-*r/60.2%
div-sub60.3%
associate-*r/66.4%
clear-num66.4%
un-div-inv66.4%
Applied egg-rr66.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.im (/ x.re (/ y.re y.im))) y.re))
(t_1
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))))
(if (<= y.re -8.2e+70)
t_0
(if (<= y.re -2.2e+40)
(/ (- (* x.im (/ y.re y.im)) x.re) y.im)
(if (<= y.re -4.5e-33)
t_1
(if (<= y.re 1.7e-119)
(/ (- (/ y.re (/ y.im x.im)) x.re) y.im)
(if (<= y.re 1.4e-32) t_1 t_0)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
double t_1 = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (y_46_re <= -8.2e+70) {
tmp = t_0;
} else if (y_46_re <= -2.2e+40) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= -4.5e-33) {
tmp = t_1;
} else if (y_46_re <= 1.7e-119) {
tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= 1.4e-32) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x_46im - (x_46re / (y_46re / y_46im))) / y_46re
t_1 = ((x_46im * y_46re) - (x_46re * y_46im)) / ((y_46re * y_46re) + (y_46im * y_46im))
if (y_46re <= (-8.2d+70)) then
tmp = t_0
else if (y_46re <= (-2.2d+40)) then
tmp = ((x_46im * (y_46re / y_46im)) - x_46re) / y_46im
else if (y_46re <= (-4.5d-33)) then
tmp = t_1
else if (y_46re <= 1.7d-119) then
tmp = ((y_46re / (y_46im / x_46im)) - x_46re) / y_46im
else if (y_46re <= 1.4d-32) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
double t_1 = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
double tmp;
if (y_46_re <= -8.2e+70) {
tmp = t_0;
} else if (y_46_re <= -2.2e+40) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= -4.5e-33) {
tmp = t_1;
} else if (y_46_re <= 1.7e-119) {
tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= 1.4e-32) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re t_1 = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) tmp = 0 if y_46_re <= -8.2e+70: tmp = t_0 elif y_46_re <= -2.2e+40: tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im elif y_46_re <= -4.5e-33: tmp = t_1 elif y_46_re <= 1.7e-119: tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im elif y_46_re <= 1.4e-32: tmp = t_1 else: tmp = t_0 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im - Float64(x_46_re / Float64(y_46_re / y_46_im))) / y_46_re) t_1 = 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))) tmp = 0.0 if (y_46_re <= -8.2e+70) tmp = t_0; elseif (y_46_re <= -2.2e+40) tmp = Float64(Float64(Float64(x_46_im * Float64(y_46_re / y_46_im)) - x_46_re) / y_46_im); elseif (y_46_re <= -4.5e-33) tmp = t_1; elseif (y_46_re <= 1.7e-119) tmp = Float64(Float64(Float64(y_46_re / Float64(y_46_im / x_46_im)) - x_46_re) / y_46_im); elseif (y_46_re <= 1.4e-32) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re; t_1 = ((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); tmp = 0.0; if (y_46_re <= -8.2e+70) tmp = t_0; elseif (y_46_re <= -2.2e+40) tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im; elseif (y_46_re <= -4.5e-33) tmp = t_1; elseif (y_46_re <= 1.7e-119) tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im; elseif (y_46_re <= 1.4e-32) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$im - N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]}, Block[{t$95$1 = 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]}, If[LessEqual[y$46$re, -8.2e+70], t$95$0, If[LessEqual[y$46$re, -2.2e+40], N[(N[(N[(x$46$im * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, -4.5e-33], t$95$1, If[LessEqual[y$46$re, 1.7e-119], N[(N[(N[(y$46$re / N[(y$46$im / x$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, 1.4e-32], t$95$1, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.im - \frac{x.re}{\frac{y.re}{y.im}}}{y.re}\\
t_1 := \frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{if}\;y.re \leq -8.2 \cdot 10^{+70}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq -2.2 \cdot 10^{+40}:\\
\;\;\;\;\frac{x.im \cdot \frac{y.re}{y.im} - x.re}{y.im}\\
\mathbf{elif}\;y.re \leq -4.5 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 1.7 \cdot 10^{-119}:\\
\;\;\;\;\frac{\frac{y.re}{\frac{y.im}{x.im}} - x.re}{y.im}\\
\mathbf{elif}\;y.re \leq 1.4 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -8.2000000000000004e70 or 1.3999999999999999e-32 < y.re Initial program 46.1%
Taylor expanded in y.re around inf 81.2%
mul-1-neg81.2%
unsub-neg81.2%
unsub-neg81.2%
remove-double-neg81.2%
mul-1-neg81.2%
neg-mul-181.2%
mul-1-neg81.2%
distribute-lft-in81.2%
distribute-lft-in81.2%
mul-1-neg81.2%
unsub-neg81.2%
neg-mul-181.2%
mul-1-neg81.2%
remove-double-neg81.2%
associate-/l*85.2%
Simplified85.2%
add-cube-cbrt83.8%
pow383.8%
Applied egg-rr83.8%
rem-cube-cbrt85.2%
div-sub85.2%
associate-*r/81.2%
div-sub81.2%
associate-*r/85.2%
clear-num85.2%
un-div-inv85.3%
Applied egg-rr85.3%
if -8.2000000000000004e70 < y.re < -2.1999999999999999e40Initial program 57.2%
Taylor expanded in y.re around 0 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
unpow258.1%
associate-/r*58.5%
div-sub58.5%
associate-/l*86.2%
Simplified86.2%
if -2.1999999999999999e40 < y.re < -4.49999999999999991e-33 or 1.70000000000000012e-119 < y.re < 1.3999999999999999e-32Initial program 88.4%
if -4.49999999999999991e-33 < y.re < 1.70000000000000012e-119Initial program 73.3%
Taylor expanded in y.re around 0 81.0%
+-commutative81.0%
mul-1-neg81.0%
unsub-neg81.0%
unpow281.0%
associate-/r*85.5%
div-sub86.6%
associate-/l*85.2%
Simplified85.2%
associate-*r/86.6%
*-commutative86.6%
associate-*r/85.5%
clear-num85.5%
un-div-inv86.6%
Applied egg-rr86.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.im -3.2e-29)
(not
(or (<= y.im -5.5e-74)
(and (not (<= y.im -2.3e-74))
(or (<= y.im -1.45e-109)
(and (not (<= y.im -1.4e-109)) (<= y.im 3.05e-43)))))))
(/ (- (* x.im (/ y.re y.im)) x.re) y.im)
(/ (- x.im (* x.re (/ y.im y.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 <= -3.2e-29) || !((y_46_im <= -5.5e-74) || (!(y_46_im <= -2.3e-74) && ((y_46_im <= -1.45e-109) || (!(y_46_im <= -1.4e-109) && (y_46_im <= 3.05e-43)))))) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else {
tmp = (x_46_im - (x_46_re * (y_46_im / y_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 <= (-3.2d-29)) .or. (.not. (y_46im <= (-5.5d-74)) .or. (.not. (y_46im <= (-2.3d-74))) .and. (y_46im <= (-1.45d-109)) .or. (.not. (y_46im <= (-1.4d-109))) .and. (y_46im <= 3.05d-43))) then
tmp = ((x_46im * (y_46re / y_46im)) - x_46re) / y_46im
else
tmp = (x_46im - (x_46re * (y_46im / y_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 <= -3.2e-29) || !((y_46_im <= -5.5e-74) || (!(y_46_im <= -2.3e-74) && ((y_46_im <= -1.45e-109) || (!(y_46_im <= -1.4e-109) && (y_46_im <= 3.05e-43)))))) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else {
tmp = (x_46_im - (x_46_re * (y_46_im / y_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 <= -3.2e-29) or not ((y_46_im <= -5.5e-74) or (not (y_46_im <= -2.3e-74) and ((y_46_im <= -1.45e-109) or (not (y_46_im <= -1.4e-109) and (y_46_im <= 3.05e-43))))): tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im else: tmp = (x_46_im - (x_46_re * (y_46_im / y_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 <= -3.2e-29) || !((y_46_im <= -5.5e-74) || (!(y_46_im <= -2.3e-74) && ((y_46_im <= -1.45e-109) || (!(y_46_im <= -1.4e-109) && (y_46_im <= 3.05e-43)))))) tmp = Float64(Float64(Float64(x_46_im * Float64(y_46_re / y_46_im)) - x_46_re) / y_46_im); else tmp = Float64(Float64(x_46_im - Float64(x_46_re * Float64(y_46_im / y_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 <= -3.2e-29) || ~(((y_46_im <= -5.5e-74) || (~((y_46_im <= -2.3e-74)) && ((y_46_im <= -1.45e-109) || (~((y_46_im <= -1.4e-109)) && (y_46_im <= 3.05e-43))))))) tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im; else tmp = (x_46_im - (x_46_re * (y_46_im / y_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, -3.2e-29], N[Not[Or[LessEqual[y$46$im, -5.5e-74], And[N[Not[LessEqual[y$46$im, -2.3e-74]], $MachinePrecision], Or[LessEqual[y$46$im, -1.45e-109], And[N[Not[LessEqual[y$46$im, -1.4e-109]], $MachinePrecision], LessEqual[y$46$im, 3.05e-43]]]]]], $MachinePrecision]], N[(N[(N[(x$46$im * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], N[(N[(x$46$im - N[(x$46$re * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -3.2 \cdot 10^{-29} \lor \neg \left(y.im \leq -5.5 \cdot 10^{-74} \lor \neg \left(y.im \leq -2.3 \cdot 10^{-74}\right) \land \left(y.im \leq -1.45 \cdot 10^{-109} \lor \neg \left(y.im \leq -1.4 \cdot 10^{-109}\right) \land y.im \leq 3.05 \cdot 10^{-43}\right)\right):\\
\;\;\;\;\frac{x.im \cdot \frac{y.re}{y.im} - x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im - x.re \cdot \frac{y.im}{y.re}}{y.re}\\
\end{array}
\end{array}
if y.im < -3.2e-29 or -5.5000000000000001e-74 < y.im < -2.2999999999999998e-74 or -1.45e-109 < y.im < -1.39999999999999989e-109 or 3.05000000000000019e-43 < y.im Initial program 55.5%
Taylor expanded in y.re around 0 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
unpow270.8%
associate-/r*72.3%
div-sub72.3%
associate-/l*75.1%
Simplified75.1%
if -3.2e-29 < y.im < -5.5000000000000001e-74 or -2.2999999999999998e-74 < y.im < -1.45e-109 or -1.39999999999999989e-109 < y.im < 3.05000000000000019e-43Initial program 69.5%
Taylor expanded in y.re around inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
unsub-neg91.0%
remove-double-neg91.0%
mul-1-neg91.0%
neg-mul-191.0%
mul-1-neg91.0%
distribute-lft-in91.0%
distribute-lft-in91.0%
mul-1-neg91.0%
unsub-neg91.0%
neg-mul-191.0%
mul-1-neg91.0%
remove-double-neg91.0%
associate-/l*91.8%
Simplified91.8%
Final simplification83.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.im (* x.re (/ y.im y.re))) y.re))
(t_1 (/ (- (* x.im (/ y.re y.im)) x.re) y.im)))
(if (<= y.im -1.85e-28)
t_1
(if (<= y.im -5.5e-74)
t_0
(if (<= y.im -5.4e-74)
t_1
(if (<= y.im -1.45e-109)
t_0
(if (<= y.im -1.4e-109)
(/ (- (/ x.im (/ y.im y.re)) x.re) y.im)
(if (<= y.im 4e-43) t_0 t_1))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re;
double t_1 = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
double tmp;
if (y_46_im <= -1.85e-28) {
tmp = t_1;
} else if (y_46_im <= -5.5e-74) {
tmp = t_0;
} else if (y_46_im <= -5.4e-74) {
tmp = t_1;
} else if (y_46_im <= -1.45e-109) {
tmp = t_0;
} else if (y_46_im <= -1.4e-109) {
tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im;
} else if (y_46_im <= 4e-43) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x_46im - (x_46re * (y_46im / y_46re))) / y_46re
t_1 = ((x_46im * (y_46re / y_46im)) - x_46re) / y_46im
if (y_46im <= (-1.85d-28)) then
tmp = t_1
else if (y_46im <= (-5.5d-74)) then
tmp = t_0
else if (y_46im <= (-5.4d-74)) then
tmp = t_1
else if (y_46im <= (-1.45d-109)) then
tmp = t_0
else if (y_46im <= (-1.4d-109)) then
tmp = ((x_46im / (y_46im / y_46re)) - x_46re) / y_46im
else if (y_46im <= 4d-43) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re;
double t_1 = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
double tmp;
if (y_46_im <= -1.85e-28) {
tmp = t_1;
} else if (y_46_im <= -5.5e-74) {
tmp = t_0;
} else if (y_46_im <= -5.4e-74) {
tmp = t_1;
} else if (y_46_im <= -1.45e-109) {
tmp = t_0;
} else if (y_46_im <= -1.4e-109) {
tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im;
} else if (y_46_im <= 4e-43) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re t_1 = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im tmp = 0 if y_46_im <= -1.85e-28: tmp = t_1 elif y_46_im <= -5.5e-74: tmp = t_0 elif y_46_im <= -5.4e-74: tmp = t_1 elif y_46_im <= -1.45e-109: tmp = t_0 elif y_46_im <= -1.4e-109: tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im elif y_46_im <= 4e-43: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im - Float64(x_46_re * Float64(y_46_im / y_46_re))) / y_46_re) t_1 = Float64(Float64(Float64(x_46_im * Float64(y_46_re / y_46_im)) - x_46_re) / y_46_im) tmp = 0.0 if (y_46_im <= -1.85e-28) tmp = t_1; elseif (y_46_im <= -5.5e-74) tmp = t_0; elseif (y_46_im <= -5.4e-74) tmp = t_1; elseif (y_46_im <= -1.45e-109) tmp = t_0; elseif (y_46_im <= -1.4e-109) tmp = Float64(Float64(Float64(x_46_im / Float64(y_46_im / y_46_re)) - x_46_re) / y_46_im); elseif (y_46_im <= 4e-43) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re; t_1 = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im; tmp = 0.0; if (y_46_im <= -1.85e-28) tmp = t_1; elseif (y_46_im <= -5.5e-74) tmp = t_0; elseif (y_46_im <= -5.4e-74) tmp = t_1; elseif (y_46_im <= -1.45e-109) tmp = t_0; elseif (y_46_im <= -1.4e-109) tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im; elseif (y_46_im <= 4e-43) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$im - N[(x$46$re * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x$46$im * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision]}, If[LessEqual[y$46$im, -1.85e-28], t$95$1, If[LessEqual[y$46$im, -5.5e-74], t$95$0, If[LessEqual[y$46$im, -5.4e-74], t$95$1, If[LessEqual[y$46$im, -1.45e-109], t$95$0, If[LessEqual[y$46$im, -1.4e-109], N[(N[(N[(x$46$im / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], If[LessEqual[y$46$im, 4e-43], t$95$0, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.im - x.re \cdot \frac{y.im}{y.re}}{y.re}\\
t_1 := \frac{x.im \cdot \frac{y.re}{y.im} - x.re}{y.im}\\
\mathbf{if}\;y.im \leq -1.85 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq -5.5 \cdot 10^{-74}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq -5.4 \cdot 10^{-74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq -1.45 \cdot 10^{-109}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq -1.4 \cdot 10^{-109}:\\
\;\;\;\;\frac{\frac{x.im}{\frac{y.im}{y.re}} - x.re}{y.im}\\
\mathbf{elif}\;y.im \leq 4 \cdot 10^{-43}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -1.8500000000000001e-28 or -5.5000000000000001e-74 < y.im < -5.40000000000000036e-74 or 4.00000000000000031e-43 < y.im Initial program 55.2%
Taylor expanded in y.re around 0 70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
unpow270.6%
associate-/r*72.1%
div-sub72.1%
associate-/l*74.9%
Simplified74.9%
if -1.8500000000000001e-28 < y.im < -5.5000000000000001e-74 or -5.40000000000000036e-74 < y.im < -1.45e-109 or -1.39999999999999989e-109 < y.im < 4.00000000000000031e-43Initial program 69.5%
Taylor expanded in y.re around inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
unsub-neg91.0%
remove-double-neg91.0%
mul-1-neg91.0%
neg-mul-191.0%
mul-1-neg91.0%
distribute-lft-in91.0%
distribute-lft-in91.0%
mul-1-neg91.0%
unsub-neg91.0%
neg-mul-191.0%
mul-1-neg91.0%
remove-double-neg91.0%
associate-/l*91.8%
Simplified91.8%
if -1.45e-109 < y.im < -1.39999999999999989e-109Initial program 98.4%
Taylor expanded in y.re around 0 98.4%
+-commutative98.4%
mul-1-neg98.4%
unsub-neg98.4%
unpow298.4%
associate-/r*98.4%
div-sub98.4%
associate-/l*98.4%
Simplified98.4%
clear-num98.4%
un-div-inv100.0%
Applied egg-rr100.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.im (/ x.re (/ y.re y.im))) y.re)))
(if (<= y.re -8.2e+70)
t_0
(if (<= y.re -1.3e+40)
(/ (- (* x.im (/ y.re y.im)) x.re) y.im)
(if (<= y.re -1100000000.0)
(/ (* x.im y.re) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.re 5.9e+22)
(/ (- (/ (* x.im y.re) y.im) x.re) y.im)
t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
double tmp;
if (y_46_re <= -8.2e+70) {
tmp = t_0;
} else if (y_46_re <= -1.3e+40) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= -1100000000.0) {
tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 5.9e+22) {
tmp = (((x_46_im * y_46_re) / y_46_im) - x_46_re) / y_46_im;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (x_46im - (x_46re / (y_46re / y_46im))) / y_46re
if (y_46re <= (-8.2d+70)) then
tmp = t_0
else if (y_46re <= (-1.3d+40)) then
tmp = ((x_46im * (y_46re / y_46im)) - x_46re) / y_46im
else if (y_46re <= (-1100000000.0d0)) then
tmp = (x_46im * y_46re) / ((y_46re * y_46re) + (y_46im * y_46im))
else if (y_46re <= 5.9d+22) then
tmp = (((x_46im * y_46re) / y_46im) - x_46re) / y_46im
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_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
double tmp;
if (y_46_re <= -8.2e+70) {
tmp = t_0;
} else if (y_46_re <= -1.3e+40) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= -1100000000.0) {
tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 5.9e+22) {
tmp = (((x_46_im * y_46_re) / y_46_im) - x_46_re) / y_46_im;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re tmp = 0 if y_46_re <= -8.2e+70: tmp = t_0 elif y_46_re <= -1.3e+40: tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im elif y_46_re <= -1100000000.0: tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_re <= 5.9e+22: tmp = (((x_46_im * y_46_re) / y_46_im) - x_46_re) / y_46_im 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_im - Float64(x_46_re / Float64(y_46_re / y_46_im))) / y_46_re) tmp = 0.0 if (y_46_re <= -8.2e+70) tmp = t_0; elseif (y_46_re <= -1.3e+40) tmp = Float64(Float64(Float64(x_46_im * Float64(y_46_re / y_46_im)) - x_46_re) / y_46_im); elseif (y_46_re <= -1100000000.0) tmp = Float64(Float64(x_46_im * y_46_re) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))); elseif (y_46_re <= 5.9e+22) tmp = Float64(Float64(Float64(Float64(x_46_im * y_46_re) / y_46_im) - x_46_re) / y_46_im); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re; tmp = 0.0; if (y_46_re <= -8.2e+70) tmp = t_0; elseif (y_46_re <= -1.3e+40) tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im; elseif (y_46_re <= -1100000000.0) tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_re <= 5.9e+22) tmp = (((x_46_im * y_46_re) / y_46_im) - x_46_re) / y_46_im; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$im - N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]}, If[LessEqual[y$46$re, -8.2e+70], t$95$0, If[LessEqual[y$46$re, -1.3e+40], N[(N[(N[(x$46$im * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, -1100000000.0], N[(N[(x$46$im * y$46$re), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.9e+22], N[(N[(N[(N[(x$46$im * y$46$re), $MachinePrecision] / y$46$im), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.im - \frac{x.re}{\frac{y.re}{y.im}}}{y.re}\\
\mathbf{if}\;y.re \leq -8.2 \cdot 10^{+70}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq -1.3 \cdot 10^{+40}:\\
\;\;\;\;\frac{x.im \cdot \frac{y.re}{y.im} - x.re}{y.im}\\
\mathbf{elif}\;y.re \leq -1100000000:\\
\;\;\;\;\frac{x.im \cdot y.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.re \leq 5.9 \cdot 10^{+22}:\\
\;\;\;\;\frac{\frac{x.im \cdot y.re}{y.im} - x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -8.2000000000000004e70 or 5.9000000000000002e22 < y.re Initial program 44.2%
Taylor expanded in y.re around inf 84.1%
mul-1-neg84.1%
unsub-neg84.1%
unsub-neg84.1%
remove-double-neg84.1%
mul-1-neg84.1%
neg-mul-184.1%
mul-1-neg84.1%
distribute-lft-in84.1%
distribute-lft-in84.1%
mul-1-neg84.1%
unsub-neg84.1%
neg-mul-184.1%
mul-1-neg84.1%
remove-double-neg84.1%
associate-/l*88.3%
Simplified88.3%
add-cube-cbrt86.8%
pow386.8%
Applied egg-rr86.8%
rem-cube-cbrt88.3%
div-sub88.3%
associate-*r/84.1%
div-sub84.1%
associate-*r/88.3%
clear-num88.2%
un-div-inv88.3%
Applied egg-rr88.3%
if -8.2000000000000004e70 < y.re < -1.3e40Initial program 57.2%
Taylor expanded in y.re around 0 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
unpow258.1%
associate-/r*58.5%
div-sub58.5%
associate-/l*86.2%
Simplified86.2%
if -1.3e40 < y.re < -1.1e9Initial program 87.1%
Taylor expanded in x.im around inf 76.1%
*-commutative76.1%
Simplified76.1%
if -1.1e9 < y.re < 5.9000000000000002e22Initial program 77.2%
Taylor expanded in y.im around inf 79.7%
Final simplification83.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.im (/ x.re (/ y.re y.im))) y.re)))
(if (<= y.re -8.2e+70)
t_0
(if (<= y.re -6.5e+40)
(/ (- (* x.im (/ y.re y.im)) x.re) y.im)
(if (<= y.re -9000000000.0)
(/ (* x.im y.re) (+ (* y.re y.re) (* y.im y.im)))
(if (<= y.re 6.8e+26)
(/ (- (/ y.re (/ y.im x.im)) x.re) y.im)
t_0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
double tmp;
if (y_46_re <= -8.2e+70) {
tmp = t_0;
} else if (y_46_re <= -6.5e+40) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= -9000000000.0) {
tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 6.8e+26) {
tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (x_46im - (x_46re / (y_46re / y_46im))) / y_46re
if (y_46re <= (-8.2d+70)) then
tmp = t_0
else if (y_46re <= (-6.5d+40)) then
tmp = ((x_46im * (y_46re / y_46im)) - x_46re) / y_46im
else if (y_46re <= (-9000000000.0d0)) then
tmp = (x_46im * y_46re) / ((y_46re * y_46re) + (y_46im * y_46im))
else if (y_46re <= 6.8d+26) then
tmp = ((y_46re / (y_46im / x_46im)) - x_46re) / y_46im
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_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re;
double tmp;
if (y_46_re <= -8.2e+70) {
tmp = t_0;
} else if (y_46_re <= -6.5e+40) {
tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im;
} else if (y_46_re <= -9000000000.0) {
tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im));
} else if (y_46_re <= 6.8e+26) {
tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re tmp = 0 if y_46_re <= -8.2e+70: tmp = t_0 elif y_46_re <= -6.5e+40: tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im elif y_46_re <= -9000000000.0: tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)) elif y_46_re <= 6.8e+26: tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im 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_im - Float64(x_46_re / Float64(y_46_re / y_46_im))) / y_46_re) tmp = 0.0 if (y_46_re <= -8.2e+70) tmp = t_0; elseif (y_46_re <= -6.5e+40) tmp = Float64(Float64(Float64(x_46_im * Float64(y_46_re / y_46_im)) - x_46_re) / y_46_im); elseif (y_46_re <= -9000000000.0) tmp = Float64(Float64(x_46_im * y_46_re) / Float64(Float64(y_46_re * y_46_re) + Float64(y_46_im * y_46_im))); elseif (y_46_re <= 6.8e+26) tmp = Float64(Float64(Float64(y_46_re / Float64(y_46_im / x_46_im)) - x_46_re) / y_46_im); else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_im - (x_46_re / (y_46_re / y_46_im))) / y_46_re; tmp = 0.0; if (y_46_re <= -8.2e+70) tmp = t_0; elseif (y_46_re <= -6.5e+40) tmp = ((x_46_im * (y_46_re / y_46_im)) - x_46_re) / y_46_im; elseif (y_46_re <= -9000000000.0) tmp = (x_46_im * y_46_re) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)); elseif (y_46_re <= 6.8e+26) tmp = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$im - N[(x$46$re / N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]}, If[LessEqual[y$46$re, -8.2e+70], t$95$0, If[LessEqual[y$46$re, -6.5e+40], N[(N[(N[(x$46$im * N[(y$46$re / y$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], If[LessEqual[y$46$re, -9000000000.0], N[(N[(x$46$im * y$46$re), $MachinePrecision] / N[(N[(y$46$re * y$46$re), $MachinePrecision] + N[(y$46$im * y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6.8e+26], N[(N[(N[(y$46$re / N[(y$46$im / x$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.im - \frac{x.re}{\frac{y.re}{y.im}}}{y.re}\\
\mathbf{if}\;y.re \leq -8.2 \cdot 10^{+70}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.re \leq -6.5 \cdot 10^{+40}:\\
\;\;\;\;\frac{x.im \cdot \frac{y.re}{y.im} - x.re}{y.im}\\
\mathbf{elif}\;y.re \leq -9000000000:\\
\;\;\;\;\frac{x.im \cdot y.re}{y.re \cdot y.re + y.im \cdot y.im}\\
\mathbf{elif}\;y.re \leq 6.8 \cdot 10^{+26}:\\
\;\;\;\;\frac{\frac{y.re}{\frac{y.im}{x.im}} - x.re}{y.im}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -8.2000000000000004e70 or 6.8000000000000005e26 < y.re Initial program 43.7%
Taylor expanded in y.re around inf 84.8%
mul-1-neg84.8%
unsub-neg84.8%
unsub-neg84.8%
remove-double-neg84.8%
mul-1-neg84.8%
neg-mul-184.8%
mul-1-neg84.8%
distribute-lft-in84.8%
distribute-lft-in84.8%
mul-1-neg84.8%
unsub-neg84.8%
neg-mul-184.8%
mul-1-neg84.8%
remove-double-neg84.8%
associate-/l*89.0%
Simplified89.0%
add-cube-cbrt87.5%
pow387.6%
Applied egg-rr87.6%
rem-cube-cbrt89.0%
div-sub89.0%
associate-*r/84.8%
div-sub84.8%
associate-*r/89.0%
clear-num89.0%
un-div-inv89.1%
Applied egg-rr89.1%
if -8.2000000000000004e70 < y.re < -6.5000000000000001e40Initial program 57.2%
Taylor expanded in y.re around 0 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
unpow258.1%
associate-/r*58.5%
div-sub58.5%
associate-/l*86.2%
Simplified86.2%
if -6.5000000000000001e40 < y.re < -9e9Initial program 87.1%
Taylor expanded in x.im around inf 76.1%
*-commutative76.1%
Simplified76.1%
if -9e9 < y.re < 6.8000000000000005e26Initial program 77.4%
Taylor expanded in y.re around 0 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
unpow275.6%
associate-/r*78.9%
div-sub79.8%
associate-/l*78.9%
Simplified78.9%
associate-*r/79.8%
*-commutative79.8%
associate-*r/78.3%
clear-num78.4%
un-div-inv79.2%
Applied egg-rr79.2%
Final simplification83.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (/ (- x.im (* x.re (/ y.im y.re))) y.re))
(t_1 (/ (- (/ y.re (/ y.im x.im)) x.re) y.im)))
(if (<= y.im -1.3e-28)
t_1
(if (<= y.im -1.45e-109)
t_0
(if (<= y.im -1.4e-109)
(/ (- (/ x.im (/ y.im y.re)) x.re) y.im)
(if (<= y.im 1.15e-42) t_0 t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re;
double t_1 = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im;
double tmp;
if (y_46_im <= -1.3e-28) {
tmp = t_1;
} else if (y_46_im <= -1.45e-109) {
tmp = t_0;
} else if (y_46_im <= -1.4e-109) {
tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im;
} else if (y_46_im <= 1.15e-42) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x_46im - (x_46re * (y_46im / y_46re))) / y_46re
t_1 = ((y_46re / (y_46im / x_46im)) - x_46re) / y_46im
if (y_46im <= (-1.3d-28)) then
tmp = t_1
else if (y_46im <= (-1.45d-109)) then
tmp = t_0
else if (y_46im <= (-1.4d-109)) then
tmp = ((x_46im / (y_46im / y_46re)) - x_46re) / y_46im
else if (y_46im <= 1.15d-42) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re;
double t_1 = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im;
double tmp;
if (y_46_im <= -1.3e-28) {
tmp = t_1;
} else if (y_46_im <= -1.45e-109) {
tmp = t_0;
} else if (y_46_im <= -1.4e-109) {
tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im;
} else if (y_46_im <= 1.15e-42) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re t_1 = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im tmp = 0 if y_46_im <= -1.3e-28: tmp = t_1 elif y_46_im <= -1.45e-109: tmp = t_0 elif y_46_im <= -1.4e-109: tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im elif y_46_im <= 1.15e-42: tmp = t_0 else: tmp = t_1 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(Float64(x_46_im - Float64(x_46_re * Float64(y_46_im / y_46_re))) / y_46_re) t_1 = Float64(Float64(Float64(y_46_re / Float64(y_46_im / x_46_im)) - x_46_re) / y_46_im) tmp = 0.0 if (y_46_im <= -1.3e-28) tmp = t_1; elseif (y_46_im <= -1.45e-109) tmp = t_0; elseif (y_46_im <= -1.4e-109) tmp = Float64(Float64(Float64(x_46_im / Float64(y_46_im / y_46_re)) - x_46_re) / y_46_im); elseif (y_46_im <= 1.15e-42) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = (x_46_im - (x_46_re * (y_46_im / y_46_re))) / y_46_re; t_1 = ((y_46_re / (y_46_im / x_46_im)) - x_46_re) / y_46_im; tmp = 0.0; if (y_46_im <= -1.3e-28) tmp = t_1; elseif (y_46_im <= -1.45e-109) tmp = t_0; elseif (y_46_im <= -1.4e-109) tmp = ((x_46_im / (y_46_im / y_46_re)) - x_46_re) / y_46_im; elseif (y_46_im <= 1.15e-42) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[(x$46$im - N[(x$46$re * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(y$46$re / N[(y$46$im / x$46$im), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision]}, If[LessEqual[y$46$im, -1.3e-28], t$95$1, If[LessEqual[y$46$im, -1.45e-109], t$95$0, If[LessEqual[y$46$im, -1.4e-109], N[(N[(N[(x$46$im / N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision] - x$46$re), $MachinePrecision] / y$46$im), $MachinePrecision], If[LessEqual[y$46$im, 1.15e-42], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x.im - x.re \cdot \frac{y.im}{y.re}}{y.re}\\
t_1 := \frac{\frac{y.re}{\frac{y.im}{x.im}} - x.re}{y.im}\\
\mathbf{if}\;y.im \leq -1.3 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq -1.45 \cdot 10^{-109}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq -1.4 \cdot 10^{-109}:\\
\;\;\;\;\frac{\frac{x.im}{\frac{y.im}{y.re}} - x.re}{y.im}\\
\mathbf{elif}\;y.im \leq 1.15 \cdot 10^{-42}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -1.3e-28 or 1.15000000000000002e-42 < y.im Initial program 54.8%
Taylor expanded in y.re around 0 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
unpow270.4%
associate-/r*71.9%
div-sub71.9%
associate-/l*74.7%
Simplified74.7%
associate-*r/71.9%
*-commutative71.9%
associate-*r/75.7%
clear-num75.7%
un-div-inv75.7%
Applied egg-rr75.7%
if -1.3e-28 < y.im < -1.45e-109 or -1.39999999999999989e-109 < y.im < 1.15000000000000002e-42Initial program 69.8%
Taylor expanded in y.re around inf 90.3%
mul-1-neg90.3%
unsub-neg90.3%
unsub-neg90.3%
remove-double-neg90.3%
mul-1-neg90.3%
neg-mul-190.3%
mul-1-neg90.3%
distribute-lft-in90.3%
distribute-lft-in90.3%
mul-1-neg90.3%
unsub-neg90.3%
neg-mul-190.3%
mul-1-neg90.3%
remove-double-neg90.3%
associate-/l*91.1%
Simplified91.1%
if -1.45e-109 < y.im < -1.39999999999999989e-109Initial program 98.4%
Taylor expanded in y.re around 0 98.4%
+-commutative98.4%
mul-1-neg98.4%
unsub-neg98.4%
unpow298.4%
associate-/r*98.4%
div-sub98.4%
associate-/l*98.4%
Simplified98.4%
clear-num98.4%
un-div-inv100.0%
Applied egg-rr100.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -8.4e+82) (not (<= y.im 9.2e+45))) (/ x.re (- y.im)) (/ (- x.im (* x.re (/ y.im y.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 <= -8.4e+82) || !(y_46_im <= 9.2e+45)) {
tmp = x_46_re / -y_46_im;
} else {
tmp = (x_46_im - (x_46_re * (y_46_im / y_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 <= (-8.4d+82)) .or. (.not. (y_46im <= 9.2d+45))) then
tmp = x_46re / -y_46im
else
tmp = (x_46im - (x_46re * (y_46im / y_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 <= -8.4e+82) || !(y_46_im <= 9.2e+45)) {
tmp = x_46_re / -y_46_im;
} else {
tmp = (x_46_im - (x_46_re * (y_46_im / y_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 <= -8.4e+82) or not (y_46_im <= 9.2e+45): tmp = x_46_re / -y_46_im else: tmp = (x_46_im - (x_46_re * (y_46_im / y_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 <= -8.4e+82) || !(y_46_im <= 9.2e+45)) tmp = Float64(x_46_re / Float64(-y_46_im)); else tmp = Float64(Float64(x_46_im - Float64(x_46_re * Float64(y_46_im / y_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 <= -8.4e+82) || ~((y_46_im <= 9.2e+45))) tmp = x_46_re / -y_46_im; else tmp = (x_46_im - (x_46_re * (y_46_im / y_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, -8.4e+82], N[Not[LessEqual[y$46$im, 9.2e+45]], $MachinePrecision]], N[(x$46$re / (-y$46$im)), $MachinePrecision], N[(N[(x$46$im - N[(x$46$re * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y$46$re), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -8.4 \cdot 10^{+82} \lor \neg \left(y.im \leq 9.2 \cdot 10^{+45}\right):\\
\;\;\;\;\frac{x.re}{-y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im - x.re \cdot \frac{y.im}{y.re}}{y.re}\\
\end{array}
\end{array}
if y.im < -8.4000000000000001e82 or 9.20000000000000049e45 < y.im Initial program 48.4%
Taylor expanded in y.re around 0 72.7%
associate-*r/72.7%
neg-mul-172.7%
Simplified72.7%
if -8.4000000000000001e82 < y.im < 9.20000000000000049e45Initial program 71.0%
Taylor expanded in y.re around inf 78.4%
mul-1-neg78.4%
unsub-neg78.4%
unsub-neg78.4%
remove-double-neg78.4%
mul-1-neg78.4%
neg-mul-178.4%
mul-1-neg78.4%
distribute-lft-in78.4%
distribute-lft-in78.4%
mul-1-neg78.4%
unsub-neg78.4%
neg-mul-178.4%
mul-1-neg78.4%
remove-double-neg78.4%
associate-/l*80.3%
Simplified80.3%
Final simplification77.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.im -2.6e-14) (not (<= y.im 5.8e-70))) (/ 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 <= -2.6e-14) || !(y_46_im <= 5.8e-70)) {
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 <= (-2.6d-14)) .or. (.not. (y_46im <= 5.8d-70))) 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 <= -2.6e-14) || !(y_46_im <= 5.8e-70)) {
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 <= -2.6e-14) or not (y_46_im <= 5.8e-70): 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 <= -2.6e-14) || !(y_46_im <= 5.8e-70)) tmp = Float64(x_46_re / Float64(-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 <= -2.6e-14) || ~((y_46_im <= 5.8e-70))) 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, -2.6e-14], N[Not[LessEqual[y$46$im, 5.8e-70]], $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 -2.6 \cdot 10^{-14} \lor \neg \left(y.im \leq 5.8 \cdot 10^{-70}\right):\\
\;\;\;\;\frac{x.re}{-y.im}\\
\mathbf{else}:\\
\;\;\;\;\frac{x.im}{y.re}\\
\end{array}
\end{array}
if y.im < -2.59999999999999997e-14 or 5.79999999999999943e-70 < y.im Initial program 54.5%
Taylor expanded in y.re around 0 63.9%
associate-*r/63.9%
neg-mul-163.9%
Simplified63.9%
if -2.59999999999999997e-14 < y.im < 5.79999999999999943e-70Initial program 70.8%
Taylor expanded in y.re around inf 73.4%
Final simplification68.3%
(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 62.1%
Taylor expanded in y.re around inf 46.1%
herbie shell --seed 2024107
(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))))