
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (sqrt (+ (* x.re x.re) (* x.im x.im))))))
(*
(exp (- (* t_0 y.re) (* (atan2 x.im x.re) y.im)))
(sin (+ (* t_0 y.im) (* (atan2 x.im x.re) y.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re)));
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
t_0 = log(sqrt(((x_46re * x_46re) + (x_46im * x_46im))))
code = exp(((t_0 * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((t_0 * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
return Math.exp(((t_0 * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((t_0 * y_46_im) + (Math.atan2(x_46_im, x_46_re) * y_46_re)));
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) return math.exp(((t_0 * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((t_0 * y_46_im) + (math.atan2(x_46_im, x_46_re) * y_46_re)))
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) return Float64(exp(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(t_0 * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); tmp = exp(((t_0 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((t_0 * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, N[(N[Exp[N[(N[(t$95$0 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(t$95$0 * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
e^{t\_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(t\_0 \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\end{array}
\end{array}
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im)))
(t_1 (log (hypot x.im x.re)))
(t_2
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* (atan2 x.im x.re) y.im)))
(sin (* y.im t_1)))))
(if (<= y.re -1e+31)
t_2
(if (<= y.re 1.82)
(*
(exp (fma t_0 y.re (* (atan2 x.im x.re) (- y.im))))
(sin (* y.im (+ t_1 (* y.re (/ (atan2 x.im x.re) y.im))))))
(if (<= y.re 1.62e+215)
t_2
(*
(sin (pow (cbrt (fma y.re (atan2 x.im x.re) (* t_0 y.im))) 3.0))
(pow (hypot x.im x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_re, x_46_im));
double t_1 = log(hypot(x_46_im, x_46_re));
double t_2 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * t_1));
double tmp;
if (y_46_re <= -1e+31) {
tmp = t_2;
} else if (y_46_re <= 1.82) {
tmp = exp(fma(t_0, y_46_re, (atan2(x_46_im, x_46_re) * -y_46_im))) * sin((y_46_im * (t_1 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))));
} else if (y_46_re <= 1.62e+215) {
tmp = t_2;
} else {
tmp = sin(pow(cbrt(fma(y_46_re, atan2(x_46_im, x_46_re), (t_0 * y_46_im))), 3.0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_re, x_46_im)) t_1 = log(hypot(x_46_im, x_46_re)) t_2 = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(y_46_im * t_1))) tmp = 0.0 if (y_46_re <= -1e+31) tmp = t_2; elseif (y_46_re <= 1.82) tmp = Float64(exp(fma(t_0, y_46_re, Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))) * sin(Float64(y_46_im * Float64(t_1 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im)))))); elseif (y_46_re <= 1.62e+215) tmp = t_2; else tmp = Float64(sin((cbrt(fma(y_46_re, atan(x_46_im, x_46_re), Float64(t_0 * y_46_im))) ^ 3.0)) * (hypot(x_46_im, x_46_re) ^ 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[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1e+31], t$95$2, If[LessEqual[y$46$re, 1.82], N[(N[Exp[N[(t$95$0 * y$46$re + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[(t$95$1 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.62e+215], t$95$2, N[(N[Sin[N[Power[N[Power[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(t$95$0 * y$46$im), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_1 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_2 := e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(y.im \cdot t\_1\right)\\
\mathbf{if}\;y.re \leq -1 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq 1.82:\\
\;\;\;\;e^{\mathsf{fma}\left(t\_0, y.re, \tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)\right)} \cdot \sin \left(y.im \cdot \left(t\_1 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)\\
\mathbf{elif}\;y.re \leq 1.62 \cdot 10^{+215}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t\_0 \cdot y.im\right)}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -9.9999999999999996e30 or 1.82000000000000006 < y.re < 1.61999999999999996e215Initial program 35.6%
Taylor expanded in y.re around 0 40.7%
*-commutative40.7%
unpow240.7%
unpow240.7%
hypot-undefine82.6%
Simplified82.6%
if -9.9999999999999996e30 < y.re < 1.82000000000000006Initial program 48.9%
cancel-sign-sub-inv48.9%
fma-define48.9%
hypot-define48.9%
distribute-lft-neg-in48.9%
distribute-rgt-neg-out48.9%
fma-define48.9%
hypot-define85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in y.im around inf 48.9%
unpow248.9%
unpow248.9%
hypot-undefine85.8%
associate-/l*85.8%
Simplified85.8%
if 1.61999999999999996e215 < y.re Initial program 31.3%
cancel-sign-sub-inv31.3%
fma-define31.3%
hypot-define31.3%
distribute-lft-neg-in31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y.im around 0 50.1%
unpow250.1%
unpow250.1%
hypot-undefine50.1%
Simplified50.1%
add-cube-cbrt87.5%
pow387.5%
hypot-define31.3%
*-commutative31.3%
fma-define31.3%
+-commutative31.3%
*-commutative31.3%
fma-define31.3%
*-commutative31.3%
hypot-define87.5%
Applied egg-rr81.3%
Final simplification84.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im)))
(t_1 (exp (fma t_0 y.re (* (atan2 x.im x.re) (- y.im))))))
(if (<= y.re 1.65e+215)
(* t_1 (sin (fma t_0 y.im (* y.re (atan2 x.im x.re)))))
(*
t_1
(sin (pow (cbrt (fma y.re (atan2 x.im x.re) (* t_0 y.im))) 3.0))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_re, x_46_im));
double t_1 = exp(fma(t_0, y_46_re, (atan2(x_46_im, x_46_re) * -y_46_im)));
double tmp;
if (y_46_re <= 1.65e+215) {
tmp = t_1 * sin(fma(t_0, y_46_im, (y_46_re * atan2(x_46_im, x_46_re))));
} else {
tmp = t_1 * sin(pow(cbrt(fma(y_46_re, atan2(x_46_im, x_46_re), (t_0 * y_46_im))), 3.0));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_re, x_46_im)) t_1 = exp(fma(t_0, y_46_re, Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))) tmp = 0.0 if (y_46_re <= 1.65e+215) tmp = Float64(t_1 * sin(fma(t_0, y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re))))); else tmp = Float64(t_1 * sin((cbrt(fma(y_46_re, atan(x_46_im, x_46_re), Float64(t_0 * y_46_im))) ^ 3.0))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(t$95$0 * y$46$re + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, 1.65e+215], N[(t$95$1 * N[Sin[N[(t$95$0 * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Sin[N[Power[N[Power[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(t$95$0 * y$46$im), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_1 := e^{\mathsf{fma}\left(t\_0, y.re, \tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)\right)}\\
\mathbf{if}\;y.re \leq 1.65 \cdot 10^{+215}:\\
\;\;\;\;t\_1 \cdot \sin \left(\mathsf{fma}\left(t\_0, y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sin \left({\left(\sqrt[3]{\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t\_0 \cdot y.im\right)}\right)}^{3}\right)\\
\end{array}
\end{array}
if y.re < 1.6499999999999999e215Initial program 43.5%
cancel-sign-sub-inv43.5%
fma-define43.5%
hypot-define43.5%
distribute-lft-neg-in43.5%
distribute-rgt-neg-out43.5%
fma-define43.5%
hypot-define82.4%
*-commutative82.4%
Simplified82.4%
if 1.6499999999999999e215 < y.re Initial program 31.3%
cancel-sign-sub-inv31.3%
fma-define31.3%
hypot-define31.3%
distribute-lft-neg-in31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define56.3%
*-commutative56.3%
Simplified56.3%
add-cube-cbrt87.5%
pow387.5%
hypot-define31.3%
*-commutative31.3%
fma-define31.3%
+-commutative31.3%
*-commutative31.3%
fma-define31.3%
*-commutative31.3%
hypot-define87.5%
Applied egg-rr87.5%
Final simplification82.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im))))
(if (<= y.re 1.65e+215)
(*
(exp (fma t_0 y.re (* (atan2 x.im x.re) (- y.im))))
(sin (fma t_0 y.im (* y.re (atan2 x.im x.re)))))
(*
(sin (pow (cbrt (fma y.re (atan2 x.im x.re) (* t_0 y.im))) 3.0))
(pow (hypot x.im x.re) y.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_re, x_46_im));
double tmp;
if (y_46_re <= 1.65e+215) {
tmp = exp(fma(t_0, y_46_re, (atan2(x_46_im, x_46_re) * -y_46_im))) * sin(fma(t_0, y_46_im, (y_46_re * atan2(x_46_im, x_46_re))));
} else {
tmp = sin(pow(cbrt(fma(y_46_re, atan2(x_46_im, x_46_re), (t_0 * y_46_im))), 3.0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_re, x_46_im)) tmp = 0.0 if (y_46_re <= 1.65e+215) tmp = Float64(exp(fma(t_0, y_46_re, Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))) * sin(fma(t_0, y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re))))); else tmp = Float64(sin((cbrt(fma(y_46_re, atan(x_46_im, x_46_re), Float64(t_0 * y_46_im))) ^ 3.0)) * (hypot(x_46_im, x_46_re) ^ 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[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, 1.65e+215], N[(N[Exp[N[(t$95$0 * y$46$re + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$0 * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[Power[N[Power[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(t$95$0 * y$46$im), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{if}\;y.re \leq 1.65 \cdot 10^{+215}:\\
\;\;\;\;e^{\mathsf{fma}\left(t\_0, y.re, \tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)\right)} \cdot \sin \left(\mathsf{fma}\left(t\_0, y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t\_0 \cdot y.im\right)}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < 1.6499999999999999e215Initial program 43.5%
cancel-sign-sub-inv43.5%
fma-define43.5%
hypot-define43.5%
distribute-lft-neg-in43.5%
distribute-rgt-neg-out43.5%
fma-define43.5%
hypot-define82.4%
*-commutative82.4%
Simplified82.4%
if 1.6499999999999999e215 < y.re Initial program 31.3%
cancel-sign-sub-inv31.3%
fma-define31.3%
hypot-define31.3%
distribute-lft-neg-in31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y.im around 0 50.1%
unpow250.1%
unpow250.1%
hypot-undefine50.1%
Simplified50.1%
add-cube-cbrt87.5%
pow387.5%
hypot-define31.3%
*-commutative31.3%
fma-define31.3%
+-commutative31.3%
*-commutative31.3%
fma-define31.3%
*-commutative31.3%
hypot-define87.5%
Applied egg-rr81.3%
Final simplification82.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* (atan2 x.im x.re) y.im)))
(sin (* y.im t_0)))))
(if (<= y.re -1.62e+22)
t_1
(if (<= y.re 7.4)
(*
(sin (* y.im (+ t_0 (* y.re (/ (atan2 x.im x.re) y.im)))))
(/ (pow (hypot x.re x.im) y.re) (pow (exp y.im) (atan2 x.im x.re))))
(if (<= y.re 1.65e+215)
t_1
(*
(sin
(pow
(cbrt
(fma y.re (atan2 x.im x.re) (* (log (hypot x.re x.im)) y.im)))
3.0))
(pow (hypot x.im x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * t_0));
double tmp;
if (y_46_re <= -1.62e+22) {
tmp = t_1;
} else if (y_46_re <= 7.4) {
tmp = sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))) * (pow(hypot(x_46_re, x_46_im), y_46_re) / pow(exp(y_46_im), atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 1.65e+215) {
tmp = t_1;
} else {
tmp = sin(pow(cbrt(fma(y_46_re, atan2(x_46_im, x_46_re), (log(hypot(x_46_re, x_46_im)) * y_46_im))), 3.0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(y_46_im * t_0))) tmp = 0.0 if (y_46_re <= -1.62e+22) tmp = t_1; elseif (y_46_re <= 7.4) tmp = Float64(sin(Float64(y_46_im * Float64(t_0 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im))))) * Float64((hypot(x_46_re, x_46_im) ^ y_46_re) / (exp(y_46_im) ^ atan(x_46_im, x_46_re)))); elseif (y_46_re <= 1.65e+215) tmp = t_1; else tmp = Float64(sin((cbrt(fma(y_46_re, atan(x_46_im, x_46_re), Float64(log(hypot(x_46_re, x_46_im)) * y_46_im))) ^ 3.0)) * (hypot(x_46_im, x_46_re) ^ 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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.62e+22], t$95$1, If[LessEqual[y$46$re, 7.4], N[(N[Sin[N[(y$46$im * N[(t$95$0 + N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] / y$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] / N[Power[N[Exp[y$46$im], $MachinePrecision], N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.65e+215], t$95$1, N[(N[Sin[N[Power[N[Power[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{if}\;y.re \leq -1.62 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 7.4:\\
\;\;\;\;\sin \left(y.im \cdot \left(t\_0 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right) \cdot \frac{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}}{{\left(e^{y.im}\right)}^{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;y.re \leq 1.65 \cdot 10^{+215}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) \cdot y.im\right)}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.62e22 or 7.4000000000000004 < y.re < 1.6499999999999999e215Initial program 35.1%
Taylor expanded in y.re around 0 40.2%
*-commutative40.2%
unpow240.2%
unpow240.2%
hypot-undefine82.5%
Simplified82.5%
if -1.62e22 < y.re < 7.4000000000000004Initial program 49.2%
exp-diff49.2%
exp-to-pow49.3%
hypot-define49.3%
*-commutative49.3%
exp-prod48.9%
fma-define48.9%
hypot-define85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in y.im around inf 48.9%
unpow249.2%
unpow249.2%
hypot-undefine85.9%
associate-/l*85.8%
Simplified85.4%
if 1.6499999999999999e215 < y.re Initial program 31.3%
cancel-sign-sub-inv31.3%
fma-define31.3%
hypot-define31.3%
distribute-lft-neg-in31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y.im around 0 50.1%
unpow250.1%
unpow250.1%
hypot-undefine50.1%
Simplified50.1%
add-cube-cbrt87.5%
pow387.5%
hypot-define31.3%
*-commutative31.3%
fma-define31.3%
+-commutative31.3%
*-commutative31.3%
fma-define31.3%
*-commutative31.3%
hypot-define87.5%
Applied egg-rr81.3%
Final simplification84.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* (atan2 x.im x.re) y.im)))
(sin (* y.im t_0)))))
(if (<= y.re -1150000.0)
t_1
(if (<= y.re 0.0038)
(*
(exp (* (atan2 x.im x.re) (- y.im)))
(sin (+ (* y.re (atan2 x.im x.re)) (* y.im (fabs t_0)))))
(if (<= y.re 1.65e+215)
t_1
(*
(sin
(pow
(cbrt
(fma y.re (atan2 x.im x.re) (* (log (hypot x.re x.im)) y.im)))
3.0))
(pow (hypot x.im x.re) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double t_1 = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * t_0));
double tmp;
if (y_46_re <= -1150000.0) {
tmp = t_1;
} else if (y_46_re <= 0.0038) {
tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) + (y_46_im * fabs(t_0))));
} else if (y_46_re <= 1.65e+215) {
tmp = t_1;
} else {
tmp = sin(pow(cbrt(fma(y_46_re, atan2(x_46_im, x_46_re), (log(hypot(x_46_re, x_46_im)) * y_46_im))), 3.0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(y_46_im * t_0))) tmp = 0.0 if (y_46_re <= -1150000.0) tmp = t_1; elseif (y_46_re <= 0.0038) tmp = Float64(exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))) * sin(Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) + Float64(y_46_im * abs(t_0))))); elseif (y_46_re <= 1.65e+215) tmp = t_1; else tmp = Float64(sin((cbrt(fma(y_46_re, atan(x_46_im, x_46_re), Float64(log(hypot(x_46_re, x_46_im)) * y_46_im))) ^ 3.0)) * (hypot(x_46_im, x_46_re) ^ 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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1150000.0], t$95$1, If[LessEqual[y$46$re, 0.0038], N[(N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] + N[(y$46$im * N[Abs[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.65e+215], t$95$1, N[(N[Sin[N[Power[N[Power[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{if}\;y.re \leq -1150000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 0.0038:\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \left|t\_0\right|\right)\\
\mathbf{elif}\;y.re \leq 1.65 \cdot 10^{+215}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) \cdot y.im\right)}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.15e6 or 0.00379999999999999999 < y.re < 1.6499999999999999e215Initial program 34.9%
Taylor expanded in y.re around 0 39.7%
*-commutative39.7%
unpow239.7%
unpow239.7%
hypot-undefine82.5%
Simplified82.5%
if -1.15e6 < y.re < 0.00379999999999999999Initial program 50.0%
hypot-define58.8%
add-sqr-sqrt43.3%
sqrt-unprod54.6%
pow254.6%
Applied egg-rr54.6%
hypot-undefine45.0%
unpow245.0%
unpow245.0%
+-commutative45.0%
unpow245.0%
rem-sqrt-square45.0%
unpow245.0%
unpow245.0%
hypot-undefine54.6%
Simplified54.6%
Taylor expanded in y.re around 0 78.4%
associate-*r*78.4%
neg-mul-178.4%
Simplified78.4%
if 1.6499999999999999e215 < y.re Initial program 31.3%
cancel-sign-sub-inv31.3%
fma-define31.3%
hypot-define31.3%
distribute-lft-neg-in31.3%
distribute-rgt-neg-out31.3%
fma-define31.3%
hypot-define56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y.im around 0 50.1%
unpow250.1%
unpow250.1%
hypot-undefine50.1%
Simplified50.1%
add-cube-cbrt87.5%
pow387.5%
hypot-define31.3%
*-commutative31.3%
fma-define31.3%
+-commutative31.3%
*-commutative31.3%
fma-define31.3%
*-commutative31.3%
hypot-define87.5%
Applied egg-rr81.3%
Final simplification80.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re))))
(if (or (<= y.re -1150000.0) (not (<= y.re 0.0038)))
(*
(exp
(-
(* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(* (atan2 x.im x.re) y.im)))
(sin (* y.im t_0)))
(*
(exp (* (atan2 x.im x.re) (- y.im)))
(sin (+ (* y.re (atan2 x.im x.re)) (* y.im (fabs t_0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double tmp;
if ((y_46_re <= -1150000.0) || !(y_46_re <= 0.0038)) {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * t_0));
} else {
tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) + (y_46_im * fabs(t_0))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if ((y_46_re <= -1150000.0) || !(y_46_re <= 0.0038)) {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin((y_46_im * t_0));
} else {
tmp = Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)) * Math.sin(((y_46_re * Math.atan2(x_46_im, x_46_re)) + (y_46_im * Math.abs(t_0))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if (y_46_re <= -1150000.0) or not (y_46_re <= 0.0038): tmp = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin((y_46_im * t_0)) else: tmp = math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im)) * math.sin(((y_46_re * math.atan2(x_46_im, x_46_re)) + (y_46_im * math.fabs(t_0)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_re <= -1150000.0) || !(y_46_re <= 0.0038)) tmp = Float64(exp(Float64(Float64(y_46_re * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(y_46_im * t_0))); else tmp = Float64(exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))) * sin(Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) + Float64(y_46_im * abs(t_0))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if ((y_46_re <= -1150000.0) || ~((y_46_re <= 0.0038))) tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_im * t_0)); else tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin(((y_46_re * atan2(x_46_im, x_46_re)) + (y_46_im * abs(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[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[Or[LessEqual[y$46$re, -1150000.0], N[Not[LessEqual[y$46$re, 0.0038]], $MachinePrecision]], N[(N[Exp[N[(N[(y$46$re * N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] + N[(y$46$im * N[Abs[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -1150000 \lor \neg \left(y.re \leq 0.0038\right):\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \left|t\_0\right|\right)\\
\end{array}
\end{array}
if y.re < -1.15e6 or 0.00379999999999999999 < y.re Initial program 34.4%
Taylor expanded in y.re around 0 38.6%
*-commutative38.6%
unpow238.6%
unpow238.6%
hypot-undefine79.0%
Simplified79.0%
if -1.15e6 < y.re < 0.00379999999999999999Initial program 50.0%
hypot-define58.8%
add-sqr-sqrt43.3%
sqrt-unprod54.6%
pow254.6%
Applied egg-rr54.6%
hypot-undefine45.0%
unpow245.0%
unpow245.0%
+-commutative45.0%
unpow245.0%
rem-sqrt-square45.0%
unpow245.0%
unpow245.0%
hypot-undefine54.6%
Simplified54.6%
Taylor expanded in y.re around 0 78.4%
associate-*r*78.4%
neg-mul-178.4%
Simplified78.4%
Final simplification78.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.im -8.5e+16) (not (<= y.im 10500000000.0)))
(*
(exp (* (atan2 x.im x.re) (- y.im)))
(sin (* y.im (log (hypot x.im x.re)))))
(*
(sin (fma (log (hypot x.re x.im)) y.im (* y.re (atan2 x.im x.re))))
(pow (hypot x.im x.re) y.re))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_im <= -8.5e+16) || !(y_46_im <= 10500000000.0)) {
tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, (y_46_re * atan2(x_46_im, x_46_re)))) * pow(hypot(x_46_im, 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 <= -8.5e+16) || !(y_46_im <= 10500000000.0)) tmp = Float64(exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, Float64(y_46_re * atan(x_46_im, x_46_re)))) * (hypot(x_46_im, x_46_re) ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$im, -8.5e+16], N[Not[LessEqual[y$46$im, 10500000000.0]], $MachinePrecision]], N[(N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.im \leq -8.5 \cdot 10^{+16} \lor \neg \left(y.im \leq 10500000000\right):\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.im < -8.5e16 or 1.05e10 < y.im Initial program 34.6%
cancel-sign-sub-inv34.6%
fma-define34.6%
hypot-define34.6%
distribute-lft-neg-in34.6%
distribute-rgt-neg-out34.6%
fma-define34.6%
hypot-define72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in y.re around 0 33.9%
neg-mul-133.9%
distribute-lft-neg-in33.9%
*-commutative33.9%
unpow233.9%
unpow233.9%
hypot-undefine67.8%
Simplified67.8%
if -8.5e16 < y.im < 1.05e10Initial program 50.6%
cancel-sign-sub-inv50.6%
fma-define50.6%
hypot-define50.6%
distribute-lft-neg-in50.6%
distribute-rgt-neg-out50.6%
fma-define50.6%
hypot-define88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in y.im around 0 69.7%
unpow269.7%
unpow269.7%
hypot-undefine87.5%
Simplified87.5%
Final simplification77.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re))))
(if (or (<= y.im -2.3e+16) (not (<= y.im 10500000000.0)))
(* (exp (* (atan2 x.im x.re) (- y.im))) (sin (* y.im t_0)))
(*
(pow (hypot x.im x.re) y.re)
(sin (* y.re (+ (atan2 x.im x.re) (* y.im (/ t_0 y.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = log(hypot(x_46_im, x_46_re));
double tmp;
if ((y_46_im <= -2.3e+16) || !(y_46_im <= 10500000000.0)) {
tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin((y_46_im * t_0));
} else {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re)))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if ((y_46_im <= -2.3e+16) || !(y_46_im <= 10500000000.0)) {
tmp = Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)) * Math.sin((y_46_im * t_0));
} else {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * (Math.atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re)))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if (y_46_im <= -2.3e+16) or not (y_46_im <= 10500000000.0): tmp = math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im)) * math.sin((y_46_im * t_0)) else: tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin((y_46_re * (math.atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re))))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_im <= -2.3e+16) || !(y_46_im <= 10500000000.0)) tmp = Float64(exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))) * sin(Float64(y_46_im * t_0))); else tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(t_0 / y_46_re)))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if ((y_46_im <= -2.3e+16) || ~((y_46_im <= 10500000000.0))) tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin((y_46_im * t_0)); else tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re))))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[Or[LessEqual[y$46$im, -2.3e+16], N[Not[LessEqual[y$46$im, 10500000000.0]], $MachinePrecision]], N[(N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(t$95$0 / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.im \leq -2.3 \cdot 10^{+16} \lor \neg \left(y.im \leq 10500000000\right):\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)} \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{t\_0}{y.re}\right)\right)\\
\end{array}
\end{array}
if y.im < -2.3e16 or 1.05e10 < y.im Initial program 34.6%
cancel-sign-sub-inv34.6%
fma-define34.6%
hypot-define34.6%
distribute-lft-neg-in34.6%
distribute-rgt-neg-out34.6%
fma-define34.6%
hypot-define72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in y.re around 0 33.9%
neg-mul-133.9%
distribute-lft-neg-in33.9%
*-commutative33.9%
unpow233.9%
unpow233.9%
hypot-undefine67.8%
Simplified67.8%
if -2.3e16 < y.im < 1.05e10Initial program 50.6%
cancel-sign-sub-inv50.6%
fma-define50.6%
hypot-define50.6%
distribute-lft-neg-in50.6%
distribute-rgt-neg-out50.6%
fma-define50.6%
hypot-define88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in y.im around 0 69.7%
unpow269.7%
unpow269.7%
hypot-undefine87.5%
Simplified87.5%
Taylor expanded in y.re around inf 49.8%
+-commutative49.8%
associate-/l*49.8%
unpow249.8%
unpow249.8%
hypot-undefine87.4%
Simplified87.4%
Final simplification77.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re)) (t_1 (* y.re (atan2 x.im x.re))))
(if (<= y.re -1150000.0)
(* t_0 (sin (fabs t_1)))
(if (<= y.re 5.5e-53)
(*
(exp (* (atan2 x.im x.re) (- y.im)))
(sin (* y.im (log (hypot x.im x.re)))))
(* t_0 (sin (pow (cbrt t_1) 3.0)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow(hypot(x_46_im, x_46_re), y_46_re);
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -1150000.0) {
tmp = t_0 * sin(fabs(t_1));
} else if (y_46_re <= 5.5e-53) {
tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_0 * sin(pow(cbrt(t_1), 3.0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_re <= -1150000.0) {
tmp = t_0 * Math.sin(Math.abs(t_1));
} else if (y_46_re <= 5.5e-53) {
tmp = Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_0 * Math.sin(Math.pow(Math.cbrt(t_1), 3.0));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = hypot(x_46_im, x_46_re) ^ y_46_re t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -1150000.0) tmp = Float64(t_0 * sin(abs(t_1))); elseif (y_46_re <= 5.5e-53) tmp = Float64(exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(t_0 * sin((cbrt(t_1) ^ 3.0))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1150000.0], N[(t$95$0 * N[Sin[N[Abs[t$95$1], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.5e-53], N[(N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Sin[N[Power[N[Power[t$95$1, 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -1150000:\\
\;\;\;\;t\_0 \cdot \sin \left(\left|t\_1\right|\right)\\
\mathbf{elif}\;y.re \leq 5.5 \cdot 10^{-53}:\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left({\left(\sqrt[3]{t\_1}\right)}^{3}\right)\\
\end{array}
\end{array}
if y.re < -1.15e6Initial program 34.4%
cancel-sign-sub-inv34.4%
fma-define34.4%
hypot-define34.4%
distribute-lft-neg-in34.4%
distribute-rgt-neg-out34.4%
fma-define34.4%
hypot-define82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y.im around 0 75.6%
unpow275.6%
unpow275.6%
hypot-undefine75.6%
Simplified75.6%
add-sqr-sqrt47.6%
pow247.6%
Applied egg-rr47.6%
unpow247.6%
add-sqr-sqrt75.6%
add-sqr-sqrt32.9%
sqrt-unprod44.4%
pow244.4%
Applied egg-rr44.4%
unpow244.4%
rem-sqrt-square82.1%
Simplified82.1%
if -1.15e6 < y.re < 5.50000000000000023e-53Initial program 50.0%
cancel-sign-sub-inv50.0%
fma-define50.0%
hypot-define50.0%
distribute-lft-neg-in50.0%
distribute-rgt-neg-out50.0%
fma-define50.0%
hypot-define86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in y.re around 0 45.8%
neg-mul-145.8%
distribute-lft-neg-in45.8%
*-commutative45.8%
unpow245.8%
unpow245.8%
hypot-undefine77.0%
Simplified77.0%
if 5.50000000000000023e-53 < y.re Initial program 36.6%
cancel-sign-sub-inv36.6%
fma-define36.6%
hypot-define36.6%
distribute-lft-neg-in36.6%
distribute-rgt-neg-out36.6%
fma-define36.6%
hypot-define69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y.im around 0 50.5%
unpow250.5%
unpow250.5%
hypot-undefine53.4%
Simplified53.4%
*-commutative53.4%
add-cube-cbrt62.2%
pow359.2%
*-commutative59.2%
Applied egg-rr59.2%
Final simplification73.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -1700000.0)
(* t_0 (sin (fabs (* y.re (atan2 x.im x.re)))))
(if (<= y.re 6.5e-53)
(*
(exp (* (atan2 x.im x.re) (- y.im)))
(sin (* y.im (log (hypot x.im x.re)))))
(* t_0 (sin (* y.re (fabs (atan2 x.im x.re)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1700000.0) {
tmp = t_0 * sin(fabs((y_46_re * atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 6.5e-53) {
tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_0 * sin((y_46_re * fabs(atan2(x_46_im, x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1700000.0) {
tmp = t_0 * Math.sin(Math.abs((y_46_re * Math.atan2(x_46_im, x_46_re))));
} else if (y_46_re <= 6.5e-53) {
tmp = Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)) * Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_0 * Math.sin((y_46_re * Math.abs(Math.atan2(x_46_im, x_46_re))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -1700000.0: tmp = t_0 * math.sin(math.fabs((y_46_re * math.atan2(x_46_im, x_46_re)))) elif y_46_re <= 6.5e-53: tmp = math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im)) * math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_0 * math.sin((y_46_re * math.fabs(math.atan2(x_46_im, x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -1700000.0) tmp = Float64(t_0 * sin(abs(Float64(y_46_re * atan(x_46_im, x_46_re))))); elseif (y_46_re <= 6.5e-53) tmp = Float64(exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(t_0 * sin(Float64(y_46_re * abs(atan(x_46_im, x_46_re))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -1700000.0) tmp = t_0 * sin(abs((y_46_re * atan2(x_46_im, x_46_re)))); elseif (y_46_re <= 6.5e-53) tmp = exp((atan2(x_46_im, x_46_re) * -y_46_im)) * sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_0 * sin((y_46_re * abs(atan2(x_46_im, x_46_re)))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -1700000.0], N[(t$95$0 * N[Sin[N[Abs[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 6.5e-53], N[(N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Sin[N[(y$46$re * N[Abs[N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1700000:\\
\;\;\;\;t\_0 \cdot \sin \left(\left|y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right|\right)\\
\mathbf{elif}\;y.re \leq 6.5 \cdot 10^{-53}:\\
\;\;\;\;e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \left|\tan^{-1}_* \frac{x.im}{x.re}\right|\right)\\
\end{array}
\end{array}
if y.re < -1.7e6Initial program 34.4%
cancel-sign-sub-inv34.4%
fma-define34.4%
hypot-define34.4%
distribute-lft-neg-in34.4%
distribute-rgt-neg-out34.4%
fma-define34.4%
hypot-define82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y.im around 0 75.6%
unpow275.6%
unpow275.6%
hypot-undefine75.6%
Simplified75.6%
add-sqr-sqrt47.6%
pow247.6%
Applied egg-rr47.6%
unpow247.6%
add-sqr-sqrt75.6%
add-sqr-sqrt32.9%
sqrt-unprod44.4%
pow244.4%
Applied egg-rr44.4%
unpow244.4%
rem-sqrt-square82.1%
Simplified82.1%
if -1.7e6 < y.re < 6.4999999999999997e-53Initial program 50.0%
cancel-sign-sub-inv50.0%
fma-define50.0%
hypot-define50.0%
distribute-lft-neg-in50.0%
distribute-rgt-neg-out50.0%
fma-define50.0%
hypot-define86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in y.re around 0 45.8%
neg-mul-145.8%
distribute-lft-neg-in45.8%
*-commutative45.8%
unpow245.8%
unpow245.8%
hypot-undefine77.0%
Simplified77.0%
if 6.4999999999999997e-53 < y.re Initial program 36.6%
cancel-sign-sub-inv36.6%
fma-define36.6%
hypot-define36.6%
distribute-lft-neg-in36.6%
distribute-rgt-neg-out36.6%
fma-define36.6%
hypot-define69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y.im around 0 50.5%
unpow250.5%
unpow250.5%
hypot-undefine53.4%
Simplified53.4%
add-sqr-sqrt32.6%
pow232.6%
Applied egg-rr32.6%
unpow232.6%
sqrt-unprod49.1%
pow249.1%
Applied egg-rr49.1%
unpow249.1%
rem-sqrt-square53.5%
Simplified53.5%
Final simplification72.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (or (<= y.re -0.00112) (not (<= y.re 0.024)))
(* (pow (hypot x.im x.re) y.re) (sin (fabs t_0)))
(sin (fma (log (hypot x.re x.im)) 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 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -0.00112) || !(y_46_re <= 0.024)) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin(fabs(t_0));
} else {
tmp = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_re <= -0.00112) || !(y_46_re <= 0.024)) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(abs(t_0))); else tmp = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y$46$re, -0.00112], N[Not[LessEqual[y$46$re, 0.024]], $MachinePrecision]], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[Abs[t$95$0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + t$95$0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -0.00112 \lor \neg \left(y.re \leq 0.024\right):\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(\left|t\_0\right|\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_0\right)\right)\\
\end{array}
\end{array}
if y.re < -0.0011199999999999999 or 0.024 < y.re Initial program 34.9%
cancel-sign-sub-inv34.9%
fma-define34.9%
hypot-define34.9%
distribute-lft-neg-in34.9%
distribute-rgt-neg-out34.9%
fma-define34.9%
hypot-define74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in y.im around 0 66.0%
unpow266.0%
unpow266.0%
hypot-undefine66.0%
Simplified66.0%
add-sqr-sqrt40.1%
pow240.1%
Applied egg-rr40.1%
unpow240.1%
add-sqr-sqrt66.0%
add-sqr-sqrt32.6%
sqrt-unprod41.0%
pow241.0%
Applied egg-rr41.0%
unpow241.0%
rem-sqrt-square70.2%
Simplified70.2%
if -0.0011199999999999999 < y.re < 0.024Initial program 49.6%
cancel-sign-sub-inv49.6%
fma-define49.6%
hypot-define49.6%
distribute-lft-neg-in49.6%
distribute-rgt-neg-out49.6%
fma-define49.6%
hypot-define85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y.im around 0 38.6%
unpow238.6%
unpow238.6%
hypot-undefine48.2%
Simplified48.2%
Taylor expanded in y.re around 0 46.6%
Final simplification57.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.re -0.0022) (not (<= y.re 0.0044)))
(* (pow (hypot x.im x.re) y.re) (sin (fabs (* y.re (atan2 x.im x.re)))))
(sin
(* y.re (+ (atan2 x.im x.re) (* y.im (/ (log (hypot x.im x.re)) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -0.0022) || !(y_46_re <= 0.0044)) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin(fabs((y_46_re * atan2(x_46_im, x_46_re))));
} else {
tmp = sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(hypot(x_46_im, x_46_re)) / 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 <= -0.0022) || !(y_46_re <= 0.0044)) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin(Math.abs((y_46_re * Math.atan2(x_46_im, x_46_re))));
} else {
tmp = Math.sin((y_46_re * (Math.atan2(x_46_im, x_46_re) + (y_46_im * (Math.log(Math.hypot(x_46_im, 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_re <= -0.0022) or not (y_46_re <= 0.0044): tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin(math.fabs((y_46_re * math.atan2(x_46_im, x_46_re)))) else: tmp = math.sin((y_46_re * (math.atan2(x_46_im, x_46_re) + (y_46_im * (math.log(math.hypot(x_46_im, 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_re <= -0.0022) || !(y_46_re <= 0.0044)) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(abs(Float64(y_46_re * atan(x_46_im, x_46_re))))); else tmp = sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(log(hypot(x_46_im, 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_re <= -0.0022) || ~((y_46_re <= 0.0044))) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin(abs((y_46_re * atan2(x_46_im, x_46_re)))); else tmp = sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(hypot(x_46_im, 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$re, -0.0022], N[Not[LessEqual[y$46$re, 0.0044]], $MachinePrecision]], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[Abs[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -0.0022 \lor \neg \left(y.re \leq 0.0044\right):\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(\left|y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right|\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)}{y.re}\right)\right)\\
\end{array}
\end{array}
if y.re < -0.00220000000000000013 or 0.00440000000000000027 < y.re Initial program 34.9%
cancel-sign-sub-inv34.9%
fma-define34.9%
hypot-define34.9%
distribute-lft-neg-in34.9%
distribute-rgt-neg-out34.9%
fma-define34.9%
hypot-define74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in y.im around 0 66.0%
unpow266.0%
unpow266.0%
hypot-undefine66.0%
Simplified66.0%
add-sqr-sqrt40.1%
pow240.1%
Applied egg-rr40.1%
unpow240.1%
add-sqr-sqrt66.0%
add-sqr-sqrt32.6%
sqrt-unprod41.0%
pow241.0%
Applied egg-rr41.0%
unpow241.0%
rem-sqrt-square70.2%
Simplified70.2%
if -0.00220000000000000013 < y.re < 0.00440000000000000027Initial program 49.6%
cancel-sign-sub-inv49.6%
fma-define49.6%
hypot-define49.6%
distribute-lft-neg-in49.6%
distribute-rgt-neg-out49.6%
fma-define49.6%
hypot-define85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y.im around 0 38.6%
unpow238.6%
unpow238.6%
hypot-undefine48.2%
Simplified48.2%
Taylor expanded in y.re around 0 46.6%
Taylor expanded in y.re around inf 28.4%
+-commutative29.4%
associate-/l*29.4%
unpow229.4%
unpow229.4%
hypot-undefine47.4%
Simplified45.8%
Final simplification57.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(* (pow (hypot x.im x.re) y.re) (sin (* y.re (atan2 x.im x.re))))))
(if (<= y.re -0.00145)
(fabs t_0)
(if (<= y.re 6.5e-53)
(sin
(*
y.re
(+ (atan2 x.im x.re) (* y.im (/ (log (hypot x.im x.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 = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -0.00145) {
tmp = fabs(t_0);
} else if (y_46_re <= 6.5e-53) {
tmp = sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(hypot(x_46_im, x_46_re)) / y_46_re)))));
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -0.00145) {
tmp = Math.abs(t_0);
} else if (y_46_re <= 6.5e-53) {
tmp = Math.sin((y_46_re * (Math.atan2(x_46_im, x_46_re) + (y_46_im * (Math.log(Math.hypot(x_46_im, x_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 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -0.00145: tmp = math.fabs(t_0) elif y_46_re <= 6.5e-53: tmp = math.sin((y_46_re * (math.atan2(x_46_im, x_46_re) + (y_46_im * (math.log(math.hypot(x_46_im, x_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((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))) tmp = 0.0 if (y_46_re <= -0.00145) tmp = abs(t_0); elseif (y_46_re <= 6.5e-53) tmp = sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(log(hypot(x_46_im, x_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 = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -0.00145) tmp = abs(t_0); elseif (y_46_re <= 6.5e-53) tmp = sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(hypot(x_46_im, x_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[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -0.00145], N[Abs[t$95$0], $MachinePrecision], If[LessEqual[y$46$re, 6.5e-53], N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -0.00145:\\
\;\;\;\;\left|t\_0\right|\\
\mathbf{elif}\;y.re \leq 6.5 \cdot 10^{-53}:\\
\;\;\;\;\sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)}{y.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y.re < -0.00145Initial program 36.5%
cancel-sign-sub-inv36.5%
fma-define36.5%
hypot-define36.5%
distribute-lft-neg-in36.5%
distribute-rgt-neg-out36.5%
fma-define36.5%
hypot-define82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in y.im around 0 76.4%
unpow276.4%
unpow276.4%
hypot-undefine76.4%
Simplified76.4%
add-sqr-sqrt47.7%
pow247.7%
Applied egg-rr47.7%
add-sqr-sqrt43.0%
sqrt-unprod47.7%
pow247.7%
unpow247.7%
add-sqr-sqrt79.5%
Applied egg-rr79.5%
unpow279.5%
rem-sqrt-square79.5%
Simplified79.5%
if -0.00145 < y.re < 6.4999999999999997e-53Initial program 49.2%
cancel-sign-sub-inv49.2%
fma-define49.2%
hypot-define49.2%
distribute-lft-neg-in49.2%
distribute-rgt-neg-out49.2%
fma-define49.2%
hypot-define86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in y.im around 0 38.7%
unpow238.7%
unpow238.7%
hypot-undefine47.5%
Simplified47.5%
Taylor expanded in y.re around 0 46.9%
Taylor expanded in y.re around inf 28.8%
+-commutative28.8%
associate-/l*28.7%
unpow228.7%
unpow228.7%
hypot-undefine46.7%
Simplified46.0%
if 6.4999999999999997e-53 < y.re Initial program 36.6%
cancel-sign-sub-inv36.6%
fma-define36.6%
hypot-define36.6%
distribute-lft-neg-in36.6%
distribute-rgt-neg-out36.6%
fma-define36.6%
hypot-define69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y.im around 0 50.5%
unpow250.5%
unpow250.5%
hypot-undefine53.4%
Simplified53.4%
Final simplification56.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (sin t_0)))
(if (<= x.re -5e+21)
(* t_1 (pow (- x.re) y.re))
(if (<= x.re -1.4e-99)
(sin (* y.im (log (hypot x.im x.re))))
(if (<= x.re -6.2e-153)
(* t_1 (pow x.im y.re))
(if (<= x.re 3e-309)
(cbrt (pow t_0 3.0))
(* (pow (hypot x.im x.re) y.re) (sin (* y.im (log x.re))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double tmp;
if (x_46_re <= -5e+21) {
tmp = t_1 * pow(-x_46_re, y_46_re);
} else if (x_46_re <= -1.4e-99) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (x_46_re <= -6.2e-153) {
tmp = t_1 * pow(x_46_im, y_46_re);
} else if (x_46_re <= 3e-309) {
tmp = cbrt(pow(t_0, 3.0));
} else {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_im * log(x_46_re)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double tmp;
if (x_46_re <= -5e+21) {
tmp = t_1 * Math.pow(-x_46_re, y_46_re);
} else if (x_46_re <= -1.4e-99) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (x_46_re <= -6.2e-153) {
tmp = t_1 * Math.pow(x_46_im, y_46_re);
} else if (x_46_re <= 3e-309) {
tmp = Math.cbrt(Math.pow(t_0, 3.0));
} else {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) tmp = 0.0 if (x_46_re <= -5e+21) tmp = Float64(t_1 * (Float64(-x_46_re) ^ y_46_re)); elseif (x_46_re <= -1.4e-99) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (x_46_re <= -6.2e-153) tmp = Float64(t_1 * (x_46_im ^ y_46_re)); elseif (x_46_re <= 3e-309) tmp = cbrt((t_0 ^ 3.0)); else tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_im * log(x_46_re)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[x$46$re, -5e+21], N[(t$95$1 * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, -1.4e-99], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[x$46$re, -6.2e-153], N[(t$95$1 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 3e-309], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 1/3], $MachinePrecision], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
\mathbf{if}\;x.re \leq -5 \cdot 10^{+21}:\\
\;\;\;\;t\_1 \cdot {\left(-x.re\right)}^{y.re}\\
\mathbf{elif}\;x.re \leq -1.4 \cdot 10^{-99}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;x.re \leq -6.2 \cdot 10^{-153}:\\
\;\;\;\;t\_1 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;x.re \leq 3 \cdot 10^{-309}:\\
\;\;\;\;\sqrt[3]{{t\_0}^{3}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < -5e21Initial program 25.3%
cancel-sign-sub-inv25.3%
fma-define25.3%
hypot-define25.3%
distribute-lft-neg-in25.3%
distribute-rgt-neg-out25.3%
fma-define25.3%
hypot-define79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in y.im around 0 44.5%
unpow244.5%
unpow244.5%
hypot-undefine44.7%
Simplified44.7%
Taylor expanded in x.re around -inf 44.7%
mul-1-neg44.7%
Simplified44.7%
if -5e21 < x.re < -1.4e-99Initial program 49.8%
cancel-sign-sub-inv49.8%
fma-define49.8%
hypot-define49.8%
distribute-lft-neg-in49.8%
distribute-rgt-neg-out49.8%
fma-define49.8%
hypot-define84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in y.im around 0 54.6%
unpow254.6%
unpow254.6%
hypot-undefine54.6%
Simplified54.6%
Taylor expanded in y.re around 0 47.2%
Taylor expanded in y.re around 0 29.7%
unpow229.7%
unpow229.7%
hypot-undefine38.2%
Simplified38.2%
if -1.4e-99 < x.re < -6.1999999999999999e-153Initial program 91.7%
cancel-sign-sub-inv91.7%
fma-define91.7%
hypot-define91.7%
distribute-lft-neg-in91.7%
distribute-rgt-neg-out91.7%
fma-define91.7%
hypot-define100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y.im around 0 60.4%
unpow260.4%
unpow260.4%
hypot-undefine60.4%
Simplified60.4%
Taylor expanded in x.re around 0 60.4%
if -6.1999999999999999e-153 < x.re < 3.000000000000001e-309Initial program 42.7%
cancel-sign-sub-inv42.7%
fma-define42.7%
hypot-define42.7%
distribute-lft-neg-in42.7%
distribute-rgt-neg-out42.7%
fma-define42.7%
hypot-define73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in y.im around 0 37.0%
unpow237.0%
unpow237.0%
hypot-undefine27.3%
Simplified27.3%
Taylor expanded in y.re around 0 11.4%
Taylor expanded in y.re around 0 12.1%
*-commutative12.1%
add-cbrt-cube42.1%
pow342.1%
*-commutative42.1%
Applied egg-rr42.1%
if 3.000000000000001e-309 < x.re Initial program 46.3%
cancel-sign-sub-inv46.3%
fma-define46.3%
hypot-define46.3%
distribute-lft-neg-in46.3%
distribute-rgt-neg-out46.3%
fma-define46.3%
hypot-define81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in y.im around 0 55.5%
unpow255.5%
unpow255.5%
hypot-undefine66.5%
Simplified66.5%
Taylor expanded in x.im around 0 63.4%
Taylor expanded in y.re around 0 61.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (or (<= y.re -0.00112) (not (<= y.re 6.5e-53)))
(* (pow (hypot x.im x.re) y.re) (sin (* y.re (atan2 x.im x.re))))
(sin
(* y.re (+ (atan2 x.im x.re) (* y.im (/ (log (hypot x.im x.re)) y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -0.00112) || !(y_46_re <= 6.5e-53)) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(hypot(x_46_im, x_46_re)) / 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 <= -0.00112) || !(y_46_re <= 6.5e-53)) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = Math.sin((y_46_re * (Math.atan2(x_46_im, x_46_re) + (y_46_im * (Math.log(Math.hypot(x_46_im, 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_re <= -0.00112) or not (y_46_re <= 6.5e-53): tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) else: tmp = math.sin((y_46_re * (math.atan2(x_46_im, x_46_re) + (y_46_im * (math.log(math.hypot(x_46_im, 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_re <= -0.00112) || !(y_46_re <= 6.5e-53)) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(log(hypot(x_46_im, 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_re <= -0.00112) || ~((y_46_re <= 6.5e-53))) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re))); else tmp = sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (log(hypot(x_46_im, 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$re, -0.00112], N[Not[LessEqual[y$46$re, 6.5e-53]], $MachinePrecision]], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -0.00112 \lor \neg \left(y.re \leq 6.5 \cdot 10^{-53}\right):\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{\log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)}{y.re}\right)\right)\\
\end{array}
\end{array}
if y.re < -0.0011199999999999999 or 6.4999999999999997e-53 < y.re Initial program 36.5%
cancel-sign-sub-inv36.5%
fma-define36.5%
hypot-define36.5%
distribute-lft-neg-in36.5%
distribute-rgt-neg-out36.5%
fma-define36.5%
hypot-define75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y.im around 0 62.9%
unpow262.9%
unpow262.9%
hypot-undefine64.4%
Simplified64.4%
if -0.0011199999999999999 < y.re < 6.4999999999999997e-53Initial program 49.2%
cancel-sign-sub-inv49.2%
fma-define49.2%
hypot-define49.2%
distribute-lft-neg-in49.2%
distribute-rgt-neg-out49.2%
fma-define49.2%
hypot-define86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in y.im around 0 38.7%
unpow238.7%
unpow238.7%
hypot-undefine47.5%
Simplified47.5%
Taylor expanded in y.re around 0 46.9%
Taylor expanded in y.re around inf 28.8%
+-commutative28.8%
associate-/l*28.7%
unpow228.7%
unpow228.7%
hypot-undefine46.7%
Simplified46.0%
Final simplification55.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.re (atan2 x.im x.re)))))
(if (<= y.re -1.15e+166)
(* t_0 (pow x.im y.re))
(if (<= y.re -1.4e+14)
(* t_0 (pow x.re y.re))
(if (<= y.re -3e-70)
(log (exp t_0))
(if (<= y.re 1.1e-54)
(sin (* y.im (log (hypot x.im x.re))))
(* t_0 (pow (- x.re) y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_re * atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -1.15e+166) {
tmp = t_0 * pow(x_46_im, y_46_re);
} else if (y_46_re <= -1.4e+14) {
tmp = t_0 * pow(x_46_re, y_46_re);
} else if (y_46_re <= -3e-70) {
tmp = log(exp(t_0));
} else if (y_46_re <= 1.1e-54) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_0 * pow(-x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double tmp;
if (y_46_re <= -1.15e+166) {
tmp = t_0 * Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= -1.4e+14) {
tmp = t_0 * Math.pow(x_46_re, y_46_re);
} else if (y_46_re <= -3e-70) {
tmp = Math.log(Math.exp(t_0));
} else if (y_46_re <= 1.1e-54) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_0 * Math.pow(-x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) tmp = 0 if y_46_re <= -1.15e+166: tmp = t_0 * math.pow(x_46_im, y_46_re) elif y_46_re <= -1.4e+14: tmp = t_0 * math.pow(x_46_re, y_46_re) elif y_46_re <= -3e-70: tmp = math.log(math.exp(t_0)) elif y_46_re <= 1.1e-54: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_0 * math.pow(-x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_re * atan(x_46_im, x_46_re))) tmp = 0.0 if (y_46_re <= -1.15e+166) tmp = Float64(t_0 * (x_46_im ^ y_46_re)); elseif (y_46_re <= -1.4e+14) tmp = Float64(t_0 * (x_46_re ^ y_46_re)); elseif (y_46_re <= -3e-70) tmp = log(exp(t_0)); elseif (y_46_re <= 1.1e-54) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = Float64(t_0 * (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) t_0 = sin((y_46_re * atan2(x_46_im, x_46_re))); tmp = 0.0; if (y_46_re <= -1.15e+166) tmp = t_0 * (x_46_im ^ y_46_re); elseif (y_46_re <= -1.4e+14) tmp = t_0 * (x_46_re ^ y_46_re); elseif (y_46_re <= -3e-70) tmp = log(exp(t_0)); elseif (y_46_re <= 1.1e-54) tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_0 * (-x_46_re ^ y_46_re); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -1.15e+166], N[(t$95$0 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -1.4e+14], N[(t$95$0 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -3e-70], N[Log[N[Exp[t$95$0], $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$re, 1.1e-54], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(t$95$0 * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{if}\;y.re \leq -1.15 \cdot 10^{+166}:\\
\;\;\;\;t\_0 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq -1.4 \cdot 10^{+14}:\\
\;\;\;\;t\_0 \cdot {x.re}^{y.re}\\
\mathbf{elif}\;y.re \leq -3 \cdot 10^{-70}:\\
\;\;\;\;\log \left(e^{t\_0}\right)\\
\mathbf{elif}\;y.re \leq 1.1 \cdot 10^{-54}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot {\left(-x.re\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.15000000000000004e166Initial program 34.5%
cancel-sign-sub-inv34.5%
fma-define34.5%
hypot-define34.5%
distribute-lft-neg-in34.5%
distribute-rgt-neg-out34.5%
fma-define34.5%
hypot-define82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in y.im around 0 82.9%
unpow282.9%
unpow282.9%
hypot-undefine82.9%
Simplified82.9%
Taylor expanded in x.re around 0 69.3%
if -1.15000000000000004e166 < y.re < -1.4e14Initial program 35.5%
cancel-sign-sub-inv35.5%
fma-define35.5%
hypot-define35.5%
distribute-lft-neg-in35.5%
distribute-rgt-neg-out35.5%
fma-define35.5%
hypot-define80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y.im around 0 68.0%
unpow268.0%
unpow268.0%
hypot-undefine68.0%
Simplified68.0%
Taylor expanded in x.im around 0 58.4%
if -1.4e14 < y.re < -3.0000000000000001e-70Initial program 40.9%
cancel-sign-sub-inv40.9%
fma-define40.9%
hypot-define40.9%
distribute-lft-neg-in40.9%
distribute-rgt-neg-out40.9%
fma-define40.9%
hypot-define86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in y.im around 0 38.0%
unpow238.0%
unpow238.0%
hypot-undefine29.2%
Simplified29.2%
Taylor expanded in y.re around 0 16.0%
*-rgt-identity16.0%
add-log-exp33.5%
Applied egg-rr33.5%
if -3.0000000000000001e-70 < y.re < 1.1e-54Initial program 51.4%
cancel-sign-sub-inv51.4%
fma-define51.4%
hypot-define51.4%
distribute-lft-neg-in51.4%
distribute-rgt-neg-out51.4%
fma-define51.4%
hypot-define86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in y.im around 0 40.5%
unpow240.5%
unpow240.5%
hypot-undefine51.9%
Simplified51.9%
Taylor expanded in y.re around 0 51.9%
Taylor expanded in y.re around 0 29.0%
unpow229.0%
unpow229.0%
hypot-undefine44.1%
Simplified44.1%
if 1.1e-54 < y.re Initial program 36.6%
cancel-sign-sub-inv36.6%
fma-define36.6%
hypot-define36.6%
distribute-lft-neg-in36.6%
distribute-rgt-neg-out36.6%
fma-define36.6%
hypot-define69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y.im around 0 50.5%
unpow250.5%
unpow250.5%
hypot-undefine53.4%
Simplified53.4%
Taylor expanded in x.re around -inf 46.0%
mul-1-neg46.0%
Simplified46.0%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -2.36e-63) (not (<= y.re 3.6e-56))) (* (pow (hypot x.im x.re) y.re) (sin (* y.re (atan2 x.im x.re)))) (sin (* y.im (log (hypot x.im x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -2.36e-63) || !(y_46_re <= 3.6e-56)) {
tmp = pow(hypot(x_46_im, x_46_re), y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -2.36e-63) || !(y_46_re <= 3.6e-56)) {
tmp = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -2.36e-63) or not (y_46_re <= 3.6e-56): tmp = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) else: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_re <= -2.36e-63) || !(y_46_re <= 3.6e-56)) tmp = Float64((hypot(x_46_im, x_46_re) ^ y_46_re) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_re <= -2.36e-63) || ~((y_46_re <= 3.6e-56))) tmp = (hypot(x_46_im, x_46_re) ^ y_46_re) * sin((y_46_re * atan2(x_46_im, x_46_re))); else tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -2.36e-63], N[Not[LessEqual[y$46$re, 3.6e-56]], $MachinePrecision]], N[(N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -2.36 \cdot 10^{-63} \lor \neg \left(y.re \leq 3.6 \cdot 10^{-56}\right):\\
\;\;\;\;{\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\end{array}
\end{array}
if y.re < -2.35999999999999998e-63 or 3.59999999999999978e-56 < y.re Initial program 36.4%
cancel-sign-sub-inv36.4%
fma-define36.4%
hypot-define36.4%
distribute-lft-neg-in36.4%
distribute-rgt-neg-out36.4%
fma-define36.4%
hypot-define77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in y.im around 0 59.3%
unpow259.3%
unpow259.3%
hypot-undefine59.3%
Simplified59.3%
if -2.35999999999999998e-63 < y.re < 3.59999999999999978e-56Initial program 51.4%
cancel-sign-sub-inv51.4%
fma-define51.4%
hypot-define51.4%
distribute-lft-neg-in51.4%
distribute-rgt-neg-out51.4%
fma-define51.4%
hypot-define85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y.im around 0 39.8%
unpow239.8%
unpow239.8%
hypot-undefine51.0%
Simplified51.0%
Taylor expanded in y.re around 0 51.0%
Taylor expanded in y.re around 0 28.5%
unpow228.5%
unpow228.5%
hypot-undefine43.3%
Simplified43.3%
Final simplification52.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (sin t_0)))
(if (<= y.re -3.7e+166)
(* t_1 (pow x.im y.re))
(if (<= y.re -63000.0)
(* t_1 (pow x.re y.re))
(if (<= y.re -3e-70)
(+ (exp (log1p t_0)) -1.0)
(if (<= y.re 7e-54)
(sin (* y.im (log (hypot x.im x.re))))
(* t_1 (pow (- x.re) y.re))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double tmp;
if (y_46_re <= -3.7e+166) {
tmp = t_1 * pow(x_46_im, y_46_re);
} else if (y_46_re <= -63000.0) {
tmp = t_1 * pow(x_46_re, y_46_re);
} else if (y_46_re <= -3e-70) {
tmp = exp(log1p(t_0)) + -1.0;
} else if (y_46_re <= 7e-54) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_1 * pow(-x_46_re, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double tmp;
if (y_46_re <= -3.7e+166) {
tmp = t_1 * Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= -63000.0) {
tmp = t_1 * Math.pow(x_46_re, y_46_re);
} else if (y_46_re <= -3e-70) {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
} else if (y_46_re <= 7e-54) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_1 * Math.pow(-x_46_re, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) tmp = 0 if y_46_re <= -3.7e+166: tmp = t_1 * math.pow(x_46_im, y_46_re) elif y_46_re <= -63000.0: tmp = t_1 * math.pow(x_46_re, y_46_re) elif y_46_re <= -3e-70: tmp = math.exp(math.log1p(t_0)) + -1.0 elif y_46_re <= 7e-54: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_1 * math.pow(-x_46_re, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) tmp = 0.0 if (y_46_re <= -3.7e+166) tmp = Float64(t_1 * (x_46_im ^ y_46_re)); elseif (y_46_re <= -63000.0) tmp = Float64(t_1 * (x_46_re ^ y_46_re)); elseif (y_46_re <= -3e-70) tmp = Float64(exp(log1p(t_0)) + -1.0); elseif (y_46_re <= 7e-54) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = Float64(t_1 * (Float64(-x_46_re) ^ 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[y$46$re, -3.7e+166], N[(t$95$1 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -63000.0], N[(t$95$1 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -3e-70], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision], If[LessEqual[y$46$re, 7e-54], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(t$95$1 * N[Power[(-x$46$re), y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
\mathbf{if}\;y.re \leq -3.7 \cdot 10^{+166}:\\
\;\;\;\;t\_1 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq -63000:\\
\;\;\;\;t\_1 \cdot {x.re}^{y.re}\\
\mathbf{elif}\;y.re \leq -3 \cdot 10^{-70}:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\mathbf{elif}\;y.re \leq 7 \cdot 10^{-54}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot {\left(-x.re\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -3.70000000000000022e166Initial program 34.5%
cancel-sign-sub-inv34.5%
fma-define34.5%
hypot-define34.5%
distribute-lft-neg-in34.5%
distribute-rgt-neg-out34.5%
fma-define34.5%
hypot-define82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in y.im around 0 82.9%
unpow282.9%
unpow282.9%
hypot-undefine82.9%
Simplified82.9%
Taylor expanded in x.re around 0 69.3%
if -3.70000000000000022e166 < y.re < -63000Initial program 36.4%
cancel-sign-sub-inv36.4%
fma-define36.4%
hypot-define36.4%
distribute-lft-neg-in36.4%
distribute-rgt-neg-out36.4%
fma-define36.4%
hypot-define81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in y.im around 0 69.9%
unpow269.9%
unpow269.9%
hypot-undefine69.9%
Simplified69.9%
Taylor expanded in x.im around 0 55.0%
if -63000 < y.re < -3.0000000000000001e-70Initial program 40.0%
cancel-sign-sub-inv40.0%
fma-define40.0%
hypot-define40.0%
distribute-lft-neg-in40.0%
distribute-rgt-neg-out40.0%
fma-define40.0%
hypot-define85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y.im around 0 31.8%
unpow231.8%
unpow231.8%
hypot-undefine22.2%
Simplified22.2%
Taylor expanded in y.re around 0 17.3%
Taylor expanded in y.re around 0 17.3%
*-commutative17.3%
expm1-log1p-u17.3%
expm1-undefine36.5%
*-commutative36.5%
Applied egg-rr36.5%
if -3.0000000000000001e-70 < y.re < 6.99999999999999964e-54Initial program 51.4%
cancel-sign-sub-inv51.4%
fma-define51.4%
hypot-define51.4%
distribute-lft-neg-in51.4%
distribute-rgt-neg-out51.4%
fma-define51.4%
hypot-define86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in y.im around 0 40.5%
unpow240.5%
unpow240.5%
hypot-undefine51.9%
Simplified51.9%
Taylor expanded in y.re around 0 51.9%
Taylor expanded in y.re around 0 29.0%
unpow229.0%
unpow229.0%
hypot-undefine44.1%
Simplified44.1%
if 6.99999999999999964e-54 < y.re Initial program 36.6%
cancel-sign-sub-inv36.6%
fma-define36.6%
hypot-define36.6%
distribute-lft-neg-in36.6%
distribute-rgt-neg-out36.6%
fma-define36.6%
hypot-define69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in y.im around 0 50.5%
unpow250.5%
unpow250.5%
hypot-undefine53.4%
Simplified53.4%
Taylor expanded in x.re around -inf 46.0%
mul-1-neg46.0%
Simplified46.0%
Final simplification48.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (sin t_0))
(t_2 (* t_1 (pow x.re y.re))))
(if (<= y.re -9.5e+165)
(* t_1 (pow x.im y.re))
(if (<= y.re -21000.0)
t_2
(if (<= y.re -2.2e-70)
(+ (exp (log1p t_0)) -1.0)
(if (<= y.re 3.85e-38)
(sin (* y.im (log (hypot x.im x.re))))
t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0);
double t_2 = t_1 * pow(x_46_re, y_46_re);
double tmp;
if (y_46_re <= -9.5e+165) {
tmp = t_1 * pow(x_46_im, y_46_re);
} else if (y_46_re <= -21000.0) {
tmp = t_2;
} else if (y_46_re <= -2.2e-70) {
tmp = exp(log1p(t_0)) + -1.0;
} else if (y_46_re <= 3.85e-38) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0);
double t_2 = t_1 * Math.pow(x_46_re, y_46_re);
double tmp;
if (y_46_re <= -9.5e+165) {
tmp = t_1 * Math.pow(x_46_im, y_46_re);
} else if (y_46_re <= -21000.0) {
tmp = t_2;
} else if (y_46_re <= -2.2e-70) {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
} else if (y_46_re <= 3.85e-38) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) t_2 = t_1 * math.pow(x_46_re, y_46_re) tmp = 0 if y_46_re <= -9.5e+165: tmp = t_1 * math.pow(x_46_im, y_46_re) elif y_46_re <= -21000.0: tmp = t_2 elif y_46_re <= -2.2e-70: tmp = math.exp(math.log1p(t_0)) + -1.0 elif y_46_re <= 3.85e-38: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) else: tmp = t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = sin(t_0) t_2 = Float64(t_1 * (x_46_re ^ y_46_re)) tmp = 0.0 if (y_46_re <= -9.5e+165) tmp = Float64(t_1 * (x_46_im ^ y_46_re)); elseif (y_46_re <= -21000.0) tmp = t_2; elseif (y_46_re <= -2.2e-70) tmp = Float64(exp(log1p(t_0)) + -1.0); elseif (y_46_re <= 3.85e-38) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); else tmp = t_2; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -9.5e+165], N[(t$95$1 * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -21000.0], t$95$2, If[LessEqual[y$46$re, -2.2e-70], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision], If[LessEqual[y$46$re, 3.85e-38], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0\\
t_2 := t\_1 \cdot {x.re}^{y.re}\\
\mathbf{if}\;y.re \leq -9.5 \cdot 10^{+165}:\\
\;\;\;\;t\_1 \cdot {x.im}^{y.re}\\
\mathbf{elif}\;y.re \leq -21000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.re \leq -2.2 \cdot 10^{-70}:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\mathbf{elif}\;y.re \leq 3.85 \cdot 10^{-38}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.re < -9.50000000000000017e165Initial program 34.5%
cancel-sign-sub-inv34.5%
fma-define34.5%
hypot-define34.5%
distribute-lft-neg-in34.5%
distribute-rgt-neg-out34.5%
fma-define34.5%
hypot-define82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in y.im around 0 82.9%
unpow282.9%
unpow282.9%
hypot-undefine82.9%
Simplified82.9%
Taylor expanded in x.re around 0 69.3%
if -9.50000000000000017e165 < y.re < -21000 or 3.8499999999999999e-38 < y.re Initial program 37.6%
cancel-sign-sub-inv37.6%
fma-define37.6%
hypot-define37.6%
distribute-lft-neg-in37.6%
distribute-rgt-neg-out37.6%
fma-define37.6%
hypot-define73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in y.im around 0 58.5%
unpow258.5%
unpow258.5%
hypot-undefine59.5%
Simplified59.5%
Taylor expanded in x.im around 0 48.5%
if -21000 < y.re < -2.1999999999999999e-70Initial program 40.0%
cancel-sign-sub-inv40.0%
fma-define40.0%
hypot-define40.0%
distribute-lft-neg-in40.0%
distribute-rgt-neg-out40.0%
fma-define40.0%
hypot-define85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y.im around 0 31.8%
unpow231.8%
unpow231.8%
hypot-undefine22.2%
Simplified22.2%
Taylor expanded in y.re around 0 17.3%
Taylor expanded in y.re around 0 17.3%
*-commutative17.3%
expm1-log1p-u17.3%
expm1-undefine36.5%
*-commutative36.5%
Applied egg-rr36.5%
if -2.1999999999999999e-70 < y.re < 3.8499999999999999e-38Initial program 50.0%
cancel-sign-sub-inv50.0%
fma-define50.0%
hypot-define50.0%
distribute-lft-neg-in50.0%
distribute-rgt-neg-out50.0%
fma-define50.0%
hypot-define86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in y.im around 0 39.5%
unpow239.5%
unpow239.5%
hypot-undefine51.4%
Simplified51.4%
Taylor expanded in y.re around 0 51.4%
Taylor expanded in y.re around 0 28.2%
unpow228.2%
unpow228.2%
hypot-undefine42.9%
Simplified42.9%
Final simplification47.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (* (sin t_0) (pow x.im y.re))))
(if (<= y.re -6800.0)
t_1
(if (<= y.re -2.15e-70)
(+ (exp (log1p t_0)) -1.0)
(if (<= y.re 3.9e-53)
(sin (* y.im (log (hypot x.im x.re))))
(if (<= y.re 3.9e+88) t_1 (log1p (expm1 t_0))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = sin(t_0) * pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -6800.0) {
tmp = t_1;
} else if (y_46_re <= -2.15e-70) {
tmp = exp(log1p(t_0)) + -1.0;
} else if (y_46_re <= 3.9e-53) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 3.9e+88) {
tmp = t_1;
} else {
tmp = log1p(expm1(t_0));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.sin(t_0) * Math.pow(x_46_im, y_46_re);
double tmp;
if (y_46_re <= -6800.0) {
tmp = t_1;
} else if (y_46_re <= -2.15e-70) {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
} else if (y_46_re <= 3.9e-53) {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
} else if (y_46_re <= 3.9e+88) {
tmp = t_1;
} else {
tmp = Math.log1p(Math.expm1(t_0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = y_46_re * math.atan2(x_46_im, x_46_re) t_1 = math.sin(t_0) * math.pow(x_46_im, y_46_re) tmp = 0 if y_46_re <= -6800.0: tmp = t_1 elif y_46_re <= -2.15e-70: tmp = math.exp(math.log1p(t_0)) + -1.0 elif y_46_re <= 3.9e-53: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) elif y_46_re <= 3.9e+88: tmp = t_1 else: tmp = math.log1p(math.expm1(t_0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = Float64(sin(t_0) * (x_46_im ^ y_46_re)) tmp = 0.0 if (y_46_re <= -6800.0) tmp = t_1; elseif (y_46_re <= -2.15e-70) tmp = Float64(exp(log1p(t_0)) + -1.0); elseif (y_46_re <= 3.9e-53) tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); elseif (y_46_re <= 3.9e+88) tmp = t_1; else tmp = log1p(expm1(t_0)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -6800.0], t$95$1, If[LessEqual[y$46$re, -2.15e-70], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision], If[LessEqual[y$46$re, 3.9e-53], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$re, 3.9e+88], t$95$1, N[Log[1 + N[(Exp[t$95$0] - 1), $MachinePrecision]], $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \sin t\_0 \cdot {x.im}^{y.re}\\
\mathbf{if}\;y.re \leq -6800:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq -2.15 \cdot 10^{-70}:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\mathbf{elif}\;y.re \leq 3.9 \cdot 10^{-53}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 3.9 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\end{array}
\end{array}
if y.re < -6800 or 3.9000000000000002e-53 < y.re < 3.9000000000000001e88Initial program 40.5%
cancel-sign-sub-inv40.5%
fma-define40.5%
hypot-define40.5%
distribute-lft-neg-in40.5%
distribute-rgt-neg-out40.5%
fma-define40.5%
hypot-define82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in y.im around 0 68.1%
unpow268.1%
unpow268.1%
hypot-undefine70.2%
Simplified70.2%
Taylor expanded in x.re around 0 52.5%
if -6800 < y.re < -2.15e-70Initial program 40.0%
cancel-sign-sub-inv40.0%
fma-define40.0%
hypot-define40.0%
distribute-lft-neg-in40.0%
distribute-rgt-neg-out40.0%
fma-define40.0%
hypot-define85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y.im around 0 31.8%
unpow231.8%
unpow231.8%
hypot-undefine22.2%
Simplified22.2%
Taylor expanded in y.re around 0 17.3%
Taylor expanded in y.re around 0 17.3%
*-commutative17.3%
expm1-log1p-u17.3%
expm1-undefine36.5%
*-commutative36.5%
Applied egg-rr36.5%
if -2.15e-70 < y.re < 3.9000000000000002e-53Initial program 51.4%
cancel-sign-sub-inv51.4%
fma-define51.4%
hypot-define51.4%
distribute-lft-neg-in51.4%
distribute-rgt-neg-out51.4%
fma-define51.4%
hypot-define86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in y.im around 0 40.5%
unpow240.5%
unpow240.5%
hypot-undefine51.9%
Simplified51.9%
Taylor expanded in y.re around 0 51.9%
Taylor expanded in y.re around 0 29.0%
unpow229.0%
unpow229.0%
hypot-undefine44.1%
Simplified44.1%
if 3.9000000000000001e88 < y.re Initial program 23.5%
cancel-sign-sub-inv23.5%
fma-define23.5%
hypot-define23.5%
distribute-lft-neg-in23.5%
distribute-rgt-neg-out23.5%
fma-define23.5%
hypot-define55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in y.im around 0 47.2%
unpow247.2%
unpow247.2%
hypot-undefine47.2%
Simplified47.2%
Taylor expanded in y.re around 0 2.0%
Taylor expanded in y.re around 0 3.2%
log1p-expm1-u47.5%
Applied egg-rr47.5%
Final simplification47.1%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.im (log (hypot x.im x.re)))))
(t_1 (* y.re (atan2 x.im x.re))))
(if (<= y.im -190000000.0)
(+ (exp (log1p t_1)) -1.0)
(if (<= y.im -9.5e-190)
t_0
(if (<= y.im 2.9e-151)
(log1p (expm1 t_1))
(if (<= y.im 9.5e+35) t_0 (pow (pow t_1 3.0) 0.3333333333333333)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -190000000.0) {
tmp = exp(log1p(t_1)) + -1.0;
} else if (y_46_im <= -9.5e-190) {
tmp = t_0;
} else if (y_46_im <= 2.9e-151) {
tmp = log1p(expm1(t_1));
} else if (y_46_im <= 9.5e+35) {
tmp = t_0;
} else {
tmp = pow(pow(t_1, 3.0), 0.3333333333333333);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= -190000000.0) {
tmp = Math.exp(Math.log1p(t_1)) + -1.0;
} else if (y_46_im <= -9.5e-190) {
tmp = t_0;
} else if (y_46_im <= 2.9e-151) {
tmp = Math.log1p(Math.expm1(t_1));
} else if (y_46_im <= 9.5e+35) {
tmp = t_0;
} else {
tmp = Math.pow(Math.pow(t_1, 3.0), 0.3333333333333333);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if y_46_im <= -190000000.0: tmp = math.exp(math.log1p(t_1)) + -1.0 elif y_46_im <= -9.5e-190: tmp = t_0 elif y_46_im <= 2.9e-151: tmp = math.log1p(math.expm1(t_1)) elif y_46_im <= 9.5e+35: tmp = t_0 else: tmp = math.pow(math.pow(t_1, 3.0), 0.3333333333333333) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -190000000.0) tmp = Float64(exp(log1p(t_1)) + -1.0); elseif (y_46_im <= -9.5e-190) tmp = t_0; elseif (y_46_im <= 2.9e-151) tmp = log1p(expm1(t_1)); elseif (y_46_im <= 9.5e+35) tmp = t_0; else tmp = (t_1 ^ 3.0) ^ 0.3333333333333333; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -190000000.0], N[(N[Exp[N[Log[1 + t$95$1], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision], If[LessEqual[y$46$im, -9.5e-190], t$95$0, If[LessEqual[y$46$im, 2.9e-151], N[Log[1 + N[(Exp[t$95$1] - 1), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$im, 9.5e+35], t$95$0, N[Power[N[Power[t$95$1, 3.0], $MachinePrecision], 0.3333333333333333], $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq -190000000:\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_1\right)} + -1\\
\mathbf{elif}\;y.im \leq -9.5 \cdot 10^{-190}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 2.9 \cdot 10^{-151}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_1\right)\right)\\
\mathbf{elif}\;y.im \leq 9.5 \cdot 10^{+35}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;{\left({t\_1}^{3}\right)}^{0.3333333333333333}\\
\end{array}
\end{array}
if y.im < -1.9e8Initial program 30.4%
cancel-sign-sub-inv30.4%
fma-define30.4%
hypot-define30.4%
distribute-lft-neg-in30.4%
distribute-rgt-neg-out30.4%
fma-define30.4%
hypot-define72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in y.im around 0 38.7%
unpow238.7%
unpow238.7%
hypot-undefine25.3%
Simplified25.3%
Taylor expanded in y.re around 0 3.0%
Taylor expanded in y.re around 0 3.2%
*-commutative3.2%
expm1-log1p-u2.6%
expm1-undefine31.4%
*-commutative31.4%
Applied egg-rr31.4%
if -1.9e8 < y.im < -9.50000000000000055e-190 or 2.90000000000000013e-151 < y.im < 9.50000000000000062e35Initial program 54.0%
cancel-sign-sub-inv54.0%
fma-define54.0%
hypot-define54.0%
distribute-lft-neg-in54.0%
distribute-rgt-neg-out54.0%
fma-define54.0%
hypot-define90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in y.im around 0 69.3%
unpow269.3%
unpow269.3%
hypot-undefine86.9%
Simplified86.9%
Taylor expanded in y.re around 0 51.9%
Taylor expanded in y.re around 0 31.1%
unpow231.1%
unpow231.1%
hypot-undefine46.6%
Simplified46.6%
if -9.50000000000000055e-190 < y.im < 2.90000000000000013e-151Initial program 47.7%
cancel-sign-sub-inv47.7%
fma-define47.7%
hypot-define47.7%
distribute-lft-neg-in47.7%
distribute-rgt-neg-out47.7%
fma-define47.7%
hypot-define85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in y.im around 0 55.1%
unpow255.1%
unpow255.1%
hypot-undefine66.3%
Simplified66.3%
Taylor expanded in y.re around 0 26.4%
Taylor expanded in y.re around 0 26.7%
log1p-expm1-u41.6%
Applied egg-rr41.6%
if 9.50000000000000062e35 < y.im Initial program 35.6%
cancel-sign-sub-inv35.6%
fma-define35.6%
hypot-define35.6%
distribute-lft-neg-in35.6%
distribute-rgt-neg-out35.6%
fma-define35.6%
hypot-define72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in y.im around 0 34.1%
unpow234.1%
unpow234.1%
hypot-undefine29.0%
Simplified29.0%
Taylor expanded in y.re around 0 4.9%
*-rgt-identity4.9%
add-cbrt-cube25.4%
pow1/324.8%
pow324.8%
Applied egg-rr24.8%
Taylor expanded in y.re around 0 29.0%
cube-prod32.0%
Simplified32.0%
Final simplification38.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.im (log (hypot x.im x.re)))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (+ (exp (log1p t_1)) -1.0)))
(if (<= y.im -220000000.0)
t_2
(if (<= y.im -1.1e-187)
t_0
(if (<= y.im 1.1e-151)
(log1p (expm1 t_1))
(if (<= y.im 9.2e+35) t_0 t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = exp(log1p(t_1)) + -1.0;
double tmp;
if (y_46_im <= -220000000.0) {
tmp = t_2;
} else if (y_46_im <= -1.1e-187) {
tmp = t_0;
} else if (y_46_im <= 1.1e-151) {
tmp = log1p(expm1(t_1));
} else if (y_46_im <= 9.2e+35) {
tmp = t_0;
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.exp(Math.log1p(t_1)) + -1.0;
double tmp;
if (y_46_im <= -220000000.0) {
tmp = t_2;
} else if (y_46_im <= -1.1e-187) {
tmp = t_0;
} else if (y_46_im <= 1.1e-151) {
tmp = Math.log1p(Math.expm1(t_1));
} else if (y_46_im <= 9.2e+35) {
tmp = t_0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.exp(math.log1p(t_1)) + -1.0 tmp = 0 if y_46_im <= -220000000.0: tmp = t_2 elif y_46_im <= -1.1e-187: tmp = t_0 elif y_46_im <= 1.1e-151: tmp = math.log1p(math.expm1(t_1)) elif y_46_im <= 9.2e+35: tmp = t_0 else: tmp = t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(exp(log1p(t_1)) + -1.0) tmp = 0.0 if (y_46_im <= -220000000.0) tmp = t_2; elseif (y_46_im <= -1.1e-187) tmp = t_0; elseif (y_46_im <= 1.1e-151) tmp = log1p(expm1(t_1)); elseif (y_46_im <= 9.2e+35) tmp = t_0; else tmp = t_2; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Exp[N[Log[1 + t$95$1], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision]}, If[LessEqual[y$46$im, -220000000.0], t$95$2, If[LessEqual[y$46$im, -1.1e-187], t$95$0, If[LessEqual[y$46$im, 1.1e-151], N[Log[1 + N[(Exp[t$95$1] - 1), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$im, 9.2e+35], t$95$0, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := e^{\mathsf{log1p}\left(t\_1\right)} + -1\\
\mathbf{if}\;y.im \leq -220000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq -1.1 \cdot 10^{-187}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 1.1 \cdot 10^{-151}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_1\right)\right)\\
\mathbf{elif}\;y.im \leq 9.2 \cdot 10^{+35}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -2.2e8 or 9.1999999999999993e35 < y.im Initial program 33.2%
cancel-sign-sub-inv33.2%
fma-define33.2%
hypot-define33.2%
distribute-lft-neg-in33.2%
distribute-rgt-neg-out33.2%
fma-define33.2%
hypot-define72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in y.im around 0 36.2%
unpow236.2%
unpow236.2%
hypot-undefine27.3%
Simplified27.3%
Taylor expanded in y.re around 0 4.1%
Taylor expanded in y.re around 0 4.0%
*-commutative4.0%
expm1-log1p-u3.5%
expm1-undefine31.7%
*-commutative31.7%
Applied egg-rr31.7%
if -2.2e8 < y.im < -1.10000000000000004e-187 or 1.1e-151 < y.im < 9.1999999999999993e35Initial program 54.0%
cancel-sign-sub-inv54.0%
fma-define54.0%
hypot-define54.0%
distribute-lft-neg-in54.0%
distribute-rgt-neg-out54.0%
fma-define54.0%
hypot-define90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in y.im around 0 69.3%
unpow269.3%
unpow269.3%
hypot-undefine86.9%
Simplified86.9%
Taylor expanded in y.re around 0 51.9%
Taylor expanded in y.re around 0 31.1%
unpow231.1%
unpow231.1%
hypot-undefine46.6%
Simplified46.6%
if -1.10000000000000004e-187 < y.im < 1.1e-151Initial program 47.7%
cancel-sign-sub-inv47.7%
fma-define47.7%
hypot-define47.7%
distribute-lft-neg-in47.7%
distribute-rgt-neg-out47.7%
fma-define47.7%
hypot-define85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in y.im around 0 55.1%
unpow255.1%
unpow255.1%
hypot-undefine66.3%
Simplified66.3%
Taylor expanded in y.re around 0 26.4%
Taylor expanded in y.re around 0 26.7%
log1p-expm1-u41.6%
Applied egg-rr41.6%
Final simplification38.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (sin (* y.im (log (hypot x.im x.re)))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (cbrt (pow t_1 3.0))))
(if (<= y.im -210000000.0)
t_2
(if (<= y.im -2.1e-188)
t_0
(if (<= y.im 4.6e-151)
(log1p (expm1 t_1))
(if (<= y.im 1.15e-12) t_0 t_2))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = cbrt(pow(t_1, 3.0));
double tmp;
if (y_46_im <= -210000000.0) {
tmp = t_2;
} else if (y_46_im <= -2.1e-188) {
tmp = t_0;
} else if (y_46_im <= 4.6e-151) {
tmp = log1p(expm1(t_1));
} else if (y_46_im <= 1.15e-12) {
tmp = t_0;
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.cbrt(Math.pow(t_1, 3.0));
double tmp;
if (y_46_im <= -210000000.0) {
tmp = t_2;
} else if (y_46_im <= -2.1e-188) {
tmp = t_0;
} else if (y_46_im <= 4.6e-151) {
tmp = Math.log1p(Math.expm1(t_1));
} else if (y_46_im <= 1.15e-12) {
tmp = t_0;
} else {
tmp = t_2;
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = cbrt((t_1 ^ 3.0)) tmp = 0.0 if (y_46_im <= -210000000.0) tmp = t_2; elseif (y_46_im <= -2.1e-188) tmp = t_0; elseif (y_46_im <= 4.6e-151) tmp = log1p(expm1(t_1)); elseif (y_46_im <= 1.15e-12) tmp = t_0; else tmp = t_2; end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[N[Power[t$95$1, 3.0], $MachinePrecision], 1/3], $MachinePrecision]}, If[LessEqual[y$46$im, -210000000.0], t$95$2, If[LessEqual[y$46$im, -2.1e-188], t$95$0, If[LessEqual[y$46$im, 4.6e-151], N[Log[1 + N[(Exp[t$95$1] - 1), $MachinePrecision]], $MachinePrecision], If[LessEqual[y$46$im, 1.15e-12], t$95$0, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \sqrt[3]{{t\_1}^{3}}\\
\mathbf{if}\;y.im \leq -210000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq -2.1 \cdot 10^{-188}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y.im \leq 4.6 \cdot 10^{-151}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_1\right)\right)\\
\mathbf{elif}\;y.im \leq 1.15 \cdot 10^{-12}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -2.1e8 or 1.14999999999999995e-12 < y.im Initial program 34.1%
cancel-sign-sub-inv34.1%
fma-define34.1%
hypot-define34.1%
distribute-lft-neg-in34.1%
distribute-rgt-neg-out34.1%
fma-define34.1%
hypot-define72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in y.im around 0 36.6%
unpow236.6%
unpow236.6%
hypot-undefine28.2%
Simplified28.2%
Taylor expanded in y.re around 0 4.0%
Taylor expanded in y.re around 0 4.0%
*-commutative4.0%
add-cbrt-cube27.5%
pow327.5%
*-commutative27.5%
Applied egg-rr27.5%
if -2.1e8 < y.im < -2.0999999999999999e-188 or 4.59999999999999992e-151 < y.im < 1.14999999999999995e-12Initial program 54.5%
cancel-sign-sub-inv54.5%
fma-define54.5%
hypot-define54.5%
distribute-lft-neg-in54.5%
distribute-rgt-neg-out54.5%
fma-define54.5%
hypot-define91.7%
*-commutative91.7%
Simplified91.7%
Taylor expanded in y.im around 0 71.1%
unpow271.1%
unpow271.1%
hypot-undefine90.4%
Simplified90.4%
Taylor expanded in y.re around 0 56.0%
Taylor expanded in y.re around 0 33.3%
unpow233.3%
unpow233.3%
hypot-undefine50.2%
Simplified50.2%
if -2.0999999999999999e-188 < y.im < 4.59999999999999992e-151Initial program 47.7%
cancel-sign-sub-inv47.7%
fma-define47.7%
hypot-define47.7%
distribute-lft-neg-in47.7%
distribute-rgt-neg-out47.7%
fma-define47.7%
hypot-define85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in y.im around 0 55.1%
unpow255.1%
unpow255.1%
hypot-undefine66.3%
Simplified66.3%
Taylor expanded in y.re around 0 26.4%
Taylor expanded in y.re around 0 26.7%
log1p-expm1-u41.6%
Applied egg-rr41.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -2.36e-63) (not (<= y.re 1.65e-55))) (log1p (expm1 (* y.re (atan2 x.im x.re)))) (sin (* y.im (log (hypot x.im x.re))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -2.36e-63) || !(y_46_re <= 1.65e-55)) {
tmp = log1p(expm1((y_46_re * atan2(x_46_im, x_46_re))));
} else {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re))));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -2.36e-63) || !(y_46_re <= 1.65e-55)) {
tmp = Math.log1p(Math.expm1((y_46_re * Math.atan2(x_46_im, x_46_re))));
} else {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re))));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -2.36e-63) or not (y_46_re <= 1.65e-55): tmp = math.log1p(math.expm1((y_46_re * math.atan2(x_46_im, x_46_re)))) else: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_re <= -2.36e-63) || !(y_46_re <= 1.65e-55)) tmp = log1p(expm1(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -2.36e-63], N[Not[LessEqual[y$46$re, 1.65e-55]], $MachinePrecision]], N[Log[1 + N[(Exp[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision], N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -2.36 \cdot 10^{-63} \lor \neg \left(y.re \leq 1.65 \cdot 10^{-55}\right):\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\end{array}
\end{array}
if y.re < -2.35999999999999998e-63 or 1.65e-55 < y.re Initial program 36.4%
cancel-sign-sub-inv36.4%
fma-define36.4%
hypot-define36.4%
distribute-lft-neg-in36.4%
distribute-rgt-neg-out36.4%
fma-define36.4%
hypot-define77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in y.im around 0 59.3%
unpow259.3%
unpow259.3%
hypot-undefine59.3%
Simplified59.3%
Taylor expanded in y.re around 0 8.8%
Taylor expanded in y.re around 0 8.9%
log1p-expm1-u24.5%
Applied egg-rr24.5%
if -2.35999999999999998e-63 < y.re < 1.65e-55Initial program 51.4%
cancel-sign-sub-inv51.4%
fma-define51.4%
hypot-define51.4%
distribute-lft-neg-in51.4%
distribute-rgt-neg-out51.4%
fma-define51.4%
hypot-define85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y.im around 0 39.8%
unpow239.8%
unpow239.8%
hypot-undefine51.0%
Simplified51.0%
Taylor expanded in y.re around 0 51.0%
Taylor expanded in y.re around 0 28.5%
unpow228.5%
unpow228.5%
hypot-undefine43.3%
Simplified43.3%
Final simplification32.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 2.5e-66) (log1p (expm1 (* y.re (atan2 x.im x.re)))) (sin (* y.im (log x.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 2.5e-66) {
tmp = log1p(expm1((y_46_re * atan2(x_46_im, x_46_re))));
} else {
tmp = sin((y_46_im * log(x_46_re)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 2.5e-66) {
tmp = Math.log1p(Math.expm1((y_46_re * Math.atan2(x_46_im, x_46_re))));
} else {
tmp = Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 2.5e-66: tmp = math.log1p(math.expm1((y_46_re * math.atan2(x_46_im, x_46_re)))) else: tmp = math.sin((y_46_im * math.log(x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 2.5e-66) tmp = log1p(expm1(Float64(y_46_re * atan(x_46_im, x_46_re)))); else tmp = sin(Float64(y_46_im * log(x_46_re))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 2.5e-66], N[Log[1 + N[(Exp[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision], N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 2.5 \cdot 10^{-66}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < 2.49999999999999981e-66Initial program 43.5%
cancel-sign-sub-inv43.5%
fma-define43.5%
hypot-define43.5%
distribute-lft-neg-in43.5%
distribute-rgt-neg-out43.5%
fma-define43.6%
hypot-define81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in y.im around 0 42.2%
unpow242.2%
unpow242.2%
hypot-undefine40.2%
Simplified40.2%
Taylor expanded in y.re around 0 10.4%
Taylor expanded in y.re around 0 10.4%
log1p-expm1-u20.8%
Applied egg-rr20.8%
if 2.49999999999999981e-66 < x.re Initial program 40.5%
cancel-sign-sub-inv40.5%
fma-define40.5%
hypot-define40.5%
distribute-lft-neg-in40.5%
distribute-rgt-neg-out40.5%
fma-define40.5%
hypot-define79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in y.im around 0 53.2%
unpow253.2%
unpow253.2%
hypot-undefine66.6%
Simplified66.6%
Taylor expanded in x.im around 0 65.5%
expm1-log1p-u66.1%
expm1-undefine37.6%
Applied egg-rr37.6%
expm1-define66.1%
Simplified66.1%
Taylor expanded in y.re around 0 28.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (<= x.re 1.25e-204) (* y.re (atan2 x.im x.re)) (sin (* y.im (log x.re)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1.25e-204) {
tmp = y_46_re * atan2(x_46_im, x_46_re);
} else {
tmp = sin((y_46_im * log(x_46_re)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if (x_46re <= 1.25d-204) then
tmp = y_46re * atan2(x_46im, x_46re)
else
tmp = sin((y_46im * log(x_46re)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if (x_46_re <= 1.25e-204) {
tmp = y_46_re * Math.atan2(x_46_im, x_46_re);
} else {
tmp = Math.sin((y_46_im * Math.log(x_46_re)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if x_46_re <= 1.25e-204: tmp = y_46_re * math.atan2(x_46_im, x_46_re) else: tmp = math.sin((y_46_im * math.log(x_46_re))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if (x_46_re <= 1.25e-204) tmp = Float64(y_46_re * atan(x_46_im, x_46_re)); else tmp = sin(Float64(y_46_im * log(x_46_re))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if (x_46_re <= 1.25e-204) tmp = y_46_re * atan2(x_46_im, x_46_re); else tmp = sin((y_46_im * log(x_46_re))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[LessEqual[x$46$re, 1.25e-204], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision], N[Sin[N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1.25 \cdot 10^{-204}:\\
\;\;\;\;y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log x.re\right)\\
\end{array}
\end{array}
if x.re < 1.25e-204Initial program 41.6%
cancel-sign-sub-inv41.6%
fma-define41.6%
hypot-define41.6%
distribute-lft-neg-in41.6%
distribute-rgt-neg-out41.6%
fma-define41.6%
hypot-define80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in y.im around 0 41.6%
unpow241.6%
unpow241.6%
hypot-undefine39.3%
Simplified39.3%
Taylor expanded in y.re around 0 11.4%
Taylor expanded in y.re around 0 11.4%
if 1.25e-204 < x.re Initial program 44.6%
cancel-sign-sub-inv44.6%
fma-define44.6%
hypot-define44.6%
distribute-lft-neg-in44.6%
distribute-rgt-neg-out44.6%
fma-define44.6%
hypot-define80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y.im around 0 53.1%
unpow253.1%
unpow253.1%
hypot-undefine65.0%
Simplified65.0%
Taylor expanded in x.im around 0 61.4%
expm1-log1p-u57.4%
expm1-undefine36.4%
Applied egg-rr36.4%
expm1-define57.4%
Simplified57.4%
Taylor expanded in y.re around 0 22.8%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* y.re (atan2 x.im x.re)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * atan2(x_46_im, x_46_re);
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
code = y_46re * atan2(x_46im, x_46re)
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return y_46_re * Math.atan2(x_46_im, x_46_re);
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return y_46_re * math.atan2(x_46_im, x_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(y_46_re * atan(x_46_im, x_46_re)) end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = y_46_re * atan2(x_46_im, x_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}
\end{array}
Initial program 42.7%
cancel-sign-sub-inv42.7%
fma-define42.7%
hypot-define42.7%
distribute-lft-neg-in42.7%
distribute-rgt-neg-out42.7%
fma-define42.7%
hypot-define80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in y.im around 0 40.0%
unpow240.0%
unpow240.0%
hypot-undefine38.7%
Simplified38.7%
Taylor expanded in y.re around 0 9.5%
Taylor expanded in y.re around 0 9.5%
herbie shell --seed 2024136
(FPCore (x.re x.im y.re y.im)
:name "powComplex, imaginary part"
:precision binary64
(* (exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))) (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))))