
(FPCore (x tau) :precision binary32 (let* ((t_1 (* (* x PI) tau))) (* (/ (sin t_1) t_1) (/ (sin (* x PI)) (* x PI)))))
float code(float x, float tau) {
float t_1 = (x * ((float) M_PI)) * tau;
return (sinf(t_1) / t_1) * (sinf((x * ((float) M_PI))) / (x * ((float) M_PI)));
}
function code(x, tau) t_1 = Float32(Float32(x * Float32(pi)) * tau) return Float32(Float32(sin(t_1) / t_1) * Float32(sin(Float32(x * Float32(pi))) / Float32(x * Float32(pi)))) end
function tmp = code(x, tau) t_1 = (x * single(pi)) * tau; tmp = (sin(t_1) / t_1) * (sin((x * single(pi))) / (x * single(pi))); end
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \pi\right) \cdot tau\\
\frac{\sin t_1}{t_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}
\end{array}
\end{array}
herbie shell --seed 2024005
(FPCore (x tau)
:name "Lanczos kernel"
:precision binary32
:pre (and (and (<= 1e-5 x) (<= x 1.0)) (and (<= 1.0 tau) (<= tau 5.0)))
(* (/ (sin (* (* x PI) tau)) (* (* x PI) tau)) (/ (sin (* x PI)) (* x PI))))
Please file a bug report with this information.
| repr->cost: arity mismatch; the expected number of arguments does not match the given number expected: 2 given: 1 | L | C | |
|---|---|---|---|
| loop | .../private/map.rkt | 54 | 19 |
| f490 | .../match/compiler.rkt | 548 | 40 |
| loop | .../private/map.rkt | 54 | 19 |
| f490 | .../match/compiler.rkt | 548 | 40 |
| loop | .../private/map.rkt | 54 | 19 |
| f490 | .../match/compiler.rkt | 548 | 40 |
| loop | .../private/map.rkt | 54 | 19 |
| f490 | .../match/compiler.rkt | 548 | 40 |
| loop | .../private/map.rkt | 54 | 19 |
| f490 | .../match/compiler.rkt | 548 | 40 |
| make-alt-table | /home/nightlies/herbie/platforms/src/core/alt-table.rkt | 40 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
| initialize-alt-table! | /home/nightlies/herbie/platforms/src/mainloop.rkt | 316 | 0 |
| mutate! | /home/nightlies/herbie/platforms/src/mainloop.rkt | 352 | 0 |
| run-improve! | /home/nightlies/herbie/platforms/src/mainloop.rkt | 338 | 0 |
| get-alternatives/report | /home/nightlies/herbie/platforms/src/sandbox.rkt | 169 | 0 |
| (unnamed) | /home/nightlies/herbie/platforms/src/sandbox.rkt | 262 | 6 |
| (unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |