Skip to content

Unfriendly error message from bfsqrt #36

@soegaard

Description

@soegaard

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions