
(FPCore (x.re x.im) :precision binary64 (+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)))
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_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re);
}
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_46im) + (((x_46re * x_46im) + (x_46im * x_46re)) * x_46re)
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_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re);
}
def code(x_46_re, x_46_im): return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re)
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_im) + Float64(Float64(Float64(x_46_re * x_46_im) + Float64(x_46_im * x_46_re)) * x_46_re)) 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_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re); 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$im), $MachinePrecision] + N[(N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] * x$46$re), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x.re \cdot x.re - x.im \cdot x.im\right) \cdot x.im + \left(x.re \cdot x.im + x.im \cdot x.re\right) \cdot x.re
\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.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)))
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_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re);
}
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_46im) + (((x_46re * x_46im) + (x_46im * x_46re)) * x_46re)
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_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re);
}
def code(x_46_re, x_46_im): return (((x_46_re * x_46_re) - (x_46_im * x_46_im)) * x_46_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re)
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_im) + Float64(Float64(Float64(x_46_re * x_46_im) + Float64(x_46_im * x_46_re)) * x_46_re)) 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_im) + (((x_46_re * x_46_im) + (x_46_im * x_46_re)) * x_46_re); 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$im), $MachinePrecision] + N[(N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$im * x$46$re), $MachinePrecision]), $MachinePrecision] * x$46$re), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x.re \cdot x.re - x.im \cdot x.im\right) \cdot x.im + \left(x.re \cdot x.im + x.im \cdot x.re\right) \cdot x.re
\end{array}
(FPCore (x.re x.im)
:precision binary64
(let* ((t_0 (* x.re (+ (* x.re x.im) (* x.re x.im)))))
(if (<= (+ (* x.im (- (* x.re x.re) (* x.im x.im))) t_0) INFINITY)
(+ t_0 (* (+ x.re x.im) (* x.im (- x.re x.im))))
(/ -1.0 (/ 1.0 (* x.im (* x.im x.im)))))))
double code(double x_46_re, double x_46_im) {
double t_0 = x_46_re * ((x_46_re * x_46_im) + (x_46_re * x_46_im));
double tmp;
if (((x_46_im * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) + t_0) <= ((double) INFINITY)) {
tmp = t_0 + ((x_46_re + x_46_im) * (x_46_im * (x_46_re - x_46_im)));
} else {
tmp = -1.0 / (1.0 / (x_46_im * (x_46_im * x_46_im)));
}
return tmp;
}
public static double code(double x_46_re, double x_46_im) {
double t_0 = x_46_re * ((x_46_re * x_46_im) + (x_46_re * x_46_im));
double tmp;
if (((x_46_im * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) + t_0) <= Double.POSITIVE_INFINITY) {
tmp = t_0 + ((x_46_re + x_46_im) * (x_46_im * (x_46_re - x_46_im)));
} else {
tmp = -1.0 / (1.0 / (x_46_im * (x_46_im * x_46_im)));
}
return tmp;
}
def code(x_46_re, x_46_im): t_0 = x_46_re * ((x_46_re * x_46_im) + (x_46_re * x_46_im)) tmp = 0 if ((x_46_im * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) + t_0) <= math.inf: tmp = t_0 + ((x_46_re + x_46_im) * (x_46_im * (x_46_re - x_46_im))) else: tmp = -1.0 / (1.0 / (x_46_im * (x_46_im * x_46_im))) return tmp
function code(x_46_re, x_46_im) t_0 = Float64(x_46_re * Float64(Float64(x_46_re * x_46_im) + Float64(x_46_re * x_46_im))) tmp = 0.0 if (Float64(Float64(x_46_im * Float64(Float64(x_46_re * x_46_re) - Float64(x_46_im * x_46_im))) + t_0) <= Inf) tmp = Float64(t_0 + Float64(Float64(x_46_re + x_46_im) * Float64(x_46_im * Float64(x_46_re - x_46_im)))); else tmp = Float64(-1.0 / Float64(1.0 / Float64(x_46_im * Float64(x_46_im * 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_im) + (x_46_re * x_46_im)); tmp = 0.0; if (((x_46_im * ((x_46_re * x_46_re) - (x_46_im * x_46_im))) + t_0) <= Inf) tmp = t_0 + ((x_46_re + x_46_im) * (x_46_im * (x_46_re - x_46_im))); else tmp = -1.0 / (1.0 / (x_46_im * (x_46_im * x_46_im))); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := Block[{t$95$0 = N[(x$46$re * N[(N[(x$46$re * x$46$im), $MachinePrecision] + N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(x$46$im * N[(N[(x$46$re * x$46$re), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$0), $MachinePrecision], Infinity], N[(t$95$0 + N[(N[(x$46$re + x$46$im), $MachinePrecision] * N[(x$46$im * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 / N[(1.0 / N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x.re \cdot \left(x.re \cdot x.im + x.re \cdot x.im\right)\\
\mathbf{if}\;x.im \cdot \left(x.re \cdot x.re - x.im \cdot x.im\right) + t\_0 \leq \infty:\\
\;\;\;\;t\_0 + \left(x.re + x.im\right) \cdot \left(x.im \cdot \left(x.re - x.im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{1}{x.im \cdot \left(x.im \cdot x.im\right)}}\\
\end{array}
\end{array}
if (+.f64 (*.f64 (-.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)) x.im) (*.f64 (+.f64 (*.f64 x.re x.im) (*.f64 x.im x.re)) x.re)) < +inf.0Initial program 92.8%
difference-of-squaresN/A
associate-*l*N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6499.7%
Applied egg-rr99.7%
if +inf.0 < (+.f64 (*.f64 (-.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)) x.im) (*.f64 (+.f64 (*.f64 x.re x.im) (*.f64 x.im x.re)) x.re)) Initial program 0.0%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6466.7%
Simplified66.7%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6485.2%
Simplified85.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.2%
Applied egg-rr85.2%
unpow1N/A
metadata-evalN/A
pow-divN/A
cube-unmultN/A
pow2N/A
*-commutativeN/A
associate-/l*N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r*N/A
times-fracN/A
*-inversesN/A
*-inversesN/A
metadata-evalN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.2%
Applied egg-rr85.2%
Final simplification98.2%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 7.8e+153) (* x.im (- (* x.re (* x.re 3.0)) (* x.im x.im))) (* 3.0 (* x.re (* x.re x.im)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 7.8e+153) {
tmp = x_46_im * ((x_46_re * (x_46_re * 3.0)) - (x_46_im * x_46_im));
} else {
tmp = 3.0 * (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) :: tmp
if (x_46re <= 7.8d+153) then
tmp = x_46im * ((x_46re * (x_46re * 3.0d0)) - (x_46im * x_46im))
else
tmp = 3.0d0 * (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 tmp;
if (x_46_re <= 7.8e+153) {
tmp = x_46_im * ((x_46_re * (x_46_re * 3.0)) - (x_46_im * x_46_im));
} else {
tmp = 3.0 * (x_46_re * (x_46_re * x_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 7.8e+153: tmp = x_46_im * ((x_46_re * (x_46_re * 3.0)) - (x_46_im * x_46_im)) else: tmp = 3.0 * (x_46_re * (x_46_re * x_46_im)) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if (x_46_re <= 7.8e+153) tmp = Float64(x_46_im * Float64(Float64(x_46_re * Float64(x_46_re * 3.0)) - Float64(x_46_im * x_46_im))); else tmp = Float64(3.0 * 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) tmp = 0.0; if (x_46_re <= 7.8e+153) tmp = x_46_im * ((x_46_re * (x_46_re * 3.0)) - (x_46_im * x_46_im)); else tmp = 3.0 * (x_46_re * (x_46_re * x_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 7.8e+153], N[(x$46$im * N[(N[(x$46$re * N[(x$46$re * 3.0), $MachinePrecision]), $MachinePrecision] - N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(3.0 * N[(x$46$re * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 7.8 \cdot 10^{+153}:\\
\;\;\;\;x.im \cdot \left(x.re \cdot \left(x.re \cdot 3\right) - x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(x.re \cdot \left(x.re \cdot x.im\right)\right)\\
\end{array}
\end{array}
if x.re < 7.79999999999999966e153Initial program 87.9%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6496.2%
Simplified96.2%
if 7.79999999999999966e153 < x.re Initial program 56.9%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.9%
Simplified56.9%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6489.7%
Applied egg-rr89.7%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6490.0%
Applied egg-rr90.0%
Final simplification95.2%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 1.52e-43) (- 0.0 (* x.im (* x.im x.im))) (* x.re (* x.re (* x.im 3.0)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 1.52e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_re * (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 <= 1.52d-43) then
tmp = 0.0d0 - (x_46im * (x_46im * x_46im))
else
tmp = x_46re * (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 <= 1.52e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_re * (x_46_re * (x_46_im * 3.0));
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 1.52e-43: tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)) else: tmp = x_46_re * (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 <= 1.52e-43) tmp = Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))); else tmp = Float64(x_46_re * 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 <= 1.52e-43) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); else tmp = x_46_re * (x_46_re * (x_46_im * 3.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 1.52e-43], N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$46$re * N[(x$46$re * N[(x$46$im * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1.52 \cdot 10^{-43}:\\
\;\;\;\;0 - x.im \cdot \left(x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.re \cdot \left(x.re \cdot \left(x.im \cdot 3\right)\right)\\
\end{array}
\end{array}
if x.re < 1.52e-43Initial program 89.5%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.6%
Simplified95.6%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.2%
Simplified74.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.2%
Applied egg-rr74.2%
if 1.52e-43 < x.re Initial program 67.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.1%
Applied egg-rr78.1%
Final simplification75.3%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 1.52e-43) (- 0.0 (* x.im (* x.im x.im))) (* 3.0 (* x.re (* x.re x.im)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 1.52e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = 3.0 * (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) :: tmp
if (x_46re <= 1.52d-43) then
tmp = 0.0d0 - (x_46im * (x_46im * x_46im))
else
tmp = 3.0d0 * (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 tmp;
if (x_46_re <= 1.52e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = 3.0 * (x_46_re * (x_46_re * x_46_im));
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 1.52e-43: tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)) else: tmp = 3.0 * (x_46_re * (x_46_re * x_46_im)) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if (x_46_re <= 1.52e-43) tmp = Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))); else tmp = Float64(3.0 * 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) tmp = 0.0; if (x_46_re <= 1.52e-43) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); else tmp = 3.0 * (x_46_re * (x_46_re * x_46_im)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 1.52e-43], N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(3.0 * N[(x$46$re * N[(x$46$re * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 1.52 \cdot 10^{-43}:\\
\;\;\;\;0 - x.im \cdot \left(x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(x.re \cdot \left(x.re \cdot x.im\right)\right)\\
\end{array}
\end{array}
if x.re < 1.52e-43Initial program 89.5%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.6%
Simplified95.6%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.2%
Simplified74.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.2%
Applied egg-rr74.2%
if 1.52e-43 < x.re Initial program 67.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.1%
Applied egg-rr78.1%
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6478.1%
Applied egg-rr78.1%
Final simplification75.3%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 3.8e-44) (- 0.0 (* x.im (* x.im x.im))) (* (* x.re x.im) (* x.re 3.0))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 3.8e-44) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = (x_46_re * x_46_im) * (x_46_re * 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 <= 3.8d-44) then
tmp = 0.0d0 - (x_46im * (x_46im * x_46im))
else
tmp = (x_46re * x_46im) * (x_46re * 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 <= 3.8e-44) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = (x_46_re * x_46_im) * (x_46_re * 3.0);
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 3.8e-44: tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)) else: tmp = (x_46_re * x_46_im) * (x_46_re * 3.0) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if (x_46_re <= 3.8e-44) tmp = Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))); else tmp = Float64(Float64(x_46_re * x_46_im) * Float64(x_46_re * 3.0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if (x_46_re <= 3.8e-44) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); else tmp = (x_46_re * x_46_im) * (x_46_re * 3.0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 3.8e-44], N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$46$re * x$46$im), $MachinePrecision] * N[(x$46$re * 3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 3.8 \cdot 10^{-44}:\\
\;\;\;\;0 - x.im \cdot \left(x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x.re \cdot x.im\right) \cdot \left(x.re \cdot 3\right)\\
\end{array}
\end{array}
if x.re < 3.8000000000000001e-44Initial program 89.5%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.6%
Simplified95.6%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.2%
Simplified74.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.2%
Applied egg-rr74.2%
if 3.8000000000000001e-44 < x.re Initial program 67.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.0%
Applied egg-rr78.0%
Final simplification75.3%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 2.55e-43) (- 0.0 (* x.im (* x.im x.im))) (* x.re (* x.im (* x.re 3.0)))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 2.55e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_re * (x_46_im * (x_46_re * 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 <= 2.55d-43) then
tmp = 0.0d0 - (x_46im * (x_46im * x_46im))
else
tmp = x_46re * (x_46im * (x_46re * 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 <= 2.55e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_re * (x_46_im * (x_46_re * 3.0));
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 2.55e-43: tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)) else: tmp = x_46_re * (x_46_im * (x_46_re * 3.0)) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if (x_46_re <= 2.55e-43) tmp = Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))); else tmp = Float64(x_46_re * Float64(x_46_im * Float64(x_46_re * 3.0))); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if (x_46_re <= 2.55e-43) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); else tmp = x_46_re * (x_46_im * (x_46_re * 3.0)); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 2.55e-43], N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$46$re * N[(x$46$im * N[(x$46$re * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 2.55 \cdot 10^{-43}:\\
\;\;\;\;0 - x.im \cdot \left(x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.re \cdot \left(x.im \cdot \left(x.re \cdot 3\right)\right)\\
\end{array}
\end{array}
if x.re < 2.5499999999999998e-43Initial program 89.5%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.6%
Simplified95.6%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.2%
Simplified74.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.2%
Applied egg-rr74.2%
if 2.5499999999999998e-43 < x.re Initial program 67.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.1%
Applied egg-rr78.1%
Final simplification75.3%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 2.5e-43) (- 0.0 (* x.im (* x.im x.im))) (* x.re (* (* x.re x.im) 3.0))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 2.5e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_re * ((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 <= 2.5d-43) then
tmp = 0.0d0 - (x_46im * (x_46im * x_46im))
else
tmp = x_46re * ((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 <= 2.5e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_re * ((x_46_re * x_46_im) * 3.0);
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 2.5e-43: tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)) else: tmp = x_46_re * ((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 <= 2.5e-43) tmp = Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))); else tmp = Float64(x_46_re * 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 <= 2.5e-43) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); else tmp = x_46_re * ((x_46_re * x_46_im) * 3.0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 2.5e-43], N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$46$re * N[(N[(x$46$re * x$46$im), $MachinePrecision] * 3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 2.5 \cdot 10^{-43}:\\
\;\;\;\;0 - x.im \cdot \left(x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.re \cdot \left(\left(x.re \cdot x.im\right) \cdot 3\right)\\
\end{array}
\end{array}
if x.re < 2.50000000000000009e-43Initial program 89.5%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.6%
Simplified95.6%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.2%
Simplified74.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.2%
Applied egg-rr74.2%
if 2.50000000000000009e-43 < x.re Initial program 67.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
Taylor expanded in x.im around 0
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.0%
Simplified78.0%
Final simplification75.3%
(FPCore (x.re x.im) :precision binary64 (if (<= x.re 2.55e-43) (- 0.0 (* x.im (* x.im x.im))) (* x.im (* (* x.re x.re) 3.0))))
double code(double x_46_re, double x_46_im) {
double tmp;
if (x_46_re <= 2.55e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_im * ((x_46_re * x_46_re) * 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 <= 2.55d-43) then
tmp = 0.0d0 - (x_46im * (x_46im * x_46im))
else
tmp = x_46im * ((x_46re * x_46re) * 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 <= 2.55e-43) {
tmp = 0.0 - (x_46_im * (x_46_im * x_46_im));
} else {
tmp = x_46_im * ((x_46_re * x_46_re) * 3.0);
}
return tmp;
}
def code(x_46_re, x_46_im): tmp = 0 if x_46_re <= 2.55e-43: tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)) else: tmp = x_46_im * ((x_46_re * x_46_re) * 3.0) return tmp
function code(x_46_re, x_46_im) tmp = 0.0 if (x_46_re <= 2.55e-43) tmp = Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))); else tmp = Float64(x_46_im * Float64(Float64(x_46_re * x_46_re) * 3.0)); end return tmp end
function tmp_2 = code(x_46_re, x_46_im) tmp = 0.0; if (x_46_re <= 2.55e-43) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); else tmp = x_46_im * ((x_46_re * x_46_re) * 3.0); end tmp_2 = tmp; end
code[x$46$re_, x$46$im_] := If[LessEqual[x$46$re, 2.55e-43], N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$46$im * N[(N[(x$46$re * x$46$re), $MachinePrecision] * 3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x.re \leq 2.55 \cdot 10^{-43}:\\
\;\;\;\;0 - x.im \cdot \left(x.im \cdot x.im\right)\\
\mathbf{else}:\\
\;\;\;\;x.im \cdot \left(\left(x.re \cdot x.re\right) \cdot 3\right)\\
\end{array}
\end{array}
if x.re < 2.5499999999999998e-43Initial program 89.5%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6495.6%
Simplified95.6%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.2%
Simplified74.2%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6474.2%
Applied egg-rr74.2%
if 2.5499999999999998e-43 < x.re Initial program 67.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
Taylor expanded in x.re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
Final simplification71.4%
(FPCore (x.re x.im) :precision binary64 (- 0.0 (* x.im (* x.im x.im))))
double code(double x_46_re, double x_46_im) {
return 0.0 - (x_46_im * (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 = 0.0d0 - (x_46im * (x_46im * x_46im))
end function
public static double code(double x_46_re, double x_46_im) {
return 0.0 - (x_46_im * (x_46_im * x_46_im));
}
def code(x_46_re, x_46_im): return 0.0 - (x_46_im * (x_46_im * x_46_im))
function code(x_46_re, x_46_im) return Float64(0.0 - Float64(x_46_im * Float64(x_46_im * x_46_im))) end
function tmp = code(x_46_re, x_46_im) tmp = 0.0 - (x_46_im * (x_46_im * x_46_im)); end
code[x$46$re_, x$46$im_] := N[(0.0 - N[(x$46$im * N[(x$46$im * x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0 - x.im \cdot \left(x.im \cdot x.im\right)
\end{array}
Initial program 83.1%
+-commutativeN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
associate-+r-N/A
--lowering--.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
count-2N/A
distribute-lft1-inN/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6490.1%
Simplified90.1%
Taylor expanded in x.im around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6459.8%
Simplified59.8%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.8%
Applied egg-rr59.8%
Final simplification59.8%
(FPCore (x.re x.im) :precision binary64 (+ (* (* x.re x.im) (* 2.0 x.re)) (* (* x.im (- x.re x.im)) (+ x.re x.im))))
double code(double x_46_re, double x_46_im) {
return ((x_46_re * x_46_im) * (2.0 * x_46_re)) + ((x_46_im * (x_46_re - 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_46im) * (2.0d0 * x_46re)) + ((x_46im * (x_46re - 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_im) * (2.0 * x_46_re)) + ((x_46_im * (x_46_re - x_46_im)) * (x_46_re + x_46_im));
}
def code(x_46_re, x_46_im): return ((x_46_re * x_46_im) * (2.0 * x_46_re)) + ((x_46_im * (x_46_re - x_46_im)) * (x_46_re + x_46_im))
function code(x_46_re, x_46_im) return Float64(Float64(Float64(x_46_re * x_46_im) * Float64(2.0 * x_46_re)) + Float64(Float64(x_46_im * Float64(x_46_re - x_46_im)) * Float64(x_46_re + x_46_im))) end
function tmp = code(x_46_re, x_46_im) tmp = ((x_46_re * x_46_im) * (2.0 * x_46_re)) + ((x_46_im * (x_46_re - x_46_im)) * (x_46_re + x_46_im)); end
code[x$46$re_, x$46$im_] := N[(N[(N[(x$46$re * x$46$im), $MachinePrecision] * N[(2.0 * x$46$re), $MachinePrecision]), $MachinePrecision] + N[(N[(x$46$im * N[(x$46$re - x$46$im), $MachinePrecision]), $MachinePrecision] * N[(x$46$re + x$46$im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x.re \cdot x.im\right) \cdot \left(2 \cdot x.re\right) + \left(x.im \cdot \left(x.re - x.im\right)\right) \cdot \left(x.re + x.im\right)
\end{array}
herbie shell --seed 2024155
(FPCore (x.re x.im)
:name "math.cube on complex, imaginary part"
:precision binary64
:alt
(! :herbie-platform default (+ (* (* x.re x.im) (* 2 x.re)) (* (* x.im (- x.re x.im)) (+ x.re x.im))))
(+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)))