
(FPCore (B x) :precision binary64 (+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))
double code(double B, double x) {
return -(x * (1.0 / tan(B))) + (1.0 / sin(B));
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -(x * (1.0d0 / tan(b))) + (1.0d0 / sin(b))
end function
public static double code(double B, double x) {
return -(x * (1.0 / Math.tan(B))) + (1.0 / Math.sin(B));
}
def code(B, x): return -(x * (1.0 / math.tan(B))) + (1.0 / math.sin(B))
function code(B, x) return Float64(Float64(-Float64(x * Float64(1.0 / tan(B)))) + Float64(1.0 / sin(B))) end
function tmp = code(B, x) tmp = -(x * (1.0 / tan(B))) + (1.0 / sin(B)); end
code[B_, x_] := N[((-N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) + N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-x \cdot \frac{1}{\tan B}\right) + \frac{1}{\sin B}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (B x) :precision binary64 (+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))
double code(double B, double x) {
return -(x * (1.0 / tan(B))) + (1.0 / sin(B));
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -(x * (1.0d0 / tan(b))) + (1.0d0 / sin(b))
end function
public static double code(double B, double x) {
return -(x * (1.0 / Math.tan(B))) + (1.0 / Math.sin(B));
}
def code(B, x): return -(x * (1.0 / math.tan(B))) + (1.0 / math.sin(B))
function code(B, x) return Float64(Float64(-Float64(x * Float64(1.0 / tan(B)))) + Float64(1.0 / sin(B))) end
function tmp = code(B, x) tmp = -(x * (1.0 / tan(B))) + (1.0 / sin(B)); end
code[B_, x_] := N[((-N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) + N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-x \cdot \frac{1}{\tan B}\right) + \frac{1}{\sin B}
\end{array}
(FPCore (B x) :precision binary64 (+ (/ (- x) (tan B)) (pow (sin B) -1.0)))
double code(double B, double x) {
return (-x / tan(B)) + pow(sin(B), -1.0);
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (-x / tan(b)) + (sin(b) ** (-1.0d0))
end function
public static double code(double B, double x) {
return (-x / Math.tan(B)) + Math.pow(Math.sin(B), -1.0);
}
def code(B, x): return (-x / math.tan(B)) + math.pow(math.sin(B), -1.0)
function code(B, x) return Float64(Float64(Float64(-x) / tan(B)) + (sin(B) ^ -1.0)) end
function tmp = code(B, x) tmp = (-x / tan(B)) + (sin(B) ^ -1.0); end
code[B_, x_] := N[(N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision] + N[Power[N[Sin[B], $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-x}{\tan B} + {\sin B}^{-1}
\end{array}
Initial program 99.7%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lower-/.f6499.8
Applied rewrites99.8%
Final simplification99.8%
(FPCore (B x) :precision binary64 (if (or (<= x -1.08) (not (<= x 0.00049))) (+ (/ (- x) (tan B)) (pow B -1.0)) (+ (- (/ x B)) (pow (sin B) -1.0))))
double code(double B, double x) {
double tmp;
if ((x <= -1.08) || !(x <= 0.00049)) {
tmp = (-x / tan(B)) + pow(B, -1.0);
} else {
tmp = -(x / B) + pow(sin(B), -1.0);
}
return tmp;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if ((x <= (-1.08d0)) .or. (.not. (x <= 0.00049d0))) then
tmp = (-x / tan(b)) + (b ** (-1.0d0))
else
tmp = -(x / b) + (sin(b) ** (-1.0d0))
end if
code = tmp
end function
public static double code(double B, double x) {
double tmp;
if ((x <= -1.08) || !(x <= 0.00049)) {
tmp = (-x / Math.tan(B)) + Math.pow(B, -1.0);
} else {
tmp = -(x / B) + Math.pow(Math.sin(B), -1.0);
}
return tmp;
}
def code(B, x): tmp = 0 if (x <= -1.08) or not (x <= 0.00049): tmp = (-x / math.tan(B)) + math.pow(B, -1.0) else: tmp = -(x / B) + math.pow(math.sin(B), -1.0) return tmp
function code(B, x) tmp = 0.0 if ((x <= -1.08) || !(x <= 0.00049)) tmp = Float64(Float64(Float64(-x) / tan(B)) + (B ^ -1.0)); else tmp = Float64(Float64(-Float64(x / B)) + (sin(B) ^ -1.0)); end return tmp end
function tmp_2 = code(B, x) tmp = 0.0; if ((x <= -1.08) || ~((x <= 0.00049))) tmp = (-x / tan(B)) + (B ^ -1.0); else tmp = -(x / B) + (sin(B) ^ -1.0); end tmp_2 = tmp; end
code[B_, x_] := If[Or[LessEqual[x, -1.08], N[Not[LessEqual[x, 0.00049]], $MachinePrecision]], N[(N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision] + N[Power[B, -1.0], $MachinePrecision]), $MachinePrecision], N[((-N[(x / B), $MachinePrecision]) + N[Power[N[Sin[B], $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.08 \lor \neg \left(x \leq 0.00049\right):\\
\;\;\;\;\frac{-x}{\tan B} + {B}^{-1}\\
\mathbf{else}:\\
\;\;\;\;\left(-\frac{x}{B}\right) + {\sin B}^{-1}\\
\end{array}
\end{array}
if x < -1.0800000000000001 or 4.8999999999999998e-4 < x Initial program 99.6%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lower-/.f6499.8
Applied rewrites99.8%
Taylor expanded in B around 0
lower-/.f6497.9
Applied rewrites97.9%
if -1.0800000000000001 < x < 4.8999999999999998e-4Initial program 99.8%
Taylor expanded in B around 0
lower-/.f6499.1
Applied rewrites99.1%
Final simplification98.5%
(FPCore (B x)
:precision binary64
(if (<= B 0.0035)
(/
(fma
(fma
(* (fma 0.022222222222222223 x 0.019444444444444445) B)
B
(fma 0.3333333333333333 x 0.16666666666666666))
(* B B)
(- 1.0 x))
B)
(+ (* (* 0.3333333333333333 B) x) (pow (sin B) -1.0))))
double code(double B, double x) {
double tmp;
if (B <= 0.0035) {
tmp = fma(fma((fma(0.022222222222222223, x, 0.019444444444444445) * B), B, fma(0.3333333333333333, x, 0.16666666666666666)), (B * B), (1.0 - x)) / B;
} else {
tmp = ((0.3333333333333333 * B) * x) + pow(sin(B), -1.0);
}
return tmp;
}
function code(B, x) tmp = 0.0 if (B <= 0.0035) tmp = Float64(fma(fma(Float64(fma(0.022222222222222223, x, 0.019444444444444445) * B), B, fma(0.3333333333333333, x, 0.16666666666666666)), Float64(B * B), Float64(1.0 - x)) / B); else tmp = Float64(Float64(Float64(0.3333333333333333 * B) * x) + (sin(B) ^ -1.0)); end return tmp end
code[B_, x_] := If[LessEqual[B, 0.0035], N[(N[(N[(N[(N[(0.022222222222222223 * x + 0.019444444444444445), $MachinePrecision] * B), $MachinePrecision] * B + N[(0.3333333333333333 * x + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] * N[(B * B), $MachinePrecision] + N[(1.0 - x), $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision], N[(N[(N[(0.3333333333333333 * B), $MachinePrecision] * x), $MachinePrecision] + N[Power[N[Sin[B], $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 0.0035:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.022222222222222223, x, 0.019444444444444445\right) \cdot B, B, \mathsf{fma}\left(0.3333333333333333, x, 0.16666666666666666\right)\right), B \cdot B, 1 - x\right)}{B}\\
\mathbf{else}:\\
\;\;\;\;\left(0.3333333333333333 \cdot B\right) \cdot x + {\sin B}^{-1}\\
\end{array}
\end{array}
if B < 0.00350000000000000007Initial program 99.8%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lift-tan.f64N/A
tan-quotN/A
lift-sin.f64N/A
associate-/r/N/A
associate-*l/N/A
lower-/.f64N/A
lower-*.f64N/A
lower-cos.f6499.8
Applied rewrites99.8%
Taylor expanded in B around 0
Applied rewrites64.4%
if 0.00350000000000000007 < B Initial program 99.5%
Taylor expanded in B around 0
div-subN/A
sub-negN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
mul-1-negN/A
distribute-neg-fracN/A
lower-/.f64N/A
lower-neg.f6429.1
Applied rewrites29.1%
Taylor expanded in B around inf
Applied rewrites29.1%
Final simplification55.2%
(FPCore (B x) :precision binary64 (/ (- 1.0 (* (cos B) x)) (sin B)))
double code(double B, double x) {
return (1.0 - (cos(B) * x)) / sin(B);
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (1.0d0 - (cos(b) * x)) / sin(b)
end function
public static double code(double B, double x) {
return (1.0 - (Math.cos(B) * x)) / Math.sin(B);
}
def code(B, x): return (1.0 - (math.cos(B) * x)) / math.sin(B)
function code(B, x) return Float64(Float64(1.0 - Float64(cos(B) * x)) / sin(B)) end
function tmp = code(B, x) tmp = (1.0 - (cos(B) * x)) / sin(B); end
code[B_, x_] := N[(N[(1.0 - N[(N[Cos[B], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1 - \cos B \cdot x}{\sin B}
\end{array}
Initial program 99.7%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lower-/.f6499.8
Applied rewrites99.8%
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lift-/.f64N/A
lift-/.f64N/A
div-invN/A
lift-tan.f64N/A
tan-quotN/A
lift-sin.f64N/A
lift-cos.f64N/A
clear-numN/A
associate-/l*N/A
lift-*.f64N/A
sub-divN/A
lower-/.f64N/A
lower--.f6499.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.7
Applied rewrites99.7%
(FPCore (B x) :precision binary64 (+ (- (/ x B)) (pow (sin B) -1.0)))
double code(double B, double x) {
return -(x / B) + pow(sin(B), -1.0);
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -(x / b) + (sin(b) ** (-1.0d0))
end function
public static double code(double B, double x) {
return -(x / B) + Math.pow(Math.sin(B), -1.0);
}
def code(B, x): return -(x / B) + math.pow(math.sin(B), -1.0)
function code(B, x) return Float64(Float64(-Float64(x / B)) + (sin(B) ^ -1.0)) end
function tmp = code(B, x) tmp = -(x / B) + (sin(B) ^ -1.0); end
code[B_, x_] := N[((-N[(x / B), $MachinePrecision]) + N[Power[N[Sin[B], $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-\frac{x}{B}\right) + {\sin B}^{-1}
\end{array}
Initial program 99.7%
Taylor expanded in B around 0
lower-/.f6474.7
Applied rewrites74.7%
Final simplification74.7%
(FPCore (B x) :precision binary64 (+ (fma (* 0.3333333333333333 x) B (/ (- x) B)) (pow B -1.0)))
double code(double B, double x) {
return fma((0.3333333333333333 * x), B, (-x / B)) + pow(B, -1.0);
}
function code(B, x) return Float64(fma(Float64(0.3333333333333333 * x), B, Float64(Float64(-x) / B)) + (B ^ -1.0)) end
code[B_, x_] := N[(N[(N[(0.3333333333333333 * x), $MachinePrecision] * B + N[((-x) / B), $MachinePrecision]), $MachinePrecision] + N[Power[B, -1.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(0.3333333333333333 \cdot x, B, \frac{-x}{B}\right) + {B}^{-1}
\end{array}
Initial program 99.7%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lower-/.f6499.8
Applied rewrites99.8%
Taylor expanded in B around 0
lower-/.f6472.5
Applied rewrites72.5%
Taylor expanded in B around 0
div-subN/A
sub-negN/A
mul-1-negN/A
Applied rewrites48.0%
Taylor expanded in B around 0
Applied rewrites48.6%
Final simplification48.6%
(FPCore (B x) :precision binary64 (+ (fma (* B x) 0.3333333333333333 (/ (- x) B)) (pow B -1.0)))
double code(double B, double x) {
return fma((B * x), 0.3333333333333333, (-x / B)) + pow(B, -1.0);
}
function code(B, x) return Float64(fma(Float64(B * x), 0.3333333333333333, Float64(Float64(-x) / B)) + (B ^ -1.0)) end
code[B_, x_] := N[(N[(N[(B * x), $MachinePrecision] * 0.3333333333333333 + N[((-x) / B), $MachinePrecision]), $MachinePrecision] + N[Power[B, -1.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(B \cdot x, 0.3333333333333333, \frac{-x}{B}\right) + {B}^{-1}
\end{array}
Initial program 99.7%
Taylor expanded in B around 0
div-subN/A
sub-negN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
mul-1-negN/A
distribute-neg-fracN/A
lower-/.f64N/A
lower-neg.f6461.8
Applied rewrites61.8%
Taylor expanded in B around 0
lower-/.f6448.6
Applied rewrites48.6%
Final simplification48.6%
(FPCore (B x) :precision binary64 (+ (* (fma 0.3333333333333333 B (/ -1.0 B)) x) (pow B -1.0)))
double code(double B, double x) {
return (fma(0.3333333333333333, B, (-1.0 / B)) * x) + pow(B, -1.0);
}
function code(B, x) return Float64(Float64(fma(0.3333333333333333, B, Float64(-1.0 / B)) * x) + (B ^ -1.0)) end
code[B_, x_] := N[(N[(N[(0.3333333333333333 * B + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] + N[Power[B, -1.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(0.3333333333333333, B, \frac{-1}{B}\right) \cdot x + {B}^{-1}
\end{array}
Initial program 99.7%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lower-/.f6499.8
Applied rewrites99.8%
Taylor expanded in B around 0
lower-/.f6472.5
Applied rewrites72.5%
Taylor expanded in B around 0
div-subN/A
*-rgt-identityN/A
associate-*r/N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
distribute-lft-out--N/A
*-lft-identityN/A
times-fracN/A
metadata-evalN/A
unpow2N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
unsub-negN/A
distribute-neg-inN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Final simplification48.6%
(FPCore (B x) :precision binary64 (+ (- (/ x B)) (pow B -1.0)))
double code(double B, double x) {
return -(x / B) + pow(B, -1.0);
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -(x / b) + (b ** (-1.0d0))
end function
public static double code(double B, double x) {
return -(x / B) + Math.pow(B, -1.0);
}
def code(B, x): return -(x / B) + math.pow(B, -1.0)
function code(B, x) return Float64(Float64(-Float64(x / B)) + (B ^ -1.0)) end
function tmp = code(B, x) tmp = -(x / B) + (B ^ -1.0); end
code[B_, x_] := N[((-N[(x / B), $MachinePrecision]) + N[Power[B, -1.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-\frac{x}{B}\right) + {B}^{-1}
\end{array}
Initial program 99.7%
lift-*.f64N/A
lift-/.f64N/A
un-div-invN/A
lower-/.f6499.8
Applied rewrites99.8%
Taylor expanded in B around 0
lower-/.f6472.5
Applied rewrites72.5%
Taylor expanded in B around 0
lower-/.f6448.4
Applied rewrites48.4%
Final simplification48.4%
(FPCore (B x) :precision binary64 (/ (- (fma (fma 0.3333333333333333 x 0.16666666666666666) (* B B) 1.0) x) B))
double code(double B, double x) {
return (fma(fma(0.3333333333333333, x, 0.16666666666666666), (B * B), 1.0) - x) / B;
}
function code(B, x) return Float64(Float64(fma(fma(0.3333333333333333, x, 0.16666666666666666), Float64(B * B), 1.0) - x) / B) end
code[B_, x_] := N[(N[(N[(N[(0.3333333333333333 * x + 0.16666666666666666), $MachinePrecision] * N[(B * B), $MachinePrecision] + 1.0), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision]
\begin{array}{l}
\\
\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.3333333333333333, x, 0.16666666666666666\right), B \cdot B, 1\right) - x}{B}
\end{array}
Initial program 99.7%
Taylor expanded in B around 0
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f64N/A
unpow2N/A
lower-*.f6448.5
Applied rewrites48.5%
(FPCore (B x) :precision binary64 (if (or (<= x -2.5e+28) (not (<= x 13500.0))) (/ (- x) B) (/ 1.0 B)))
double code(double B, double x) {
double tmp;
if ((x <= -2.5e+28) || !(x <= 13500.0)) {
tmp = -x / B;
} else {
tmp = 1.0 / B;
}
return tmp;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if ((x <= (-2.5d+28)) .or. (.not. (x <= 13500.0d0))) then
tmp = -x / b
else
tmp = 1.0d0 / b
end if
code = tmp
end function
public static double code(double B, double x) {
double tmp;
if ((x <= -2.5e+28) || !(x <= 13500.0)) {
tmp = -x / B;
} else {
tmp = 1.0 / B;
}
return tmp;
}
def code(B, x): tmp = 0 if (x <= -2.5e+28) or not (x <= 13500.0): tmp = -x / B else: tmp = 1.0 / B return tmp
function code(B, x) tmp = 0.0 if ((x <= -2.5e+28) || !(x <= 13500.0)) tmp = Float64(Float64(-x) / B); else tmp = Float64(1.0 / B); end return tmp end
function tmp_2 = code(B, x) tmp = 0.0; if ((x <= -2.5e+28) || ~((x <= 13500.0))) tmp = -x / B; else tmp = 1.0 / B; end tmp_2 = tmp; end
code[B_, x_] := If[Or[LessEqual[x, -2.5e+28], N[Not[LessEqual[x, 13500.0]], $MachinePrecision]], N[((-x) / B), $MachinePrecision], N[(1.0 / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+28} \lor \neg \left(x \leq 13500\right):\\
\;\;\;\;\frac{-x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B}\\
\end{array}
\end{array}
if x < -2.49999999999999979e28 or 13500 < x Initial program 99.7%
Taylor expanded in B around 0
lower-/.f64N/A
lower--.f6451.8
Applied rewrites51.8%
Taylor expanded in x around inf
Applied rewrites51.3%
if -2.49999999999999979e28 < x < 13500Initial program 99.8%
Taylor expanded in B around 0
lower-/.f64N/A
lower--.f6445.3
Applied rewrites45.3%
Taylor expanded in x around 0
Applied rewrites43.7%
Final simplification47.4%
(FPCore (B x) :precision binary64 (/ (- 1.0 x) B))
double code(double B, double x) {
return (1.0 - x) / B;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (1.0d0 - x) / b
end function
public static double code(double B, double x) {
return (1.0 - x) / B;
}
def code(B, x): return (1.0 - x) / B
function code(B, x) return Float64(Float64(1.0 - x) / B) end
function tmp = code(B, x) tmp = (1.0 - x) / B; end
code[B_, x_] := N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]
\begin{array}{l}
\\
\frac{1 - x}{B}
\end{array}
Initial program 99.7%
Taylor expanded in B around 0
lower-/.f64N/A
lower--.f6448.4
Applied rewrites48.4%
(FPCore (B x) :precision binary64 (/ 1.0 B))
double code(double B, double x) {
return 1.0 / B;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = 1.0d0 / b
end function
public static double code(double B, double x) {
return 1.0 / B;
}
def code(B, x): return 1.0 / B
function code(B, x) return Float64(1.0 / B) end
function tmp = code(B, x) tmp = 1.0 / B; end
code[B_, x_] := N[(1.0 / B), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{B}
\end{array}
Initial program 99.7%
Taylor expanded in B around 0
lower-/.f64N/A
lower--.f6448.4
Applied rewrites48.4%
Taylor expanded in x around 0
Applied rewrites24.1%
herbie shell --seed 2024324
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))