
(FPCore (a b) :precision binary64 (- (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))) 1.0))
double code(double a, double b) {
return (pow(((a * a) + (b * b)), 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0;
}
real(8) function code(a, b)
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((((a * a) + (b * b)) ** 2.0d0) + (4.0d0 * (((a * a) * (1.0d0 + a)) + ((b * b) * (1.0d0 - (3.0d0 * a)))))) - 1.0d0
end function
public static double code(double a, double b) {
return (Math.pow(((a * a) + (b * b)), 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0;
}
def code(a, b): return (math.pow(((a * a) + (b * b)), 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0
function code(a, b) return Float64(Float64((Float64(Float64(a * a) + Float64(b * b)) ^ 2.0) + Float64(4.0 * Float64(Float64(Float64(a * a) * Float64(1.0 + a)) + Float64(Float64(b * b) * Float64(1.0 - Float64(3.0 * a)))))) - 1.0) end
function tmp = code(a, b) tmp = ((((a * a) + (b * b)) ^ 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0; end
code[a_, b_] := N[(N[(N[Power[N[(N[(a * a), $MachinePrecision] + N[(b * b), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[(4.0 * N[(N[(N[(a * a), $MachinePrecision] * N[(1.0 + a), $MachinePrecision]), $MachinePrecision] + N[(N[(b * b), $MachinePrecision] * N[(1.0 - N[(3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]
\begin{array}{l}
\\
\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 + a\right) + \left(b \cdot b\right) \cdot \left(1 - 3 \cdot a\right)\right)\right) - 1
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b) :precision binary64 (- (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))) 1.0))
double code(double a, double b) {
return (pow(((a * a) + (b * b)), 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0;
}
real(8) function code(a, b)
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((((a * a) + (b * b)) ** 2.0d0) + (4.0d0 * (((a * a) * (1.0d0 + a)) + ((b * b) * (1.0d0 - (3.0d0 * a)))))) - 1.0d0
end function
public static double code(double a, double b) {
return (Math.pow(((a * a) + (b * b)), 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0;
}
def code(a, b): return (math.pow(((a * a) + (b * b)), 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0
function code(a, b) return Float64(Float64((Float64(Float64(a * a) + Float64(b * b)) ^ 2.0) + Float64(4.0 * Float64(Float64(Float64(a * a) * Float64(1.0 + a)) + Float64(Float64(b * b) * Float64(1.0 - Float64(3.0 * a)))))) - 1.0) end
function tmp = code(a, b) tmp = ((((a * a) + (b * b)) ^ 2.0) + (4.0 * (((a * a) * (1.0 + a)) + ((b * b) * (1.0 - (3.0 * a)))))) - 1.0; end
code[a_, b_] := N[(N[(N[Power[N[(N[(a * a), $MachinePrecision] + N[(b * b), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[(4.0 * N[(N[(N[(a * a), $MachinePrecision] * N[(1.0 + a), $MachinePrecision]), $MachinePrecision] + N[(N[(b * b), $MachinePrecision] * N[(1.0 - N[(3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]
\begin{array}{l}
\\
\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 + a\right) + \left(b \cdot b\right) \cdot \left(1 - 3 \cdot a\right)\right)\right) - 1
\end{array}
b_m = (fabs.f64 b) (FPCore (a b_m) :precision binary64 (if (<= b_m 1.2e+62) (+ (* (pow a 4.0) (+ 1.0 (/ 4.0 a))) -1.0) (+ -1.0 (pow b_m 4.0))))
b_m = fabs(b);
double code(double a, double b_m) {
double tmp;
if (b_m <= 1.2e+62) {
tmp = (pow(a, 4.0) * (1.0 + (4.0 / a))) + -1.0;
} else {
tmp = -1.0 + pow(b_m, 4.0);
}
return tmp;
}
b_m = abs(b)
real(8) function code(a, b_m)
real(8), intent (in) :: a
real(8), intent (in) :: b_m
real(8) :: tmp
if (b_m <= 1.2d+62) then
tmp = ((a ** 4.0d0) * (1.0d0 + (4.0d0 / a))) + (-1.0d0)
else
tmp = (-1.0d0) + (b_m ** 4.0d0)
end if
code = tmp
end function
b_m = Math.abs(b);
public static double code(double a, double b_m) {
double tmp;
if (b_m <= 1.2e+62) {
tmp = (Math.pow(a, 4.0) * (1.0 + (4.0 / a))) + -1.0;
} else {
tmp = -1.0 + Math.pow(b_m, 4.0);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m): tmp = 0 if b_m <= 1.2e+62: tmp = (math.pow(a, 4.0) * (1.0 + (4.0 / a))) + -1.0 else: tmp = -1.0 + math.pow(b_m, 4.0) return tmp
b_m = abs(b) function code(a, b_m) tmp = 0.0 if (b_m <= 1.2e+62) tmp = Float64(Float64((a ^ 4.0) * Float64(1.0 + Float64(4.0 / a))) + -1.0); else tmp = Float64(-1.0 + (b_m ^ 4.0)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m) tmp = 0.0; if (b_m <= 1.2e+62) tmp = ((a ^ 4.0) * (1.0 + (4.0 / a))) + -1.0; else tmp = -1.0 + (b_m ^ 4.0); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_] := If[LessEqual[b$95$m, 1.2e+62], N[(N[(N[Power[a, 4.0], $MachinePrecision] * N[(1.0 + N[(4.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision], N[(-1.0 + N[Power[b$95$m, 4.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 1.2 \cdot 10^{+62}:\\
\;\;\;\;{a}^{4} \cdot \left(1 + \frac{4}{a}\right) + -1\\
\mathbf{else}:\\
\;\;\;\;-1 + {b\_m}^{4}\\
\end{array}
\end{array}
if b < 1.2e62Initial program 73.2%
sub-neg73.2%
+-commutative73.2%
fma-define74.8%
+-commutative74.8%
associate-*l*74.8%
cancel-sign-sub-inv74.8%
metadata-eval74.8%
fma-define74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in a around inf 79.6%
associate-*r/79.6%
metadata-eval79.6%
Simplified79.6%
if 1.2e62 < b Initial program 58.5%
sub-neg58.5%
+-commutative58.5%
fma-define61.5%
+-commutative61.5%
associate-*l*61.5%
cancel-sign-sub-inv61.5%
metadata-eval61.5%
fma-define61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in b around inf 100.0%
Final simplification84.7%
b_m = (fabs.f64 b)
(FPCore (a b_m)
:precision binary64
(let* ((t_0
(+
(pow (+ (* a a) (* b_m b_m)) 2.0)
(*
4.0
(+ (* (* a a) (+ a 1.0)) (* (* b_m b_m) (- 1.0 (* a 3.0))))))))
(if (<= t_0 INFINITY) (+ t_0 -1.0) (+ (* (pow a 3.0) (+ a 4.0)) -1.0))))b_m = fabs(b);
double code(double a, double b_m) {
double t_0 = pow(((a * a) + (b_m * b_m)), 2.0) + (4.0 * (((a * a) * (a + 1.0)) + ((b_m * b_m) * (1.0 - (a * 3.0)))));
double tmp;
if (t_0 <= ((double) INFINITY)) {
tmp = t_0 + -1.0;
} else {
tmp = (pow(a, 3.0) * (a + 4.0)) + -1.0;
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m) {
double t_0 = Math.pow(((a * a) + (b_m * b_m)), 2.0) + (4.0 * (((a * a) * (a + 1.0)) + ((b_m * b_m) * (1.0 - (a * 3.0)))));
double tmp;
if (t_0 <= Double.POSITIVE_INFINITY) {
tmp = t_0 + -1.0;
} else {
tmp = (Math.pow(a, 3.0) * (a + 4.0)) + -1.0;
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m): t_0 = math.pow(((a * a) + (b_m * b_m)), 2.0) + (4.0 * (((a * a) * (a + 1.0)) + ((b_m * b_m) * (1.0 - (a * 3.0))))) tmp = 0 if t_0 <= math.inf: tmp = t_0 + -1.0 else: tmp = (math.pow(a, 3.0) * (a + 4.0)) + -1.0 return tmp
b_m = abs(b) function code(a, b_m) t_0 = Float64((Float64(Float64(a * a) + Float64(b_m * b_m)) ^ 2.0) + Float64(4.0 * Float64(Float64(Float64(a * a) * Float64(a + 1.0)) + Float64(Float64(b_m * b_m) * Float64(1.0 - Float64(a * 3.0)))))) tmp = 0.0 if (t_0 <= Inf) tmp = Float64(t_0 + -1.0); else tmp = Float64(Float64((a ^ 3.0) * Float64(a + 4.0)) + -1.0); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m) t_0 = (((a * a) + (b_m * b_m)) ^ 2.0) + (4.0 * (((a * a) * (a + 1.0)) + ((b_m * b_m) * (1.0 - (a * 3.0))))); tmp = 0.0; if (t_0 <= Inf) tmp = t_0 + -1.0; else tmp = ((a ^ 3.0) * (a + 4.0)) + -1.0; end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_] := Block[{t$95$0 = N[(N[Power[N[(N[(a * a), $MachinePrecision] + N[(b$95$m * b$95$m), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[(4.0 * N[(N[(N[(a * a), $MachinePrecision] * N[(a + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(b$95$m * b$95$m), $MachinePrecision] * N[(1.0 - N[(a * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, Infinity], N[(t$95$0 + -1.0), $MachinePrecision], N[(N[(N[Power[a, 3.0], $MachinePrecision] * N[(a + 4.0), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := {\left(a \cdot a + b\_m \cdot b\_m\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(a + 1\right) + \left(b\_m \cdot b\_m\right) \cdot \left(1 - a \cdot 3\right)\right)\\
\mathbf{if}\;t\_0 \leq \infty:\\
\;\;\;\;t\_0 + -1\\
\mathbf{else}:\\
\;\;\;\;{a}^{3} \cdot \left(a + 4\right) + -1\\
\end{array}
\end{array}
if (+.f64 (pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) #s(literal 2 binary64)) (*.f64 #s(literal 4 binary64) (+.f64 (*.f64 (*.f64 a a) (+.f64 #s(literal 1 binary64) a)) (*.f64 (*.f64 b b) (-.f64 #s(literal 1 binary64) (*.f64 #s(literal 3 binary64) a)))))) < +inf.0Initial program 99.9%
if +inf.0 < (+.f64 (pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) #s(literal 2 binary64)) (*.f64 #s(literal 4 binary64) (+.f64 (*.f64 (*.f64 a a) (+.f64 #s(literal 1 binary64) a)) (*.f64 (*.f64 b b) (-.f64 #s(literal 1 binary64) (*.f64 #s(literal 3 binary64) a)))))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
fma-define6.4%
+-commutative6.4%
associate-*l*6.4%
cancel-sign-sub-inv6.4%
metadata-eval6.4%
fma-define6.4%
metadata-eval6.4%
Simplified6.4%
Taylor expanded in a around inf 90.2%
associate-*r/90.2%
metadata-eval90.2%
Simplified90.2%
Taylor expanded in a around 0 90.2%
Final simplification97.0%
b_m = (fabs.f64 b) (FPCore (a b_m) :precision binary64 (if (<= b_m 2.6e+60) (+ (* (pow a 3.0) (+ a 4.0)) -1.0) (+ -1.0 (pow b_m 4.0))))
b_m = fabs(b);
double code(double a, double b_m) {
double tmp;
if (b_m <= 2.6e+60) {
tmp = (pow(a, 3.0) * (a + 4.0)) + -1.0;
} else {
tmp = -1.0 + pow(b_m, 4.0);
}
return tmp;
}
b_m = abs(b)
real(8) function code(a, b_m)
real(8), intent (in) :: a
real(8), intent (in) :: b_m
real(8) :: tmp
if (b_m <= 2.6d+60) then
tmp = ((a ** 3.0d0) * (a + 4.0d0)) + (-1.0d0)
else
tmp = (-1.0d0) + (b_m ** 4.0d0)
end if
code = tmp
end function
b_m = Math.abs(b);
public static double code(double a, double b_m) {
double tmp;
if (b_m <= 2.6e+60) {
tmp = (Math.pow(a, 3.0) * (a + 4.0)) + -1.0;
} else {
tmp = -1.0 + Math.pow(b_m, 4.0);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m): tmp = 0 if b_m <= 2.6e+60: tmp = (math.pow(a, 3.0) * (a + 4.0)) + -1.0 else: tmp = -1.0 + math.pow(b_m, 4.0) return tmp
b_m = abs(b) function code(a, b_m) tmp = 0.0 if (b_m <= 2.6e+60) tmp = Float64(Float64((a ^ 3.0) * Float64(a + 4.0)) + -1.0); else tmp = Float64(-1.0 + (b_m ^ 4.0)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m) tmp = 0.0; if (b_m <= 2.6e+60) tmp = ((a ^ 3.0) * (a + 4.0)) + -1.0; else tmp = -1.0 + (b_m ^ 4.0); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_] := If[LessEqual[b$95$m, 2.6e+60], N[(N[(N[Power[a, 3.0], $MachinePrecision] * N[(a + 4.0), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision], N[(-1.0 + N[Power[b$95$m, 4.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 2.6 \cdot 10^{+60}:\\
\;\;\;\;{a}^{3} \cdot \left(a + 4\right) + -1\\
\mathbf{else}:\\
\;\;\;\;-1 + {b\_m}^{4}\\
\end{array}
\end{array}
if b < 2.60000000000000008e60Initial program 73.2%
sub-neg73.2%
+-commutative73.2%
fma-define74.8%
+-commutative74.8%
associate-*l*74.8%
cancel-sign-sub-inv74.8%
metadata-eval74.8%
fma-define74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in a around inf 79.6%
associate-*r/79.6%
metadata-eval79.6%
Simplified79.6%
Taylor expanded in a around 0 79.5%
if 2.60000000000000008e60 < b Initial program 58.5%
sub-neg58.5%
+-commutative58.5%
fma-define61.5%
+-commutative61.5%
associate-*l*61.5%
cancel-sign-sub-inv61.5%
metadata-eval61.5%
fma-define61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in b around inf 100.0%
Final simplification84.7%
b_m = (fabs.f64 b) (FPCore (a b_m) :precision binary64 (if (<= b_m 1.35e+60) (+ (pow a 4.0) -1.0) (+ -1.0 (pow b_m 4.0))))
b_m = fabs(b);
double code(double a, double b_m) {
double tmp;
if (b_m <= 1.35e+60) {
tmp = pow(a, 4.0) + -1.0;
} else {
tmp = -1.0 + pow(b_m, 4.0);
}
return tmp;
}
b_m = abs(b)
real(8) function code(a, b_m)
real(8), intent (in) :: a
real(8), intent (in) :: b_m
real(8) :: tmp
if (b_m <= 1.35d+60) then
tmp = (a ** 4.0d0) + (-1.0d0)
else
tmp = (-1.0d0) + (b_m ** 4.0d0)
end if
code = tmp
end function
b_m = Math.abs(b);
public static double code(double a, double b_m) {
double tmp;
if (b_m <= 1.35e+60) {
tmp = Math.pow(a, 4.0) + -1.0;
} else {
tmp = -1.0 + Math.pow(b_m, 4.0);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m): tmp = 0 if b_m <= 1.35e+60: tmp = math.pow(a, 4.0) + -1.0 else: tmp = -1.0 + math.pow(b_m, 4.0) return tmp
b_m = abs(b) function code(a, b_m) tmp = 0.0 if (b_m <= 1.35e+60) tmp = Float64((a ^ 4.0) + -1.0); else tmp = Float64(-1.0 + (b_m ^ 4.0)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m) tmp = 0.0; if (b_m <= 1.35e+60) tmp = (a ^ 4.0) + -1.0; else tmp = -1.0 + (b_m ^ 4.0); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_] := If[LessEqual[b$95$m, 1.35e+60], N[(N[Power[a, 4.0], $MachinePrecision] + -1.0), $MachinePrecision], N[(-1.0 + N[Power[b$95$m, 4.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 1.35 \cdot 10^{+60}:\\
\;\;\;\;{a}^{4} + -1\\
\mathbf{else}:\\
\;\;\;\;-1 + {b\_m}^{4}\\
\end{array}
\end{array}
if b < 1.35e60Initial program 73.2%
sub-neg73.2%
+-commutative73.2%
fma-define74.8%
+-commutative74.8%
associate-*l*74.8%
cancel-sign-sub-inv74.8%
metadata-eval74.8%
fma-define74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in a around inf 79.2%
if 1.35e60 < b Initial program 58.5%
sub-neg58.5%
+-commutative58.5%
fma-define61.5%
+-commutative61.5%
associate-*l*61.5%
cancel-sign-sub-inv61.5%
metadata-eval61.5%
fma-define61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in b around inf 100.0%
Final simplification84.4%
b_m = (fabs.f64 b) (FPCore (a b_m) :precision binary64 (+ (pow a 4.0) -1.0))
b_m = fabs(b);
double code(double a, double b_m) {
return pow(a, 4.0) + -1.0;
}
b_m = abs(b)
real(8) function code(a, b_m)
real(8), intent (in) :: a
real(8), intent (in) :: b_m
code = (a ** 4.0d0) + (-1.0d0)
end function
b_m = Math.abs(b);
public static double code(double a, double b_m) {
return Math.pow(a, 4.0) + -1.0;
}
b_m = math.fabs(b) def code(a, b_m): return math.pow(a, 4.0) + -1.0
b_m = abs(b) function code(a, b_m) return Float64((a ^ 4.0) + -1.0) end
b_m = abs(b); function tmp = code(a, b_m) tmp = (a ^ 4.0) + -1.0; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_] := N[(N[Power[a, 4.0], $MachinePrecision] + -1.0), $MachinePrecision]
\begin{array}{l}
b_m = \left|b\right|
\\
{a}^{4} + -1
\end{array}
Initial program 69.5%
sub-neg69.5%
+-commutative69.5%
fma-define71.4%
+-commutative71.4%
associate-*l*71.4%
cancel-sign-sub-inv71.4%
metadata-eval71.4%
fma-define71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in a around inf 68.3%
Final simplification68.3%
b_m = (fabs.f64 b) (FPCore (a b_m) :precision binary64 -1.0)
b_m = fabs(b);
double code(double a, double b_m) {
return -1.0;
}
b_m = abs(b)
real(8) function code(a, b_m)
real(8), intent (in) :: a
real(8), intent (in) :: b_m
code = -1.0d0
end function
b_m = Math.abs(b);
public static double code(double a, double b_m) {
return -1.0;
}
b_m = math.fabs(b) def code(a, b_m): return -1.0
b_m = abs(b) function code(a, b_m) return -1.0 end
b_m = abs(b); function tmp = code(a, b_m) tmp = -1.0; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_] := -1.0
\begin{array}{l}
b_m = \left|b\right|
\\
-1
\end{array}
Initial program 69.5%
sub-neg69.5%
+-commutative69.5%
fma-define71.4%
+-commutative71.4%
associate-*l*71.4%
cancel-sign-sub-inv71.4%
metadata-eval71.4%
fma-define71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in a around inf 68.6%
associate-*r/68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in a around 0 20.6%
Final simplification20.6%
herbie shell --seed 2024073
(FPCore (a b)
:name "Bouland and Aaronson, Equation (25)"
:precision binary64
(- (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))) 1.0))