
(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 10 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 (- (/ 1.0 (sin B)) (/ x (tan B))))
double code(double B, double x) {
return (1.0 / sin(B)) - (x / tan(B));
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (1.0d0 / sin(b)) - (x / tan(b))
end function
public static double code(double B, double x) {
return (1.0 / Math.sin(B)) - (x / Math.tan(B));
}
def code(B, x): return (1.0 / math.sin(B)) - (x / math.tan(B))
function code(B, x) return Float64(Float64(1.0 / sin(B)) - Float64(x / tan(B))) end
function tmp = code(B, x) tmp = (1.0 / sin(B)) - (x / tan(B)); end
code[B_, x_] := N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\sin B} - \frac{x}{\tan B}
\end{array}
Initial program 99.8%
+-commutative99.8%
unsub-neg99.8%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (B x) :precision binary64 (if (or (<= x -1.75) (not (<= x 1.35))) (* x (/ (+ (/ 1.0 x) -1.0) (tan B))) (- (/ 1.0 (sin B)) (/ x B))))
double code(double B, double x) {
double tmp;
if ((x <= -1.75) || !(x <= 1.35)) {
tmp = x * (((1.0 / x) + -1.0) / tan(B));
} else {
tmp = (1.0 / sin(B)) - (x / B);
}
return tmp;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if ((x <= (-1.75d0)) .or. (.not. (x <= 1.35d0))) then
tmp = x * (((1.0d0 / x) + (-1.0d0)) / tan(b))
else
tmp = (1.0d0 / sin(b)) - (x / b)
end if
code = tmp
end function
public static double code(double B, double x) {
double tmp;
if ((x <= -1.75) || !(x <= 1.35)) {
tmp = x * (((1.0 / x) + -1.0) / Math.tan(B));
} else {
tmp = (1.0 / Math.sin(B)) - (x / B);
}
return tmp;
}
def code(B, x): tmp = 0 if (x <= -1.75) or not (x <= 1.35): tmp = x * (((1.0 / x) + -1.0) / math.tan(B)) else: tmp = (1.0 / math.sin(B)) - (x / B) return tmp
function code(B, x) tmp = 0.0 if ((x <= -1.75) || !(x <= 1.35)) tmp = Float64(x * Float64(Float64(Float64(1.0 / x) + -1.0) / tan(B))); else tmp = Float64(Float64(1.0 / sin(B)) - Float64(x / B)); end return tmp end
function tmp_2 = code(B, x) tmp = 0.0; if ((x <= -1.75) || ~((x <= 1.35))) tmp = x * (((1.0 / x) + -1.0) / tan(B)); else tmp = (1.0 / sin(B)) - (x / B); end tmp_2 = tmp; end
code[B_, x_] := If[Or[LessEqual[x, -1.75], N[Not[LessEqual[x, 1.35]], $MachinePrecision]], N[(x * N[(N[(N[(1.0 / x), $MachinePrecision] + -1.0), $MachinePrecision] / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.75 \lor \neg \left(x \leq 1.35\right):\\
\;\;\;\;x \cdot \frac{\frac{1}{x} + -1}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if x < -1.75 or 1.3500000000000001 < x Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
+-commutative99.7%
cancel-sign-sub-inv99.7%
div-inv99.8%
clear-num99.6%
frac-sub91.4%
*-un-lft-identity91.4%
*-commutative91.4%
*-un-lft-identity91.4%
Applied egg-rr91.4%
associate-/r*99.6%
associate-/r/99.7%
div-sub99.7%
*-inverses99.7%
Simplified99.7%
Taylor expanded in B around 0 98.2%
if -1.75 < x < 1.3500000000000001Initial program 99.9%
+-commutative99.9%
unsub-neg99.9%
associate-*r/99.9%
*-rgt-identity99.9%
Simplified99.9%
Taylor expanded in B around 0 98.2%
Final simplification98.2%
(FPCore (B x) :precision binary64 (if (or (<= x -1.55) (not (<= x 1.4))) (/ (* x (+ (/ 1.0 x) -1.0)) (tan B)) (- (/ 1.0 (sin B)) (/ x B))))
double code(double B, double x) {
double tmp;
if ((x <= -1.55) || !(x <= 1.4)) {
tmp = (x * ((1.0 / x) + -1.0)) / tan(B);
} else {
tmp = (1.0 / sin(B)) - (x / B);
}
return tmp;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if ((x <= (-1.55d0)) .or. (.not. (x <= 1.4d0))) then
tmp = (x * ((1.0d0 / x) + (-1.0d0))) / tan(b)
else
tmp = (1.0d0 / sin(b)) - (x / b)
end if
code = tmp
end function
public static double code(double B, double x) {
double tmp;
if ((x <= -1.55) || !(x <= 1.4)) {
tmp = (x * ((1.0 / x) + -1.0)) / Math.tan(B);
} else {
tmp = (1.0 / Math.sin(B)) - (x / B);
}
return tmp;
}
def code(B, x): tmp = 0 if (x <= -1.55) or not (x <= 1.4): tmp = (x * ((1.0 / x) + -1.0)) / math.tan(B) else: tmp = (1.0 / math.sin(B)) - (x / B) return tmp
function code(B, x) tmp = 0.0 if ((x <= -1.55) || !(x <= 1.4)) tmp = Float64(Float64(x * Float64(Float64(1.0 / x) + -1.0)) / tan(B)); else tmp = Float64(Float64(1.0 / sin(B)) - Float64(x / B)); end return tmp end
function tmp_2 = code(B, x) tmp = 0.0; if ((x <= -1.55) || ~((x <= 1.4))) tmp = (x * ((1.0 / x) + -1.0)) / tan(B); else tmp = (1.0 / sin(B)) - (x / B); end tmp_2 = tmp; end
code[B_, x_] := If[Or[LessEqual[x, -1.55], N[Not[LessEqual[x, 1.4]], $MachinePrecision]], N[(N[(x * N[(N[(1.0 / x), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.55 \lor \neg \left(x \leq 1.4\right):\\
\;\;\;\;\frac{x \cdot \left(\frac{1}{x} + -1\right)}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if x < -1.55000000000000004 or 1.3999999999999999 < x Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
+-commutative99.7%
cancel-sign-sub-inv99.7%
div-inv99.8%
clear-num99.6%
frac-sub91.4%
*-un-lft-identity91.4%
*-commutative91.4%
*-un-lft-identity91.4%
Applied egg-rr91.4%
associate-/r*99.6%
associate-/r/99.7%
div-sub99.7%
*-inverses99.7%
Simplified99.7%
Taylor expanded in B around 0 98.2%
associate-*l/98.4%
sub-neg98.4%
metadata-eval98.4%
Applied egg-rr98.4%
if -1.55000000000000004 < x < 1.3999999999999999Initial program 99.9%
+-commutative99.9%
unsub-neg99.9%
associate-*r/99.9%
*-rgt-identity99.9%
Simplified99.9%
Taylor expanded in B around 0 98.2%
Final simplification98.3%
(FPCore (B x) :precision binary64 (if (or (<= x -1.25e-7) (not (<= x 980.0))) (+ (* B 0.16666666666666666) (- (/ 1.0 B) (/ x B))) (/ 1.0 (sin B))))
double code(double B, double x) {
double tmp;
if ((x <= -1.25e-7) || !(x <= 980.0)) {
tmp = (B * 0.16666666666666666) + ((1.0 / B) - (x / B));
} else {
tmp = 1.0 / sin(B);
}
return tmp;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if ((x <= (-1.25d-7)) .or. (.not. (x <= 980.0d0))) then
tmp = (b * 0.16666666666666666d0) + ((1.0d0 / b) - (x / b))
else
tmp = 1.0d0 / sin(b)
end if
code = tmp
end function
public static double code(double B, double x) {
double tmp;
if ((x <= -1.25e-7) || !(x <= 980.0)) {
tmp = (B * 0.16666666666666666) + ((1.0 / B) - (x / B));
} else {
tmp = 1.0 / Math.sin(B);
}
return tmp;
}
def code(B, x): tmp = 0 if (x <= -1.25e-7) or not (x <= 980.0): tmp = (B * 0.16666666666666666) + ((1.0 / B) - (x / B)) else: tmp = 1.0 / math.sin(B) return tmp
function code(B, x) tmp = 0.0 if ((x <= -1.25e-7) || !(x <= 980.0)) tmp = Float64(Float64(B * 0.16666666666666666) + Float64(Float64(1.0 / B) - Float64(x / B))); else tmp = Float64(1.0 / sin(B)); end return tmp end
function tmp_2 = code(B, x) tmp = 0.0; if ((x <= -1.25e-7) || ~((x <= 980.0))) tmp = (B * 0.16666666666666666) + ((1.0 / B) - (x / B)); else tmp = 1.0 / sin(B); end tmp_2 = tmp; end
code[B_, x_] := If[Or[LessEqual[x, -1.25e-7], N[Not[LessEqual[x, 980.0]], $MachinePrecision]], N[(N[(B * 0.16666666666666666), $MachinePrecision] + N[(N[(1.0 / B), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{-7} \lor \neg \left(x \leq 980\right):\\
\;\;\;\;B \cdot 0.16666666666666666 + \left(\frac{1}{B} - \frac{x}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B}\\
\end{array}
\end{array}
if x < -1.24999999999999994e-7 or 980 < x Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Taylor expanded in B around 0 49.4%
Taylor expanded in B around 0 49.9%
if -1.24999999999999994e-7 < x < 980Initial program 99.9%
distribute-lft-neg-in99.9%
Simplified99.9%
Taylor expanded in x around 0 97.0%
Final simplification73.1%
(FPCore (B x) :precision binary64 (/ (- 1.0 x) (sin B)))
double code(double B, double x) {
return (1.0 - x) / sin(B);
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (1.0d0 - x) / sin(b)
end function
public static double code(double B, double x) {
return (1.0 - x) / Math.sin(B);
}
def code(B, x): return (1.0 - x) / math.sin(B)
function code(B, x) return Float64(Float64(1.0 - x) / sin(B)) end
function tmp = code(B, x) tmp = (1.0 - x) / sin(B); end
code[B_, x_] := N[(N[(1.0 - x), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1 - x}{\sin B}
\end{array}
Initial program 99.8%
distribute-lft-neg-in99.8%
Simplified99.8%
Taylor expanded in B around inf 99.8%
Taylor expanded in x around 0 99.7%
+-commutative99.7%
mul-1-neg99.7%
neg-sub099.7%
associate--r-99.7%
*-commutative99.7%
div-sub99.7%
neg-sub099.7%
distribute-neg-frac99.7%
*-commutative99.7%
fma-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in B around 0 75.6%
Final simplification75.6%
(FPCore (B x) :precision binary64 (+ (* B 0.16666666666666666) (- (/ 1.0 B) (/ x B))))
double code(double B, double x) {
return (B * 0.16666666666666666) + ((1.0 / B) - (x / B));
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (b * 0.16666666666666666d0) + ((1.0d0 / b) - (x / b))
end function
public static double code(double B, double x) {
return (B * 0.16666666666666666) + ((1.0 / B) - (x / B));
}
def code(B, x): return (B * 0.16666666666666666) + ((1.0 / B) - (x / B))
function code(B, x) return Float64(Float64(B * 0.16666666666666666) + Float64(Float64(1.0 / B) - Float64(x / B))) end
function tmp = code(B, x) tmp = (B * 0.16666666666666666) + ((1.0 / B) - (x / B)); end
code[B_, x_] := N[(N[(B * 0.16666666666666666), $MachinePrecision] + N[(N[(1.0 / B), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
B \cdot 0.16666666666666666 + \left(\frac{1}{B} - \frac{x}{B}\right)
\end{array}
Initial program 99.8%
distribute-lft-neg-in99.8%
Simplified99.8%
Taylor expanded in B around 0 73.1%
Taylor expanded in B around 0 52.3%
Final simplification52.3%
(FPCore (B x) :precision binary64 (if (or (<= x -1.1e-10) (not (<= x 5.4e-6))) (/ (- x) B) (/ 1.0 B)))
double code(double B, double x) {
double tmp;
if ((x <= -1.1e-10) || !(x <= 5.4e-6)) {
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 <= (-1.1d-10)) .or. (.not. (x <= 5.4d-6))) 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 <= -1.1e-10) || !(x <= 5.4e-6)) {
tmp = -x / B;
} else {
tmp = 1.0 / B;
}
return tmp;
}
def code(B, x): tmp = 0 if (x <= -1.1e-10) or not (x <= 5.4e-6): tmp = -x / B else: tmp = 1.0 / B return tmp
function code(B, x) tmp = 0.0 if ((x <= -1.1e-10) || !(x <= 5.4e-6)) 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 <= -1.1e-10) || ~((x <= 5.4e-6))) tmp = -x / B; else tmp = 1.0 / B; end tmp_2 = tmp; end
code[B_, x_] := If[Or[LessEqual[x, -1.1e-10], N[Not[LessEqual[x, 5.4e-6]], $MachinePrecision]], N[((-x) / B), $MachinePrecision], N[(1.0 / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{-10} \lor \neg \left(x \leq 5.4 \cdot 10^{-6}\right):\\
\;\;\;\;\frac{-x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B}\\
\end{array}
\end{array}
if x < -1.09999999999999995e-10 or 5.39999999999999997e-6 < x Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
+-commutative99.7%
cancel-sign-sub-inv99.7%
div-inv99.8%
clear-num99.6%
frac-sub91.6%
*-un-lft-identity91.6%
*-commutative91.6%
*-un-lft-identity91.6%
Applied egg-rr91.6%
associate-/r*99.6%
associate-/r/99.7%
div-sub99.7%
*-inverses99.7%
Simplified99.7%
Taylor expanded in B around 0 48.1%
Taylor expanded in x around inf 47.6%
associate-*r/47.6%
mul-1-neg47.6%
Simplified47.6%
if -1.09999999999999995e-10 < x < 5.39999999999999997e-6Initial program 99.9%
distribute-lft-neg-in99.9%
Simplified99.9%
+-commutative99.9%
cancel-sign-sub-inv99.9%
div-inv99.9%
clear-num99.9%
frac-sub84.4%
*-un-lft-identity84.4%
*-commutative84.4%
*-un-lft-identity84.4%
Applied egg-rr84.4%
associate-/r*99.6%
associate-/r/77.5%
div-sub77.5%
*-inverses77.5%
Simplified77.5%
Taylor expanded in B around 0 34.3%
Taylor expanded in x around 0 56.0%
Final simplification51.6%
(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.8%
distribute-lft-neg-in99.8%
Simplified99.8%
Taylor expanded in B around 0 52.1%
mul-1-neg52.1%
sub-neg52.1%
Simplified52.1%
Final simplification52.1%
(FPCore (B x) :precision binary64 (* B 0.16666666666666666))
double code(double B, double x) {
return B * 0.16666666666666666;
}
real(8) function code(b, x)
real(8), intent (in) :: b
real(8), intent (in) :: x
code = b * 0.16666666666666666d0
end function
public static double code(double B, double x) {
return B * 0.16666666666666666;
}
def code(B, x): return B * 0.16666666666666666
function code(B, x) return Float64(B * 0.16666666666666666) end
function tmp = code(B, x) tmp = B * 0.16666666666666666; end
code[B_, x_] := N[(B * 0.16666666666666666), $MachinePrecision]
\begin{array}{l}
\\
B \cdot 0.16666666666666666
\end{array}
Initial program 99.8%
distribute-lft-neg-in99.8%
Simplified99.8%
+-commutative99.8%
cancel-sign-sub-inv99.8%
div-inv99.8%
clear-num99.7%
frac-sub88.1%
*-un-lft-identity88.1%
*-commutative88.1%
*-un-lft-identity88.1%
Applied egg-rr88.1%
associate-/r*99.6%
associate-/r/89.1%
div-sub89.1%
*-inverses89.1%
Simplified89.1%
Taylor expanded in B around 0 41.3%
Taylor expanded in B around inf 2.7%
associate-*r*2.7%
*-commutative2.7%
cancel-sign-sub-inv2.7%
associate-*r/2.7%
metadata-eval2.7%
metadata-eval2.7%
sub-neg2.7%
metadata-eval2.7%
associate-*l*2.8%
+-commutative2.8%
distribute-lft-in2.8%
metadata-eval2.8%
associate-+l+2.8%
associate-*r/2.8%
metadata-eval2.8%
Simplified2.8%
Taylor expanded in x around 0 3.2%
Final simplification3.2%
(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.8%
distribute-lft-neg-in99.8%
Simplified99.8%
+-commutative99.8%
cancel-sign-sub-inv99.8%
div-inv99.8%
clear-num99.7%
frac-sub88.1%
*-un-lft-identity88.1%
*-commutative88.1%
*-un-lft-identity88.1%
Applied egg-rr88.1%
associate-/r*99.6%
associate-/r/89.1%
div-sub89.1%
*-inverses89.1%
Simplified89.1%
Taylor expanded in B around 0 41.5%
Taylor expanded in x around 0 28.1%
Final simplification28.1%
herbie shell --seed 2023185
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))