
(FPCore (a b) :precision binary64 (* (* (/ PI 2.0) (/ 1.0 (- (* b b) (* a a)))) (- (/ 1.0 a) (/ 1.0 b))))
double code(double a, double b) {
return ((((double) M_PI) / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b));
}
public static double code(double a, double b) {
return ((Math.PI / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b));
}
def code(a, b): return ((math.pi / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b))
function code(a, b) return Float64(Float64(Float64(pi / 2.0) * Float64(1.0 / Float64(Float64(b * b) - Float64(a * a)))) * Float64(Float64(1.0 / a) - Float64(1.0 / b))) end
function tmp = code(a, b) tmp = ((pi / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b)); end
code[a_, b_] := N[(N[(N[(Pi / 2.0), $MachinePrecision] * N[(1.0 / N[(N[(b * b), $MachinePrecision] - N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / a), $MachinePrecision] - N[(1.0 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b) :precision binary64 (* (* (/ PI 2.0) (/ 1.0 (- (* b b) (* a a)))) (- (/ 1.0 a) (/ 1.0 b))))
double code(double a, double b) {
return ((((double) M_PI) / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b));
}
public static double code(double a, double b) {
return ((Math.PI / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b));
}
def code(a, b): return ((math.pi / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b))
function code(a, b) return Float64(Float64(Float64(pi / 2.0) * Float64(1.0 / Float64(Float64(b * b) - Float64(a * a)))) * Float64(Float64(1.0 / a) - Float64(1.0 / b))) end
function tmp = code(a, b) tmp = ((pi / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b)); end
code[a_, b_] := N[(N[(N[(Pi / 2.0), $MachinePrecision] * N[(1.0 / N[(N[(b * b), $MachinePrecision] - N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / a), $MachinePrecision] - N[(1.0 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)
\end{array}
(FPCore (a b) :precision binary64 (/ (/ 0.5 (* b a)) (/ (+ b a) PI)))
double code(double a, double b) {
return (0.5 / (b * a)) / ((b + a) / ((double) M_PI));
}
public static double code(double a, double b) {
return (0.5 / (b * a)) / ((b + a) / Math.PI);
}
def code(a, b): return (0.5 / (b * a)) / ((b + a) / math.pi)
function code(a, b) return Float64(Float64(0.5 / Float64(b * a)) / Float64(Float64(b + a) / pi)) end
function tmp = code(a, b) tmp = (0.5 / (b * a)) / ((b + a) / pi); end
code[a_, b_] := N[(N[(0.5 / N[(b * a), $MachinePrecision]), $MachinePrecision] / N[(N[(b + a), $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{0.5}{b \cdot a}}{\frac{b + a}{\pi}}
\end{array}
Initial program 75.4%
associate-*l*75.4%
*-rgt-identity75.4%
associate-/l*75.4%
metadata-eval75.4%
associate-*l/75.5%
*-lft-identity75.5%
sub-neg75.5%
distribute-neg-frac75.5%
metadata-eval75.5%
Simplified75.5%
metadata-eval75.5%
div-inv75.5%
clear-num75.5%
clear-num75.0%
frac-times74.9%
metadata-eval74.9%
frac-add74.9%
associate-/r/74.9%
*-un-lft-identity74.9%
*-commutative74.9%
neg-mul-174.9%
sub-neg74.9%
flip-+98.8%
+-commutative98.8%
Applied egg-rr98.8%
associate-/r*98.9%
associate-/r/98.9%
metadata-eval98.9%
*-commutative98.9%
times-frac99.6%
Simplified99.6%
*-commutative99.6%
clear-num99.6%
frac-times98.9%
metadata-eval98.9%
Applied egg-rr98.9%
associate-/r*99.7%
*-commutative99.7%
+-commutative99.7%
Simplified99.7%
(FPCore (a b) :precision binary64 (if (<= b 2.25e-35) (/ (/ 0.5 (* a (/ b PI))) a) (* (/ 0.5 (* b a)) (/ PI b))))
double code(double a, double b) {
double tmp;
if (b <= 2.25e-35) {
tmp = (0.5 / (a * (b / ((double) M_PI)))) / a;
} else {
tmp = (0.5 / (b * a)) * (((double) M_PI) / b);
}
return tmp;
}
public static double code(double a, double b) {
double tmp;
if (b <= 2.25e-35) {
tmp = (0.5 / (a * (b / Math.PI))) / a;
} else {
tmp = (0.5 / (b * a)) * (Math.PI / b);
}
return tmp;
}
def code(a, b): tmp = 0 if b <= 2.25e-35: tmp = (0.5 / (a * (b / math.pi))) / a else: tmp = (0.5 / (b * a)) * (math.pi / b) return tmp
function code(a, b) tmp = 0.0 if (b <= 2.25e-35) tmp = Float64(Float64(0.5 / Float64(a * Float64(b / pi))) / a); else tmp = Float64(Float64(0.5 / Float64(b * a)) * Float64(pi / b)); end return tmp end
function tmp_2 = code(a, b) tmp = 0.0; if (b <= 2.25e-35) tmp = (0.5 / (a * (b / pi))) / a; else tmp = (0.5 / (b * a)) * (pi / b); end tmp_2 = tmp; end
code[a_, b_] := If[LessEqual[b, 2.25e-35], N[(N[(0.5 / N[(a * N[(b / Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(0.5 / N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(Pi / b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.25 \cdot 10^{-35}:\\
\;\;\;\;\frac{\frac{0.5}{a \cdot \frac{b}{\pi}}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{b \cdot a} \cdot \frac{\pi}{b}\\
\end{array}
\end{array}
if b < 2.25000000000000005e-35Initial program 78.4%
*-commutative78.4%
associate-*r*78.5%
associate-*r/78.5%
associate-*r*78.5%
*-rgt-identity78.5%
sub-neg78.5%
distribute-neg-frac78.5%
metadata-eval78.5%
Simplified78.5%
associate-*l/78.6%
div-inv78.6%
metadata-eval78.6%
*-commutative78.6%
associate-*r*78.6%
*-commutative78.6%
Applied egg-rr98.9%
Taylor expanded in a around inf 69.5%
*-commutative69.5%
associate-*r/69.5%
frac-times70.2%
div-inv70.2%
div-inv70.2%
associate-/l/70.2%
associate-*r/70.2%
Applied egg-rr70.2%
*-commutative70.2%
div-inv70.2%
associate-*l*70.2%
times-frac70.3%
*-un-lft-identity70.3%
clear-num70.3%
*-commutative70.3%
associate-*r/70.3%
div-inv70.3%
Applied egg-rr70.3%
if 2.25000000000000005e-35 < b Initial program 68.1%
associate-*l*68.1%
*-rgt-identity68.1%
associate-/l*68.1%
metadata-eval68.1%
associate-*l/68.1%
*-lft-identity68.1%
sub-neg68.1%
distribute-neg-frac68.1%
metadata-eval68.1%
Simplified68.1%
metadata-eval68.1%
div-inv68.1%
clear-num68.1%
clear-num67.4%
frac-times67.4%
metadata-eval67.4%
frac-add67.4%
associate-/r/67.5%
*-un-lft-identity67.5%
*-commutative67.5%
neg-mul-167.5%
sub-neg67.5%
flip-+98.9%
+-commutative98.9%
Applied egg-rr98.9%
associate-/r*98.9%
associate-/r/98.9%
metadata-eval98.9%
*-commutative98.9%
times-frac99.7%
Simplified99.7%
Taylor expanded in a around 0 86.7%
Final simplification75.2%
(FPCore (a b) :precision binary64 (let* ((t_0 (/ 0.5 (* b a)))) (if (<= b 4e-36) (* t_0 (/ PI a)) (* t_0 (/ PI b)))))
double code(double a, double b) {
double t_0 = 0.5 / (b * a);
double tmp;
if (b <= 4e-36) {
tmp = t_0 * (((double) M_PI) / a);
} else {
tmp = t_0 * (((double) M_PI) / b);
}
return tmp;
}
public static double code(double a, double b) {
double t_0 = 0.5 / (b * a);
double tmp;
if (b <= 4e-36) {
tmp = t_0 * (Math.PI / a);
} else {
tmp = t_0 * (Math.PI / b);
}
return tmp;
}
def code(a, b): t_0 = 0.5 / (b * a) tmp = 0 if b <= 4e-36: tmp = t_0 * (math.pi / a) else: tmp = t_0 * (math.pi / b) return tmp
function code(a, b) t_0 = Float64(0.5 / Float64(b * a)) tmp = 0.0 if (b <= 4e-36) tmp = Float64(t_0 * Float64(pi / a)); else tmp = Float64(t_0 * Float64(pi / b)); end return tmp end
function tmp_2 = code(a, b) t_0 = 0.5 / (b * a); tmp = 0.0; if (b <= 4e-36) tmp = t_0 * (pi / a); else tmp = t_0 * (pi / b); end tmp_2 = tmp; end
code[a_, b_] := Block[{t$95$0 = N[(0.5 / N[(b * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 4e-36], N[(t$95$0 * N[(Pi / a), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(Pi / b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{0.5}{b \cdot a}\\
\mathbf{if}\;b \leq 4 \cdot 10^{-36}:\\
\;\;\;\;t\_0 \cdot \frac{\pi}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \frac{\pi}{b}\\
\end{array}
\end{array}
if b < 3.9999999999999998e-36Initial program 78.4%
associate-*l*78.5%
*-rgt-identity78.5%
associate-/l*78.5%
metadata-eval78.5%
associate-*l/78.6%
*-lft-identity78.6%
sub-neg78.6%
distribute-neg-frac78.6%
metadata-eval78.6%
Simplified78.6%
metadata-eval78.6%
div-inv78.6%
clear-num78.6%
clear-num78.2%
frac-times78.1%
metadata-eval78.1%
frac-add78.1%
associate-/r/78.1%
*-un-lft-identity78.1%
*-commutative78.1%
neg-mul-178.1%
sub-neg78.1%
flip-+98.8%
+-commutative98.8%
Applied egg-rr98.8%
associate-/r*98.9%
associate-/r/98.9%
metadata-eval98.9%
*-commutative98.9%
times-frac99.6%
Simplified99.6%
Taylor expanded in a around inf 70.2%
if 3.9999999999999998e-36 < b Initial program 68.1%
associate-*l*68.1%
*-rgt-identity68.1%
associate-/l*68.1%
metadata-eval68.1%
associate-*l/68.1%
*-lft-identity68.1%
sub-neg68.1%
distribute-neg-frac68.1%
metadata-eval68.1%
Simplified68.1%
metadata-eval68.1%
div-inv68.1%
clear-num68.1%
clear-num67.4%
frac-times67.4%
metadata-eval67.4%
frac-add67.4%
associate-/r/67.5%
*-un-lft-identity67.5%
*-commutative67.5%
neg-mul-167.5%
sub-neg67.5%
flip-+98.9%
+-commutative98.9%
Applied egg-rr98.9%
associate-/r*98.9%
associate-/r/98.9%
metadata-eval98.9%
*-commutative98.9%
times-frac99.7%
Simplified99.7%
Taylor expanded in a around 0 86.7%
Final simplification75.1%
(FPCore (a b) :precision binary64 (if (<= b 1e-34) (* (/ 0.5 (* b a)) (/ PI a)) (* PI (/ 0.5 (* b (* b a))))))
double code(double a, double b) {
double tmp;
if (b <= 1e-34) {
tmp = (0.5 / (b * a)) * (((double) M_PI) / a);
} else {
tmp = ((double) M_PI) * (0.5 / (b * (b * a)));
}
return tmp;
}
public static double code(double a, double b) {
double tmp;
if (b <= 1e-34) {
tmp = (0.5 / (b * a)) * (Math.PI / a);
} else {
tmp = Math.PI * (0.5 / (b * (b * a)));
}
return tmp;
}
def code(a, b): tmp = 0 if b <= 1e-34: tmp = (0.5 / (b * a)) * (math.pi / a) else: tmp = math.pi * (0.5 / (b * (b * a))) return tmp
function code(a, b) tmp = 0.0 if (b <= 1e-34) tmp = Float64(Float64(0.5 / Float64(b * a)) * Float64(pi / a)); else tmp = Float64(pi * Float64(0.5 / Float64(b * Float64(b * a)))); end return tmp end
function tmp_2 = code(a, b) tmp = 0.0; if (b <= 1e-34) tmp = (0.5 / (b * a)) * (pi / a); else tmp = pi * (0.5 / (b * (b * a))); end tmp_2 = tmp; end
code[a_, b_] := If[LessEqual[b, 1e-34], N[(N[(0.5 / N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(Pi / a), $MachinePrecision]), $MachinePrecision], N[(Pi * N[(0.5 / N[(b * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 10^{-34}:\\
\;\;\;\;\frac{0.5}{b \cdot a} \cdot \frac{\pi}{a}\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \frac{0.5}{b \cdot \left(b \cdot a\right)}\\
\end{array}
\end{array}
if b < 9.99999999999999928e-35Initial program 78.4%
associate-*l*78.5%
*-rgt-identity78.5%
associate-/l*78.5%
metadata-eval78.5%
associate-*l/78.6%
*-lft-identity78.6%
sub-neg78.6%
distribute-neg-frac78.6%
metadata-eval78.6%
Simplified78.6%
metadata-eval78.6%
div-inv78.6%
clear-num78.6%
clear-num78.2%
frac-times78.1%
metadata-eval78.1%
frac-add78.1%
associate-/r/78.1%
*-un-lft-identity78.1%
*-commutative78.1%
neg-mul-178.1%
sub-neg78.1%
flip-+98.8%
+-commutative98.8%
Applied egg-rr98.8%
associate-/r*98.9%
associate-/r/98.9%
metadata-eval98.9%
*-commutative98.9%
times-frac99.6%
Simplified99.6%
Taylor expanded in a around inf 70.2%
if 9.99999999999999928e-35 < b Initial program 68.1%
*-commutative68.1%
associate-*r*68.0%
associate-*r/68.1%
associate-*r*68.1%
*-rgt-identity68.1%
sub-neg68.1%
distribute-neg-frac68.1%
metadata-eval68.1%
Simplified68.1%
associate-*l/68.1%
div-inv68.1%
metadata-eval68.1%
*-commutative68.1%
associate-*r*68.1%
*-commutative68.1%
Applied egg-rr98.9%
Taylor expanded in a around 0 87.3%
Final simplification75.3%
(FPCore (a b) :precision binary64 (if (<= b 1.1e-34) (* PI (/ 0.5 (* a (* b a)))) (* PI (/ 0.5 (* b (* b a))))))
double code(double a, double b) {
double tmp;
if (b <= 1.1e-34) {
tmp = ((double) M_PI) * (0.5 / (a * (b * a)));
} else {
tmp = ((double) M_PI) * (0.5 / (b * (b * a)));
}
return tmp;
}
public static double code(double a, double b) {
double tmp;
if (b <= 1.1e-34) {
tmp = Math.PI * (0.5 / (a * (b * a)));
} else {
tmp = Math.PI * (0.5 / (b * (b * a)));
}
return tmp;
}
def code(a, b): tmp = 0 if b <= 1.1e-34: tmp = math.pi * (0.5 / (a * (b * a))) else: tmp = math.pi * (0.5 / (b * (b * a))) return tmp
function code(a, b) tmp = 0.0 if (b <= 1.1e-34) tmp = Float64(pi * Float64(0.5 / Float64(a * Float64(b * a)))); else tmp = Float64(pi * Float64(0.5 / Float64(b * Float64(b * a)))); end return tmp end
function tmp_2 = code(a, b) tmp = 0.0; if (b <= 1.1e-34) tmp = pi * (0.5 / (a * (b * a))); else tmp = pi * (0.5 / (b * (b * a))); end tmp_2 = tmp; end
code[a_, b_] := If[LessEqual[b, 1.1e-34], N[(Pi * N[(0.5 / N[(a * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(Pi * N[(0.5 / N[(b * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.1 \cdot 10^{-34}:\\
\;\;\;\;\pi \cdot \frac{0.5}{a \cdot \left(b \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \frac{0.5}{b \cdot \left(b \cdot a\right)}\\
\end{array}
\end{array}
if b < 1.0999999999999999e-34Initial program 78.4%
*-commutative78.4%
associate-*r*78.5%
associate-*r/78.5%
associate-*r*78.5%
*-rgt-identity78.5%
sub-neg78.5%
distribute-neg-frac78.5%
metadata-eval78.5%
Simplified78.5%
associate-*l/78.6%
div-inv78.6%
metadata-eval78.6%
*-commutative78.6%
associate-*r*78.6%
*-commutative78.6%
Applied egg-rr98.9%
Taylor expanded in a around inf 69.5%
if 1.0999999999999999e-34 < b Initial program 68.1%
*-commutative68.1%
associate-*r*68.0%
associate-*r/68.1%
associate-*r*68.1%
*-rgt-identity68.1%
sub-neg68.1%
distribute-neg-frac68.1%
metadata-eval68.1%
Simplified68.1%
associate-*l/68.1%
div-inv68.1%
metadata-eval68.1%
*-commutative68.1%
associate-*r*68.1%
*-commutative68.1%
Applied egg-rr98.9%
Taylor expanded in a around 0 87.3%
Final simplification74.8%
(FPCore (a b) :precision binary64 (* (/ PI (+ b a)) (/ 0.5 (* b a))))
double code(double a, double b) {
return (((double) M_PI) / (b + a)) * (0.5 / (b * a));
}
public static double code(double a, double b) {
return (Math.PI / (b + a)) * (0.5 / (b * a));
}
def code(a, b): return (math.pi / (b + a)) * (0.5 / (b * a))
function code(a, b) return Float64(Float64(pi / Float64(b + a)) * Float64(0.5 / Float64(b * a))) end
function tmp = code(a, b) tmp = (pi / (b + a)) * (0.5 / (b * a)); end
code[a_, b_] := N[(N[(Pi / N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(0.5 / N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\pi}{b + a} \cdot \frac{0.5}{b \cdot a}
\end{array}
Initial program 75.4%
associate-*l*75.4%
*-rgt-identity75.4%
associate-/l*75.4%
metadata-eval75.4%
associate-*l/75.5%
*-lft-identity75.5%
sub-neg75.5%
distribute-neg-frac75.5%
metadata-eval75.5%
Simplified75.5%
metadata-eval75.5%
div-inv75.5%
clear-num75.5%
clear-num75.0%
frac-times74.9%
metadata-eval74.9%
frac-add74.9%
associate-/r/74.9%
*-un-lft-identity74.9%
*-commutative74.9%
neg-mul-174.9%
sub-neg74.9%
flip-+98.8%
+-commutative98.8%
Applied egg-rr98.8%
associate-/r*98.9%
associate-/r/98.9%
metadata-eval98.9%
*-commutative98.9%
times-frac99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (a b) :precision binary64 (* PI (/ 0.5 (* (+ b a) (* b a)))))
double code(double a, double b) {
return ((double) M_PI) * (0.5 / ((b + a) * (b * a)));
}
public static double code(double a, double b) {
return Math.PI * (0.5 / ((b + a) * (b * a)));
}
def code(a, b): return math.pi * (0.5 / ((b + a) * (b * a)))
function code(a, b) return Float64(pi * Float64(0.5 / Float64(Float64(b + a) * Float64(b * a)))) end
function tmp = code(a, b) tmp = pi * (0.5 / ((b + a) * (b * a))); end
code[a_, b_] := N[(Pi * N[(0.5 / N[(N[(b + a), $MachinePrecision] * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\pi \cdot \frac{0.5}{\left(b + a\right) \cdot \left(b \cdot a\right)}
\end{array}
Initial program 75.4%
*-commutative75.4%
associate-*r*75.4%
associate-*r/75.4%
associate-*r*75.4%
*-rgt-identity75.4%
sub-neg75.4%
distribute-neg-frac75.4%
metadata-eval75.4%
Simplified75.4%
associate-*l/75.5%
div-inv75.5%
metadata-eval75.5%
*-commutative75.5%
associate-*r*75.4%
*-commutative75.4%
Applied egg-rr98.9%
Final simplification98.9%
(FPCore (a b) :precision binary64 (* PI (/ 0.5 (* a (* b a)))))
double code(double a, double b) {
return ((double) M_PI) * (0.5 / (a * (b * a)));
}
public static double code(double a, double b) {
return Math.PI * (0.5 / (a * (b * a)));
}
def code(a, b): return math.pi * (0.5 / (a * (b * a)))
function code(a, b) return Float64(pi * Float64(0.5 / Float64(a * Float64(b * a)))) end
function tmp = code(a, b) tmp = pi * (0.5 / (a * (b * a))); end
code[a_, b_] := N[(Pi * N[(0.5 / N[(a * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\pi \cdot \frac{0.5}{a \cdot \left(b \cdot a\right)}
\end{array}
Initial program 75.4%
*-commutative75.4%
associate-*r*75.4%
associate-*r/75.4%
associate-*r*75.4%
*-rgt-identity75.4%
sub-neg75.4%
distribute-neg-frac75.4%
metadata-eval75.4%
Simplified75.4%
associate-*l/75.5%
div-inv75.5%
metadata-eval75.5%
*-commutative75.5%
associate-*r*75.4%
*-commutative75.4%
Applied egg-rr98.9%
Taylor expanded in a around inf 61.1%
Final simplification61.1%
herbie shell --seed 2024118
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2.0) (/ 1.0 (- (* b b) (* a a)))) (- (/ 1.0 a) (/ 1.0 b))))