Ian Simplification

Specification

?
\[\begin{array}{l} \\ \frac{\mathsf{PI}\left(\right)}{2} - 2 \cdot \sin^{-1} \left(\sqrt{\frac{1 - x}{2}}\right) \end{array} \]
(FPCore (x)
 :precision binary64
 (- (/ (PI) 2.0) (* 2.0 (asin (sqrt (/ (- 1.0 x) 2.0))))))
\begin{array}{l}

\\
\frac{\mathsf{PI}\left(\right)}{2} - 2 \cdot \sin^{-1} \left(\sqrt{\frac{1 - x}{2}}\right)
\end{array}

Reproduce

?
herbie shell --seed 2024288 
(FPCore (x)
  :name "Ian Simplification"
  :precision binary64

  :alt
  (! :herbie-platform default (asin x))

  (- (/ (PI) 2.0) (* 2.0 (asin (sqrt (/ (- 1.0 x) 2.0))))))

Please file a bug report with this information.

Backtrace

error: contract violation expected: string? given: 'asin.f64LC
f407.../match/compiler.rkt55940
loop.../private/map.rkt4019
loop.../private/map.rkt4019
loop.../private/map.rkt4019
loop.../private/map.rkt4019
loop.../private/map.rkt4019
loop.../private/map.rkt4019
loop.../private/map.rkt4019
compile-expr/home/nightlies/herbie/bhargav-log-space/src/core/explain.rkt840
explain/home/nightlies/herbie/bhargav-log-space/src/core/explain.rkt7130
explain!/home/nightlies/herbie/bhargav-log-space/src/core/mainloop.rkt3230
run-improve!/home/nightlies/herbie/bhargav-log-space/src/core/mainloop.rkt450
get-alternatives/report/home/nightlies/herbie/bhargav-log-space/src/api/sandbox.rkt1860
(unnamed)/home/nightlies/herbie/bhargav-log-space/src/api/sandbox.rkt2826
(unnamed)/usr/share/racket/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/share/racket/pkgs/profile-lib/main.rkt90
(unnamed)/usr/share/racket/collects/racket/engine.rkt4224