
(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 2024097
(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.
| default-extraction-proc: did not compute cost for all eclasses: #((0 . binary32) (5 + 2 3 4) (0 $Type binary32 binary32 binary32) (1 . 1) (3 * 2 33 33) (1 . 2) #f #f #f #f #f (0 . binary64) #f #f #f #f (0 $Type binary32 binary32 binary32 binary32) #f #f #f #f (1 $Var 34 41) #f (0 . h1) (0 $Type binary32 binary32) (0 $Type binary64 binary64) #f (1 . -1/6) #f (3 * 2 21 21) #f #f #f (1 $Var 34 23) (0 $Type binary32) #f #f #f (3 * 2 21 33) #f #f (0 . h0) #f #f #f #f (1 . 0) #f) | L | C | |
|---|---|---|---|
| run-egg | /home/nightlies/herbie/egg-serialize/src/core/egg-herbie.rkt | 1026 | 0 |
| simplify-batch | /home/nightlies/herbie/egg-serialize/src/core/simplify.rkt | 15 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/contract/private/arrow-higher-order.rkt | 379 | 33 |
| final-simplify! | /home/nightlies/herbie/egg-serialize/src/mainloop.rkt | 388 | 0 |
| extract! | /home/nightlies/herbie/egg-serialize/src/mainloop.rkt | 83 | 0 |
| run-improve! | /home/nightlies/herbie/egg-serialize/src/mainloop.rkt | 51 | 0 |
| get-alternatives/report | /home/nightlies/herbie/egg-serialize/src/sandbox.rkt | 171 | 0 |
| (unnamed) | /home/nightlies/herbie/egg-serialize/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 |