Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unfriendly error message from bfsqrt #36

Open
soegaard opened this issue Mar 3, 2020 · 0 comments
Open

Unfriendly error message from bfsqrt #36

soegaard opened this issue Mar 3, 2020 · 0 comments

Comments

@soegaard
Copy link
Member

soegaard commented Mar 3, 2020

If by accident bfsqrt is given a non-bigfloat the error message doesn't come from the Racket layer.

Welcome to Racket v7.6.
> (require math/bigfloat)
> (bfsqrt 2)
; mpfr->C: argument is not non-null `mpfr' pointer
;   argument: 2
; [,bt for context]
> (bfsqrt (bf 2))
(bf #e1.414213562373095048801688724209698078569)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant