| Alternative 1 | |
|---|---|
| Error | 16.4 |
| Cost | 106568 |
(FPCore (x.re x.im y.re y.im)
: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)))))(FPCore (x.re x.im y.re y.im)
:precision binary64
(let* ((t_0 (* (atan2 x.im x.re) y.re))
(t_1 (log (- x.im)))
(t_2 (sin (+ (* t_1 y.im) t_0)))
(t_3 (* (atan2 x.im x.re) y.im))
(t_4 (* (exp (- (* t_1 y.re) t_3)) t_2))
(t_5
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) t_3)))
(t_6 (exp (- (* (log x.im) y.re) t_3))))
(if (<= x.im -3.4e+34)
t_4
(if (<= x.im -6.4e-203)
(* t_5 t_2)
(if (<= x.im -2.2e-269)
t_4
(if (<= x.im 4e-248)
(* t_5 (* y.re (atan2 x.im x.re)))
(if (<= x.im 6.6e-173)
(* t_6 (sin (+ (* (log (- x.re)) y.im) t_0)))
(* t_6 (sin (+ (* (log x.im) y.im) t_0))))))))))double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_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_re;
double t_1 = log(-x_46_im);
double t_2 = sin(((t_1 * y_46_im) + t_0));
double t_3 = atan2(x_46_im, x_46_re) * y_46_im;
double t_4 = exp(((t_1 * y_46_re) - t_3)) * t_2;
double t_5 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - t_3));
double t_6 = exp(((log(x_46_im) * y_46_re) - t_3));
double tmp;
if (x_46_im <= -3.4e+34) {
tmp = t_4;
} else if (x_46_im <= -6.4e-203) {
tmp = t_5 * t_2;
} else if (x_46_im <= -2.2e-269) {
tmp = t_4;
} else if (x_46_im <= 4e-248) {
tmp = t_5 * (y_46_re * atan2(x_46_im, x_46_re));
} else if (x_46_im <= 6.6e-173) {
tmp = t_6 * sin(((log(-x_46_re) * y_46_im) + t_0));
} else {
tmp = t_6 * sin(((log(x_46_im) * y_46_im) + 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
code = exp(((log(sqrt(((x_46re * x_46re) + (x_46im * x_46im)))) * y_46re) - (atan2(x_46im, x_46re) * y_46im))) * sin(((log(sqrt(((x_46re * x_46re) + (x_46im * x_46im)))) * y_46im) + (atan2(x_46im, x_46re) * y_46re)))
end function
real(8) function code(x_46re, x_46im, y_46re, y_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8), intent (in) :: y_46re
real(8), intent (in) :: y_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_0 = atan2(x_46im, x_46re) * y_46re
t_1 = log(-x_46im)
t_2 = sin(((t_1 * y_46im) + t_0))
t_3 = atan2(x_46im, x_46re) * y_46im
t_4 = exp(((t_1 * y_46re) - t_3)) * t_2
t_5 = exp(((log(sqrt(((x_46re * x_46re) + (x_46im * x_46im)))) * y_46re) - t_3))
t_6 = exp(((log(x_46im) * y_46re) - t_3))
if (x_46im <= (-3.4d+34)) then
tmp = t_4
else if (x_46im <= (-6.4d-203)) then
tmp = t_5 * t_2
else if (x_46im <= (-2.2d-269)) then
tmp = t_4
else if (x_46im <= 4d-248) then
tmp = t_5 * (y_46re * atan2(x_46im, x_46re))
else if (x_46im <= 6.6d-173) then
tmp = t_6 * sin(((log(-x_46re) * y_46im) + t_0))
else
tmp = t_6 * sin(((log(x_46im) * y_46im) + 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) {
return Math.exp(((Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (Math.atan2(x_46_im, x_46_re) * y_46_im))) * Math.sin(((Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im) + (Math.atan2(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) {
double t_0 = Math.atan2(x_46_im, x_46_re) * y_46_re;
double t_1 = Math.log(-x_46_im);
double t_2 = Math.sin(((t_1 * y_46_im) + t_0));
double t_3 = Math.atan2(x_46_im, x_46_re) * y_46_im;
double t_4 = Math.exp(((t_1 * y_46_re) - t_3)) * t_2;
double t_5 = Math.exp(((Math.log(Math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - t_3));
double t_6 = Math.exp(((Math.log(x_46_im) * y_46_re) - t_3));
double tmp;
if (x_46_im <= -3.4e+34) {
tmp = t_4;
} else if (x_46_im <= -6.4e-203) {
tmp = t_5 * t_2;
} else if (x_46_im <= -2.2e-269) {
tmp = t_4;
} else if (x_46_im <= 4e-248) {
tmp = t_5 * (y_46_re * Math.atan2(x_46_im, x_46_re));
} else if (x_46_im <= 6.6e-173) {
tmp = t_6 * Math.sin(((Math.log(-x_46_re) * y_46_im) + t_0));
} else {
tmp = t_6 * Math.sin(((Math.log(x_46_im) * y_46_im) + t_0));
}
return tmp;
}
def code(x_46_re, x_46_im, y_46_re, y_46_im): return math.exp(((math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (math.atan2(x_46_im, x_46_re) * y_46_im))) * math.sin(((math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * 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.atan2(x_46_im, x_46_re) * y_46_re t_1 = math.log(-x_46_im) t_2 = math.sin(((t_1 * y_46_im) + t_0)) t_3 = math.atan2(x_46_im, x_46_re) * y_46_im t_4 = math.exp(((t_1 * y_46_re) - t_3)) * t_2 t_5 = math.exp(((math.log(math.sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - t_3)) t_6 = math.exp(((math.log(x_46_im) * y_46_re) - t_3)) tmp = 0 if x_46_im <= -3.4e+34: tmp = t_4 elif x_46_im <= -6.4e-203: tmp = t_5 * t_2 elif x_46_im <= -2.2e-269: tmp = t_4 elif x_46_im <= 4e-248: tmp = t_5 * (y_46_re * math.atan2(x_46_im, x_46_re)) elif x_46_im <= 6.6e-173: tmp = t_6 * math.sin(((math.log(-x_46_re) * y_46_im) + t_0)) else: tmp = t_6 * math.sin(((math.log(x_46_im) * y_46_im) + t_0)) return tmp
function code(x_46_re, x_46_im, y_46_re, y_46_im) return Float64(exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - Float64(atan(x_46_im, x_46_re) * y_46_im))) * sin(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_im) + Float64(atan(x_46_im, x_46_re) * y_46_re)))) end
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_re) t_1 = log(Float64(-x_46_im)) t_2 = sin(Float64(Float64(t_1 * y_46_im) + t_0)) t_3 = Float64(atan(x_46_im, x_46_re) * y_46_im) t_4 = Float64(exp(Float64(Float64(t_1 * y_46_re) - t_3)) * t_2) t_5 = exp(Float64(Float64(log(sqrt(Float64(Float64(x_46_re * x_46_re) + Float64(x_46_im * x_46_im)))) * y_46_re) - t_3)) t_6 = exp(Float64(Float64(log(x_46_im) * y_46_re) - t_3)) tmp = 0.0 if (x_46_im <= -3.4e+34) tmp = t_4; elseif (x_46_im <= -6.4e-203) tmp = Float64(t_5 * t_2); elseif (x_46_im <= -2.2e-269) tmp = t_4; elseif (x_46_im <= 4e-248) tmp = Float64(t_5 * Float64(y_46_re * atan(x_46_im, x_46_re))); elseif (x_46_im <= 6.6e-173) tmp = Float64(t_6 * sin(Float64(Float64(log(Float64(-x_46_re)) * y_46_im) + t_0))); else tmp = Float64(t_6 * sin(Float64(Float64(log(x_46_im) * y_46_im) + t_0))); end return tmp end
function tmp = code(x_46_re, x_46_im, y_46_re, y_46_im) tmp = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - (atan2(x_46_im, x_46_re) * y_46_im))) * sin(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_im) + (atan2(x_46_im, x_46_re) * y_46_re))); 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_re; t_1 = log(-x_46_im); t_2 = sin(((t_1 * y_46_im) + t_0)); t_3 = atan2(x_46_im, x_46_re) * y_46_im; t_4 = exp(((t_1 * y_46_re) - t_3)) * t_2; t_5 = exp(((log(sqrt(((x_46_re * x_46_re) + (x_46_im * x_46_im)))) * y_46_re) - t_3)); t_6 = exp(((log(x_46_im) * y_46_re) - t_3)); tmp = 0.0; if (x_46_im <= -3.4e+34) tmp = t_4; elseif (x_46_im <= -6.4e-203) tmp = t_5 * t_2; elseif (x_46_im <= -2.2e-269) tmp = t_4; elseif (x_46_im <= 4e-248) tmp = t_5 * (y_46_re * atan2(x_46_im, x_46_re)); elseif (x_46_im <= 6.6e-173) tmp = t_6 * sin(((log(-x_46_re) * y_46_im) + t_0)); else tmp = t_6 * sin(((log(x_46_im) * y_46_im) + t_0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_, y$46$re_, y$46$im_] := N[(N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sin[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$im), $MachinePrecision] + N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$re), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
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$re), $MachinePrecision]}, Block[{t$95$1 = N[Log[(-x$46$im)], $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(N[(t$95$1 * y$46$im), $MachinePrecision] + t$95$0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[ArcTan[x$46$im / x$46$re], $MachinePrecision] * y$46$im), $MachinePrecision]}, Block[{t$95$4 = N[(N[Exp[N[(N[(t$95$1 * y$46$re), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision] * t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[Exp[N[(N[(N[Log[N[Sqrt[N[(N[(x$46$re * x$46$re), $MachinePrecision] + N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * y$46$re), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$6 = N[Exp[N[(N[(N[Log[x$46$im], $MachinePrecision] * y$46$re), $MachinePrecision] - t$95$3), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x$46$im, -3.4e+34], t$95$4, If[LessEqual[x$46$im, -6.4e-203], N[(t$95$5 * t$95$2), $MachinePrecision], If[LessEqual[x$46$im, -2.2e-269], t$95$4, If[LessEqual[x$46$im, 4e-248], N[(t$95$5 * N[(y$46$re * N[ArcTan[x$46$im / x$46$re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$im, 6.6e-173], N[(t$95$6 * N[Sin[N[(N[(N[Log[(-x$46$re)], $MachinePrecision] * y$46$im), $MachinePrecision] + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$6 * N[Sin[N[(N[(N[Log[x$46$im], $MachinePrecision] * y$46$im), $MachinePrecision] + t$95$0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\begin{array}{l}
t_0 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\\
t_1 := \log \left(-x.im\right)\\
t_2 := \sin \left(t_1 \cdot y.im + t_0\right)\\
t_3 := \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im\\
t_4 := e^{t_1 \cdot y.re - t_3} \cdot t_2\\
t_5 := e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - t_3}\\
t_6 := e^{\log x.im \cdot y.re - t_3}\\
\mathbf{if}\;x.im \leq -3.4 \cdot 10^{+34}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x.im \leq -6.4 \cdot 10^{-203}:\\
\;\;\;\;t_5 \cdot t_2\\
\mathbf{elif}\;x.im \leq -2.2 \cdot 10^{-269}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x.im \leq 4 \cdot 10^{-248}:\\
\;\;\;\;t_5 \cdot \left(y.re \cdot \tan^{-1}_* \frac{x.im}{x.re}\right)\\
\mathbf{elif}\;x.im \leq 6.6 \cdot 10^{-173}:\\
\;\;\;\;t_6 \cdot \sin \left(\log \left(-x.re\right) \cdot y.im + t_0\right)\\
\mathbf{else}:\\
\;\;\;\;t_6 \cdot \sin \left(\log x.im \cdot y.im + t_0\right)\\
\end{array}
Results
if x.im < -3.3999999999999999e34 or -6.40000000000000001e-203 < x.im < -2.19999999999999984e-269Initial program 41.2
Taylor expanded in x.im around -inf 26.0
Simplified26.0
[Start]26.0 | \[ e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(-1 \cdot x.im\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
|---|---|
rational_best_oopsla_all_46_json_45_simplify-74 [=>]26.0 | \[ e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \color{blue}{\left(x.im \cdot -1\right)} \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
rational_best_oopsla_all_46_json_45_simplify-92 [=>]26.0 | \[ e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \color{blue}{\left(-x.im\right)} \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
Taylor expanded in x.im around -inf 10.1
Simplified10.1
[Start]10.1 | \[ e^{\log \left(-1 \cdot x.im\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(-x.im\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
|---|---|
rational_best_oopsla_all_46_json_45_simplify-74 [=>]10.1 | \[ e^{\log \color{blue}{\left(x.im \cdot -1\right)} \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(-x.im\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
rational_best_oopsla_all_46_json_45_simplify-92 [=>]10.1 | \[ e^{\log \color{blue}{\left(-x.im\right)} \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(-x.im\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
if -3.3999999999999999e34 < x.im < -6.40000000000000001e-203Initial program 20.8
Taylor expanded in x.im around -inf 18.6
Simplified18.6
[Start]18.6 | \[ e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(-1 \cdot x.im\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
|---|---|
rational_best_oopsla_all_46_json_45_simplify-74 [=>]18.6 | \[ e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \color{blue}{\left(x.im \cdot -1\right)} \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
rational_best_oopsla_all_46_json_45_simplify-92 [=>]18.6 | \[ e^{\log \left(\sqrt{x.re \cdot x.re + x.im \cdot x.im}\right) \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \color{blue}{\left(-x.im\right)} \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
if -2.19999999999999984e-269 < x.im < 3.99999999999999992e-248Initial program 35.9
Taylor expanded in y.im around 0 32.8
Taylor expanded in y.re around 0 32.9
if 3.99999999999999992e-248 < x.im < 6.6000000000000006e-173Initial program 33.7
Taylor expanded in x.re around 0 39.4
Taylor expanded in x.re around -inf 39.4
Simplified39.4
[Start]39.4 | \[ e^{\log x.im \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \left(-1 \cdot x.re\right) \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
|---|---|
rational_best_oopsla_all_46_json_45_simplify-74 [=>]39.4 | \[ e^{\log x.im \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \color{blue}{\left(x.re \cdot -1\right)} \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
rational_best_oopsla_all_46_json_45_simplify-92 [=>]39.4 | \[ e^{\log x.im \cdot y.re - \tan^{-1}_* \frac{x.im}{x.re} \cdot y.im} \cdot \sin \left(\log \color{blue}{\left(-x.re\right)} \cdot y.im + \tan^{-1}_* \frac{x.im}{x.re} \cdot y.re\right)
\] |
if 6.6000000000000006e-173 < x.im Initial program 32.5
Taylor expanded in x.re around 0 34.6
Taylor expanded in x.re around 0 13.1
Final simplification16.7
| Alternative 1 | |
|---|---|
| Error | 16.4 |
| Cost | 106568 |
| Alternative 2 | |
|---|---|
| Error | 16.4 |
| Cost | 53320 |
| Alternative 3 | |
|---|---|
| Error | 20.6 |
| Cost | 40212 |
| Alternative 4 | |
|---|---|
| Error | 20.2 |
| Cost | 40016 |
| Alternative 5 | |
|---|---|
| Error | 17.7 |
| Cost | 39948 |
| Alternative 6 | |
|---|---|
| Error | 20.4 |
| Cost | 33744 |
| Alternative 7 | |
|---|---|
| Error | 25.7 |
| Cost | 33032 |
| Alternative 8 | |
|---|---|
| Error | 23.7 |
| Cost | 26628 |
| Alternative 9 | |
|---|---|
| Error | 29.8 |
| Cost | 26564 |
| Alternative 10 | |
|---|---|
| Error | 27.2 |
| Cost | 20104 |
| Alternative 11 | |
|---|---|
| Error | 36.9 |
| Cost | 19912 |
| Alternative 12 | |
|---|---|
| Error | 36.9 |
| Cost | 13512 |
| Alternative 13 | |
|---|---|
| Error | 51.2 |
| Cost | 6656 |
herbie shell --seed 2023090
(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)))))