
(FPCore (F l) :precision binary64 (- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))
double code(double F, double l) {
return (((double) M_PI) * l) - ((1.0 / (F * F)) * tan((((double) M_PI) * l)));
}
public static double code(double F, double l) {
return (Math.PI * l) - ((1.0 / (F * F)) * Math.tan((Math.PI * l)));
}
def code(F, l): return (math.pi * l) - ((1.0 / (F * F)) * math.tan((math.pi * l)))
function code(F, l) return Float64(Float64(pi * l) - Float64(Float64(1.0 / Float64(F * F)) * tan(Float64(pi * l)))) end
function tmp = code(F, l) tmp = (pi * l) - ((1.0 / (F * F)) * tan((pi * l))); end
code[F_, l_] := N[(N[(Pi * l), $MachinePrecision] - N[(N[(1.0 / N[(F * F), $MachinePrecision]), $MachinePrecision] * N[Tan[N[(Pi * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
\end{array}
herbie shell --seed 2024085
(FPCore (F l)
:name "VandenBroeck and Keller, Equation (6)"
:precision binary64
(- (* PI l) (* (/ 1.0 (* F F)) (tan (* PI l)))))
Please file a bug report with this information.
| err-lsts->split-indices: broke its own contract promised: curried:valid-splitindices? produced: '(#s(si 20 46) #s(si 0 61) #s(si 70 113) #s(si 0 256)) in: the result result of (->i ((e (listof list)) (cs (listof boolean?))) (result (cs) (curry valid-splitindices? cs))) contract from: (function err-lsts->split-indices) blaming: (function err-lsts->split-indices) (assuming the contract is correct) at: <pkgs>/herbie/core/regimes.rkt:178:18 | L | C | |
|---|---|---|---|
| raise-blame-error | /usr/local/racket/collects/racket/contract/private/blame.rkt | 346 | 0 |
| (unnamed) | .../private/arr-i.rkt | 961 | 8 |
| option-on-expr | /home/nightlies/herbie/zane-regimes-inverted/src/core/regimes.rkt | 108 | 0 |
| infer-splitpoints | /home/nightlies/herbie/zane-regimes-inverted/src/core/regimes.rkt | 42 | 0 |
| loop | /home/nightlies/herbie/zane-regimes-inverted/src/core/regimes.rkt | 27 | 2 |
| extract! | /home/nightlies/herbie/zane-regimes-inverted/src/mainloop.rkt | 368 | 0 |
| run-improve! | /home/nightlies/herbie/zane-regimes-inverted/src/mainloop.rkt | 326 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-regimes-inverted/src/sandbox.rkt | 171 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-regimes-inverted/src/sandbox.rkt | 266 | 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 |