On line 7, the call to raise-argument-error should be:

(raise-argument-error 'jacobi "odd?" 1 a n)

This also speaks to the need for contracts plus types!

Robby

On Fri, Sep 11, 2015 at 4:59 AM, eu90h <[email protected]> wrote:
> Hello,
>
> I wrote a small procedure computing the Jacobi symbol. I thought it might be
> cool/useful to put in the math/number-theory pkg if possible.
> The procedure is contained in this gist, along with some test vectors.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-dev/8a0ab0ad-5b76-4db6-b3be-d26f2e1cb4b3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/CAL3TdOOJ46mYtftfUJ2Biu8qqsVq%3D%2BQkWtmy2DaEUvTyZtxuyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to