
(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 20 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))))
(*
(exp (- (* 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(((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(Float64(Float64(t_0 * y_46_re) - Float64(atan(x_46_im, x_46_re) * 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[(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[(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^{t_0 \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \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 40.7%
Simplified82.9%
Final simplification82.9%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(t_3 (* (exp (- (* y.re t_2) t_0)) (sin (+ t_1 (* y.im t_2))))))
(if (<= t_3 INFINITY)
t_3
(* (exp (- (* (log (hypot x.re x.im)) y.re) t_0)) (sin t_1)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = exp(((y_46_re * t_2) - t_0)) * sin((t_1 + (y_46_im * t_2)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = exp(((log(hypot(x_46_re, x_46_im)) * y_46_re) - t_0)) * sin(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.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))));
double t_3 = Math.exp(((y_46_re * t_2) - t_0)) * Math.sin((t_1 + (y_46_im * t_2)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = Math.exp(((Math.log(Math.hypot(x_46_re, x_46_im)) * y_46_re) - t_0)) * Math.sin(t_1);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) t_3 = math.exp(((y_46_re * t_2) - t_0)) * math.sin((t_1 + (y_46_im * t_2))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = math.exp(((math.log(math.hypot(x_46_re, x_46_im)) * y_46_re) - t_0)) * math.sin(t_1) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) t_3 = Float64(exp(Float64(Float64(y_46_re * t_2) - t_0)) * sin(Float64(t_1 + Float64(y_46_im * t_2)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(exp(Float64(Float64(log(hypot(x_46_re, x_46_im)) * y_46_re) - t_0)) * sin(t_1)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))); t_3 = exp(((y_46_re * t_2) - t_0)) * sin((t_1 + (y_46_im * t_2))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = exp(((log(hypot(x_46_re, x_46_im)) * y_46_re) - t_0)) * sin(t_1); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $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[(N[Exp[N[(N[(y$46$re * t$95$2), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(t$95$1 + N[(y$46$im * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(N[Exp[N[(N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)\\
t_3 := e^{y.re \cdot t_2 - t_0} \cdot \sin \left(t_1 + y.im \cdot t_2\right)\\
\mathbf{if}\;t_3 \leq \infty:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;e^{\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) \cdot y.re - t_0} \cdot \sin t_1\\
\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 83.5%
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%
Simplified82.3%
Taylor expanded in y.im around 0 65.5%
Final simplification74.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)))
(if (or (<= y.re -2600000.0) (not (<= y.re 0.122)))
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
(sin (* y.im (log (hypot x.im x.re)))))
(/
(*
(pow (hypot x.re x.im) y.re)
(sin (fma y.re (atan2 x.im x.re) (* (log (hypot x.re x.im)) y.im))))
(exp t_0)))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double tmp;
if ((y_46_re <= -2600000.0) || !(y_46_re <= 0.122)) {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * sin((y_46_im * log(hypot(x_46_im, x_46_re))));
} else {
tmp = (pow(hypot(x_46_re, x_46_im), y_46_re) * sin(fma(y_46_re, atan2(x_46_im, x_46_re), (log(hypot(x_46_re, x_46_im)) * y_46_im)))) / exp(t_0);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) tmp = 0.0 if ((y_46_re <= -2600000.0) || !(y_46_re <= 0.122)) 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))))) - t_0)) * sin(Float64(y_46_im * log(hypot(x_46_im, x_46_re))))); else tmp = Float64(Float64((hypot(x_46_re, x_46_im) ^ y_46_re) * sin(fma(y_46_re, atan(x_46_im, x_46_re), Float64(log(hypot(x_46_re, x_46_im)) * y_46_im)))) / exp(t_0)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, If[Or[LessEqual[y$46$re, -2600000.0], N[Not[LessEqual[y$46$re, 0.122]], $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] - t$95$0), $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[(N[Power[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision], y$46$re], $MachinePrecision] * N[Sin[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]], $MachinePrecision]), $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
\mathbf{if}\;y.re \leq -2600000 \lor \neg \left(y.re \leq 0.122\right):\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t_0} \cdot \sin \left(y.im \cdot \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\mathsf{hypot}\left(x.re, x.im\right)\right)}^{y.re} \cdot \sin \left(\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)}{e^{t_0}}\\
\end{array}
\end{array}
if y.re < -2.6e6 or 0.122 < y.re Initial program 40.7%
Taylor expanded in y.re around 0 44.3%
unpow244.3%
unpow244.3%
hypot-def81.6%
Simplified81.6%
if -2.6e6 < y.re < 0.122Initial program 40.8%
exp-diff40.8%
+-rgt-identity40.8%
+-rgt-identity40.8%
exp-to-pow40.8%
hypot-def40.8%
*-commutative40.8%
exp-prod40.5%
+-commutative40.5%
*-commutative40.5%
Simplified81.5%
Taylor expanded in y.re around inf 82.0%
Final simplification81.8%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (hypot x.re x.im)))
(t_3 (exp (- (* t_2 y.re) t_0))))
(if (<= x.re -1.06e-211)
(* t_3 (sin (fma y.re (atan2 x.im x.re) (* y.im (log (- x.re))))))
(if (<= x.re -8.6e-289)
(/ (sin (* t_2 y.im)) (exp t_0))
(if (<= x.re 1.6e-288)
(* (sin (pow (cbrt t_1) 3.0)) (pow (hypot x.im x.re) y.re))
(if (<= x.re 7e-27)
(* t_3 (sin t_1))
(/
(sin (+ t_1 (* y.im (log x.re))))
(exp (- t_0 (* y.re (log x.re)))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log(hypot(x_46_re, x_46_im));
double t_3 = exp(((t_2 * y_46_re) - t_0));
double tmp;
if (x_46_re <= -1.06e-211) {
tmp = t_3 * sin(fma(y_46_re, atan2(x_46_im, x_46_re), (y_46_im * log(-x_46_re))));
} else if (x_46_re <= -8.6e-289) {
tmp = sin((t_2 * y_46_im)) / exp(t_0);
} else if (x_46_re <= 1.6e-288) {
tmp = sin(pow(cbrt(t_1), 3.0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (x_46_re <= 7e-27) {
tmp = t_3 * sin(t_1);
} else {
tmp = sin((t_1 + (y_46_im * log(x_46_re)))) / exp((t_0 - (y_46_re * log(x_46_re))));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(hypot(x_46_re, x_46_im)) t_3 = exp(Float64(Float64(t_2 * y_46_re) - t_0)) tmp = 0.0 if (x_46_re <= -1.06e-211) tmp = Float64(t_3 * sin(fma(y_46_re, atan(x_46_im, x_46_re), Float64(y_46_im * log(Float64(-x_46_re)))))); elseif (x_46_re <= -8.6e-289) tmp = Float64(sin(Float64(t_2 * y_46_im)) / exp(t_0)); elseif (x_46_re <= 1.6e-288) tmp = Float64(sin((cbrt(t_1) ^ 3.0)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (x_46_re <= 7e-27) tmp = Float64(t_3 * sin(t_1)); else tmp = Float64(sin(Float64(t_1 + Float64(y_46_im * log(x_46_re)))) / exp(Float64(t_0 - Float64(y_46_re * 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1.06e-211], N[(t$95$3 * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(y$46$im * N[Log[(-x$46$re)], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, -8.6e-289], N[(N[Sin[N[(t$95$2 * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 1.6e-288], N[(N[Sin[N[Power[N[Power[t$95$1, 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], If[LessEqual[x$46$re, 7e-27], N[(t$95$3 * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(t$95$1 + N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(t$95$0 - N[(y$46$re * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_3 := e^{t_2 \cdot y.re - t_0}\\
\mathbf{if}\;x.re \leq -1.06 \cdot 10^{-211}:\\
\;\;\;\;t_3 \cdot \sin \left(\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, y.im \cdot \log \left(-x.re\right)\right)\right)\\
\mathbf{elif}\;x.re \leq -8.6 \cdot 10^{-289}:\\
\;\;\;\;\frac{\sin \left(t_2 \cdot y.im\right)}{e^{t_0}}\\
\mathbf{elif}\;x.re \leq 1.6 \cdot 10^{-288}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{t_1}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;x.re \leq 7 \cdot 10^{-27}:\\
\;\;\;\;t_3 \cdot \sin t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(t_1 + y.im \cdot \log x.re\right)}{e^{t_0 - y.re \cdot \log x.re}}\\
\end{array}
\end{array}
if x.re < -1.0600000000000001e-211Initial program 38.4%
Simplified83.8%
Taylor expanded in x.re around -inf 82.2%
+-commutative82.2%
mul-1-neg82.2%
*-commutative82.2%
unsub-neg82.2%
*-commutative82.2%
Simplified82.2%
expm1-log1p-u82.2%
expm1-udef61.2%
fma-neg61.2%
distribute-rgt-neg-in61.2%
neg-log61.2%
clear-num61.2%
div-inv61.2%
metadata-eval61.2%
Applied egg-rr61.2%
expm1-def82.3%
expm1-log1p82.3%
*-commutative82.3%
mul-1-neg82.3%
Simplified82.3%
if -1.0600000000000001e-211 < x.re < -8.5999999999999995e-289Initial program 62.3%
exp-diff62.3%
+-rgt-identity62.3%
+-rgt-identity62.3%
exp-to-pow62.3%
hypot-def62.3%
*-commutative62.3%
exp-prod62.3%
+-commutative62.3%
*-commutative62.3%
Simplified80.9%
Taylor expanded in y.re around 0 51.3%
+-commutative51.3%
unpow251.3%
unpow251.3%
Simplified51.3%
hypot-udef82.4%
expm1-log1p-u82.4%
expm1-udef44.7%
Applied egg-rr44.7%
expm1-def82.4%
expm1-log1p82.4%
Simplified82.4%
if -8.5999999999999995e-289 < x.re < 1.6e-288Initial program 42.9%
exp-diff28.6%
+-rgt-identity28.6%
+-rgt-identity28.6%
exp-to-pow28.6%
hypot-def28.6%
*-commutative28.6%
exp-prod28.6%
+-commutative28.6%
*-commutative28.6%
Simplified56.9%
Taylor expanded in y.im around 0 43.8%
unpow243.8%
unpow243.8%
hypot-def57.4%
Simplified57.4%
*-commutative43.3%
add-cube-cbrt71.9%
pow371.9%
Applied egg-rr85.5%
if 1.6e-288 < x.re < 7.0000000000000003e-27Initial program 56.8%
Simplified86.1%
Taylor expanded in y.im around 0 74.0%
if 7.0000000000000003e-27 < x.re Initial program 24.5%
exp-diff22.9%
+-rgt-identity22.9%
+-rgt-identity22.9%
exp-to-pow22.9%
hypot-def22.9%
*-commutative22.9%
exp-prod22.4%
+-commutative22.4%
*-commutative22.4%
Simplified71.0%
Taylor expanded in x.re around inf 68.8%
associate-/l*68.8%
+-commutative68.8%
mul-1-neg68.8%
unsub-neg68.8%
*-commutative68.8%
log-rec68.8%
*-commutative68.8%
*-commutative68.8%
div-exp73.6%
*-commutative73.6%
Simplified73.6%
Final simplification78.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im)) (t_1 (log (hypot x.re x.im))))
(if (<= y.re -2.1e-106)
(* (exp (- (* t_1 y.re) t_0)) (sin (* y.re (atan2 x.im x.re))))
(if (<= y.re 7.2e-6)
(/ (sin (* t_1 y.im)) (exp t_0))
(*
(exp (- (* y.re (log (sqrt (+ (* x.re x.re) (* x.im x.im))))) t_0))
(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 t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = log(hypot(x_46_re, x_46_im));
double tmp;
if (y_46_re <= -2.1e-106) {
tmp = exp(((t_1 * y_46_re) - t_0)) * sin((y_46_re * atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 7.2e-6) {
tmp = sin((t_1 * y_46_im)) / exp(t_0);
} else {
tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * 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 t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = Math.log(Math.hypot(x_46_re, x_46_im));
double tmp;
if (y_46_re <= -2.1e-106) {
tmp = Math.exp(((t_1 * y_46_re) - t_0)) * Math.sin((y_46_re * Math.atan2(x_46_im, x_46_re)));
} else if (y_46_re <= 7.2e-6) {
tmp = Math.sin((t_1 * y_46_im)) / Math.exp(t_0);
} else {
tmp = Math.exp(((y_46_re * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * 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): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = math.log(math.hypot(x_46_re, x_46_im)) tmp = 0 if y_46_re <= -2.1e-106: tmp = math.exp(((t_1 * y_46_re) - t_0)) * math.sin((y_46_re * math.atan2(x_46_im, x_46_re))) elif y_46_re <= 7.2e-6: tmp = math.sin((t_1 * y_46_im)) / math.exp(t_0) else: tmp = math.exp(((y_46_re * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * 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) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = log(hypot(x_46_re, x_46_im)) tmp = 0.0 if (y_46_re <= -2.1e-106) tmp = Float64(exp(Float64(Float64(t_1 * y_46_re) - t_0)) * sin(Float64(y_46_re * atan(x_46_im, x_46_re)))); elseif (y_46_re <= 7.2e-6) tmp = Float64(sin(Float64(t_1 * y_46_im)) / exp(t_0)); else 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))))) - t_0)) * 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) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = log(hypot(x_46_re, x_46_im)); tmp = 0.0; if (y_46_re <= -2.1e-106) tmp = exp(((t_1 * y_46_re) - t_0)) * sin((y_46_re * atan2(x_46_im, x_46_re))); elseif (y_46_re <= 7.2e-6) tmp = sin((t_1 * y_46_im)) / exp(t_0); else tmp = exp(((y_46_re * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) - t_0)) * 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_] := Block[{t$95$0 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -2.1e-106], N[(N[Exp[N[(N[(t$95$1 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 7.2e-6], N[(N[Sin[N[(t$95$1 * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $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] - t$95$0), $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]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
\mathbf{if}\;y.re \leq -2.1 \cdot 10^{-106}:\\
\;\;\;\;e^{t_1 \cdot y.re - t_0} \cdot \sin \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;y.re \leq 7.2 \cdot 10^{-6}:\\
\;\;\;\;\frac{\sin \left(t_1 \cdot y.im\right)}{e^{t_0}}\\
\mathbf{else}:\\
\;\;\;\;e^{y.re \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) - t_0} \cdot \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.10000000000000003e-106Initial program 41.7%
Simplified90.2%
Taylor expanded in y.im around 0 81.9%
if -2.10000000000000003e-106 < y.re < 7.19999999999999967e-6Initial program 37.4%
exp-diff37.4%
+-rgt-identity37.4%
+-rgt-identity37.4%
exp-to-pow37.4%
hypot-def37.4%
*-commutative37.4%
exp-prod37.0%
+-commutative37.0%
*-commutative37.0%
Simplified76.9%
Taylor expanded in y.re around 0 33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
Simplified33.1%
hypot-udef63.4%
expm1-log1p-u63.4%
expm1-udef47.2%
Applied egg-rr47.2%
expm1-def63.4%
expm1-log1p63.4%
Simplified63.4%
if 7.19999999999999967e-6 < y.re Initial program 43.2%
Taylor expanded in y.re around 0 45.8%
unpow245.8%
unpow245.8%
hypot-def74.3%
Simplified74.3%
Final simplification73.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (hypot x.re x.im)))
(t_3 (exp (- (* t_2 y.re) t_0))))
(if (<= x.re -1.06e-211)
(* t_3 (sin (- t_1 (* y.im (log (/ -1.0 x.re))))))
(if (<= x.re -9.6e-289)
(/ (sin (* t_2 y.im)) (exp t_0))
(if (<= x.re 1.62e-288)
(* (sin (pow (cbrt t_1) 3.0)) (pow (hypot x.im x.re) y.re))
(if (<= x.re 1.6e-26)
(* t_3 (sin t_1))
(/
(sin (+ t_1 (* y.im (log x.re))))
(exp (- t_0 (* y.re (log x.re)))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log(hypot(x_46_re, x_46_im));
double t_3 = exp(((t_2 * y_46_re) - t_0));
double tmp;
if (x_46_re <= -1.06e-211) {
tmp = t_3 * sin((t_1 - (y_46_im * log((-1.0 / x_46_re)))));
} else if (x_46_re <= -9.6e-289) {
tmp = sin((t_2 * y_46_im)) / exp(t_0);
} else if (x_46_re <= 1.62e-288) {
tmp = sin(pow(cbrt(t_1), 3.0)) * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (x_46_re <= 1.6e-26) {
tmp = t_3 * sin(t_1);
} else {
tmp = sin((t_1 + (y_46_im * log(x_46_re)))) / exp((t_0 - (y_46_re * 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 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log(Math.hypot(x_46_re, x_46_im));
double t_3 = Math.exp(((t_2 * y_46_re) - t_0));
double tmp;
if (x_46_re <= -1.06e-211) {
tmp = t_3 * Math.sin((t_1 - (y_46_im * Math.log((-1.0 / x_46_re)))));
} else if (x_46_re <= -9.6e-289) {
tmp = Math.sin((t_2 * y_46_im)) / Math.exp(t_0);
} else if (x_46_re <= 1.62e-288) {
tmp = Math.sin(Math.pow(Math.cbrt(t_1), 3.0)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (x_46_re <= 1.6e-26) {
tmp = t_3 * Math.sin(t_1);
} else {
tmp = Math.sin((t_1 + (y_46_im * Math.log(x_46_re)))) / Math.exp((t_0 - (y_46_re * Math.log(x_46_re))));
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(hypot(x_46_re, x_46_im)) t_3 = exp(Float64(Float64(t_2 * y_46_re) - t_0)) tmp = 0.0 if (x_46_re <= -1.06e-211) tmp = Float64(t_3 * sin(Float64(t_1 - Float64(y_46_im * log(Float64(-1.0 / x_46_re)))))); elseif (x_46_re <= -9.6e-289) tmp = Float64(sin(Float64(t_2 * y_46_im)) / exp(t_0)); elseif (x_46_re <= 1.62e-288) tmp = Float64(sin((cbrt(t_1) ^ 3.0)) * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (x_46_re <= 1.6e-26) tmp = Float64(t_3 * sin(t_1)); else tmp = Float64(sin(Float64(t_1 + Float64(y_46_im * log(x_46_re)))) / exp(Float64(t_0 - Float64(y_46_re * 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$re, -1.06e-211], N[(t$95$3 * N[Sin[N[(t$95$1 - N[(y$46$im * N[Log[N[(-1.0 / x$46$re), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, -9.6e-289], N[(N[Sin[N[(t$95$2 * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 1.62e-288], N[(N[Sin[N[Power[N[Power[t$95$1, 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], If[LessEqual[x$46$re, 1.6e-26], N[(t$95$3 * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(t$95$1 + N[(y$46$im * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(t$95$0 - N[(y$46$re * N[Log[x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_3 := e^{t_2 \cdot y.re - t_0}\\
\mathbf{if}\;x.re \leq -1.06 \cdot 10^{-211}:\\
\;\;\;\;t_3 \cdot \sin \left(t_1 - y.im \cdot \log \left(\frac{-1}{x.re}\right)\right)\\
\mathbf{elif}\;x.re \leq -9.6 \cdot 10^{-289}:\\
\;\;\;\;\frac{\sin \left(t_2 \cdot y.im\right)}{e^{t_0}}\\
\mathbf{elif}\;x.re \leq 1.62 \cdot 10^{-288}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{t_1}\right)}^{3}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;x.re \leq 1.6 \cdot 10^{-26}:\\
\;\;\;\;t_3 \cdot \sin t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(t_1 + y.im \cdot \log x.re\right)}{e^{t_0 - y.re \cdot \log x.re}}\\
\end{array}
\end{array}
if x.re < -1.0600000000000001e-211Initial program 38.4%
Simplified83.8%
Taylor expanded in x.re around -inf 82.2%
+-commutative82.2%
mul-1-neg82.2%
*-commutative82.2%
unsub-neg82.2%
*-commutative82.2%
Simplified82.2%
if -1.0600000000000001e-211 < x.re < -9.59999999999999975e-289Initial program 62.3%
exp-diff62.3%
+-rgt-identity62.3%
+-rgt-identity62.3%
exp-to-pow62.3%
hypot-def62.3%
*-commutative62.3%
exp-prod62.3%
+-commutative62.3%
*-commutative62.3%
Simplified80.9%
Taylor expanded in y.re around 0 51.3%
+-commutative51.3%
unpow251.3%
unpow251.3%
Simplified51.3%
hypot-udef82.4%
expm1-log1p-u82.4%
expm1-udef44.7%
Applied egg-rr44.7%
expm1-def82.4%
expm1-log1p82.4%
Simplified82.4%
if -9.59999999999999975e-289 < x.re < 1.6200000000000001e-288Initial program 42.9%
exp-diff28.6%
+-rgt-identity28.6%
+-rgt-identity28.6%
exp-to-pow28.6%
hypot-def28.6%
*-commutative28.6%
exp-prod28.6%
+-commutative28.6%
*-commutative28.6%
Simplified56.9%
Taylor expanded in y.im around 0 43.8%
unpow243.8%
unpow243.8%
hypot-def57.4%
Simplified57.4%
*-commutative43.3%
add-cube-cbrt71.9%
pow371.9%
Applied egg-rr85.5%
if 1.6200000000000001e-288 < x.re < 1.6000000000000001e-26Initial program 56.8%
Simplified86.1%
Taylor expanded in y.im around 0 74.0%
if 1.6000000000000001e-26 < x.re Initial program 24.5%
exp-diff22.9%
+-rgt-identity22.9%
+-rgt-identity22.9%
exp-to-pow22.9%
hypot-def22.9%
*-commutative22.9%
exp-prod22.4%
+-commutative22.4%
*-commutative22.4%
Simplified71.0%
Taylor expanded in x.re around inf 68.8%
associate-/l*68.8%
+-commutative68.8%
mul-1-neg68.8%
unsub-neg68.8%
*-commutative68.8%
log-rec68.8%
*-commutative68.8%
*-commutative68.8%
div-exp73.6%
*-commutative73.6%
Simplified73.6%
Final simplification78.4%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.im))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (log (hypot x.re x.im)))
(t_3 (* (exp (- (* t_2 y.re) t_0)) (sin t_1))))
(if (<= y.re -7.4e-106)
t_3
(if (<= y.re 5.2e-24)
(/ (sin (* t_2 y.im)) (exp t_0))
(if (or (<= y.re 4.9e+196) (not (<= y.re 7.8e+279)))
t_3
(* (sin (fabs t_1)) (pow x.im y.re)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = log(hypot(x_46_re, x_46_im));
double t_3 = exp(((t_2 * y_46_re) - t_0)) * sin(t_1);
double tmp;
if (y_46_re <= -7.4e-106) {
tmp = t_3;
} else if (y_46_re <= 5.2e-24) {
tmp = sin((t_2 * y_46_im)) / exp(t_0);
} else if ((y_46_re <= 4.9e+196) || !(y_46_re <= 7.8e+279)) {
tmp = t_3;
} else {
tmp = sin(fabs(t_1)) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = Math.log(Math.hypot(x_46_re, x_46_im));
double t_3 = Math.exp(((t_2 * y_46_re) - t_0)) * Math.sin(t_1);
double tmp;
if (y_46_re <= -7.4e-106) {
tmp = t_3;
} else if (y_46_re <= 5.2e-24) {
tmp = Math.sin((t_2 * y_46_im)) / Math.exp(t_0);
} else if ((y_46_re <= 4.9e+196) || !(y_46_re <= 7.8e+279)) {
tmp = t_3;
} else {
tmp = Math.sin(Math.abs(t_1)) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.atan2(x_46_im, x_46_re) * y_46_im t_1 = y_46_re * math.atan2(x_46_im, x_46_re) t_2 = math.log(math.hypot(x_46_re, x_46_im)) t_3 = math.exp(((t_2 * y_46_re) - t_0)) * math.sin(t_1) tmp = 0 if y_46_re <= -7.4e-106: tmp = t_3 elif y_46_re <= 5.2e-24: tmp = math.sin((t_2 * y_46_im)) / math.exp(t_0) elif (y_46_re <= 4.9e+196) or not (y_46_re <= 7.8e+279): tmp = t_3 else: tmp = math.sin(math.fabs(t_1)) * math.pow(x_46_im, y_46_re) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = log(hypot(x_46_re, x_46_im)) t_3 = Float64(exp(Float64(Float64(t_2 * y_46_re) - t_0)) * sin(t_1)) tmp = 0.0 if (y_46_re <= -7.4e-106) tmp = t_3; elseif (y_46_re <= 5.2e-24) tmp = Float64(sin(Float64(t_2 * y_46_im)) / exp(t_0)); elseif ((y_46_re <= 4.9e+196) || !(y_46_re <= 7.8e+279)) tmp = t_3; else tmp = Float64(sin(abs(t_1)) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = atan2(x_46_im, x_46_re) * y_46_im; t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = log(hypot(x_46_re, x_46_im)); t_3 = exp(((t_2 * y_46_re) - t_0)) * sin(t_1); tmp = 0.0; if (y_46_re <= -7.4e-106) tmp = t_3; elseif (y_46_re <= 5.2e-24) tmp = sin((t_2 * y_46_im)) / exp(t_0); elseif ((y_46_re <= 4.9e+196) || ~((y_46_re <= 7.8e+279))) tmp = t_3; else tmp = sin(abs(t_1)) * (x_46_im ^ 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[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$1 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[Exp[N[(N[(t$95$2 * y$46$re), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -7.4e-106], t$95$3, If[LessEqual[y$46$re, 5.2e-24], N[(N[Sin[N[(t$95$2 * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[t$95$0], $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y$46$re, 4.9e+196], N[Not[LessEqual[y$46$re, 7.8e+279]], $MachinePrecision]], t$95$3, N[(N[Sin[N[Abs[t$95$1], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := \log \left(\mathsf{hypot}\left(x.re, x.im\right)\right)\\
t_3 := e^{t_2 \cdot y.re - t_0} \cdot \sin t_1\\
\mathbf{if}\;y.re \leq -7.4 \cdot 10^{-106}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y.re \leq 5.2 \cdot 10^{-24}:\\
\;\;\;\;\frac{\sin \left(t_2 \cdot y.im\right)}{e^{t_0}}\\
\mathbf{elif}\;y.re \leq 4.9 \cdot 10^{+196} \lor \neg \left(y.re \leq 7.8 \cdot 10^{+279}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_1\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -7.39999999999999959e-106 or 5.2e-24 < y.re < 4.8999999999999999e196 or 7.80000000000000038e279 < y.re Initial program 41.3%
Simplified87.1%
Taylor expanded in y.im around 0 79.1%
if -7.39999999999999959e-106 < y.re < 5.2e-24Initial program 39.2%
exp-diff39.2%
+-rgt-identity39.2%
+-rgt-identity39.2%
exp-to-pow39.2%
hypot-def39.2%
*-commutative39.2%
exp-prod38.8%
+-commutative38.8%
*-commutative38.8%
Simplified77.0%
Taylor expanded in y.re around 0 34.8%
+-commutative34.8%
unpow234.8%
unpow234.8%
Simplified34.8%
hypot-udef64.1%
expm1-log1p-u64.1%
expm1-udef47.0%
Applied egg-rr47.0%
expm1-def64.1%
expm1-log1p64.1%
Simplified64.1%
if 4.8999999999999999e196 < y.re < 7.80000000000000038e279Initial program 42.9%
exp-diff42.9%
+-rgt-identity42.9%
+-rgt-identity42.9%
exp-to-pow42.9%
hypot-def42.9%
*-commutative42.9%
exp-prod42.9%
+-commutative42.9%
*-commutative42.9%
Simplified66.7%
Taylor expanded in y.im around 0 57.1%
unpow257.1%
unpow257.1%
hypot-def57.1%
Simplified57.1%
Taylor expanded in x.re around 0 52.6%
*-commutative52.6%
add-sqr-sqrt24.0%
sqrt-unprod19.2%
pow219.2%
Applied egg-rr19.2%
*-commutative19.2%
unpow219.2%
rem-sqrt-square76.4%
Simplified76.4%
Final simplification74.2%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re)))
(t_2 (log (hypot x.im x.re))))
(if (<= y.re -4.7e-39)
t_1
(if (<= y.re -4.3e-82)
(/
(sin (* (log (hypot x.re x.im)) y.im))
(exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re -7.8e-106)
(fma
y.re
(atan2 x.im x.re)
(* t_2 (* (atan2 x.im x.re) (* y.re y.re))))
(if (<= y.re 1.1e+62)
(/ (sin (* y.im t_2)) (pow (exp y.im) (atan2 x.im x.re)))
(if (<= y.re 3.45e+133)
t_1
(if (<= y.re 2.4e+213)
(* (sin (pow (cbrt t_0) 3.0)) (pow x.im y.re))
(* (sin (fabs t_0)) (pow x.im 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 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double t_2 = log(hypot(x_46_im, x_46_re));
double tmp;
if (y_46_re <= -4.7e-39) {
tmp = t_1;
} else if (y_46_re <= -4.3e-82) {
tmp = sin((log(hypot(x_46_re, x_46_im)) * y_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= -7.8e-106) {
tmp = fma(y_46_re, atan2(x_46_im, x_46_re), (t_2 * (atan2(x_46_im, x_46_re) * (y_46_re * y_46_re))));
} else if (y_46_re <= 1.1e+62) {
tmp = sin((y_46_im * t_2)) / pow(exp(y_46_im), atan2(x_46_im, x_46_re));
} else if (y_46_re <= 3.45e+133) {
tmp = t_1;
} else if (y_46_re <= 2.4e+213) {
tmp = sin(pow(cbrt(t_0), 3.0)) * pow(x_46_im, y_46_re);
} else {
tmp = sin(fabs(t_0)) * pow(x_46_im, 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 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) t_2 = log(hypot(x_46_im, x_46_re)) tmp = 0.0 if (y_46_re <= -4.7e-39) tmp = t_1; elseif (y_46_re <= -4.3e-82) tmp = Float64(sin(Float64(log(hypot(x_46_re, x_46_im)) * y_46_im)) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= -7.8e-106) tmp = fma(y_46_re, atan(x_46_im, x_46_re), Float64(t_2 * Float64(atan(x_46_im, x_46_re) * Float64(y_46_re * y_46_re)))); elseif (y_46_re <= 1.1e+62) tmp = Float64(sin(Float64(y_46_im * t_2)) / (exp(y_46_im) ^ atan(x_46_im, x_46_re))); elseif (y_46_re <= 3.45e+133) tmp = t_1; elseif (y_46_re <= 2.4e+213) tmp = Float64(sin((cbrt(t_0) ^ 3.0)) * (x_46_im ^ y_46_re)); else tmp = Float64(sin(abs(t_0)) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -4.7e-39], t$95$1, If[LessEqual[y$46$re, -4.3e-82], N[(N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, -7.8e-106], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(t$95$2 * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(y$46$re * y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 1.1e+62], N[(N[Sin[N[(y$46$im * t$95$2), $MachinePrecision]], $MachinePrecision] / N[Power[N[Exp[y$46$im], $MachinePrecision], N[ArcTan[x$46$im / x$46$re], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.45e+133], t$95$1, If[LessEqual[y$46$re, 2.4e+213], N[(N[Sin[N[Power[N[Power[t$95$0, 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[Abs[t$95$0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, 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 := t_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_2 := \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right)\\
\mathbf{if}\;y.re \leq -4.7 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq -4.3 \cdot 10^{-82}:\\
\;\;\;\;\frac{\sin \left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) \cdot y.im\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq -7.8 \cdot 10^{-106}:\\
\;\;\;\;\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, t_2 \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(y.re \cdot y.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 1.1 \cdot 10^{+62}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot t_2\right)}{{\left(e^{y.im}\right)}^{\tan^{-1}_* \frac{x.im}{x.re}}}\\
\mathbf{elif}\;y.re \leq 3.45 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq 2.4 \cdot 10^{+213}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{t_0}\right)}^{3}\right) \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_0\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -4.7000000000000002e-39 or 1.10000000000000007e62 < y.re < 3.4500000000000001e133Initial program 38.2%
exp-diff31.5%
+-rgt-identity31.5%
+-rgt-identity31.5%
exp-to-pow31.5%
hypot-def31.5%
*-commutative31.5%
exp-prod31.5%
+-commutative31.5%
*-commutative31.5%
Simplified67.4%
Taylor expanded in y.im around 0 71.1%
unpow271.1%
unpow271.1%
hypot-def75.4%
Simplified75.4%
*-commutative75.4%
add-exp-log43.7%
Applied egg-rr43.7%
Taylor expanded in y.re around 0 84.3%
if -4.7000000000000002e-39 < y.re < -4.30000000000000019e-82Initial program 33.2%
exp-diff33.2%
+-rgt-identity33.2%
+-rgt-identity33.2%
exp-to-pow33.2%
hypot-def33.2%
*-commutative33.2%
exp-prod33.2%
+-commutative33.2%
*-commutative33.2%
Simplified89.1%
Taylor expanded in y.re around 0 22.3%
+-commutative22.3%
unpow222.3%
unpow222.3%
Simplified22.3%
hypot-udef69.1%
expm1-log1p-u69.1%
expm1-udef58.1%
Applied egg-rr58.1%
expm1-def69.1%
expm1-log1p69.1%
Simplified69.1%
if -4.30000000000000019e-82 < y.re < -7.80000000000000019e-106Initial program 63.4%
exp-diff63.4%
+-rgt-identity63.4%
+-rgt-identity63.4%
exp-to-pow63.4%
hypot-def63.4%
*-commutative63.4%
exp-prod63.4%
+-commutative63.4%
*-commutative63.4%
Simplified99.7%
Taylor expanded in y.im around 0 51.8%
unpow251.8%
unpow251.8%
hypot-def70.3%
Simplified70.3%
*-commutative70.3%
add-exp-log27.0%
Applied egg-rr27.0%
Taylor expanded in y.re around 0 50.8%
fma-def50.8%
associate-*r*50.8%
unpow250.8%
unpow250.8%
unpow250.8%
hypot-def70.3%
Simplified70.3%
if -7.80000000000000019e-106 < y.re < 1.10000000000000007e62Initial program 38.6%
exp-diff37.6%
+-rgt-identity37.6%
+-rgt-identity37.6%
exp-to-pow37.6%
hypot-def37.6%
*-commutative37.6%
exp-prod37.3%
+-commutative37.3%
*-commutative37.3%
Simplified76.0%
Taylor expanded in y.re around 0 31.4%
unpow231.4%
unpow231.4%
hypot-def60.5%
*-commutative60.5%
exp-prod60.9%
Simplified60.9%
if 3.4500000000000001e133 < y.re < 2.4e213Initial program 47.8%
exp-diff39.1%
+-rgt-identity39.1%
+-rgt-identity39.1%
exp-to-pow39.1%
hypot-def39.1%
*-commutative39.1%
exp-prod39.1%
+-commutative39.1%
*-commutative39.1%
Simplified65.2%
Taylor expanded in y.im around 0 73.9%
unpow273.9%
unpow273.9%
hypot-def73.9%
Simplified73.9%
Taylor expanded in x.re around 0 69.7%
*-commutative69.7%
add-cube-cbrt82.7%
pow382.7%
Applied egg-rr82.7%
if 2.4e213 < y.re Initial program 45.5%
exp-diff45.5%
+-rgt-identity45.5%
+-rgt-identity45.5%
exp-to-pow45.5%
hypot-def45.5%
*-commutative45.5%
exp-prod45.5%
+-commutative45.5%
*-commutative45.5%
Simplified72.7%
Taylor expanded in y.im around 0 63.7%
unpow263.7%
unpow263.7%
hypot-def63.7%
Simplified63.7%
Taylor expanded in x.re around 0 54.8%
*-commutative54.8%
add-sqr-sqrt22.9%
sqrt-unprod9.2%
pow29.2%
Applied egg-rr9.2%
*-commutative9.2%
unpow29.2%
rem-sqrt-square73.0%
Simplified73.0%
Final simplification72.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/
(sin (* (log (hypot x.re x.im)) y.im))
(exp (* (atan2 x.im x.re) y.im))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* t_1 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -1.75e-39)
t_2
(if (<= y.re -2.2e-80)
t_0
(if (<= y.re -7.8e-106)
t_1
(if (<= y.re 4e+62)
t_0
(if (<= y.re 3.8e+134)
t_2
(if (<= y.re 6.2e+211)
(* (sin (pow (cbrt t_1) 3.0)) (pow x.im y.re))
(* (sin (fabs t_1)) (pow x.im y.re))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((log(hypot(x_46_re, x_46_im)) * y_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.75e-39) {
tmp = t_2;
} else if (y_46_re <= -2.2e-80) {
tmp = t_0;
} else if (y_46_re <= -7.8e-106) {
tmp = t_1;
} else if (y_46_re <= 4e+62) {
tmp = t_0;
} else if (y_46_re <= 3.8e+134) {
tmp = t_2;
} else if (y_46_re <= 6.2e+211) {
tmp = sin(pow(cbrt(t_1), 3.0)) * pow(x_46_im, y_46_re);
} else {
tmp = sin(fabs(t_1)) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = Math.sin((Math.log(Math.hypot(x_46_re, x_46_im)) * y_46_im)) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_2 = t_1 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -1.75e-39) {
tmp = t_2;
} else if (y_46_re <= -2.2e-80) {
tmp = t_0;
} else if (y_46_re <= -7.8e-106) {
tmp = t_1;
} else if (y_46_re <= 4e+62) {
tmp = t_0;
} else if (y_46_re <= 3.8e+134) {
tmp = t_2;
} else if (y_46_re <= 6.2e+211) {
tmp = Math.sin(Math.pow(Math.cbrt(t_1), 3.0)) * Math.pow(x_46_im, y_46_re);
} else {
tmp = Math.sin(Math.abs(t_1)) * Math.pow(x_46_im, y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(log(hypot(x_46_re, x_46_im)) * y_46_im)) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -1.75e-39) tmp = t_2; elseif (y_46_re <= -2.2e-80) tmp = t_0; elseif (y_46_re <= -7.8e-106) tmp = t_1; elseif (y_46_re <= 4e+62) tmp = t_0; elseif (y_46_re <= 3.8e+134) tmp = t_2; elseif (y_46_re <= 6.2e+211) tmp = Float64(sin((cbrt(t_1) ^ 3.0)) * (x_46_im ^ y_46_re)); else tmp = Float64(sin(abs(t_1)) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $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[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -1.75e-39], t$95$2, If[LessEqual[y$46$re, -2.2e-80], t$95$0, If[LessEqual[y$46$re, -7.8e-106], t$95$1, If[LessEqual[y$46$re, 4e+62], t$95$0, If[LessEqual[y$46$re, 3.8e+134], t$95$2, If[LessEqual[y$46$re, 6.2e+211], N[(N[Sin[N[Power[N[Power[t$95$1, 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[Abs[t$95$1], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin \left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) \cdot y.im\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := t_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -1.75 \cdot 10^{-39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq -2.2 \cdot 10^{-80}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq -7.8 \cdot 10^{-106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq 4 \cdot 10^{+62}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 3.8 \cdot 10^{+134}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq 6.2 \cdot 10^{+211}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{t_1}\right)}^{3}\right) \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_1\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -1.75e-39 or 4.00000000000000014e62 < y.re < 3.79999999999999998e134Initial program 38.2%
exp-diff31.5%
+-rgt-identity31.5%
+-rgt-identity31.5%
exp-to-pow31.5%
hypot-def31.5%
*-commutative31.5%
exp-prod31.5%
+-commutative31.5%
*-commutative31.5%
Simplified67.4%
Taylor expanded in y.im around 0 71.1%
unpow271.1%
unpow271.1%
hypot-def75.4%
Simplified75.4%
*-commutative75.4%
add-exp-log43.7%
Applied egg-rr43.7%
Taylor expanded in y.re around 0 84.3%
if -1.75e-39 < y.re < -2.2000000000000001e-80 or -7.80000000000000019e-106 < y.re < 4.00000000000000014e62Initial program 38.1%
exp-diff37.2%
+-rgt-identity37.2%
+-rgt-identity37.2%
exp-to-pow37.2%
hypot-def37.2%
*-commutative37.2%
exp-prod37.0%
+-commutative37.0%
*-commutative37.0%
Simplified77.1%
Taylor expanded in y.re around 0 30.7%
+-commutative30.7%
unpow230.7%
unpow230.7%
Simplified30.7%
hypot-udef61.2%
expm1-log1p-u61.2%
expm1-udef46.1%
Applied egg-rr46.1%
expm1-def61.2%
expm1-log1p61.2%
Simplified61.2%
if -2.2000000000000001e-80 < y.re < -7.80000000000000019e-106Initial program 63.4%
exp-diff63.4%
+-rgt-identity63.4%
+-rgt-identity63.4%
exp-to-pow63.4%
hypot-def63.4%
*-commutative63.4%
exp-prod63.4%
+-commutative63.4%
*-commutative63.4%
Simplified99.7%
Taylor expanded in y.im around 0 51.8%
unpow251.8%
unpow251.8%
hypot-def70.3%
Simplified70.3%
Taylor expanded in x.im around 0 27.3%
Taylor expanded in y.re around 0 70.3%
if 3.79999999999999998e134 < y.re < 6.2000000000000003e211Initial program 47.8%
exp-diff39.1%
+-rgt-identity39.1%
+-rgt-identity39.1%
exp-to-pow39.1%
hypot-def39.1%
*-commutative39.1%
exp-prod39.1%
+-commutative39.1%
*-commutative39.1%
Simplified65.2%
Taylor expanded in y.im around 0 73.9%
unpow273.9%
unpow273.9%
hypot-def73.9%
Simplified73.9%
Taylor expanded in x.re around 0 69.7%
*-commutative69.7%
add-cube-cbrt82.7%
pow382.7%
Applied egg-rr82.7%
if 6.2000000000000003e211 < y.re Initial program 45.5%
exp-diff45.5%
+-rgt-identity45.5%
+-rgt-identity45.5%
exp-to-pow45.5%
hypot-def45.5%
*-commutative45.5%
exp-prod45.5%
+-commutative45.5%
*-commutative45.5%
Simplified72.7%
Taylor expanded in y.im around 0 63.7%
unpow263.7%
unpow263.7%
hypot-def63.7%
Simplified63.7%
Taylor expanded in x.re around 0 54.8%
*-commutative54.8%
add-sqr-sqrt22.9%
sqrt-unprod9.2%
pow29.2%
Applied egg-rr9.2%
*-commutative9.2%
unpow29.2%
rem-sqrt-square73.0%
Simplified73.0%
Final simplification72.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0
(/
(sin (* (log (hypot x.re x.im)) y.im))
(exp (* (atan2 x.im x.re) y.im))))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (* t_1 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -2.32e-38)
t_2
(if (<= y.re -3.1e-81)
t_0
(if (<= y.re -7.8e-106)
(fma
y.re
(atan2 x.im x.re)
(* (log (hypot x.im x.re)) (* (atan2 x.im x.re) (* y.re y.re))))
(if (<= y.re 5.2e+57)
t_0
(if (<= y.re 3.5e+134)
t_2
(if (<= y.re 4e+214)
(* (sin (pow (cbrt t_1) 3.0)) (pow x.im y.re))
(* (sin (fabs t_1)) (pow x.im y.re))))))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = sin((log(hypot(x_46_re, x_46_im)) * y_46_im)) / exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = y_46_re * atan2(x_46_im, x_46_re);
double t_2 = t_1 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -2.32e-38) {
tmp = t_2;
} else if (y_46_re <= -3.1e-81) {
tmp = t_0;
} else if (y_46_re <= -7.8e-106) {
tmp = fma(y_46_re, atan2(x_46_im, x_46_re), (log(hypot(x_46_im, x_46_re)) * (atan2(x_46_im, x_46_re) * (y_46_re * y_46_re))));
} else if (y_46_re <= 5.2e+57) {
tmp = t_0;
} else if (y_46_re <= 3.5e+134) {
tmp = t_2;
} else if (y_46_re <= 4e+214) {
tmp = sin(pow(cbrt(t_1), 3.0)) * pow(x_46_im, y_46_re);
} else {
tmp = sin(fabs(t_1)) * pow(x_46_im, y_46_re);
}
return tmp;
}
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = Float64(sin(Float64(log(hypot(x_46_re, x_46_im)) * y_46_im)) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = Float64(t_1 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -2.32e-38) tmp = t_2; elseif (y_46_re <= -3.1e-81) tmp = t_0; elseif (y_46_re <= -7.8e-106) tmp = fma(y_46_re, atan(x_46_im, x_46_re), Float64(log(hypot(x_46_im, x_46_re)) * Float64(atan(x_46_im, x_46_re) * Float64(y_46_re * y_46_re)))); elseif (y_46_re <= 5.2e+57) tmp = t_0; elseif (y_46_re <= 3.5e+134) tmp = t_2; elseif (y_46_re <= 4e+214) tmp = Float64(sin((cbrt(t_1) ^ 3.0)) * (x_46_im ^ y_46_re)); else tmp = Float64(sin(abs(t_1)) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(N[Sin[N[(N[Log[N[Sqrt[x$46$re ^ 2 + x$46$im ^ 2], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $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[(t$95$1 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -2.32e-38], t$95$2, If[LessEqual[y$46$re, -3.1e-81], t$95$0, If[LessEqual[y$46$re, -7.8e-106], N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision] + N[(N[Log[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision]], $MachinePrecision] * N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * N[(y$46$re * y$46$re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 5.2e+57], t$95$0, If[LessEqual[y$46$re, 3.5e+134], t$95$2, If[LessEqual[y$46$re, 4e+214], N[(N[Sin[N[Power[N[Power[t$95$1, 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[Abs[t$95$1], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin \left(\log \left(\mathsf{hypot}\left(x.re, x.im\right)\right) \cdot y.im\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := t_1 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -2.32 \cdot 10^{-38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq -3.1 \cdot 10^{-81}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq -7.8 \cdot 10^{-106}:\\
\;\;\;\;\mathsf{fma}\left(y.re, \tan^{-1}_* \frac{x.im}{x.re}, \log \left(\mathsf{hypot}\left(x.im, x.re\right)\right) \cdot \left(\tan^{-1}_* \frac{x.im}{x.re} \cdot \left(y.re \cdot y.re\right)\right)\right)\\
\mathbf{elif}\;y.re \leq 5.2 \cdot 10^{+57}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y.re \leq 3.5 \cdot 10^{+134}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq 4 \cdot 10^{+214}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{t_1}\right)}^{3}\right) \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_1\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -2.3199999999999999e-38 or 5.2e57 < y.re < 3.50000000000000003e134Initial program 38.2%
exp-diff31.5%
+-rgt-identity31.5%
+-rgt-identity31.5%
exp-to-pow31.5%
hypot-def31.5%
*-commutative31.5%
exp-prod31.5%
+-commutative31.5%
*-commutative31.5%
Simplified67.4%
Taylor expanded in y.im around 0 71.1%
unpow271.1%
unpow271.1%
hypot-def75.4%
Simplified75.4%
*-commutative75.4%
add-exp-log43.7%
Applied egg-rr43.7%
Taylor expanded in y.re around 0 84.3%
if -2.3199999999999999e-38 < y.re < -3.09999999999999988e-81 or -7.80000000000000019e-106 < y.re < 5.2e57Initial program 38.1%
exp-diff37.2%
+-rgt-identity37.2%
+-rgt-identity37.2%
exp-to-pow37.2%
hypot-def37.2%
*-commutative37.2%
exp-prod37.0%
+-commutative37.0%
*-commutative37.0%
Simplified77.1%
Taylor expanded in y.re around 0 30.7%
+-commutative30.7%
unpow230.7%
unpow230.7%
Simplified30.7%
hypot-udef61.2%
expm1-log1p-u61.2%
expm1-udef46.1%
Applied egg-rr46.1%
expm1-def61.2%
expm1-log1p61.2%
Simplified61.2%
if -3.09999999999999988e-81 < y.re < -7.80000000000000019e-106Initial program 63.4%
exp-diff63.4%
+-rgt-identity63.4%
+-rgt-identity63.4%
exp-to-pow63.4%
hypot-def63.4%
*-commutative63.4%
exp-prod63.4%
+-commutative63.4%
*-commutative63.4%
Simplified99.7%
Taylor expanded in y.im around 0 51.8%
unpow251.8%
unpow251.8%
hypot-def70.3%
Simplified70.3%
*-commutative70.3%
add-exp-log27.0%
Applied egg-rr27.0%
Taylor expanded in y.re around 0 50.8%
fma-def50.8%
associate-*r*50.8%
unpow250.8%
unpow250.8%
unpow250.8%
hypot-def70.3%
Simplified70.3%
if 3.50000000000000003e134 < y.re < 3.9999999999999998e214Initial program 47.8%
exp-diff39.1%
+-rgt-identity39.1%
+-rgt-identity39.1%
exp-to-pow39.1%
hypot-def39.1%
*-commutative39.1%
exp-prod39.1%
+-commutative39.1%
*-commutative39.1%
Simplified65.2%
Taylor expanded in y.im around 0 73.9%
unpow273.9%
unpow273.9%
hypot-def73.9%
Simplified73.9%
Taylor expanded in x.re around 0 69.7%
*-commutative69.7%
add-cube-cbrt82.7%
pow382.7%
Applied egg-rr82.7%
if 3.9999999999999998e214 < y.re Initial program 45.5%
exp-diff45.5%
+-rgt-identity45.5%
+-rgt-identity45.5%
exp-to-pow45.5%
hypot-def45.5%
*-commutative45.5%
exp-prod45.5%
+-commutative45.5%
*-commutative45.5%
Simplified72.7%
Taylor expanded in y.im around 0 63.7%
unpow263.7%
unpow263.7%
hypot-def63.7%
Simplified63.7%
Taylor expanded in x.re around 0 54.8%
*-commutative54.8%
add-sqr-sqrt22.9%
sqrt-unprod9.2%
pow29.2%
Applied egg-rr9.2%
*-commutative9.2%
unpow29.2%
rem-sqrt-square73.0%
Simplified73.0%
Final simplification72.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (* t_0 (pow (hypot x.im x.re) y.re))))
(if (<= y.re -7.8e-106)
t_1
(if (<= y.re 7.5e+59)
(/
(* y.im (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 3.7e+133)
t_1
(if (<= y.re 2e+214)
(* (sin (pow (cbrt t_0) 3.0)) (pow x.im y.re))
(* (sin (fabs t_0)) (pow x.im 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 = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -7.8e-106) {
tmp = t_1;
} else if (y_46_re <= 7.5e+59) {
tmp = (y_46_im * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 3.7e+133) {
tmp = t_1;
} else if (y_46_re <= 2e+214) {
tmp = sin(pow(cbrt(t_0), 3.0)) * pow(x_46_im, y_46_re);
} else {
tmp = sin(fabs(t_0)) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -7.8e-106) {
tmp = t_1;
} else if (y_46_re <= 7.5e+59) {
tmp = (y_46_im * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 3.7e+133) {
tmp = t_1;
} else if (y_46_re <= 2e+214) {
tmp = Math.sin(Math.pow(Math.cbrt(t_0), 3.0)) * Math.pow(x_46_im, y_46_re);
} else {
tmp = Math.sin(Math.abs(t_0)) * Math.pow(x_46_im, 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 = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)) tmp = 0.0 if (y_46_re <= -7.8e-106) tmp = t_1; elseif (y_46_re <= 7.5e+59) tmp = Float64(Float64(y_46_im * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 3.7e+133) tmp = t_1; elseif (y_46_re <= 2e+214) tmp = Float64(sin((cbrt(t_0) ^ 3.0)) * (x_46_im ^ y_46_re)); else tmp = Float64(sin(abs(t_0)) * (x_46_im ^ y_46_re)); end return tmp end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := Block[{t$95$0 = N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y$46$re, -7.8e-106], t$95$1, If[LessEqual[y$46$re, 7.5e+59], N[(N[(y$46$im * 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[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 3.7e+133], t$95$1, If[LessEqual[y$46$re, 2e+214], N[(N[Sin[N[Power[N[Power[t$95$0, 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[Abs[t$95$0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, 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 := t_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -7.8 \cdot 10^{-106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq 7.5 \cdot 10^{+59}:\\
\;\;\;\;\frac{y.im \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 3.7 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y.re \leq 2 \cdot 10^{+214}:\\
\;\;\;\;\sin \left({\left(\sqrt[3]{t_0}\right)}^{3}\right) \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_0\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -7.80000000000000019e-106 or 7.4999999999999996e59 < y.re < 3.70000000000000023e133Initial program 40.3%
exp-diff34.8%
+-rgt-identity34.8%
+-rgt-identity34.8%
exp-to-pow34.8%
hypot-def34.8%
*-commutative34.8%
exp-prod34.8%
+-commutative34.8%
*-commutative34.8%
Simplified72.4%
Taylor expanded in y.im around 0 66.9%
unpow266.9%
unpow266.9%
hypot-def70.5%
Simplified70.5%
*-commutative70.5%
add-exp-log40.2%
Applied egg-rr40.2%
Taylor expanded in y.re around 0 77.8%
if -7.80000000000000019e-106 < y.re < 7.4999999999999996e59Initial program 38.6%
exp-diff37.6%
+-rgt-identity37.6%
+-rgt-identity37.6%
exp-to-pow37.6%
hypot-def37.6%
*-commutative37.6%
exp-prod37.3%
+-commutative37.3%
*-commutative37.3%
Simplified76.0%
Taylor expanded in y.re around 0 31.4%
+-commutative31.4%
unpow231.4%
unpow231.4%
Simplified31.4%
Taylor expanded in y.im around 0 46.3%
unpow246.3%
unpow246.3%
Simplified46.3%
if 3.70000000000000023e133 < y.re < 1.9999999999999999e214Initial program 47.8%
exp-diff39.1%
+-rgt-identity39.1%
+-rgt-identity39.1%
exp-to-pow39.1%
hypot-def39.1%
*-commutative39.1%
exp-prod39.1%
+-commutative39.1%
*-commutative39.1%
Simplified65.2%
Taylor expanded in y.im around 0 73.9%
unpow273.9%
unpow273.9%
hypot-def73.9%
Simplified73.9%
Taylor expanded in x.re around 0 69.7%
*-commutative69.7%
add-cube-cbrt82.7%
pow382.7%
Applied egg-rr82.7%
if 1.9999999999999999e214 < y.re Initial program 45.5%
exp-diff45.5%
+-rgt-identity45.5%
+-rgt-identity45.5%
exp-to-pow45.5%
hypot-def45.5%
*-commutative45.5%
exp-prod45.5%
+-commutative45.5%
*-commutative45.5%
Simplified72.7%
Taylor expanded in y.im around 0 63.7%
unpow263.7%
unpow263.7%
hypot-def63.7%
Simplified63.7%
Taylor expanded in x.re around 0 54.8%
*-commutative54.8%
add-sqr-sqrt22.9%
sqrt-unprod9.2%
pow29.2%
Applied egg-rr9.2%
*-commutative9.2%
unpow29.2%
rem-sqrt-square73.0%
Simplified73.0%
Final simplification65.3%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (pow (hypot x.im x.re) y.re))
(t_2 (* t_0 t_1))
(t_3 (exp (* (atan2 x.im x.re) y.im))))
(if (<= y.re -9.8e-141)
t_2
(if (<= y.re 2.2e-163)
(/ (sin (* y.im (log (- x.re)))) t_3)
(if (<= y.re 2.9e+47)
(/ (sin (* y.im (log (- x.im)))) t_3)
(if (<= y.re 5e+131)
t_2
(if (or (<= y.re 8.2e+195) (not (<= y.re 1.35e+279)))
(* (sin t_0) t_1)
(* (sin (fabs t_0)) (pow x.im 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 = pow(hypot(x_46_im, x_46_re), y_46_re);
double t_2 = t_0 * t_1;
double t_3 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -9.8e-141) {
tmp = t_2;
} else if (y_46_re <= 2.2e-163) {
tmp = sin((y_46_im * log(-x_46_re))) / t_3;
} else if (y_46_re <= 2.9e+47) {
tmp = sin((y_46_im * log(-x_46_im))) / t_3;
} else if (y_46_re <= 5e+131) {
tmp = t_2;
} else if ((y_46_re <= 8.2e+195) || !(y_46_re <= 1.35e+279)) {
tmp = sin(t_0) * t_1;
} else {
tmp = sin(fabs(t_0)) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_2 = t_0 * t_1;
double t_3 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_re <= -9.8e-141) {
tmp = t_2;
} else if (y_46_re <= 2.2e-163) {
tmp = Math.sin((y_46_im * Math.log(-x_46_re))) / t_3;
} else if (y_46_re <= 2.9e+47) {
tmp = Math.sin((y_46_im * Math.log(-x_46_im))) / t_3;
} else if (y_46_re <= 5e+131) {
tmp = t_2;
} else if ((y_46_re <= 8.2e+195) || !(y_46_re <= 1.35e+279)) {
tmp = Math.sin(t_0) * t_1;
} else {
tmp = Math.sin(Math.abs(t_0)) * Math.pow(x_46_im, 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.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_2 = t_0 * t_1 t_3 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_re <= -9.8e-141: tmp = t_2 elif y_46_re <= 2.2e-163: tmp = math.sin((y_46_im * math.log(-x_46_re))) / t_3 elif y_46_re <= 2.9e+47: tmp = math.sin((y_46_im * math.log(-x_46_im))) / t_3 elif y_46_re <= 5e+131: tmp = t_2 elif (y_46_re <= 8.2e+195) or not (y_46_re <= 1.35e+279): tmp = math.sin(t_0) * t_1 else: tmp = math.sin(math.fabs(t_0)) * math.pow(x_46_im, 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 = hypot(x_46_im, x_46_re) ^ y_46_re t_2 = Float64(t_0 * t_1) t_3 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) tmp = 0.0 if (y_46_re <= -9.8e-141) tmp = t_2; elseif (y_46_re <= 2.2e-163) tmp = Float64(sin(Float64(y_46_im * log(Float64(-x_46_re)))) / t_3); elseif (y_46_re <= 2.9e+47) tmp = Float64(sin(Float64(y_46_im * log(Float64(-x_46_im)))) / t_3); elseif (y_46_re <= 5e+131) tmp = t_2; elseif ((y_46_re <= 8.2e+195) || !(y_46_re <= 1.35e+279)) tmp = Float64(sin(t_0) * t_1); else tmp = Float64(sin(abs(t_0)) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; t_2 = t_0 * t_1; t_3 = exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_re <= -9.8e-141) tmp = t_2; elseif (y_46_re <= 2.2e-163) tmp = sin((y_46_im * log(-x_46_re))) / t_3; elseif (y_46_re <= 2.9e+47) tmp = sin((y_46_im * log(-x_46_im))) / t_3; elseif (y_46_re <= 5e+131) tmp = t_2; elseif ((y_46_re <= 8.2e+195) || ~((y_46_re <= 1.35e+279))) tmp = sin(t_0) * t_1; else tmp = sin(abs(t_0)) * (x_46_im ^ 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$0 * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$re, -9.8e-141], t$95$2, If[LessEqual[y$46$re, 2.2e-163], N[(N[Sin[N[(y$46$im * N[Log[(-x$46$re)], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[y$46$re, 2.9e+47], N[(N[Sin[N[(y$46$im * N[Log[(-x$46$im)], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[y$46$re, 5e+131], t$95$2, If[Or[LessEqual[y$46$re, 8.2e+195], N[Not[LessEqual[y$46$re, 1.35e+279]], $MachinePrecision]], N[(N[Sin[t$95$0], $MachinePrecision] * t$95$1), $MachinePrecision], N[(N[Sin[N[Abs[t$95$0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, 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 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_2 := t_0 \cdot t_1\\
t_3 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.re \leq -9.8 \cdot 10^{-141}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq 2.2 \cdot 10^{-163}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(-x.re\right)\right)}{t_3}\\
\mathbf{elif}\;y.re \leq 2.9 \cdot 10^{+47}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(-x.im\right)\right)}{t_3}\\
\mathbf{elif}\;y.re \leq 5 \cdot 10^{+131}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq 8.2 \cdot 10^{+195} \lor \neg \left(y.re \leq 1.35 \cdot 10^{+279}\right):\\
\;\;\;\;\sin t_0 \cdot t_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_0\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -9.80000000000000012e-141 or 2.8999999999999998e47 < y.re < 4.99999999999999995e131Initial program 40.3%
exp-diff35.0%
+-rgt-identity35.0%
+-rgt-identity35.0%
exp-to-pow35.0%
hypot-def35.0%
*-commutative35.0%
exp-prod34.8%
+-commutative34.8%
*-commutative34.8%
Simplified72.3%
Taylor expanded in y.im around 0 65.2%
unpow265.2%
unpow265.2%
hypot-def68.7%
Simplified68.7%
*-commutative68.7%
add-exp-log39.2%
Applied egg-rr39.2%
Taylor expanded in y.re around 0 75.8%
if -9.80000000000000012e-141 < y.re < 2.20000000000000011e-163Initial program 42.5%
exp-diff42.5%
+-rgt-identity42.5%
+-rgt-identity42.5%
exp-to-pow42.5%
hypot-def42.5%
*-commutative42.5%
exp-prod42.5%
+-commutative42.5%
*-commutative42.5%
Simplified78.4%
Taylor expanded in y.re around 0 37.6%
+-commutative37.6%
unpow237.6%
unpow237.6%
Simplified37.6%
Taylor expanded in x.re around -inf 38.0%
mul-1-neg38.0%
Simplified38.0%
if 2.20000000000000011e-163 < y.re < 2.8999999999999998e47Initial program 33.8%
exp-diff31.5%
+-rgt-identity31.5%
+-rgt-identity31.5%
exp-to-pow31.5%
hypot-def31.5%
*-commutative31.5%
exp-prod31.2%
+-commutative31.2%
*-commutative31.2%
Simplified73.8%
Taylor expanded in y.re around 0 23.5%
+-commutative23.5%
unpow223.5%
unpow223.5%
Simplified23.5%
Taylor expanded in x.im around -inf 38.6%
mul-1-neg38.6%
Simplified38.6%
if 4.99999999999999995e131 < y.re < 8.2000000000000001e195 or 1.3500000000000001e279 < y.re Initial program 50.0%
exp-diff41.7%
+-rgt-identity41.7%
+-rgt-identity41.7%
exp-to-pow41.7%
hypot-def41.7%
*-commutative41.7%
exp-prod41.7%
+-commutative41.7%
*-commutative41.7%
Simplified70.8%
Taylor expanded in y.im around 0 79.2%
unpow279.2%
unpow279.2%
hypot-def79.2%
Simplified79.2%
if 8.2000000000000001e195 < y.re < 1.3500000000000001e279Initial program 42.9%
exp-diff42.9%
+-rgt-identity42.9%
+-rgt-identity42.9%
exp-to-pow42.9%
hypot-def42.9%
*-commutative42.9%
exp-prod42.9%
+-commutative42.9%
*-commutative42.9%
Simplified66.7%
Taylor expanded in y.im around 0 57.1%
unpow257.1%
unpow257.1%
hypot-def57.1%
Simplified57.1%
Taylor expanded in x.re around 0 52.6%
*-commutative52.6%
add-sqr-sqrt24.0%
sqrt-unprod19.2%
pow219.2%
Applied egg-rr19.2%
*-commutative19.2%
unpow219.2%
rem-sqrt-square76.4%
Simplified76.4%
Final simplification61.6%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (exp (* (atan2 x.im x.re) y.im))))
(if (<= y.im -1.06e+206)
(/ (sin (* y.im (log (- x.im)))) t_1)
(if (<= y.im 2.6e-74)
(* t_0 (pow (hypot x.im x.re) y.re))
(if (<= y.im 3e+164)
(* (sin t_0) (pow (sqrt (+ (* x.re x.re) (* x.im x.im))) y.re))
(/ (sin (* y.im (log (- x.re)))) t_1))))))
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((atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -1.06e+206) {
tmp = sin((y_46_im * log(-x_46_im))) / t_1;
} else if (y_46_im <= 2.6e-74) {
tmp = t_0 * pow(hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 3e+164) {
tmp = sin(t_0) * pow(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re);
} else {
tmp = sin((y_46_im * log(-x_46_re))) / 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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double tmp;
if (y_46_im <= -1.06e+206) {
tmp = Math.sin((y_46_im * Math.log(-x_46_im))) / t_1;
} else if (y_46_im <= 2.6e-74) {
tmp = t_0 * Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
} else if (y_46_im <= 3e+164) {
tmp = Math.sin(t_0) * Math.pow(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re);
} else {
tmp = Math.sin((y_46_im * Math.log(-x_46_re))) / t_1;
}
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.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) tmp = 0 if y_46_im <= -1.06e+206: tmp = math.sin((y_46_im * math.log(-x_46_im))) / t_1 elif y_46_im <= 2.6e-74: tmp = t_0 * math.pow(math.hypot(x_46_im, x_46_re), y_46_re) elif y_46_im <= 3e+164: tmp = math.sin(t_0) * math.pow(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))), y_46_re) else: tmp = math.sin((y_46_im * math.log(-x_46_re))) / t_1 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(atan(x_46_im, x_46_re) * y_46_im)) tmp = 0.0 if (y_46_im <= -1.06e+206) tmp = Float64(sin(Float64(y_46_im * log(Float64(-x_46_im)))) / t_1); elseif (y_46_im <= 2.6e-74) tmp = Float64(t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re)); elseif (y_46_im <= 3e+164) tmp = Float64(sin(t_0) * (sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))) ^ y_46_re)); else tmp = Float64(sin(Float64(y_46_im * log(Float64(-x_46_re)))) / t_1); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = exp((atan2(x_46_im, x_46_re) * y_46_im)); tmp = 0.0; if (y_46_im <= -1.06e+206) tmp = sin((y_46_im * log(-x_46_im))) / t_1; elseif (y_46_im <= 2.6e-74) tmp = t_0 * (hypot(x_46_im, x_46_re) ^ y_46_re); elseif (y_46_im <= 3e+164) tmp = sin(t_0) * (sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))) ^ y_46_re); else tmp = sin((y_46_im * log(-x_46_re))) / 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y$46$im, -1.06e+206], N[(N[Sin[N[(y$46$im * N[Log[(-x$46$im)], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y$46$im, 2.6e-74], N[(t$95$0 * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$im, 3e+164], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(y$46$im * N[Log[(-x$46$re)], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
\mathbf{if}\;y.im \leq -1.06 \cdot 10^{+206}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(-x.im\right)\right)}{t_1}\\
\mathbf{elif}\;y.im \leq 2.6 \cdot 10^{-74}:\\
\;\;\;\;t_0 \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{elif}\;y.im \leq 3 \cdot 10^{+164}:\\
\;\;\;\;\sin t_0 \cdot {\left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(-x.re\right)\right)}{t_1}\\
\end{array}
\end{array}
if y.im < -1.0599999999999999e206Initial program 36.4%
exp-diff27.3%
+-rgt-identity27.3%
+-rgt-identity27.3%
exp-to-pow27.3%
hypot-def27.3%
*-commutative27.3%
exp-prod27.3%
+-commutative27.3%
*-commutative27.3%
Simplified54.5%
Taylor expanded in y.re around 0 36.4%
+-commutative36.4%
unpow236.4%
unpow236.4%
Simplified36.4%
Taylor expanded in x.im around -inf 54.5%
mul-1-neg54.5%
Simplified54.5%
if -1.0599999999999999e206 < y.im < 2.6000000000000001e-74Initial program 42.6%
exp-diff39.9%
+-rgt-identity39.9%
+-rgt-identity39.9%
exp-to-pow39.9%
hypot-def39.9%
*-commutative39.9%
exp-prod39.9%
+-commutative39.9%
*-commutative39.9%
Simplified78.8%
Taylor expanded in y.im around 0 51.2%
unpow251.2%
unpow251.2%
hypot-def59.8%
Simplified59.8%
*-commutative59.8%
add-exp-log34.1%
Applied egg-rr34.1%
Taylor expanded in y.re around 0 62.4%
if 2.6000000000000001e-74 < y.im < 3.00000000000000001e164Initial program 34.4%
exp-diff30.6%
+-rgt-identity30.6%
+-rgt-identity30.6%
exp-to-pow30.6%
hypot-def30.6%
*-commutative30.6%
exp-prod30.2%
+-commutative30.2%
*-commutative30.2%
Simplified72.2%
Taylor expanded in y.im around 0 52.2%
+-commutative52.2%
unpow252.2%
unpow252.2%
Simplified52.2%
if 3.00000000000000001e164 < y.im Initial program 45.8%
exp-diff42.6%
+-rgt-identity42.6%
+-rgt-identity42.6%
exp-to-pow42.6%
hypot-def42.6%
*-commutative42.6%
exp-prod42.0%
+-commutative42.0%
*-commutative42.0%
Simplified61.4%
Taylor expanded in y.re around 0 45.8%
+-commutative45.8%
unpow245.8%
unpow245.8%
Simplified45.8%
Taylor expanded in x.re around -inf 45.2%
mul-1-neg45.2%
Simplified45.2%
Final simplification57.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re)))
(t_1 (pow (hypot x.im x.re) y.re))
(t_2 (* t_0 t_1)))
(if (<= y.re -7.5e-106)
t_2
(if (<= y.re 2.4e+62)
(/
(* y.im (log (sqrt (+ (* x.re x.re) (* x.im x.im)))))
(exp (* (atan2 x.im x.re) y.im)))
(if (<= y.re 2e+132) t_2 (* (sin t_0) t_1))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double t_2 = t_0 * t_1;
double tmp;
if (y_46_re <= -7.5e-106) {
tmp = t_2;
} else if (y_46_re <= 2.4e+62) {
tmp = (y_46_im * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 2e+132) {
tmp = t_2;
} else {
tmp = sin(t_0) * 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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double t_2 = t_0 * t_1;
double tmp;
if (y_46_re <= -7.5e-106) {
tmp = t_2;
} else if (y_46_re <= 2.4e+62) {
tmp = (y_46_im * Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if (y_46_re <= 2e+132) {
tmp = t_2;
} else {
tmp = Math.sin(t_0) * t_1;
}
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.pow(math.hypot(x_46_im, x_46_re), y_46_re) t_2 = t_0 * t_1 tmp = 0 if y_46_re <= -7.5e-106: tmp = t_2 elif y_46_re <= 2.4e+62: tmp = (y_46_im * math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif y_46_re <= 2e+132: tmp = t_2 else: tmp = math.sin(t_0) * t_1 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 = hypot(x_46_im, x_46_re) ^ y_46_re t_2 = Float64(t_0 * t_1) tmp = 0.0 if (y_46_re <= -7.5e-106) tmp = t_2; elseif (y_46_re <= 2.4e+62) tmp = Float64(Float64(y_46_im * log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im))))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif (y_46_re <= 2e+132) tmp = t_2; else tmp = Float64(sin(t_0) * t_1); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; t_2 = t_0 * t_1; tmp = 0.0; if (y_46_re <= -7.5e-106) tmp = t_2; elseif (y_46_re <= 2.4e+62) tmp = (y_46_im * log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im))))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif (y_46_re <= 2e+132) tmp = t_2; else tmp = sin(t_0) * 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$0 * t$95$1), $MachinePrecision]}, If[LessEqual[y$46$re, -7.5e-106], t$95$2, If[LessEqual[y$46$re, 2.4e+62], N[(N[(y$46$im * 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[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y$46$re, 2e+132], t$95$2, N[(N[Sin[t$95$0], $MachinePrecision] * t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_2 := t_0 \cdot t_1\\
\mathbf{if}\;y.re \leq -7.5 \cdot 10^{-106}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y.re \leq 2.4 \cdot 10^{+62}:\\
\;\;\;\;\frac{y.im \cdot \log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 2 \cdot 10^{+132}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\sin t_0 \cdot t_1\\
\end{array}
\end{array}
if y.re < -7.5000000000000002e-106 or 2.4e62 < y.re < 1.99999999999999998e132Initial program 40.3%
exp-diff34.8%
+-rgt-identity34.8%
+-rgt-identity34.8%
exp-to-pow34.8%
hypot-def34.8%
*-commutative34.8%
exp-prod34.8%
+-commutative34.8%
*-commutative34.8%
Simplified72.4%
Taylor expanded in y.im around 0 66.9%
unpow266.9%
unpow266.9%
hypot-def70.5%
Simplified70.5%
*-commutative70.5%
add-exp-log40.2%
Applied egg-rr40.2%
Taylor expanded in y.re around 0 77.8%
if -7.5000000000000002e-106 < y.re < 2.4e62Initial program 38.6%
exp-diff37.6%
+-rgt-identity37.6%
+-rgt-identity37.6%
exp-to-pow37.6%
hypot-def37.6%
*-commutative37.6%
exp-prod37.3%
+-commutative37.3%
*-commutative37.3%
Simplified76.0%
Taylor expanded in y.re around 0 31.4%
+-commutative31.4%
unpow231.4%
unpow231.4%
Simplified31.4%
Taylor expanded in y.im around 0 46.3%
unpow246.3%
unpow246.3%
Simplified46.3%
if 1.99999999999999998e132 < y.re Initial program 46.7%
exp-diff42.2%
+-rgt-identity42.2%
+-rgt-identity42.2%
exp-to-pow42.2%
hypot-def42.2%
*-commutative42.2%
exp-prod42.2%
+-commutative42.2%
*-commutative42.2%
Simplified68.9%
Taylor expanded in y.im around 0 68.9%
unpow268.9%
unpow268.9%
hypot-def68.9%
Simplified68.9%
Final simplification63.7%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (pow (hypot x.im x.re) y.re)))
(if (<= y.re -4.15e-106)
(* t_0 t_1)
(if (<= y.re 3.1e-181)
(/ (sin (* y.im (log x.im))) (exp (* (atan2 x.im x.re) y.im)))
(if (or (<= y.re 4.5e+195) (not (<= y.re 1.55e+280)))
(* (sin t_0) t_1)
(* (sin (fabs t_0)) (pow x.im 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 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -4.15e-106) {
tmp = t_0 * t_1;
} else if (y_46_re <= 3.1e-181) {
tmp = sin((y_46_im * log(x_46_im))) / exp((atan2(x_46_im, x_46_re) * y_46_im));
} else if ((y_46_re <= 4.5e+195) || !(y_46_re <= 1.55e+280)) {
tmp = sin(t_0) * t_1;
} else {
tmp = sin(fabs(t_0)) * pow(x_46_im, y_46_re);
}
return tmp;
}
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= -4.15e-106) {
tmp = t_0 * t_1;
} else if (y_46_re <= 3.1e-181) {
tmp = Math.sin((y_46_im * Math.log(x_46_im))) / Math.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
} else if ((y_46_re <= 4.5e+195) || !(y_46_re <= 1.55e+280)) {
tmp = Math.sin(t_0) * t_1;
} else {
tmp = Math.sin(Math.abs(t_0)) * Math.pow(x_46_im, 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.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= -4.15e-106: tmp = t_0 * t_1 elif y_46_re <= 3.1e-181: tmp = math.sin((y_46_im * math.log(x_46_im))) / math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) elif (y_46_re <= 4.5e+195) or not (y_46_re <= 1.55e+280): tmp = math.sin(t_0) * t_1 else: tmp = math.sin(math.fabs(t_0)) * math.pow(x_46_im, 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 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= -4.15e-106) tmp = Float64(t_0 * t_1); elseif (y_46_re <= 3.1e-181) tmp = Float64(sin(Float64(y_46_im * log(x_46_im))) / exp(Float64(atan(x_46_im, x_46_re) * y_46_im))); elseif ((y_46_re <= 4.5e+195) || !(y_46_re <= 1.55e+280)) tmp = Float64(sin(t_0) * t_1); else tmp = Float64(sin(abs(t_0)) * (x_46_im ^ y_46_re)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= -4.15e-106) tmp = t_0 * t_1; elseif (y_46_re <= 3.1e-181) tmp = sin((y_46_im * log(x_46_im))) / exp((atan2(x_46_im, x_46_re) * y_46_im)); elseif ((y_46_re <= 4.5e+195) || ~((y_46_re <= 1.55e+280))) tmp = sin(t_0) * t_1; else tmp = sin(abs(t_0)) * (x_46_im ^ 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, -4.15e-106], N[(t$95$0 * t$95$1), $MachinePrecision], If[LessEqual[y$46$re, 3.1e-181], N[(N[Sin[N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y$46$re, 4.5e+195], N[Not[LessEqual[y$46$re, 1.55e+280]], $MachinePrecision]], N[(N[Sin[t$95$0], $MachinePrecision] * t$95$1), $MachinePrecision], N[(N[Sin[N[Abs[t$95$0], $MachinePrecision]], $MachinePrecision] * N[Power[x$46$im, 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 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq -4.15 \cdot 10^{-106}:\\
\;\;\;\;t_0 \cdot t_1\\
\mathbf{elif}\;y.re \leq 3.1 \cdot 10^{-181}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log x.im\right)}{e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}}\\
\mathbf{elif}\;y.re \leq 4.5 \cdot 10^{+195} \lor \neg \left(y.re \leq 1.55 \cdot 10^{+280}\right):\\
\;\;\;\;\sin t_0 \cdot t_1\\
\mathbf{else}:\\
\;\;\;\;\sin \left(\left|t_0\right|\right) \cdot {x.im}^{y.re}\\
\end{array}
\end{array}
if y.re < -4.15000000000000023e-106Initial program 41.7%
exp-diff36.2%
+-rgt-identity36.2%
+-rgt-identity36.2%
exp-to-pow36.2%
hypot-def36.2%
*-commutative36.2%
exp-prod36.2%
+-commutative36.2%
*-commutative36.2%
Simplified76.9%
Taylor expanded in y.im around 0 70.2%
unpow270.2%
unpow270.2%
hypot-def74.5%
Simplified74.5%
*-commutative74.5%
add-exp-log41.6%
Applied egg-rr41.6%
Taylor expanded in y.re around 0 77.7%
if -4.15000000000000023e-106 < y.re < 3.10000000000000021e-181Initial program 45.4%
exp-diff45.4%
+-rgt-identity45.4%
+-rgt-identity45.4%
exp-to-pow45.4%
hypot-def45.4%
*-commutative45.4%
exp-prod45.1%
+-commutative45.1%
*-commutative45.1%
Simplified77.1%
Taylor expanded in y.re around 0 42.0%
+-commutative42.0%
unpow242.0%
unpow242.0%
Simplified42.0%
Taylor expanded in x.re around 0 34.7%
if 3.10000000000000021e-181 < y.re < 4.50000000000000009e195 or 1.55e280 < y.re Initial program 36.8%
exp-diff32.5%
+-rgt-identity32.5%
+-rgt-identity32.5%
exp-to-pow32.5%
hypot-def32.5%
*-commutative32.5%
exp-prod32.3%
+-commutative32.3%
*-commutative32.3%
Simplified69.1%
Taylor expanded in y.im around 0 41.5%
unpow241.5%
unpow241.5%
hypot-def45.9%
Simplified45.9%
if 4.50000000000000009e195 < y.re < 1.55e280Initial program 42.9%
exp-diff42.9%
+-rgt-identity42.9%
+-rgt-identity42.9%
exp-to-pow42.9%
hypot-def42.9%
*-commutative42.9%
exp-prod42.9%
+-commutative42.9%
*-commutative42.9%
Simplified66.7%
Taylor expanded in y.im around 0 57.1%
unpow257.1%
unpow257.1%
hypot-def57.1%
Simplified57.1%
Taylor expanded in x.re around 0 52.6%
*-commutative52.6%
add-sqr-sqrt24.0%
sqrt-unprod19.2%
pow219.2%
Applied egg-rr19.2%
*-commutative19.2%
unpow219.2%
rem-sqrt-square76.4%
Simplified76.4%
Final simplification57.5%
(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (exp (* (atan2 x.im x.re) y.im)))
(t_1 (* y.re (atan2 x.im x.re)))
(t_2 (pow (hypot x.im x.re) y.re))
(t_3 (* t_1 t_2)))
(if (<= y.re -2.15e-106)
t_3
(if (<= y.re 3.3e-181)
(/ (sin (* y.im (log x.im))) t_0)
(if (<= y.re 6.2e+46)
(/ (sin (* y.im (log (- x.im)))) t_0)
(if (<= y.re 4e+133) t_3 (* (sin t_1) t_2)))))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = 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 t_3 = t_1 * t_2;
double tmp;
if (y_46_re <= -2.15e-106) {
tmp = t_3;
} else if (y_46_re <= 3.3e-181) {
tmp = sin((y_46_im * log(x_46_im))) / t_0;
} else if (y_46_re <= 6.2e+46) {
tmp = sin((y_46_im * log(-x_46_im))) / t_0;
} else if (y_46_re <= 4e+133) {
tmp = t_3;
} else {
tmp = sin(t_1) * 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.exp((Math.atan2(x_46_im, x_46_re) * y_46_im));
double t_1 = 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 t_3 = t_1 * t_2;
double tmp;
if (y_46_re <= -2.15e-106) {
tmp = t_3;
} else if (y_46_re <= 3.3e-181) {
tmp = Math.sin((y_46_im * Math.log(x_46_im))) / t_0;
} else if (y_46_re <= 6.2e+46) {
tmp = Math.sin((y_46_im * Math.log(-x_46_im))) / t_0;
} else if (y_46_re <= 4e+133) {
tmp = t_3;
} else {
tmp = Math.sin(t_1) * t_2;
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): t_0 = math.exp((math.atan2(x_46_im, x_46_re) * y_46_im)) t_1 = 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) t_3 = t_1 * t_2 tmp = 0 if y_46_re <= -2.15e-106: tmp = t_3 elif y_46_re <= 3.3e-181: tmp = math.sin((y_46_im * math.log(x_46_im))) / t_0 elif y_46_re <= 6.2e+46: tmp = math.sin((y_46_im * math.log(-x_46_im))) / t_0 elif y_46_re <= 4e+133: tmp = t_3 else: tmp = math.sin(t_1) * t_2 return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp(Float64(atan(x_46_im, x_46_re) * y_46_im)) t_1 = Float64(y_46_re * atan(x_46_im, x_46_re)) t_2 = hypot(x_46_im, x_46_re) ^ y_46_re t_3 = Float64(t_1 * t_2) tmp = 0.0 if (y_46_re <= -2.15e-106) tmp = t_3; elseif (y_46_re <= 3.3e-181) tmp = Float64(sin(Float64(y_46_im * log(x_46_im))) / t_0); elseif (y_46_re <= 6.2e+46) tmp = Float64(sin(Float64(y_46_im * log(Float64(-x_46_im)))) / t_0); elseif (y_46_re <= 4e+133) tmp = t_3; else tmp = Float64(sin(t_1) * t_2); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = exp((atan2(x_46_im, x_46_re) * y_46_im)); t_1 = y_46_re * atan2(x_46_im, x_46_re); t_2 = hypot(x_46_im, x_46_re) ^ y_46_re; t_3 = t_1 * t_2; tmp = 0.0; if (y_46_re <= -2.15e-106) tmp = t_3; elseif (y_46_re <= 3.3e-181) tmp = sin((y_46_im * log(x_46_im))) / t_0; elseif (y_46_re <= 6.2e+46) tmp = sin((y_46_im * log(-x_46_im))) / t_0; elseif (y_46_re <= 4e+133) tmp = t_3; else tmp = sin(t_1) * 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[Exp[N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $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[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 * t$95$2), $MachinePrecision]}, If[LessEqual[y$46$re, -2.15e-106], t$95$3, If[LessEqual[y$46$re, 3.3e-181], N[(N[Sin[N[(y$46$im * N[Log[x$46$im], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[y$46$re, 6.2e+46], N[(N[Sin[N[(y$46$im * N[Log[(-x$46$im)], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[y$46$re, 4e+133], t$95$3, N[(N[Sin[t$95$1], $MachinePrecision] * t$95$2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\tan^{-1}_* \frac{x.im}{x.re} \cdot y.im}\\
t_1 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_2 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
t_3 := t_1 \cdot t_2\\
\mathbf{if}\;y.re \leq -2.15 \cdot 10^{-106}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y.re \leq 3.3 \cdot 10^{-181}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log x.im\right)}{t_0}\\
\mathbf{elif}\;y.re \leq 6.2 \cdot 10^{+46}:\\
\;\;\;\;\frac{\sin \left(y.im \cdot \log \left(-x.im\right)\right)}{t_0}\\
\mathbf{elif}\;y.re \leq 4 \cdot 10^{+133}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;\sin t_1 \cdot t_2\\
\end{array}
\end{array}
if y.re < -2.1500000000000001e-106 or 6.1999999999999995e46 < y.re < 4.0000000000000001e133Initial program 40.0%
exp-diff34.5%
+-rgt-identity34.5%
+-rgt-identity34.5%
exp-to-pow34.5%
hypot-def34.5%
*-commutative34.5%
exp-prod34.5%
+-commutative34.5%
*-commutative34.5%
Simplified72.7%
Taylor expanded in y.im around 0 66.3%
unpow266.3%
unpow266.3%
hypot-def69.9%
Simplified69.9%
*-commutative69.9%
add-exp-log39.8%
Applied egg-rr39.8%
Taylor expanded in y.re around 0 77.1%
if -2.1500000000000001e-106 < y.re < 3.30000000000000009e-181Initial program 45.4%
exp-diff45.4%
+-rgt-identity45.4%
+-rgt-identity45.4%
exp-to-pow45.4%
hypot-def45.4%
*-commutative45.4%
exp-prod45.1%
+-commutative45.1%
*-commutative45.1%
Simplified77.1%
Taylor expanded in y.re around 0 42.0%
+-commutative42.0%
unpow242.0%
unpow242.0%
Simplified42.0%
Taylor expanded in x.re around 0 34.7%
if 3.30000000000000009e-181 < y.re < 6.1999999999999995e46Initial program 32.4%
exp-diff30.4%
+-rgt-identity30.4%
+-rgt-identity30.4%
exp-to-pow30.4%
hypot-def30.4%
*-commutative30.4%
exp-prod30.1%
+-commutative30.1%
*-commutative30.1%
Simplified74.5%
Taylor expanded in y.re around 0 21.3%
+-commutative21.3%
unpow221.3%
unpow221.3%
Simplified21.3%
Taylor expanded in x.im around -inf 36.9%
mul-1-neg36.9%
Simplified36.9%
if 4.0000000000000001e133 < y.re Initial program 46.7%
exp-diff42.2%
+-rgt-identity42.2%
+-rgt-identity42.2%
exp-to-pow42.2%
hypot-def42.2%
*-commutative42.2%
exp-prod42.2%
+-commutative42.2%
*-commutative42.2%
Simplified68.9%
Taylor expanded in y.im around 0 68.9%
unpow268.9%
unpow268.9%
hypot-def68.9%
Simplified68.9%
Final simplification59.4%
(FPCore (x.re x.im y.re y.im) :precision binary64 (let* ((t_0 (* y.re (atan2 x.im x.re))) (t_1 (pow (hypot x.im x.re) y.re))) (if (<= y.re 2e+132) (* t_0 t_1) (* (sin t_0) t_1))))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * atan2(x_46_im, x_46_re);
double t_1 = pow(hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= 2e+132) {
tmp = t_0 * t_1;
} else {
tmp = sin(t_0) * 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 = y_46_re * Math.atan2(x_46_im, x_46_re);
double t_1 = Math.pow(Math.hypot(x_46_im, x_46_re), y_46_re);
double tmp;
if (y_46_re <= 2e+132) {
tmp = t_0 * t_1;
} else {
tmp = Math.sin(t_0) * t_1;
}
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.pow(math.hypot(x_46_im, x_46_re), y_46_re) tmp = 0 if y_46_re <= 2e+132: tmp = t_0 * t_1 else: tmp = math.sin(t_0) * t_1 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 = hypot(x_46_im, x_46_re) ^ y_46_re tmp = 0.0 if (y_46_re <= 2e+132) tmp = Float64(t_0 * t_1); else tmp = Float64(sin(t_0) * t_1); end return tmp end
function tmp_2 = code(x_46_re, x_46_im, y_46_re, y_46_im) t_0 = y_46_re * atan2(x_46_im, x_46_re); t_1 = hypot(x_46_im, x_46_re) ^ y_46_re; tmp = 0.0; if (y_46_re <= 2e+132) tmp = t_0 * t_1; else tmp = sin(t_0) * 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]}, If[LessEqual[y$46$re, 2e+132], N[(t$95$0 * t$95$1), $MachinePrecision], N[(N[Sin[t$95$0], $MachinePrecision] * t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
t_1 := {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}\\
\mathbf{if}\;y.re \leq 2 \cdot 10^{+132}:\\
\;\;\;\;t_0 \cdot t_1\\
\mathbf{else}:\\
\;\;\;\;\sin t_0 \cdot t_1\\
\end{array}
\end{array}
if y.re < 1.99999999999999998e132Initial program 39.5%
exp-diff36.2%
+-rgt-identity36.2%
+-rgt-identity36.2%
exp-to-pow36.2%
hypot-def36.2%
*-commutative36.2%
exp-prod36.0%
+-commutative36.0%
*-commutative36.0%
Simplified74.2%
Taylor expanded in y.im around 0 42.3%
unpow242.3%
unpow242.3%
hypot-def46.2%
Simplified46.2%
*-commutative46.2%
add-exp-log24.1%
Applied egg-rr24.1%
Taylor expanded in y.re around 0 49.0%
if 1.99999999999999998e132 < y.re Initial program 46.7%
exp-diff42.2%
+-rgt-identity42.2%
+-rgt-identity42.2%
exp-to-pow42.2%
hypot-def42.2%
*-commutative42.2%
exp-prod42.2%
+-commutative42.2%
*-commutative42.2%
Simplified68.9%
Taylor expanded in y.im around 0 68.9%
unpow268.9%
unpow268.9%
hypot-def68.9%
Simplified68.9%
Final simplification52.5%
(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.65e+14) (not (<= y.re 2.55e+14)))
(* (sin t_0) (pow x.im 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 = y_46_re * atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -1.65e+14) || !(y_46_re <= 2.55e+14)) {
tmp = sin(t_0) * pow(x_46_im, y_46_re);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: tmp
t_0 = y_46re * atan2(x_46im, x_46re)
if ((y_46re <= (-1.65d+14)) .or. (.not. (y_46re <= 2.55d+14))) then
tmp = sin(t_0) * (x_46im ** y_46re)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double t_0 = y_46_re * Math.atan2(x_46_im, x_46_re);
double tmp;
if ((y_46_re <= -1.65e+14) || !(y_46_re <= 2.55e+14)) {
tmp = Math.sin(t_0) * Math.pow(x_46_im, 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 = y_46_re * math.atan2(x_46_im, x_46_re) tmp = 0 if (y_46_re <= -1.65e+14) or not (y_46_re <= 2.55e+14): tmp = math.sin(t_0) * math.pow(x_46_im, 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(y_46_re * atan(x_46_im, x_46_re)) tmp = 0.0 if ((y_46_re <= -1.65e+14) || !(y_46_re <= 2.55e+14)) tmp = Float64(sin(t_0) * (x_46_im ^ 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 = y_46_re * atan2(x_46_im, x_46_re); tmp = 0.0; if ((y_46_re <= -1.65e+14) || ~((y_46_re <= 2.55e+14))) tmp = sin(t_0) * (x_46_im ^ 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[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y$46$re, -1.65e+14], N[Not[LessEqual[y$46$re, 2.55e+14]], $MachinePrecision]], N[(N[Sin[t$95$0], $MachinePrecision] * N[Power[x$46$im, y$46$re], $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\\
\mathbf{if}\;y.re \leq -1.65 \cdot 10^{+14} \lor \neg \left(y.re \leq 2.55 \cdot 10^{+14}\right):\\
\;\;\;\;\sin t_0 \cdot {x.im}^{y.re}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y.re < -1.65e14 or 2.55e14 < y.re Initial program 40.3%
exp-diff33.6%
+-rgt-identity33.6%
+-rgt-identity33.6%
exp-to-pow33.6%
hypot-def33.6%
*-commutative33.6%
exp-prod33.6%
+-commutative33.6%
*-commutative33.6%
Simplified65.7%
Taylor expanded in y.im around 0 68.8%
unpow268.8%
unpow268.8%
hypot-def68.8%
Simplified68.8%
Taylor expanded in x.re around 0 57.8%
if -1.65e14 < y.re < 2.55e14Initial program 41.2%
exp-diff41.2%
+-rgt-identity41.2%
+-rgt-identity41.2%
exp-to-pow41.2%
hypot-def41.2%
*-commutative41.2%
exp-prod41.0%
+-commutative41.0%
*-commutative41.0%
Simplified81.6%
Taylor expanded in y.im around 0 22.9%
unpow222.9%
unpow222.9%
hypot-def29.8%
Simplified29.8%
Taylor expanded in x.im around 0 12.3%
Taylor expanded in y.re around 0 26.0%
Final simplification42.7%
(FPCore (x.re x.im y.re y.im) :precision binary64 (* (* 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) {
return (y_46_re * atan2(x_46_im, x_46_re)) * pow(hypot(x_46_im, x_46_re), y_46_re);
}
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)) * Math.pow(Math.hypot(x_46_im, x_46_re), y_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)) * math.pow(math.hypot(x_46_im, x_46_re), y_46_re)
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(Float64(y_46_re * atan(x_46_im, x_46_re)) * (hypot(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) tmp = (y_46_re * atan2(x_46_im, x_46_re)) * (hypot(x_46_im, x_46_re) ^ y_46_re); end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sqrt[x$46$im ^ 2 + x$46$re ^ 2], $MachinePrecision], y$46$re], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right) \cdot {\left(\mathsf{hypot}\left(x.im, x.re\right)\right)}^{y.re}
\end{array}
Initial program 40.7%
exp-diff37.2%
+-rgt-identity37.2%
+-rgt-identity37.2%
exp-to-pow37.2%
hypot-def37.2%
*-commutative37.2%
exp-prod37.1%
+-commutative37.1%
*-commutative37.1%
Simplified73.3%
Taylor expanded in y.im around 0 47.0%
unpow247.0%
unpow247.0%
hypot-def50.2%
Simplified50.2%
*-commutative50.2%
add-exp-log26.1%
Applied egg-rr26.1%
Taylor expanded in y.re around 0 49.8%
Final simplification49.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 40.7%
exp-diff37.2%
+-rgt-identity37.2%
+-rgt-identity37.2%
exp-to-pow37.2%
hypot-def37.2%
*-commutative37.2%
exp-prod37.1%
+-commutative37.1%
*-commutative37.1%
Simplified73.3%
Taylor expanded in y.im around 0 47.0%
unpow247.0%
unpow247.0%
hypot-def50.2%
Simplified50.2%
Taylor expanded in x.im around 0 32.3%
Taylor expanded in y.re around 0 15.2%
Final simplification15.2%
herbie shell --seed 2023240
(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)))))