
(FPCore (ux uy maxCos) :precision binary32 (let* ((t_0 (+ (- 1.0 ux) (* ux maxCos)))) (* (cos (* (* uy 2.0) (PI))) (sqrt (- 1.0 (* t_0 t_0))))))
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - ux\right) + ux \cdot maxCos\\
\cos \left(\left(uy \cdot 2\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{1 - t\_0 \cdot t\_0}
\end{array}
\end{array}
herbie shell --seed 2025029
(FPCore (ux uy maxCos)
:name "UniformSampleCone, x"
:precision binary32
:pre (and (and (and (<= 2.328306437e-10 ux) (<= ux 1.0)) (and (<= 2.328306437e-10 uy) (<= uy 1.0))) (and (<= 0.0 maxCos) (<= maxCos 1.0)))
(* (cos (* (* uy 2.0) (PI))) (sqrt (- 1.0 (* (+ (- 1.0 ux) (* ux maxCos)) (+ (- 1.0 ux) (* ux maxCos)))))))
Please file a bug report with this information.
| symbol->string: contract violation expected: symbol? given: '(* x y) | L | C | |
|---|---|---|---|
| insert-node! | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 108 | 2 |
| egraph-add-exprs | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 72 | 0 |
| egraph-run-schedule | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 1275 | 0 |
| make-egraph | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 1332 | 0 |
| initial-simplify | /home/nightlies/herbie/really-crazy-encodings/src/core/preprocess.rkt | 54 | 0 |
| find-preprocessing | /home/nightlies/herbie/really-crazy-encodings/src/core/preprocess.rkt | 81 | 0 |
| run-improve! | /home/nightlies/herbie/really-crazy-encodings/src/core/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/really-crazy-encodings/src/api/sandbox.rkt | 174 | 0 |
| (unnamed) | /home/nightlies/herbie/really-crazy-encodings/src/api/sandbox.rkt | 265 | 6 |
| (unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
| in-engine | /home/nightlies/herbie/really-crazy-encodings/src/api/sandbox.rkt | 283 | 2 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |