
(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 18 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 (* y.re (atan2 x.im x.re)))
(t_1 (log (hypot x.re x.im)))
(t_2 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_3 (exp (- (* t_2 y.re) (* (atan2 x.im x.re) y.im)))))
(if (<= (* t_3 (sin (+ (* t_2 y.im) t_0))) INFINITY)
(*
t_3
(+
(sin t_0)
(* y.im (* (cos t_0) (log (sqrt (+ (pow x.im 2.0) (pow x.re 2.0))))))))
(*
(exp (fma t_1 y.re (* (atan2 x.im x.re) (- y.im))))
(sin (fma t_1 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 t_1 = log(hypot(x_46_re, x_46_im));
double t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = exp(((t_2 * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im)));
double tmp;
if ((t_3 * sin(((t_2 * y_46_im) + t_0))) <= ((double) INFINITY)) {
tmp = t_3 * (sin(t_0) + (y_46_im * (cos(t_0) * log(sqrt((pow(x_46_im, 2.0) + pow(x_46_re, 2.0)))))));
} else {
tmp = exp(fma(t_1, y_46_re, (atan2(x_46_im, x_46_re) * -y_46_im))) * sin(fma(t_1, 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)) t_1 = log(hypot(x_46_re, x_46_im)) t_2 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_3 = exp(Float64(Float64(t_2 * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (Float64(t_3 * sin(Float64(Float64(t_2 * y_46_im) + t_0))) <= Inf) tmp = Float64(t_3 * Float64(sin(t_0) + Float64(y_46_im * Float64(cos(t_0) * log(sqrt(Float64((x_46_im ^ 2.0) + (x_46_re ^ 2.0)))))))); else tmp = Float64(exp(fma(t_1, y_46_re, Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))) * sin(fma(t_1, 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]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(t$95$3 * N[Sin[N[(N[(t$95$2 * y$46$im), $MachinePrecision] + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$3 * N[(N[Sin[t$95$0], $MachinePrecision] + N[(y$46$im * N[(N[Cos[t$95$0], $MachinePrecision] * N[Log[N[Sqrt[N[(N[Power[x$46$im, 2.0], $MachinePrecision] + N[Power[x$46$re, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Exp[N[(t$95$1 * y$46$re + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 * y$46$im + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_2 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_3 := e^{t\_2 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;t\_3 \cdot \sin \left(t\_2 \cdot y.im + t\_0\right) \leq \infty:\\
\;\;\;\;t\_3 \cdot \left(\sin t\_0 + y.im \cdot \left(\cos t\_0 \cdot \log \left(\sqrt{{x.im}^{2} + {x.re}^{2}}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;e^{\mathsf{fma}\left(t\_1, y.re, \tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)\right)} \cdot \sin \left(\mathsf{fma}\left(t\_1, y.im, t\_0\right)\right)\\
\end{array}
\end{array}
if (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) < +inf.0Initial program 84.3%
Taylor expanded in y.im around 0 87.7%
if +inf.0 < (*.f64 (exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im))) (sin.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))) Initial program 0.0%
fmm-def0.0%
hypot-define0.0%
distribute-rgt-neg-out0.0%
fma-define0.0%
hypot-define78.6%
*-commutative78.6%
Simplified78.6%
Final simplification83.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1
(exp
(-
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
(* (atan2 x.im x.re) y.im))))
(t_2 (sin (fma (log (hypot x.re x.im)) y.im t_0))))
(if (<= y.im -25500000000.0)
(* t_1 (sin t_0))
(if (<= y.im 180.0)
(*
t_2
(/ (pow (hypot x.re x.im) y.re) (pow (exp y.im) (atan2 x.im x.re))))
(if (<= y.im 2.1e+77)
(* t_1 (sin (* y.im (log (hypot x.im x.re)))))
(* t_2 (exp (* (atan2 x.im x.re) (- y.im)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im)));
double t_2 = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0));
double tmp;
if (y_46_im <= -25500000000.0) {
tmp = t_1 * sin(t_0);
} else if (y_46_im <= 180.0) {
tmp = t_2 * (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_im <= 2.1e+77) {
tmp = t_1 * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_2 * exp((atan2(x_46_im, x_46_re) * -y_46_im));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) t_2 = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0)) tmp = 0.0 if (y_46_im <= -25500000000.0) tmp = Float64(t_1 * sin(t_0)); elseif (y_46_im <= 180.0) tmp = Float64(t_2 * 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_im <= 2.1e+77) tmp = Float64(t_1 * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(t_2 * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[y$46$im, -25500000000.0], N[(t$95$1 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 180.0], N[(t$95$2 * 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$im, 2.1e+77], N[(t$95$1 * 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$2 * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_2 := \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_0\right)\right)\\
\mathbf{if}\;y.im \leq -25500000000:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\mathbf{elif}\;y.im \leq 180:\\
\;\;\;\;t\_2 \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.im \leq 2.1 \cdot 10^{+77}:\\
\;\;\;\;t\_1 \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\end{array}
\end{array}
if y.im < -2.55e10Initial program 34.9%
Taylor expanded in y.im around 0 73.2%
if -2.55e10 < y.im < 180Initial program 50.0%
exp-diff50.0%
exp-to-pow50.0%
hypot-define50.0%
*-commutative50.0%
exp-prod50.0%
fma-define50.0%
hypot-define90.7%
*-commutative90.7%
Simplified90.7%
if 180 < y.im < 2.0999999999999999e77Initial program 26.3%
Taylor expanded in y.re around 0 36.8%
unpow236.8%
unpow236.8%
hypot-undefine73.8%
Simplified73.8%
if 2.0999999999999999e77 < y.im Initial program 41.5%
exp-diff26.8%
exp-to-pow26.8%
hypot-define26.8%
*-commutative26.8%
exp-prod26.8%
fma-define26.8%
hypot-define61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in y.re around 0 71.4%
rec-exp71.4%
distribute-lft-neg-in71.4%
Simplified71.4%
Final simplification82.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.re x.im))))
(*
(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)))))))
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));
return 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))));
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_re, x_46_im)) return 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))))) 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]}, 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]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
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)
\end{array}
\end{array}
Initial program 43.1%
fmm-def43.1%
hypot-define43.1%
distribute-rgt-neg-out43.1%
fma-define43.1%
hypot-define81.6%
*-commutative81.6%
Simplified81.6%
Final simplification81.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2
(exp
(-
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
(* (atan2 x.im x.re) y.im)))))
(if (<= y.im -820000000000.0)
(* t_2 (sin t_1))
(if (<= y.im 22.5)
(*
(/ (pow (hypot x.re x.im) y.re) (pow (exp y.im) (atan2 x.im x.re)))
(sin (* y.re (+ (atan2 x.im x.re) (* t_0 (/ y.im y.re))))))
(if (<= y.im 1.7e+78)
(* t_2 (sin (* y.im t_0)))
(*
(sin (fma (log (hypot x.re x.im)) y.im t_1))
(exp (* (atan2 x.im x.re) (- y.im)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 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(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im)));
double tmp;
if (y_46_im <= -820000000000.0) {
tmp = t_2 * sin(t_1);
} else if (y_46_im <= 22.5) {
tmp = (pow(hypot(x_46_re, x_46_im), y_46_re) / pow(exp(y_46_im), atan2(x_46_im, x_46_re))) * sin((y_46_re * (atan2(x_46_im, x_46_re) + (t_0 * (y_46_im / y_46_re)))));
} else if (y_46_im <= 1.7e+78) {
tmp = t_2 * sin((y_46_im * t_0));
} else {
tmp = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_1)) * exp((atan2(x_46_im, x_46_re) * -y_46_im));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) tmp = 0.0 if (y_46_im <= -820000000000.0) tmp = Float64(t_2 * sin(t_1)); elseif (y_46_im <= 22.5) tmp = Float64(Float64((hypot(x_46_re, x_46_im) ^ y_46_re) / (exp(y_46_im) ^ atan(x_46_im, x_46_re))) * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(t_0 * Float64(y_46_im / y_46_re)))))); elseif (y_46_im <= 1.7e+78) tmp = Float64(t_2 * sin(Float64(y_46_im * t_0))); else tmp = Float64(sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_1)) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $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[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -820000000000.0], N[(t$95$2 * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 22.5], N[(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] * N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(t$95$0 * N[(y$46$im / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 1.7e+78], N[(t$95$2 * N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + t$95$1), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.im \leq -820000000000:\\
\;\;\;\;t\_2 \cdot \sin t\_1\\
\mathbf{elif}\;y.im \leq 22.5:\\
\;\;\;\;\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}}} \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + t\_0 \cdot \frac{y.im}{y.re}\right)\right)\\
\mathbf{elif}\;y.im \leq 1.7 \cdot 10^{+78}:\\
\;\;\;\;t\_2 \cdot \sin \left(y.im \cdot t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_1\right)\right) \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\end{array}
\end{array}
if y.im < -8.2e11Initial program 34.9%
Taylor expanded in y.im around 0 73.2%
if -8.2e11 < y.im < 22.5Initial program 50.0%
exp-diff50.0%
exp-to-pow50.0%
hypot-define50.0%
*-commutative50.0%
exp-prod50.0%
fma-define50.0%
hypot-define90.7%
*-commutative90.7%
Simplified90.7%
add-cube-cbrt87.5%
pow387.5%
fma-undefine87.5%
*-commutative87.5%
*-commutative87.5%
fma-define87.5%
Applied egg-rr87.5%
Taylor expanded in y.re around inf 50.0%
+-commutative50.0%
*-commutative50.0%
associate-/l*49.9%
unpow249.9%
unpow249.9%
hypot-define90.6%
Simplified90.6%
if 22.5 < y.im < 1.70000000000000004e78Initial program 26.3%
Taylor expanded in y.re around 0 36.8%
unpow236.8%
unpow236.8%
hypot-undefine73.8%
Simplified73.8%
if 1.70000000000000004e78 < y.im Initial program 41.5%
exp-diff26.8%
exp-to-pow26.8%
hypot-define26.8%
*-commutative26.8%
exp-prod26.8%
fma-define26.8%
hypot-define61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in y.re around 0 71.4%
rec-exp71.4%
distribute-lft-neg-in71.4%
Simplified71.4%
Final simplification82.0%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1
(exp
(-
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
(* (atan2 x.im x.re) y.im))))
(t_2 (sin (fma (log (hypot x.re x.im)) y.im t_0))))
(if (<= y.im -4.4e+19)
(* t_1 (sin t_0))
(if (<= y.im 0.00043)
(* t_2 (pow (hypot x.im x.re) y.re))
(if (<= y.im 3.5e+77)
(* t_1 (sin (* y.im (log (hypot x.im x.re)))))
(* t_2 (exp (* (atan2 x.im x.re) (- y.im)))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im)));
double t_2 = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0));
double tmp;
if (y_46_im <= -4.4e+19) {
tmp = t_1 * sin(t_0);
} else if (y_46_im <= 0.00043) {
tmp = t_2 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 3.5e+77) {
tmp = t_1 * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = t_2 * exp((atan2(x_46_im, x_46_re) * -y_46_im));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_1 = exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) t_2 = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_0)) tmp = 0.0 if (y_46_im <= -4.4e+19) tmp = Float64(t_1 * sin(t_0)); elseif (y_46_im <= 0.00043) tmp = Float64(t_2 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_im <= 3.5e+77) tmp = Float64(t_1 * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(t_2 * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[y$46$im, -4.4e+19], N[(t$95$1 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 0.00043], N[(t$95$2 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 3.5e+77], N[(t$95$1 * 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$2 * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_2 := \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_0\right)\right)\\
\mathbf{if}\;y.im \leq -4.4 \cdot 10^{+19}:\\
\;\;\;\;t\_1 \cdot \sin t\_0\\
\mathbf{elif}\;y.im \leq 0.00043:\\
\;\;\;\;t\_2 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq 3.5 \cdot 10^{+77}:\\
\;\;\;\;t\_1 \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\end{array}
\end{array}
if y.im < -4.4e19Initial program 36.1%
Taylor expanded in y.im around 0 72.3%
if -4.4e19 < y.im < 4.29999999999999989e-4Initial program 49.2%
exp-diff49.2%
exp-to-pow49.2%
hypot-define49.2%
*-commutative49.2%
exp-prod49.2%
fma-define49.2%
hypot-define89.3%
*-commutative89.3%
Simplified89.3%
Taylor expanded in y.im around 0 70.5%
unpow270.5%
unpow270.5%
hypot-undefine90.4%
Simplified90.4%
if 4.29999999999999989e-4 < y.im < 3.5000000000000001e77Initial program 26.3%
Taylor expanded in y.re around 0 36.8%
unpow236.8%
unpow236.8%
hypot-undefine73.8%
Simplified73.8%
if 3.5000000000000001e77 < y.im Initial program 41.5%
exp-diff26.8%
exp-to-pow26.8%
hypot-define26.8%
*-commutative26.8%
exp-prod26.8%
fma-define26.8%
hypot-define61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in y.re around 0 71.4%
rec-exp71.4%
distribute-lft-neg-in71.4%
Simplified71.4%
Final simplification81.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)))
(t_2
(*
(exp
(-
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
(* (atan2 x.im x.re) y.im)))
(sin t_1)))
(t_3 (sin (fma (log (hypot x.re x.im)) y.im t_1))))
(if (<= y.im -4.4e+19)
t_2
(if (<= y.im 4.7e+19)
(* t_3 t_0)
(if (<= y.im 1.75e+40)
t_2
(if (<= y.im 4.8e+76)
(* (sin (* y.im (log (hypot x.im x.re)))) t_0)
(* t_3 (exp (* (atan2 x.im x.re) (- y.im))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = 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 t_2 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(t_1);
double t_3 = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_1));
double tmp;
if (y_46_im <= -4.4e+19) {
tmp = t_2;
} else if (y_46_im <= 4.7e+19) {
tmp = t_3 * t_0;
} else if (y_46_im <= 1.75e+40) {
tmp = t_2;
} else if (y_46_im <= 4.8e+76) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * t_0;
} else {
tmp = t_3 * exp((atan2(x_46_im, x_46_re) * -y_46_im));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = hypot(x_46_im, x_46_re) ^ y_46_re t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(t_1)) t_3 = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_1)) tmp = 0.0 if (y_46_im <= -4.4e+19) tmp = t_2; elseif (y_46_im <= 4.7e+19) tmp = Float64(t_3 * t_0); elseif (y_46_im <= 1.75e+40) tmp = t_2; elseif (y_46_im <= 4.8e+76) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * t_0); else tmp = Float64(t_3 * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im)))); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[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]}, Block[{t$95$2 = N[(N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + t$95$1), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -4.4e+19], t$95$2, If[LessEqual[y$46$im, 4.7e+19], N[(t$95$3 * t$95$0), $MachinePrecision], If[LessEqual[y$46$im, 1.75e+40], t$95$2, If[LessEqual[y$46$im, 4.8e+76], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision], N[(t$95$3 * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $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}\\
t_2 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin t\_1\\
t_3 := \sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_1\right)\right)\\
\mathbf{if}\;y.im \leq -4.4 \cdot 10^{+19}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 4.7 \cdot 10^{+19}:\\
\;\;\;\;t\_3 \cdot t\_0\\
\mathbf{elif}\;y.im \leq 1.75 \cdot 10^{+40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 4.8 \cdot 10^{+76}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_3 \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\\
\end{array}
\end{array}
if y.im < -4.4e19 or 4.7e19 < y.im < 1.75e40Initial program 36.2%
Taylor expanded in y.im around 0 71.2%
if -4.4e19 < y.im < 4.7e19Initial program 48.2%
exp-diff48.2%
exp-to-pow48.2%
hypot-define48.2%
*-commutative48.2%
exp-prod48.2%
fma-define48.2%
hypot-define88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in y.im around 0 70.9%
unpow270.9%
unpow270.9%
hypot-undefine90.1%
Simplified90.1%
if 1.75e40 < y.im < 4.8e76Initial program 16.7%
exp-diff0.0%
exp-to-pow0.0%
hypot-define0.0%
*-commutative0.0%
exp-prod0.0%
fma-define0.0%
hypot-define33.3%
*-commutative33.3%
Simplified33.3%
Taylor expanded in y.im around 0 50.0%
unpow250.0%
unpow250.0%
hypot-undefine50.0%
Simplified50.0%
Taylor expanded in y.im around inf 50.0%
unpow250.0%
unpow250.0%
hypot-undefine100.0%
Simplified100.0%
if 4.8e76 < y.im Initial program 41.5%
exp-diff26.8%
exp-to-pow26.8%
hypot-define26.8%
*-commutative26.8%
exp-prod26.8%
fma-define26.8%
hypot-define61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in y.re around 0 71.4%
rec-exp71.4%
distribute-lft-neg-in71.4%
Simplified71.4%
Final simplification82.2%
(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)))
(t_2
(*
(exp
(-
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
(* (atan2 x.im x.re) y.im)))
(sin t_1))))
(if (<= y.im -4.4e+19)
t_2
(if (<= y.im 5.8e+19)
(* (sin (fma (log (hypot x.re x.im)) y.im t_1)) t_0)
(if (<= y.im 2.7e+40)
t_2
(if (<= y.im 3.1e+78)
(* (sin (* y.im (log (hypot x.im x.re)))) t_0)
(if (<= y.im 6.2e+190)
(*
y.re
(* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- y.im)))))
t_2)))))))
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 t_2 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(t_1);
double tmp;
if (y_46_im <= -4.4e+19) {
tmp = t_2;
} else if (y_46_im <= 5.8e+19) {
tmp = sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_1)) * t_0;
} else if (y_46_im <= 2.7e+40) {
tmp = t_2;
} else if (y_46_im <= 3.1e+78) {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * t_0;
} else if (y_46_im <= 6.2e+190) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
} else {
tmp = t_2;
}
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)) t_2 = Float64(exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(t_1)) tmp = 0.0 if (y_46_im <= -4.4e+19) tmp = t_2; elseif (y_46_im <= 5.8e+19) tmp = Float64(sin(fma(log(hypot(x_46_re, x_46_im)), y_46_im, t_1)) * t_0); elseif (y_46_im <= 2.7e+40) tmp = t_2; elseif (y_46_im <= 3.1e+78) tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * t_0); elseif (y_46_im <= 6.2e+190) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))); 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[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]}, Block[{t$95$2 = N[(N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$im, -4.4e+19], t$95$2, If[LessEqual[y$46$im, 5.8e+19], N[(N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im + t$95$1), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[y$46$im, 2.7e+40], t$95$2, If[LessEqual[y$46$im, 3.1e+78], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[y$46$im, 6.2e+190], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\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}\\
t_2 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin t\_1\\
\mathbf{if}\;y.im \leq -4.4 \cdot 10^{+19}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 5.8 \cdot 10^{+19}:\\
\;\;\;\;\sin \left(\mathsf{fma}\left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right), y.im, t\_1\right)\right) \cdot t\_0\\
\mathbf{elif}\;y.im \leq 2.7 \cdot 10^{+40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y.im \leq 3.1 \cdot 10^{+78}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot t\_0\\
\mathbf{elif}\;y.im \leq 6.2 \cdot 10^{+190}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y.im < -4.4e19 or 5.8e19 < y.im < 2.70000000000000009e40 or 6.2000000000000003e190 < y.im Initial program 39.4%
Taylor expanded in y.im around 0 68.4%
if -4.4e19 < y.im < 5.8e19Initial program 48.2%
exp-diff48.2%
exp-to-pow48.2%
hypot-define48.2%
*-commutative48.2%
exp-prod48.2%
fma-define48.2%
hypot-define88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in y.im around 0 70.9%
unpow270.9%
unpow270.9%
hypot-undefine90.1%
Simplified90.1%
if 2.70000000000000009e40 < y.im < 3.1e78Initial program 28.6%
exp-diff14.3%
exp-to-pow14.3%
hypot-define14.3%
*-commutative14.3%
exp-prod14.3%
fma-define14.3%
hypot-define42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in y.im around 0 57.1%
unpow257.1%
unpow257.1%
hypot-undefine57.1%
Simplified57.1%
Taylor expanded in y.im around inf 42.9%
unpow242.9%
unpow242.9%
hypot-undefine85.7%
Simplified85.7%
if 3.1e78 < y.im < 6.2000000000000003e190Initial program 26.7%
Taylor expanded in y.im around 0 47.1%
Taylor expanded in y.re around 0 66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
Simplified66.7%
Final simplification80.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1
(*
(exp
(-
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
(* (atan2 x.im x.re) y.im)))
(sin (* y.re (atan2 x.im x.re)))))
(t_2 (pow (hypot x.im x.re) y.re)))
(if (<= y.im -4.4e+19)
t_1
(if (<= y.im 4.7e+19)
(* t_2 (sin (* y.re (+ (atan2 x.im x.re) (* y.im (/ t_0 y.re))))))
(if (<= y.im 1.75e+40)
t_1
(if (<= y.im 3.6e+79)
(* (sin (* y.im t_0)) t_2)
(if (<= y.im 1.1e+192)
(*
y.re
(* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- y.im)))))
t_1)))))))
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(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_re * atan2(x_46_im, x_46_re)));
double t_2 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_im <= -4.4e+19) {
tmp = t_1;
} else if (y_46_im <= 4.7e+19) {
tmp = t_2 * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re)))));
} else if (y_46_im <= 1.75e+40) {
tmp = t_1;
} else if (y_46_im <= 3.6e+79) {
tmp = sin((y_46_im * t_0)) * t_2;
} else if (y_46_im <= 1.1e+192) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.log(Math.hypot(x_46_im, x_46_re));
double t_1 = Math.exp(((Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
double t_2 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_im <= -4.4e+19) {
tmp = t_1;
} else if (y_46_im <= 4.7e+19) {
tmp = t_2 * Math.sin((y_46_re * (Math.atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re)))));
} else if (y_46_im <= 1.75e+40) {
tmp = t_1;
} else if (y_46_im <= 3.6e+79) {
tmp = Math.sin((y_46_im * t_0)) * t_2;
} else if (y_46_im <= 1.1e+192) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)));
} else {
tmp = t_1;
}
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)) t_1 = math.exp(((math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) t_2 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_im <= -4.4e+19: tmp = t_1 elif y_46_im <= 4.7e+19: tmp = t_2 * math.sin((y_46_re * (math.atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re))))) elif y_46_im <= 1.75e+40: tmp = t_1 elif y_46_im <= 3.6e+79: tmp = math.sin((y_46_im * t_0)) * t_2 elif y_46_im <= 1.1e+192: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im))) else: tmp = t_1 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(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))) t_2 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_im <= -4.4e+19) tmp = t_1; elseif (y_46_im <= 4.7e+19) tmp = Float64(t_2 * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(t_0 / y_46_re)))))); elseif (y_46_im <= 1.75e+40) tmp = t_1; elseif (y_46_im <= 3.6e+79) tmp = Float64(sin(Float64(y_46_im * t_0)) * t_2); elseif (y_46_im <= 1.1e+192) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = log(hypot(x_46_im, x_46_re)); t_1 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin((y_46_re * atan2(x_46_im, x_46_re))); t_2 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_im <= -4.4e+19) tmp = t_1; elseif (y_46_im <= 4.7e+19) tmp = t_2 * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_0 / y_46_re))))); elseif (y_46_im <= 1.75e+40) tmp = t_1; elseif (y_46_im <= 3.6e+79) tmp = sin((y_46_im * t_0)) * t_2; elseif (y_46_im <= 1.1e+192) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im))); else tmp = t_1; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$im, -4.4e+19], t$95$1, If[LessEqual[y$46$im, 4.7e+19], N[(t$95$2 * 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], If[LessEqual[y$46$im, 1.75e+40], t$95$1, If[LessEqual[y$46$im, 3.6e+79], N[(N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[y$46$im, 1.1e+192], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
t_2 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.im \leq -4.4 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 4.7 \cdot 10^{+19}:\\
\;\;\;\;t\_2 \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{t\_0}{y.re}\right)\right)\\
\mathbf{elif}\;y.im \leq 1.75 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 3.6 \cdot 10^{+79}:\\
\;\;\;\;\sin \left(y.im \cdot t\_0\right) \cdot t\_2\\
\mathbf{elif}\;y.im \leq 1.1 \cdot 10^{+192}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y.im < -4.4e19 or 4.7e19 < y.im < 1.75e40 or 1.1e192 < y.im Initial program 39.4%
Taylor expanded in y.im around 0 68.4%
if -4.4e19 < y.im < 4.7e19Initial program 48.2%
exp-diff48.2%
exp-to-pow48.2%
hypot-define48.2%
*-commutative48.2%
exp-prod48.2%
fma-define48.2%
hypot-define88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in y.im around 0 70.9%
unpow270.9%
unpow270.9%
hypot-undefine90.1%
Simplified90.1%
Taylor expanded in y.re around inf 47.2%
+-commutative47.2%
associate-/l*47.2%
unpow247.2%
unpow247.2%
hypot-undefine89.3%
Simplified89.3%
if 1.75e40 < y.im < 3.5999999999999999e79Initial program 28.6%
exp-diff14.3%
exp-to-pow14.3%
hypot-define14.3%
*-commutative14.3%
exp-prod14.3%
fma-define14.3%
hypot-define42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in y.im around 0 57.1%
unpow257.1%
unpow257.1%
hypot-undefine57.1%
Simplified57.1%
Taylor expanded in y.im around inf 42.9%
unpow242.9%
unpow242.9%
hypot-undefine85.7%
Simplified85.7%
if 3.5999999999999999e79 < y.im < 1.1e192Initial program 26.7%
Taylor expanded in y.im around 0 47.1%
Taylor expanded in y.re around 0 66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
Simplified66.7%
Final simplification80.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (log (hypot x.im x.re)))
(t_1
(* y.re (* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- y.im))))))
(t_2 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -6000000000.0)
(* (sin (* y.re (atan2 x.im x.re))) (pow (hypot x.re x.im) y.re))
(if (<= y.re -3.25e-201)
t_1
(if (<= y.re 7.6e-156)
(* t_2 (sin (* y.im (+ t_0 (* y.re (/ (atan2 x.im x.re) y.im))))))
(if (<= y.re 19000000000000.0) t_1 (* (sin (* y.im 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 = log(hypot(x_46_im, x_46_re));
double t_1 = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
double t_2 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6000000000.0) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_re, x_46_im), y_46_re);
} else if (y_46_re <= -3.25e-201) {
tmp = t_1;
} else if (y_46_re <= 7.6e-156) {
tmp = t_2 * sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im)))));
} else if (y_46_re <= 19000000000000.0) {
tmp = t_1;
} else {
tmp = sin((y_46_im * t_0)) * 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.log(Math.hypot(x_46_im, x_46_re));
double t_1 = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)));
double t_2 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -6000000000.0) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
} else if (y_46_re <= -3.25e-201) {
tmp = t_1;
} else if (y_46_re <= 7.6e-156) {
tmp = t_2 * Math.sin((y_46_im * (t_0 + (y_46_re * (Math.atan2(x_46_im, x_46_re) / y_46_im)))));
} else if (y_46_re <= 19000000000000.0) {
tmp = t_1;
} else {
tmp = Math.sin((y_46_im * t_0)) * t_2;
}
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)) t_1 = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im))) t_2 = math.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -6000000000.0: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_re, x_46_im), y_46_re) elif y_46_re <= -3.25e-201: tmp = t_1 elif y_46_re <= 7.6e-156: tmp = t_2 * math.sin((y_46_im * (t_0 + (y_46_re * (math.atan2(x_46_im, x_46_re) / y_46_im))))) elif y_46_re <= 19000000000000.0: tmp = t_1 else: tmp = math.sin((y_46_im * t_0)) * t_2 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(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))) t_2 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -6000000000.0) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif (y_46_re <= -3.25e-201) tmp = t_1; elseif (y_46_re <= 7.6e-156) tmp = Float64(t_2 * sin(Float64(y_46_im * Float64(t_0 + Float64(y_46_re * Float64(atan(x_46_im, x_46_re) / y_46_im)))))); elseif (y_46_re <= 19000000000000.0) tmp = t_1; else tmp = Float64(sin(Float64(y_46_im * t_0)) * t_2); 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)); t_1 = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im))); t_2 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -6000000000.0) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_re, x_46_im) ^ y_46_re); elseif (y_46_re <= -3.25e-201) tmp = t_1; elseif (y_46_re <= 7.6e-156) tmp = t_2 * sin((y_46_im * (t_0 + (y_46_re * (atan2(x_46_im, x_46_re) / y_46_im))))); elseif (y_46_re <= 19000000000000.0) tmp = t_1; else tmp = sin((y_46_im * t_0)) * t_2; 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]}, Block[{t$95$1 = N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -6000000000.0], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -3.25e-201], t$95$1, If[LessEqual[y$46$re, 7.6e-156], N[(t$95$2 * 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]), $MachinePrecision], If[LessEqual[y$46$re, 19000000000000.0], t$95$1, N[(N[Sin[N[(y$46$im * t$95$0), $MachinePrecision]], $MachinePrecision] * t$95$2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
t_1 := y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
t_2 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -6000000000:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq -3.25 \cdot 10^{-201}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.re \leq 7.6 \cdot 10^{-156}:\\
\;\;\;\;t\_2 \cdot \sin \left(y.im \cdot \left(t\_0 + y.re \cdot \frac{\tan^{-1}_* \frac{x.im}{x.re}}{y.im}\right)\right)\\
\mathbf{elif}\;y.re \leq 19000000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot t\_0\right) \cdot t\_2\\
\end{array}
\end{array}
if y.re < -6e9Initial program 42.1%
Taylor expanded in y.im around 0 82.5%
Taylor expanded in y.im around 0 77.4%
+-commutative77.4%
unpow277.4%
unpow277.4%
hypot-undefine77.4%
Simplified77.4%
if -6e9 < y.re < -3.24999999999999987e-201 or 7.60000000000000015e-156 < y.re < 1.9e13Initial program 51.8%
Taylor expanded in y.im around 0 50.7%
Taylor expanded in y.re around 0 69.8%
*-commutative69.8%
distribute-rgt-neg-in69.8%
Simplified69.8%
if -3.24999999999999987e-201 < y.re < 7.60000000000000015e-156Initial program 51.9%
exp-diff51.9%
exp-to-pow51.9%
hypot-define51.9%
*-commutative51.9%
exp-prod51.9%
fma-define51.9%
hypot-define86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in y.im around 0 42.8%
unpow242.8%
unpow242.8%
hypot-undefine62.2%
Simplified62.2%
Taylor expanded in y.im around inf 36.4%
unpow236.4%
unpow236.4%
hypot-undefine62.2%
associate-/l*62.2%
Simplified62.2%
if 1.9e13 < y.re Initial program 26.2%
exp-diff18.5%
exp-to-pow18.5%
hypot-define18.5%
*-commutative18.5%
exp-prod18.5%
fma-define18.5%
hypot-define49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in y.im around 0 64.7%
unpow264.7%
unpow264.7%
hypot-undefine64.7%
Simplified64.7%
Taylor expanded in y.im around inf 27.8%
unpow227.8%
unpow227.8%
hypot-undefine67.8%
Simplified67.8%
Final simplification69.2%
(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) (exp (* (atan2 x.im x.re) (- y.im))))))
(t_2 (log (hypot x.im x.re))))
(if (<= y.im -2.6e+87)
t_1
(if (<= y.im 7.2e+19)
(* t_0 (sin (* y.re (+ (atan2 x.im x.re) (* y.im (/ t_2 y.re))))))
(if (or (<= y.im 1.5e+38) (not (<= y.im 3.3e+78)))
t_1
(* (sin (* y.im t_2)) 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);
double t_1 = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
double t_2 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -2.6e+87) {
tmp = t_1;
} else if (y_46_im <= 7.2e+19) {
tmp = t_0 * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_2 / y_46_re)))));
} else if ((y_46_im <= 1.5e+38) || !(y_46_im <= 3.3e+78)) {
tmp = t_1;
} else {
tmp = sin((y_46_im * t_2)) * 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);
double t_1 = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)));
double t_2 = Math.log(Math.hypot(x_46_im, x_46_re));
double tmp;
if (y_46_im <= -2.6e+87) {
tmp = t_1;
} else if (y_46_im <= 7.2e+19) {
tmp = t_0 * Math.sin((y_46_re * (Math.atan2(x_46_im, x_46_re) + (y_46_im * (t_2 / y_46_re)))));
} else if ((y_46_im <= 1.5e+38) || !(y_46_im <= 3.3e+78)) {
tmp = t_1;
} else {
tmp = Math.sin((y_46_im * t_2)) * 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) t_1 = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im))) t_2 = math.log(math.hypot(x_46_im, x_46_re)) tmp = 0 if y_46_im <= -2.6e+87: tmp = t_1 elif y_46_im <= 7.2e+19: tmp = t_0 * math.sin((y_46_re * (math.atan2(x_46_im, x_46_re) + (y_46_im * (t_2 / y_46_re))))) elif (y_46_im <= 1.5e+38) or not (y_46_im <= 3.3e+78): tmp = t_1 else: tmp = math.sin((y_46_im * t_2)) * t_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 * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))) t_2 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_im <= -2.6e+87) tmp = t_1; elseif (y_46_im <= 7.2e+19) tmp = Float64(t_0 * sin(Float64(y_46_re * Float64(atan(x_46_im, x_46_re) + Float64(y_46_im * Float64(t_2 / y_46_re)))))); elseif ((y_46_im <= 1.5e+38) || !(y_46_im <= 3.3e+78)) tmp = t_1; else tmp = Float64(sin(Float64(y_46_im * t_2)) * 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; t_1 = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im))); t_2 = log(hypot(x_46_im, x_46_re)); tmp = 0.0; if (y_46_im <= -2.6e+87) tmp = t_1; elseif (y_46_im <= 7.2e+19) tmp = t_0 * sin((y_46_re * (atan2(x_46_im, x_46_re) + (y_46_im * (t_2 / y_46_re))))); elseif ((y_46_im <= 1.5e+38) || ~((y_46_im <= 3.3e+78))) tmp = t_1; else tmp = sin((y_46_im * t_2)) * 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[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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -2.6e+87], t$95$1, If[LessEqual[y$46$im, 7.2e+19], N[(t$95$0 * N[Sin[N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[(t$95$2 / y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y$46$im, 1.5e+38], N[Not[LessEqual[y$46$im, 3.3e+78]], $MachinePrecision]], t$95$1, N[(N[Sin[N[(y$46$im * t$95$2), $MachinePrecision]], $MachinePrecision] * t$95$0), $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 \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
t_2 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.im \leq -2.6 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y.im \leq 7.2 \cdot 10^{+19}:\\
\;\;\;\;t\_0 \cdot \sin \left(y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} + y.im \cdot \frac{t\_2}{y.re}\right)\right)\\
\mathbf{elif}\;y.im \leq 1.5 \cdot 10^{+38} \lor \neg \left(y.im \leq 3.3 \cdot 10^{+78}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot t\_2\right) \cdot t\_0\\
\end{array}
\end{array}
if y.im < -2.59999999999999998e87 or 7.2e19 < y.im < 1.5000000000000001e38 or 3.3e78 < y.im Initial program 35.8%
Taylor expanded in y.im around 0 62.4%
Taylor expanded in y.re around 0 58.2%
*-commutative58.2%
distribute-rgt-neg-in58.2%
Simplified58.2%
if -2.59999999999999998e87 < y.im < 7.2e19Initial program 48.3%
exp-diff46.4%
exp-to-pow46.4%
hypot-define46.4%
*-commutative46.4%
exp-prod46.4%
fma-define46.4%
hypot-define83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y.im around 0 69.7%
unpow269.7%
unpow269.7%
hypot-undefine87.1%
Simplified87.1%
Taylor expanded in y.re around inf 46.2%
+-commutative46.2%
associate-/l*46.8%
unpow246.8%
unpow246.8%
hypot-undefine87.1%
Simplified87.1%
if 1.5000000000000001e38 < y.im < 3.3e78Initial program 28.6%
exp-diff14.3%
exp-to-pow14.3%
hypot-define14.3%
*-commutative14.3%
exp-prod14.3%
fma-define14.3%
hypot-define42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in y.im around 0 57.1%
unpow257.1%
unpow257.1%
hypot-undefine57.1%
Simplified57.1%
Taylor expanded in y.im around inf 42.9%
unpow242.9%
unpow242.9%
hypot-undefine85.7%
Simplified85.7%
Final simplification76.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(if (<= y.re -15500000000.0)
(* (sin (* y.re (atan2 x.im x.re))) (pow (hypot x.re x.im) y.re))
(if (or (<= y.re 1.9e-305)
(and (not (<= y.re 1.02e-160)) (<= y.re 580000000000.0)))
(* y.re (* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- y.im)))))
(* (sin (* y.im (log (hypot 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_re <= -15500000000.0) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_re, x_46_im), y_46_re);
} else if ((y_46_re <= 1.9e-305) || (!(y_46_re <= 1.02e-160) && (y_46_re <= 580000000000.0))) {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
} else {
tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * pow(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 <= -15500000000.0) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
} else if ((y_46_re <= 1.9e-305) || (!(y_46_re <= 1.02e-160) && (y_46_re <= 580000000000.0))) {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)));
} else {
tmp = Math.sin((y_46_im * Math.log(Math.hypot(x_46_im, x_46_re)))) * Math.pow(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 <= -15500000000.0: tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_re, x_46_im), y_46_re) elif (y_46_re <= 1.9e-305) or (not (y_46_re <= 1.02e-160) and (y_46_re <= 580000000000.0)): tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im))) else: tmp = math.sin((y_46_im * math.log(math.hypot(x_46_im, x_46_re)))) * math.pow(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 <= -15500000000.0) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_re, x_46_im) ^ y_46_re)); elseif ((y_46_re <= 1.9e-305) || (!(y_46_re <= 1.02e-160) && (y_46_re <= 580000000000.0))) tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))); else tmp = Float64(sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re)))) * (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 <= -15500000000.0) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_re, x_46_im) ^ y_46_re); elseif ((y_46_re <= 1.9e-305) || (~((y_46_re <= 1.02e-160)) && (y_46_re <= 580000000000.0))) tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im))); else tmp = sin((y_46_im * log(hypot(x_46_im, x_46_re)))) * (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[LessEqual[y$46$re, -15500000000.0], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y$46$re, 1.9e-305], And[N[Not[LessEqual[y$46$re, 1.02e-160]], $MachinePrecision], LessEqual[y$46$re, 580000000000.0]]], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$im * N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $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.re \leq -15500000000:\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{elif}\;y.re \leq 1.9 \cdot 10^{-305} \lor \neg \left(y.re \leq 1.02 \cdot 10^{-160}\right) \land y.re \leq 580000000000:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.55e10Initial program 42.1%
Taylor expanded in y.im around 0 82.5%
Taylor expanded in y.im around 0 77.4%
+-commutative77.4%
unpow277.4%
unpow277.4%
hypot-undefine77.4%
Simplified77.4%
if -1.55e10 < y.re < 1.9e-305 or 1.0200000000000001e-160 < y.re < 5.8e11Initial program 48.8%
Taylor expanded in y.im around 0 45.6%
Taylor expanded in y.re around 0 63.5%
*-commutative63.5%
distribute-rgt-neg-in63.5%
Simplified63.5%
if 1.9e-305 < y.re < 1.0200000000000001e-160 or 5.8e11 < y.re Initial program 37.8%
exp-diff32.6%
exp-to-pow32.6%
hypot-define32.6%
*-commutative32.6%
exp-prod32.6%
fma-define32.6%
hypot-define62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y.im around 0 59.7%
unpow259.7%
unpow259.7%
hypot-undefine66.6%
Simplified66.6%
Taylor expanded in y.im around inf 31.0%
unpow231.0%
unpow231.0%
hypot-undefine63.5%
Simplified63.5%
Final simplification66.6%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -15500000000.0) (not (<= y.re 3.7e-12))) (* (sin (* y.re (atan2 x.im x.re))) (pow (hypot x.re x.im) y.re)) (* y.re (* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- y.im)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -15500000000.0) || !(y_46_re <= 3.7e-12)) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(hypot(x_46_re, x_46_im), y_46_re);
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -15500000000.0) || !(y_46_re <= 3.7e-12)) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(Math.hypot(x_46_re, x_46_im), y_46_re);
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -15500000000.0) or not (y_46_re <= 3.7e-12): tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(math.hypot(x_46_re, x_46_im), y_46_re) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_re <= -15500000000.0) || !(y_46_re <= 3.7e-12)) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (hypot(x_46_re, x_46_im) ^ y_46_re)); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_re <= -15500000000.0) || ~((y_46_re <= 3.7e-12))) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (hypot(x_46_re, x_46_im) ^ y_46_re); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -15500000000.0], N[Not[LessEqual[y$46$re, 3.7e-12]], $MachinePrecision]], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -15500000000 \lor \neg \left(y.re \leq 3.7 \cdot 10^{-12}\right):\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
\end{array}
\end{array}
if y.re < -1.55e10 or 3.69999999999999999e-12 < y.re Initial program 33.3%
Taylor expanded in y.im around 0 73.9%
Taylor expanded in y.im around 0 68.4%
+-commutative68.4%
unpow268.4%
unpow268.4%
hypot-undefine69.2%
Simplified69.2%
if -1.55e10 < y.re < 3.69999999999999999e-12Initial program 52.7%
Taylor expanded in y.im around 0 39.3%
Taylor expanded in y.re around 0 56.1%
*-commutative56.1%
distribute-rgt-neg-in56.1%
Simplified56.1%
Final simplification62.5%
(FPCore (x.re x.im y.re y.im) :precision binary64 (if (or (<= y.re -2.06e+33) (not (<= y.re 2e+31))) (* (sin (* y.re (atan2 x.im x.re))) (pow x.re y.re)) (* y.re (* (atan2 x.im x.re) (exp (* (atan2 x.im x.re) (- y.im)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -2.06e+33) || !(y_46_re <= 2e+31)) {
tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * pow(x_46_re, y_46_re);
} else {
tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im)));
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: tmp
if ((y_46re <= (-2.06d+33)) .or. (.not. (y_46re <= 2d+31))) then
tmp = sin((y_46re * atan2(x_46im, x_46re))) * (x_46re ** y_46re)
else
tmp = y_46re * (atan2(x_46im, x_46re) * exp((atan2(x_46im, x_46re) * -y_46im)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double tmp;
if ((y_46_re <= -2.06e+33) || !(y_46_re <= 2e+31)) {
tmp = Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re))) * Math.pow(x_46_re, y_46_re);
} else {
tmp = y_46_re * (Math.atan2(x_46_im, x_46_re) * Math.exp((Math.atan2(x_46_im, x_46_re) * -y_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): tmp = 0 if (y_46_re <= -2.06e+33) or not (y_46_re <= 2e+31): tmp = math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) * math.pow(x_46_re, y_46_re) else: tmp = y_46_re * (math.atan2(x_46_im, x_46_re) * math.exp((math.atan2(x_46_im, x_46_re) * -y_46_im))) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0 if ((y_46_re <= -2.06e+33) || !(y_46_re <= 2e+31)) tmp = Float64(sin(Float64(y_46_re * atan(x_46_im, x_46_re))) * (x_46_re ^ y_46_re)); else tmp = Float64(y_46_re * Float64(atan(x_46_im, x_46_re) * exp(Float64(atan(x_46_im, x_46_re) * Float64(-y_46_im))))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = 0.0; if ((y_46_re <= -2.06e+33) || ~((y_46_re <= 2e+31))) tmp = sin((y_46_re * atan2(x_46_im, x_46_re))) * (x_46_re ^ y_46_re); else tmp = y_46_re * (atan2(x_46_im, x_46_re) * exp((atan2(x_46_im, x_46_re) * -y_46_im))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := If[Or[LessEqual[y$46$re, -2.06e+33], N[Not[LessEqual[y$46$re, 2e+31]], $MachinePrecision]], N[(N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], N[(y$46$re * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * (-y$46$im)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y.re \leq -2.06 \cdot 10^{+33} \lor \neg \left(y.re \leq 2 \cdot 10^{+31}\right):\\
\;\;\;\;\sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {x.re}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;y.re \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(-y.im\right)}\right)\\
\end{array}
\end{array}
if y.re < -2.05999999999999993e33 or 1.9999999999999999e31 < y.re Initial program 35.0%
Taylor expanded in y.im around 0 74.4%
Taylor expanded in x.im around 0 31.7%
*-commutative31.7%
*-commutative31.7%
Simplified31.7%
Taylor expanded in y.im around 0 55.2%
if -2.05999999999999993e33 < y.re < 1.9999999999999999e31Initial program 50.0%
Taylor expanded in y.im around 0 41.1%
Taylor expanded in y.re around 0 54.4%
*-commutative54.4%
distribute-rgt-neg-in54.4%
Simplified54.4%
Final simplification54.8%
(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 -1.15e+25) (not (<= y.re 2.9e+68)))
(* (sin t_0) (pow x.re y.re))
(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 tmp;
if ((y_46_re <= -1.15e+25) || !(y_46_re <= 2.9e+68)) {
tmp = sin(t_0) * pow(x_46_re, y_46_re);
} 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 tmp;
if ((y_46_re <= -1.15e+25) || !(y_46_re <= 2.9e+68)) {
tmp = Math.sin(t_0) * Math.pow(x_46_re, y_46_re);
} 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) tmp = 0 if (y_46_re <= -1.15e+25) or not (y_46_re <= 2.9e+68): tmp = math.sin(t_0) * math.pow(x_46_re, y_46_re) 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)) tmp = 0.0 if ((y_46_re <= -1.15e+25) || !(y_46_re <= 2.9e+68)) tmp = Float64(sin(t_0) * (x_46_re ^ y_46_re)); 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]}, If[Or[LessEqual[y$46$re, -1.15e+25], N[Not[LessEqual[y$46$re, 2.9e+68]], $MachinePrecision]], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$re, y$46$re], $MachinePrecision]), $MachinePrecision], 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}\\
\mathbf{if}\;y.re \leq -1.15 \cdot 10^{+25} \lor \neg \left(y.re \leq 2.9 \cdot 10^{+68}\right):\\
\;\;\;\;\sin t\_0 \cdot {x.re}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\end{array}
\end{array}
if y.re < -1.1499999999999999e25 or 2.90000000000000011e68 < y.re Initial program 36.3%
Taylor expanded in y.im around 0 75.3%
Taylor expanded in x.im around 0 32.0%
*-commutative32.0%
*-commutative32.0%
Simplified32.0%
Taylor expanded in y.im around 0 56.2%
if -1.1499999999999999e25 < y.re < 2.90000000000000011e68Initial program 48.6%
Taylor expanded in y.im around 0 41.3%
Taylor expanded in y.re around 0 52.9%
*-commutative52.9%
distribute-rgt-neg-in52.9%
Simplified52.9%
Taylor expanded in y.im around 0 22.8%
*-commutative22.8%
log1p-expm1-u26.8%
Applied egg-rr26.8%
Final simplification39.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))))
(if (or (<= y.im -1.12e+117) (not (<= y.im 2.15e+75)))
(+ (exp (log1p t_0)) -1.0)
(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 tmp;
if ((y_46_im <= -1.12e+117) || !(y_46_im <= 2.15e+75)) {
tmp = exp(log1p(t_0)) + -1.0;
} 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 tmp;
if ((y_46_im <= -1.12e+117) || !(y_46_im <= 2.15e+75)) {
tmp = Math.exp(Math.log1p(t_0)) + -1.0;
} 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) tmp = 0 if (y_46_im <= -1.12e+117) or not (y_46_im <= 2.15e+75): tmp = math.exp(math.log1p(t_0)) + -1.0 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)) tmp = 0.0 if ((y_46_im <= -1.12e+117) || !(y_46_im <= 2.15e+75)) tmp = Float64(exp(log1p(t_0)) + -1.0); 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]}, If[Or[LessEqual[y$46$im, -1.12e+117], N[Not[LessEqual[y$46$im, 2.15e+75]], $MachinePrecision]], N[(N[Exp[N[Log[1 + t$95$0], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision], 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}\\
\mathbf{if}\;y.im \leq -1.12 \cdot 10^{+117} \lor \neg \left(y.im \leq 2.15 \cdot 10^{+75}\right):\\
\;\;\;\;e^{\mathsf{log1p}\left(t\_0\right)} + -1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\end{array}
\end{array}
if y.im < -1.12000000000000002e117 or 2.1500000000000001e75 < y.im Initial program 39.5%
Taylor expanded in y.im around 0 62.1%
Taylor expanded in y.re around 0 57.1%
*-commutative57.1%
distribute-rgt-neg-in57.1%
Simplified57.1%
Taylor expanded in y.im around 0 3.8%
*-commutative3.8%
expm1-log1p-u3.4%
expm1-undefine23.2%
Applied egg-rr23.2%
if -1.12000000000000002e117 < y.im < 2.1500000000000001e75Initial program 44.8%
Taylor expanded in y.im around 0 53.7%
Taylor expanded in y.re around 0 29.4%
*-commutative29.4%
distribute-rgt-neg-in29.4%
Simplified29.4%
Taylor expanded in y.im around 0 20.3%
*-commutative20.3%
log1p-expm1-u32.9%
Applied egg-rr32.9%
Final simplification29.8%
(FPCore (x.re x.im y.re y.im) :precision binary64 (let* ((t_0 (* y.re (atan2 x.im x.re)))) (if (<= y.im 450000000.0) (log1p (expm1 t_0)) (cbrt (pow t_0 3.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_im <= 450000000.0) {
tmp = log1p(expm1(t_0));
} else {
tmp = cbrt(pow(t_0, 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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if (y_46_im <= 450000000.0) {
tmp = Math.log1p(Math.expm1(t_0));
} else {
tmp = Math.cbrt(Math.pow(t_0, 3.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_im <= 450000000.0) tmp = log1p(expm1(t_0)); else tmp = cbrt((t_0 ^ 3.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[LessEqual[y$46$im, 450000000.0], N[Log[1 + N[(Exp[t$95$0] - 1), $MachinePrecision]], $MachinePrecision], N[Power[N[Power[t$95$0, 3.0], $MachinePrecision], 1/3], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.im \leq 450000000:\\
\;\;\;\;\mathsf{log1p}\left(\mathsf{expm1}\left(t\_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{t\_0}^{3}}\\
\end{array}
\end{array}
if y.im < 4.5e8Initial program 44.9%
Taylor expanded in y.im around 0 56.3%
Taylor expanded in y.re around 0 34.8%
*-commutative34.8%
distribute-rgt-neg-in34.8%
Simplified34.8%
Taylor expanded in y.im around 0 18.7%
*-commutative18.7%
log1p-expm1-u28.5%
Applied egg-rr28.5%
if 4.5e8 < y.im Initial program 37.3%
Taylor expanded in y.im around 0 56.3%
Taylor expanded in y.re around 0 49.5%
*-commutative49.5%
distribute-rgt-neg-in49.5%
Simplified49.5%
Taylor expanded in y.im around 0 2.8%
*-commutative2.8%
add-cbrt-cube23.4%
pow323.4%
Applied egg-rr23.4%
Final simplification27.3%
(FPCore (x.re x.im y.re y.im) :precision binary64 (log1p (expm1 (* 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 log1p(expm1((y_46_re * atan2(x_46_im, x_46_re))));
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return Math.log1p(Math.expm1((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 math.log1p(math.expm1((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 log1p(expm1(Float64(y_46_re * atan(x_46_im, x_46_re)))) end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[Log[1 + N[(Exp[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\mathsf{log1p}\left(\mathsf{expm1}\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\right)
\end{array}
Initial program 43.1%
Taylor expanded in y.im around 0 56.3%
Taylor expanded in y.re around 0 38.2%
*-commutative38.2%
distribute-rgt-neg-in38.2%
Simplified38.2%
Taylor expanded in y.im around 0 15.0%
*-commutative15.0%
log1p-expm1-u25.1%
Applied egg-rr25.1%
Final simplification25.1%
(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 43.1%
Taylor expanded in y.im around 0 56.3%
Taylor expanded in y.re around 0 38.2%
*-commutative38.2%
distribute-rgt-neg-in38.2%
Simplified38.2%
Taylor expanded in y.im around 0 15.0%
Final simplification15.0%
herbie shell --seed 2024079
(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)))))