
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* (PI) (/ angle 180.0)))) (+ (pow (* a (cos t_0)) 2.0) (pow (* b (sin t_0)) 2.0))))
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{PI}\left(\right) \cdot \frac{angle}{180}\\
{\left(a \cdot \cos t\_0\right)}^{2} + {\left(b \cdot \sin t\_0\right)}^{2}
\end{array}
\end{array}
herbie shell --seed 2025036 -o generate:simplify -o generate:proofs
(FPCore (a b angle)
:name "ab-angle->ABCF C"
:precision binary64
(+ (pow (* a (cos (* (PI) (/ angle 180.0)))) 2.0) (pow (* b (sin (* (PI) (/ angle 180.0)))) 2.0)))
Please file a bug report with this information.
| not a single type! | L | C | |
|---|---|---|---|
| make-regraph | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 742 | 0 |
| egraph-variations | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 1326 | 0 |
| run-rr | /home/nightlies/herbie/really-crazy-encodings/src/core/patch.rkt | 72 | 0 |
| generate-candidates | /home/nightlies/herbie/really-crazy-encodings/src/core/patch.rkt | 108 | 0 |
| run-iter! | /home/nightlies/herbie/really-crazy-encodings/src/core/mainloop.rkt | 68 | 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 |