Krawtchouk Polynomials

25 views
Skip to first unread message

Syedafariha Bukhari

unread,
Jun 16, 2022, 8:02:42 AM6/16/22
to sage-support
Dear Representative,
I am having trouble for Krawtchouk Polynomials my jupyter notebook is giving error that Krawtchouk is not defined. why it is so?

David Joyner

unread,
Jun 16, 2022, 8:10:32 AM6/16/22
to SAGE support
So we can better help, can you please give an example of the syntax you tried?

I'm no expert on those polynomials, nor on the jupyter notebook, but
when I followed
https://doc.sagemath.org/html/en/reference/coding/sage/coding/delsarte_bounds.html
on the command line, I got this output:

sage: codes.bounds.krawtchouk(24,2,5,x)
-4/15*(x - 1)*(x - 2)*(x - 3)*(x - 4)*x + 40/3*(x - 1)*(x - 2)*(x -
3)*x - 280*(x - 1)*(x - 2)*x + 3080*(x - 1)*x - 17710*x + 42504

Does that work for you?

> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/8e8c9cc3-e088-4969-b036-38d04a0eb282n%40googlegroups.com.

Syedafariha Bukhari

unread,
Jun 17, 2022, 4:50:43 AM6/17/22
to sage-s...@googlegroups.com
Thank you for your email. Actually I got to know I was using an older version of Sage then I tried this in an online notebook, and it's working.


Reply all
Reply to author
Forward
0 new messages