
(FPCore (x.re x.im) :precision binary64 (- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im)))
double code(double x_46_re, double x_46_im) {
return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im);
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
code = (((x_46re * x_46re) - (x_46im * x_46im)) * x_46re) - (((x_46re * x_46im) + (x_46im * x_46re)) * x_46im)
end function
public static double code(double x_46_re, double x_46_im) {
return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im);
}
def code(x_46_re, x_46_im): return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im)
function code(x_46_re, x_46_im) return Float64(Float64(Float64(Float64(x_46_re * x_46_re) - Float64(x_46_im * x_46_im)) * x_46_re) - Float64(Float64(Float64(x_46_re * x_46_im) + Float64(x_46_im * x_46_re)) * x_46_im)) end
function tmp = code(x_46_re, x_46_im) tmp = (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im); end
code[x$46$re_, x$46$im_] := N[(N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision] * x$46$re), $MachinePrecision] - N[(N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] * x$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x.re \cdot x.re - x.im \cdot x.im\right) \cdot x.re - \left(x.re \cdot x.im + x.im \cdot x.re\right) \cdot x.im
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x.re x.im) :precision binary64 (- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im)))
double code(double x_46_re, double x_46_im) {
return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im);
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
code = (((x_46re * x_46re) - (x_46im * x_46im)) * x_46re) - (((x_46re * x_46im) + (x_46im * x_46re)) * x_46im)
end function
public static double code(double x_46_re, double x_46_im) {
return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im);
}
def code(x_46_re, x_46_im): return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im)
function code(x_46_re, x_46_im) return Float64(Float64(Float64(Float64(x_46_re * x_46_re) - Float64(x_46_im * x_46_im)) * x_46_re) - Float64(Float64(Float64(x_46_re * x_46_im) + Float64(x_46_im * x_46_re)) * x_46_im)) end
function tmp = code(x_46_re, x_46_im) tmp = (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_re) - (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_im); end
code[x$46$re_, x$46$im_] := N[(N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision] * x$46$re), $MachinePrecision] - N[(N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] * x$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x.re \cdot x.re - x.im \cdot x.im\right) \cdot x.re - \left(x.re \cdot x.im + x.im \cdot x.re\right) \cdot x.im
\end{array}
(FPCore (x.re x.im)
:precision binary64
(let* ((t_0 (* (+ x.re x.im) (* x.re (- x.re x.im))))
(t_1
(-
(* x.re (- (* x.re x.re) (* x.im x.im)))
(* (* x.im x.im) (* x.re 2.0)))))
(if (<= x.re -2e+119)
t_0
(if (<= x.re -1.25e-104)
t_1
(if (<= x.re 2.8e-177)
(* x.im (* (* x.re x.im) -3.0))
(if (<= x.re 6e+57) t_1 t_0))))))
double code(double x_46_re, double x_46_im) {
double t_0 = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
double t_1 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - ((x_46_im * x_46_im) * (x_46_re * 2.0));
double tmp;
if (x_46_re <= -2e+119) {
tmp = t_0;
} else if (x_46_re <= -1.25e-104) {
tmp = t_1;
} else if (x_46_re <= 2.8e-177) {
tmp = x_46_im * ((x_46_re * x_46_im) * -3.0);
} else if (x_46_re <= 6e+57) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x_46re + x_46im) * (x_46re * (x_46re - x_46im))
t_1 = (x_46re * ((x_46re * x_46re) - (x_46im * x_46im))) - ((x_46im * x_46im) * (x_46re * 2.0d0))
if (x_46re <= (-2d+119)) then
tmp = t_0
else if (x_46re <= (-1.25d-104)) then
tmp = t_1
else if (x_46re <= 2.8d-177) then
tmp = x_46im * ((x_46re * x_46im) * (-3.0d0))
else if (x_46re <= 6d+57) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double t_0 = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
double t_1 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - ((x_46_im * x_46_im) * (x_46_re * 2.0));
double tmp;
if (x_46_re <= -2e+119) {
tmp = t_0;
} else if (x_46_re <= -1.25e-104) {
tmp = t_1;
} else if (x_46_re <= 2.8e-177) {
tmp = x_46_im * ((x_46_re * x_46_im) * -3.0);
} else if (x_46_re <= 6e+57) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x_46_re, x_46_im): t_0 = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)) t_1 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - ((x_46_im * x_46_im) * (x_46_re * 2.0)) tmp = 0 if x_46_re <= -2e+119: tmp = t_0 elif x_46_re <= -1.25e-104: tmp = t_1 elif x_46_re <= 2.8e-177: tmp = x_46_im * ((x_46_re * x_46_im) * -3.0) elif x_46_re <= 6e+57: tmp = t_1 else: tmp = t_0 return tmp
function code(x_46_re, x_46_im) t_0 = Float64(Float64(x_46_re + x_46_im) * Float64(x_46_re * Float64(x_46_re - x_46_im))) t_1 = Float64(Float64(x_46_re * Float64(Float64(x_46_re * x_46_re) - Float64(x_46_im * x_46_im))) - Float64(Float64(x_46_im * x_46_im) * Float64(x_46_re * 2.0))) tmp = 0.0 if (x_46_re <= -2e+119) tmp = t_0; elseif (x_46_re <= -1.25e-104) tmp = t_1; elseif (x_46_re <= 2.8e-177) tmp = Float64(x_46_im * Float64(Float64(x_46_re * x_46_im) * -3.0)); elseif (x_46_re <= 6e+57) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x_46_re, x_46_im) t_0 = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)); t_1 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - ((x_46_im * x_46_im) * (x_46_re * 2.0)); tmp = 0.0; if (x_46_re <= -2e+119) tmp = t_0; elseif (x_46_re <= -1.25e-104) tmp = t_1; elseif (x_46_re <= 2.8e-177) tmp = x_46_im * ((x_46_re * x_46_im) * -3.0); elseif (x_46_re <= 6e+57) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := Block[{t$95$0 = N[(N[(x$46$re + x$46$im), $MachinePrecision] * N[(x$46$re * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x$46$re * N[(N[(x$46$re * x$46$re), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x$46$im * x$46$im), $MachinePrecision] * N[(x$46$re * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$46$re, -2e+119], t$95$0, If[LessEqual[x$46$re, -1.25e-104], t$95$1, If[LessEqual[x$46$re, 2.8e-177], N[(x$46$im * N[(N[(x$46$re * x$46$im), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$46$re, 6e+57], t$95$1, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x.re + x.im\right) \cdot \left(x.re \cdot \left(x.re - x.im\right)\right)\\
t_1 := x.re \cdot \left(x.re \cdot x.re - x.im \cdot x.im\right) - \left(x.im \cdot x.im\right) \cdot \left(x.re \cdot 2\right)\\
\mathbf{if}\;x.re \leq -2 \cdot 10^{+119}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x.re \leq -1.25 \cdot 10^{-104}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x.re \leq 2.8 \cdot 10^{-177}:\\
\;\;\;\;x.im \cdot \left(\left(x.re \cdot x.im\right) \cdot -3\right)\\
\mathbf{elif}\;x.re \leq 6 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x.re < -1.99999999999999989e119 or 5.9999999999999999e57 < x.re Initial program 65.9%
*-commutative65.9%
*-commutative65.9%
distribute-rgt-in65.9%
*-commutative65.9%
*-commutative65.9%
Applied egg-rr65.9%
sub-neg65.9%
difference-of-squares72.3%
associate-*l*72.3%
distribute-neg-in72.3%
associate-*l*72.3%
distribute-lft-neg-out72.3%
add-sqr-sqrt30.9%
sqrt-unprod34.0%
sqr-neg34.0%
sqrt-prod28.7%
add-sqr-sqrt53.2%
associate-*l*53.2%
sub-neg53.2%
+-inverses100.0%
Applied egg-rr100.0%
+-rgt-identity100.0%
*-commutative100.0%
Simplified100.0%
if -1.99999999999999989e119 < x.re < -1.24999999999999995e-104 or 2.79999999999999987e-177 < x.re < 5.9999999999999999e57Initial program 99.7%
Taylor expanded in x.re around 0 99.7%
Simplified99.7%
if -1.24999999999999995e-104 < x.re < 2.79999999999999987e-177Initial program 85.7%
*-commutative85.7%
*-commutative85.7%
distribute-rgt-in85.7%
*-commutative85.7%
*-commutative85.7%
Applied egg-rr85.7%
Taylor expanded in x.re around 0 85.6%
unpow285.6%
unpow285.6%
distribute-rgt-out--85.6%
metadata-eval85.6%
associate-*r*85.6%
associate-*r*99.6%
*-commutative99.6%
associate-*l*99.7%
Simplified99.7%
Final simplification99.8%
(FPCore (x.re x.im)
:precision binary64
(let* ((t_0 (* x.im (* x.re x.im)))
(t_1 (* x.re (- (* x.re x.re) (* x.im x.im)))))
(if (<= (- t_1 (* x.im (+ (* x.re x.im) (* x.re x.im)))) 2e+240)
(- t_1 (+ t_0 t_0))
(* (+ x.re x.im) (* x.re (- x.re x.im))))))
double code(double x_46_re, double x_46_im) {
double t_0 = x_46_im * (x_46_re * x_46_im);
double t_1 = x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im));
double tmp;
if ((t_1 - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im)))) <= 2e+240) {
tmp = t_1 - (t_0 + t_0);
} else {
tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x_46im * (x_46re * x_46im)
t_1 = x_46re * ((x_46re * x_46re) - (x_46im * x_46im))
if ((t_1 - (x_46im * ((x_46re * x_46im) + (x_46re * x_46im)))) <= 2d+240) then
tmp = t_1 - (t_0 + t_0)
else
tmp = (x_46re + x_46im) * (x_46re * (x_46re - x_46im))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double t_0 = x_46_im * (x_46_re * x_46_im);
double t_1 = x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im));
double tmp;
if ((t_1 - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im)))) <= 2e+240) {
tmp = t_1 - (t_0 + t_0);
} else {
tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im): t_0 = x_46_im * (x_46_re * x_46_im) t_1 = x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im)) tmp = 0 if (t_1 - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im)))) <= 2e+240: tmp = t_1 - (t_0 + t_0) else: tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)) return tmp
function code(x_46_re, x_46_im) t_0 = Float64(x_46_im * Float64(x_46_re * x_46_im)) t_1 = Float64(x_46_re * Float64(Float64(x_46_re * x_46_re) - Float64(x_46_im * x_46_im))) tmp = 0.0 if (Float64(t_1 - Float64(x_46_im * Float64(Float64(x_46_re * x_46_im) + Float64(x_46_re * x_46_im)))) <= 2e+240) tmp = Float64(t_1 - Float64(t_0 + t_0)); else tmp = Float64(Float64(x_46_re + x_46_im) * Float64(x_46_re * Float64(x_46_re - x_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) t_0 = x_46_im * (x_46_re * x_46_im); t_1 = x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im)); tmp = 0.0; if ((t_1 - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im)))) <= 2e+240) tmp = t_1 - (t_0 + t_0); else tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := Block[{t$95$0 = N[(x$46$im * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x$46$re * N[(N[(x$46$re * x$46$re), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 - N[(x$46$im * N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2e+240], N[(t$95$1 - N[(t$95$0 + t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x$46$re + x$46$im), $MachinePrecision] * N[(x$46$re * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.im \cdot \left(x.re \cdot x.im\right)\\
t_1 := x.re \cdot \left(x.re \cdot x.re - x.im \cdot x.im\right)\\
\mathbf{if}\;t_1 - x.im \cdot \left(x.re \cdot x.im + x.re \cdot x.im\right) \leq 2 \cdot 10^{+240}:\\
\;\;\;\;t_1 - \left(t_0 + t_0\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x.re + x.im\right) \cdot \left(x.re \cdot \left(x.re - x.im\right)\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 (-.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)) x.re) (*.f64 (+.f64 (*.f64 x.re x.im) (*.f64 x.im x.re)) x.im)) < 2.00000000000000003e240Initial program 98.2%
*-commutative98.2%
*-commutative98.2%
distribute-rgt-in98.2%
*-commutative98.2%
*-commutative98.2%
Applied egg-rr98.2%
if 2.00000000000000003e240 < (-.f64 (*.f64 (-.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)) x.re) (*.f64 (+.f64 (*.f64 x.re x.im) (*.f64 x.im x.re)) x.im)) Initial program 49.3%
*-commutative49.3%
*-commutative49.3%
distribute-rgt-in49.3%
*-commutative49.3%
*-commutative49.3%
Applied egg-rr49.3%
sub-neg49.3%
difference-of-squares56.9%
associate-*l*66.6%
distribute-neg-in66.6%
associate-*l*56.9%
distribute-lft-neg-out56.9%
add-sqr-sqrt26.2%
sqrt-unprod46.2%
sqr-neg46.2%
sqrt-prod26.9%
add-sqr-sqrt27.0%
associate-*l*28.7%
sub-neg28.7%
+-inverses91.6%
Applied egg-rr91.6%
+-rgt-identity91.6%
*-commutative91.6%
Simplified91.6%
Final simplification96.2%
(FPCore (x.re x.im)
:precision binary64
(let* ((t_0
(-
(* x.re (- (* x.re x.re) (* x.im x.im)))
(* x.im (+ (* x.re x.im) (* x.re x.im))))))
(if (<= t_0 2e+240) t_0 (* (+ x.re x.im) (* x.re (- x.re x.im))))))
double code(double x_46_re, double x_46_im) {
double t_0 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im)));
double tmp;
if (t_0 <= 2e+240) {
tmp = t_0;
} else {
tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: t_0
real(8) :: tmp
t_0 = (x_46re * ((x_46re * x_46re) - (x_46im * x_46im))) - (x_46im * ((x_46re * x_46im) + (x_46re * x_46im)))
if (t_0 <= 2d+240) then
tmp = t_0
else
tmp = (x_46re + x_46im) * (x_46re * (x_46re - x_46im))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double t_0 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im)));
double tmp;
if (t_0 <= 2e+240) {
tmp = t_0;
} else {
tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im): t_0 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im))) tmp = 0 if t_0 <= 2e+240: tmp = t_0 else: tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)) return tmp
function code(x_46_re, x_46_im) t_0 = Float64(Float64(x_46_re * Float64(Float64(x_46_re * x_46_re) - Float64(x_46_im * x_46_im))) - Float64(x_46_im * Float64(Float64(x_46_re * x_46_im) + Float64(x_46_re * x_46_im)))) tmp = 0.0 if (t_0 <= 2e+240) tmp = t_0; else tmp = Float64(Float64(x_46_re + x_46_im) * Float64(x_46_re * Float64(x_46_re - x_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) t_0 = (x_46_re * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) - (x_46_im * ((x_46_re * x_46_im) + (x_46_re * x_46_im))); tmp = 0.0; if (t_0 <= 2e+240) tmp = t_0; else tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := Block[{t$95$0 = N[(N[(x$46$re * N[(N[(x$46$re * x$46$re), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x$46$im * N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 2e+240], t$95$0, N[(N[(x$46$re + x$46$im), $MachinePrecision] * N[(x$46$re * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot \left(x.re \cdot x.re - x.im \cdot x.im\right) - x.im \cdot \left(x.re \cdot x.im + x.re \cdot x.im\right)\\
\mathbf{if}\;t_0 \leq 2 \cdot 10^{+240}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(x.re + x.im\right) \cdot \left(x.re \cdot \left(x.re - x.im\right)\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 (-.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)) x.re) (*.f64 (+.f64 (*.f64 x.re x.im) (*.f64 x.im x.re)) x.im)) < 2.00000000000000003e240Initial program 98.2%
if 2.00000000000000003e240 < (-.f64 (*.f64 (-.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)) x.re) (*.f64 (+.f64 (*.f64 x.re x.im) (*.f64 x.im x.re)) x.im)) Initial program 49.3%
*-commutative49.3%
*-commutative49.3%
distribute-rgt-in49.3%
*-commutative49.3%
*-commutative49.3%
Applied egg-rr49.3%
sub-neg49.3%
difference-of-squares56.9%
associate-*l*66.6%
distribute-neg-in66.6%
associate-*l*56.9%
distribute-lft-neg-out56.9%
add-sqr-sqrt26.2%
sqrt-unprod46.2%
sqr-neg46.2%
sqrt-prod26.9%
add-sqr-sqrt27.0%
associate-*l*28.7%
sub-neg28.7%
+-inverses91.6%
Applied egg-rr91.6%
+-rgt-identity91.6%
*-commutative91.6%
Simplified91.6%
Final simplification96.2%
(FPCore (x.re x.im) :precision binary64 (if (or (<= x.re -6.6e-88) (not (<= x.re 2.7e+36))) (* (+ x.re x.im) (* x.re (- x.re x.im))) (* x.im (* (* x.re x.im) -3.0))))
double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -6.6e-88) || !(x_46_re <= 2.7e+36)) {
tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
} else {
tmp = x_46_im * ((x_46_re * x_46_im) * -3.0);
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: tmp
if ((x_46re <= (-6.6d-88)) .or. (.not. (x_46re <= 2.7d+36))) then
tmp = (x_46re + x_46im) * (x_46re * (x_46re - x_46im))
else
tmp = x_46im * ((x_46re * x_46im) * (-3.0d0))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -6.6e-88) || !(x_46_re <= 2.7e+36)) {
tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im));
} else {
tmp = x_46_im * ((x_46_re * x_46_im) * -3.0);
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if (x_46_re <= -6.6e-88) or not (x_46_re <= 2.7e+36): tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)) else: tmp = x_46_im * ((x_46_re * x_46_im) * -3.0) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if ((x_46_re <= -6.6e-88) || !(x_46_re <= 2.7e+36)) tmp = Float64(Float64(x_46_re + x_46_im) * Float64(x_46_re * Float64(x_46_re - x_46_im))); else tmp = Float64(x_46_im * Float64(Float64(x_46_re * x_46_im) * -3.0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if ((x_46_re <= -6.6e-88) || ~((x_46_re <= 2.7e+36))) tmp = (x_46_re + x_46_im) * (x_46_re * (x_46_re - x_46_im)); else tmp = x_46_im * ((x_46_re * x_46_im) * -3.0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[Or[LessEqual[x$46$re, -6.6e-88], N[Not[LessEqual[x$46$re, 2.7e+36]], $MachinePrecision]], N[(N[(x$46$re + x$46$im), $MachinePrecision] * N[(x$46$re * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$46$im * N[(N[(x$46$re * x$46$im), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq -6.6 \cdot 10^{-88} \lor \neg \left(x.re \leq 2.7 \cdot 10^{+36}\right):\\
\;\;\;\;\left(x.re + x.im\right) \cdot \left(x.re \cdot \left(x.re - x.im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x.im \cdot \left(\left(x.re \cdot x.im\right) \cdot -3\right)\\
\end{array}
\end{array}
if x.re < -6.59999999999999987e-88 or 2.7000000000000001e36 < x.re Initial program 77.5%
*-commutative77.5%
*-commutative77.5%
distribute-rgt-in77.5%
*-commutative77.5%
*-commutative77.5%
Applied egg-rr77.5%
sub-neg77.5%
difference-of-squares81.7%
associate-*l*81.7%
distribute-neg-in81.7%
associate-*l*81.7%
distribute-lft-neg-out81.7%
add-sqr-sqrt52.3%
sqrt-unprod55.2%
sqr-neg55.2%
sqrt-prod19.7%
add-sqr-sqrt57.4%
associate-*l*57.4%
sub-neg57.4%
+-inverses95.9%
Applied egg-rr95.9%
+-rgt-identity95.9%
*-commutative95.9%
Simplified95.9%
if -6.59999999999999987e-88 < x.re < 2.7000000000000001e36Initial program 90.6%
*-commutative90.6%
*-commutative90.6%
distribute-rgt-in90.6%
*-commutative90.6%
*-commutative90.6%
Applied egg-rr90.6%
Taylor expanded in x.re around 0 81.1%
unpow281.1%
unpow281.1%
distribute-rgt-out--81.1%
metadata-eval81.1%
associate-*r*81.1%
associate-*r*90.3%
*-commutative90.3%
associate-*l*90.3%
Simplified90.3%
Final simplification93.4%
(FPCore (x.re x.im) :precision binary64 (if (or (<= x.re -5e+154) (not (<= x.re 4.6e+149))) (* x.im (* x.re x.im)) (* x.im (* x.re (* x.im -3.0)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -5e+154) || !(x_46_re <= 4.6e+149)) {
tmp = x_46_im * (x_46_re * x_46_im);
} else {
tmp = x_46_im * (x_46_re * (x_46_im * -3.0));
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: tmp
if ((x_46re <= (-5d+154)) .or. (.not. (x_46re <= 4.6d+149))) then
tmp = x_46im * (x_46re * x_46im)
else
tmp = x_46im * (x_46re * (x_46im * (-3.0d0)))
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -5e+154) || !(x_46_re <= 4.6e+149)) {
tmp = x_46_im * (x_46_re * x_46_im);
} else {
tmp = x_46_im * (x_46_re * (x_46_im * -3.0));
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if (x_46_re <= -5e+154) or not (x_46_re <= 4.6e+149): tmp = x_46_im * (x_46_re * x_46_im) else: tmp = x_46_im * (x_46_re * (x_46_im * -3.0)) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if ((x_46_re <= -5e+154) || !(x_46_re <= 4.6e+149)) tmp = Float64(x_46_im * Float64(x_46_re * x_46_im)); else tmp = Float64(x_46_im * Float64(x_46_re * Float64(x_46_im * -3.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if ((x_46_re <= -5e+154) || ~((x_46_re <= 4.6e+149))) tmp = x_46_im * (x_46_re * x_46_im); else tmp = x_46_im * (x_46_re * (x_46_im * -3.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[Or[LessEqual[x$46$re, -5e+154], N[Not[LessEqual[x$46$re, 4.6e+149]], $MachinePrecision]], N[(x$46$im * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision], N[(x$46$im * N[(x$46$re * N[(x$46$im * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq -5 \cdot 10^{+154} \lor \neg \left(x.re \leq 4.6 \cdot 10^{+149}\right):\\
\;\;\;\;x.im \cdot \left(x.re \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.im \cdot \left(x.re \cdot \left(x.im \cdot -3\right)\right)\\
\end{array}
\end{array}
if x.re < -5.00000000000000004e154 or 4.5999999999999997e149 < x.re Initial program 50.0%
Taylor expanded in x.re around 0 10.1%
Simplified10.1%
*-commutative10.1%
*-commutative10.1%
distribute-rgt-out10.1%
associate--r+10.1%
add-sqr-sqrt5.1%
sqrt-unprod14.5%
sqr-neg14.5%
sqrt-prod0.1%
add-sqr-sqrt0.4%
associate-*l*0.4%
+-inverses10.1%
neg-sub010.1%
associate-*l*10.1%
distribute-lft-neg-out10.1%
add-sqr-sqrt5.1%
sqrt-unprod29.1%
sqr-neg29.1%
sqrt-prod15.3%
add-sqr-sqrt42.1%
associate-*l*42.1%
Applied egg-rr42.1%
if -5.00000000000000004e154 < x.re < 4.5999999999999997e149Initial program 93.9%
*-commutative93.9%
*-commutative93.9%
distribute-rgt-in93.9%
*-commutative93.9%
*-commutative93.9%
Applied egg-rr93.9%
Taylor expanded in x.re around 0 62.7%
unpow262.7%
unpow262.7%
distribute-rgt-out--62.7%
metadata-eval62.7%
associate-*r*62.7%
associate-*r*68.1%
*-commutative68.1%
associate-*l*68.1%
Simplified68.1%
Taylor expanded in x.re around 0 68.1%
*-commutative68.1%
associate-*r*68.1%
Simplified68.1%
Final simplification61.8%
(FPCore (x.re x.im) :precision binary64 (if (or (<= x.re -9.2e+153) (not (<= x.re 6.1e+149))) (* x.im (* x.re x.im)) (* x.re (- (* x.im x.im)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -9.2e+153) || !(x_46_re <= 6.1e+149)) {
tmp = x_46_im * (x_46_re * x_46_im);
} else {
tmp = x_46_re * -(x_46_im * x_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: tmp
if ((x_46re <= (-9.2d+153)) .or. (.not. (x_46re <= 6.1d+149))) then
tmp = x_46im * (x_46re * x_46im)
else
tmp = x_46re * -(x_46im * x_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -9.2e+153) || !(x_46_re <= 6.1e+149)) {
tmp = x_46_im * (x_46_re * x_46_im);
} else {
tmp = x_46_re * -(x_46_im * x_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if (x_46_re <= -9.2e+153) or not (x_46_re <= 6.1e+149): tmp = x_46_im * (x_46_re * x_46_im) else: tmp = x_46_re * -(x_46_im * x_46_im) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if ((x_46_re <= -9.2e+153) || !(x_46_re <= 6.1e+149)) tmp = Float64(x_46_im * Float64(x_46_re * x_46_im)); else tmp = Float64(x_46_re * Float64(-Float64(x_46_im * x_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if ((x_46_re <= -9.2e+153) || ~((x_46_re <= 6.1e+149))) tmp = x_46_im * (x_46_re * x_46_im); else tmp = x_46_re * -(x_46_im * x_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[Or[LessEqual[x$46$re, -9.2e+153], N[Not[LessEqual[x$46$re, 6.1e+149]], $MachinePrecision]], N[(x$46$im * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision], N[(x$46$re * (-N[(x$46$im * x$46$im), $MachinePrecision])), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq -9.2 \cdot 10^{+153} \lor \neg \left(x.re \leq 6.1 \cdot 10^{+149}\right):\\
\;\;\;\;x.im \cdot \left(x.re \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.re \cdot \left(-x.im \cdot x.im\right)\\
\end{array}
\end{array}
if x.re < -9.2000000000000005e153 or 6.0999999999999999e149 < x.re Initial program 50.0%
Taylor expanded in x.re around 0 10.1%
Simplified10.1%
*-commutative10.1%
*-commutative10.1%
distribute-rgt-out10.1%
associate--r+10.1%
add-sqr-sqrt5.1%
sqrt-unprod14.5%
sqr-neg14.5%
sqrt-prod0.1%
add-sqr-sqrt0.4%
associate-*l*0.4%
+-inverses10.1%
neg-sub010.1%
associate-*l*10.1%
distribute-lft-neg-out10.1%
add-sqr-sqrt5.1%
sqrt-unprod29.1%
sqr-neg29.1%
sqrt-prod15.3%
add-sqr-sqrt42.1%
associate-*l*42.1%
Applied egg-rr42.1%
if -9.2000000000000005e153 < x.re < 6.0999999999999999e149Initial program 93.9%
Taylor expanded in x.re around 0 62.8%
Simplified62.8%
*-commutative62.8%
*-commutative62.8%
distribute-rgt-out62.8%
associate--r+62.8%
add-sqr-sqrt33.8%
sqrt-unprod37.2%
sqr-neg37.2%
sqrt-prod9.4%
add-sqr-sqrt22.4%
associate-*l*23.4%
+-inverses40.4%
neg-sub040.4%
associate-*l*39.7%
distribute-rgt-neg-in39.7%
Applied egg-rr39.7%
Final simplification40.3%
(FPCore (x.re x.im) :precision binary64 (if (or (<= x.re -1.45e+154) (not (<= x.re 5.2e+149))) (* x.im (* x.re x.im)) (* x.im (* x.re (- x.im)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -1.45e+154) || !(x_46_re <= 5.2e+149)) {
tmp = x_46_im * (x_46_re * x_46_im);
} else {
tmp = x_46_im * (x_46_re * -x_46_im);
}
return tmp;
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
real(8) :: tmp
if ((x_46re <= (-1.45d+154)) .or. (.not. (x_46re <= 5.2d+149))) then
tmp = x_46im * (x_46re * x_46im)
else
tmp = x_46im * (x_46re * -x_46im)
end if
code = tmp
end function
public static double code(double x_46_re, double x_46_im) {
double tmp;
if ((x_46_re <= -1.45e+154) || !(x_46_re <= 5.2e+149)) {
tmp = x_46_im * (x_46_re * x_46_im);
} else {
tmp = x_46_im * (x_46_re * -x_46_im);
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if (x_46_re <= -1.45e+154) or not (x_46_re <= 5.2e+149): tmp = x_46_im * (x_46_re * x_46_im) else: tmp = x_46_im * (x_46_re * -x_46_im) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if ((x_46_re <= -1.45e+154) || !(x_46_re <= 5.2e+149)) tmp = Float64(x_46_im * Float64(x_46_re * x_46_im)); else tmp = Float64(x_46_im * Float64(x_46_re * Float64(-x_46_im))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if ((x_46_re <= -1.45e+154) || ~((x_46_re <= 5.2e+149))) tmp = x_46_im * (x_46_re * x_46_im); else tmp = x_46_im * (x_46_re * -x_46_im); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[Or[LessEqual[x$46$re, -1.45e+154], N[Not[LessEqual[x$46$re, 5.2e+149]], $MachinePrecision]], N[(x$46$im * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision], N[(x$46$im * N[(x$46$re * (-x$46$im)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq -1.45 \cdot 10^{+154} \lor \neg \left(x.re \leq 5.2 \cdot 10^{+149}\right):\\
\;\;\;\;x.im \cdot \left(x.re \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.im \cdot \left(x.re \cdot \left(-x.im\right)\right)\\
\end{array}
\end{array}
if x.re < -1.4499999999999999e154 or 5.19999999999999957e149 < x.re Initial program 50.0%
Taylor expanded in x.re around 0 10.1%
Simplified10.1%
*-commutative10.1%
*-commutative10.1%
distribute-rgt-out10.1%
associate--r+10.1%
add-sqr-sqrt5.1%
sqrt-unprod14.5%
sqr-neg14.5%
sqrt-prod0.1%
add-sqr-sqrt0.4%
associate-*l*0.4%
+-inverses10.1%
neg-sub010.1%
associate-*l*10.1%
distribute-lft-neg-out10.1%
add-sqr-sqrt5.1%
sqrt-unprod29.1%
sqr-neg29.1%
sqrt-prod15.3%
add-sqr-sqrt42.1%
associate-*l*42.1%
Applied egg-rr42.1%
if -1.4499999999999999e154 < x.re < 5.19999999999999957e149Initial program 93.9%
Taylor expanded in x.re around 0 62.8%
Simplified62.8%
*-commutative62.8%
*-commutative62.8%
distribute-rgt-out62.8%
associate--r+62.8%
add-sqr-sqrt33.8%
sqrt-unprod37.2%
sqr-neg37.2%
sqrt-prod9.4%
add-sqr-sqrt22.4%
associate-*l*23.4%
+-inverses40.4%
neg-sub040.4%
distribute-rgt-neg-in40.4%
Applied egg-rr40.4%
Final simplification40.8%
(FPCore (x.re x.im) :precision binary64 (* x.re (* x.im x.im)))
double code(double x_46_re, double x_46_im) {
return x_46_re * (x_46_im * x_46_im);
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
code = x_46re * (x_46im * x_46im)
end function
public static double code(double x_46_re, double x_46_im) {
return x_46_re * (x_46_im * x_46_im);
}
def code(x_46_re, x_46_im): return x_46_re * (x_46_im * x_46_im)
function code(x_46_re, x_46_im) return Float64(x_46_re * Float64(x_46_im * x_46_im)) end
function tmp = code(x_46_re, x_46_im) tmp = x_46_re * (x_46_im * x_46_im); end
code[x$46$re_, x$46$im_] := N[(x$46$re * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x.re \cdot \left(x.im \cdot x.im\right)
\end{array}
Initial program 83.3%
Taylor expanded in x.re around 0 50.0%
Simplified50.0%
*-commutative50.0%
*-commutative50.0%
distribute-rgt-out50.0%
associate--r+50.0%
add-sqr-sqrt26.8%
sqrt-unprod31.7%
sqr-neg31.7%
sqrt-prod7.1%
add-sqr-sqrt17.1%
associate-*l*17.8%
+-inverses33.0%
neg-sub033.0%
associate-*l*32.5%
distribute-lft-neg-out32.5%
*-commutative32.5%
add-sqr-sqrt17.9%
sqrt-unprod28.1%
sqr-neg28.1%
sqrt-prod9.2%
add-sqr-sqrt24.5%
Applied egg-rr24.5%
Final simplification24.5%
(FPCore (x.re x.im) :precision binary64 (* x.im (* x.re x.im)))
double code(double x_46_re, double x_46_im) {
return x_46_im * (x_46_re * x_46_im);
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
code = x_46im * (x_46re * x_46im)
end function
public static double code(double x_46_re, double x_46_im) {
return x_46_im * (x_46_re * x_46_im);
}
def code(x_46_re, x_46_im): return x_46_im * (x_46_re * x_46_im)
function code(x_46_re, x_46_im) return Float64(x_46_im * Float64(x_46_re * x_46_im)) end
function tmp = code(x_46_re, x_46_im) tmp = x_46_im * (x_46_re * x_46_im); end
code[x$46$re_, x$46$im_] := N[(x$46$im * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x.im \cdot \left(x.re \cdot x.im\right)
\end{array}
Initial program 83.3%
Taylor expanded in x.re around 0 50.0%
Simplified50.0%
*-commutative50.0%
*-commutative50.0%
distribute-rgt-out50.0%
associate--r+50.0%
add-sqr-sqrt26.8%
sqrt-unprod31.7%
sqr-neg31.7%
sqrt-prod7.1%
add-sqr-sqrt17.1%
associate-*l*17.8%
+-inverses33.0%
neg-sub033.0%
associate-*l*32.5%
distribute-lft-neg-out32.5%
add-sqr-sqrt17.9%
sqrt-unprod28.1%
sqr-neg28.1%
sqrt-prod9.2%
add-sqr-sqrt24.5%
associate-*l*24.6%
Applied egg-rr24.6%
Final simplification24.6%
(FPCore (x.re x.im) :precision binary64 (+ (* (* x.re x.re) (- x.re x.im)) (* (* x.re x.im) (- x.re (* 3.0 x.im)))))
double code(double x_46_re, double x_46_im) {
return ((x_46_re * x_46_re) * (x_46_re - x_46_im)) + ((x_46_re * x_46_im) * (x_46_re - (3.0 * x_46_im)));
}
real(8) function code(x_46re, x_46im)
real(8), intent (in) :: x_46re
real(8), intent (in) :: x_46im
code = ((x_46re * x_46re) * (x_46re - x_46im)) + ((x_46re * x_46im) * (x_46re - (3.0d0 * x_46im)))
end function
public static double code(double x_46_re, double x_46_im) {
return ((x_46_re * x_46_re) * (x_46_re - x_46_im)) + ((x_46_re * x_46_im) * (x_46_re - (3.0 * x_46_im)));
}
def code(x_46_re, x_46_im): return ((x_46_re * x_46_re) * (x_46_re - x_46_im)) + ((x_46_re * x_46_im) * (x_46_re - (3.0 * x_46_im)))
function code(x_46_re, x_46_im) return Float64(Float64(Float64(x_46_re * x_46_re) * Float64(x_46_re - x_46_im)) + Float64(Float64(x_46_re * x_46_im) * Float64(x_46_re - Float64(3.0 * x_46_im)))) end
function tmp = code(x_46_re, x_46_im) tmp = ((x_46_re * x_46_re) * (x_46_re - x_46_im)) + ((x_46_re * x_46_im) * (x_46_re - (3.0 * x_46_im))); end
code[x$46$re_, x$46$im_] := N[(N[(N[(x$46$re * x$46$re), $MachinePrecision] * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision] + N[(N[(x$46$re * x$46$im), $MachinePrecision] * N[(x$46$re - N[(3.0 * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x.re \cdot x.re\right) \cdot \left(x.re - x.im\right) + \left(x.re \cdot x.im\right) \cdot \left(x.re - 3 \cdot x.im\right)
\end{array}
herbie shell --seed 2023174
(FPCore (x.re x.im)
:name "math.cube on complex, real part"
:precision binary64
:herbie-target
(+ (* (* x.re x.re) (- x.re x.im)) (* (* x.re x.im) (- x.re (* 3.0 x.im))))
(- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im)))