
(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}
herbie shell --seed 2024035
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))
Please file a bug report with this information.
| list-ref: index too large for list index: 256 in: '(#f #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t #t... | L | C | |
|---|---|---|---|
| valid-splitindices? | /home/nightlies/herbie/zane-regimes-2/src/core/regimes.rkt | 170 | 0 |
| (unnamed) | .../private/arr-i.rkt | 961 | 8 |
| option-on-expr | /home/nightlies/herbie/zane-regimes-2/src/core/regimes.rkt | 106 | 0 |
| infer-splitpoints | /home/nightlies/herbie/zane-regimes-2/src/core/regimes.rkt | 39 | 0 |
| loop | /home/nightlies/herbie/zane-regimes-2/src/core/regimes.rkt | 27 | 2 |
| loop | /home/nightlies/herbie/zane-regimes-2/src/core/regimes.rkt | 27 | 2 |
| extract! | /home/nightlies/herbie/zane-regimes-2/src/mainloop.rkt | 365 | 0 |
| run-improve! | /home/nightlies/herbie/zane-regimes-2/src/mainloop.rkt | 339 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-regimes-2/src/sandbox.rkt | 169 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-regimes-2/src/sandbox.rkt | 262 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |