On Mon, Jun 17, 2019 at 5:38 AM Peter Luschny <peter.lusc...@gmail.com>
wrote:

> I don't know what OmegaPolynomial is. However, if you replace it by
>> cyclotomic_polynomial,
>> it seems to work as expected, doesn't it?
>>
>
> No, it does not. You missed the question.
>
>
>>
>> sage: *def* *ib*(m, n): *return* sum(binomial(m*n-*1*,
>> m*k)*cyclotomic_polynomial(m*(k+*1*)) *for* k in (*0.*.n-*1*))
>>
>> sage: ib(*2*,*2*)
>>
>> 3*x^2 + x + 4
>>
>> sage: type(ib(*2*,*2*))
>>
>> <type
>> 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>
>>
>> sage: ib(*2*,*2*).list()
>> [4, 1, 3]
>>
>
> Execute
>     for n in (0..6): print(ib(2, n).list()
> as indicated.
>
>

 for n in (1..6):
   print(ib(2, n).list())

works fine for me. Again, I don't know what OmegaPoly
is but my guess is that it's not defined when n=0. For example,

 for n in (0..6):
   print(ib(2, n).list())

doesn't work because the cyclotomic_poly isn't
defined at n=0. Are you saying, the error message it spits out,
AttributeError: 'int' object has no attribute 'list',
is misleading?

I guess I'm being dense this morning but I don't understand
why you think there is something wrong with the sum command.


-- 
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/4fc00a73-06c5-42be-9d5b-73bc53fcc683%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/4fc00a73-06c5-42be-9d5b-73bc53fcc683%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAEQuuAUm0p4idq7yEn5Vu%3DLXjHd%3D2f%3DrhaTe%3DqUsWhP1AXsLdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to