Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you for your answer. I understand the sensitive issue concerning the Sage Integer type. I also have tested the following program without any error:

for l in range(m, maxdeg + 1):
    print l, m, bool(p[l] == gen_legendre_P(l, Integer(m), z))
          or
    print l, m, bool(p[l] == gen_legendre_P(l, m+1, z))

Sincerely, KKondo