Hi Andrew! On Sep 3, 12:28 pm, andrew ewart <[email protected]> wrote: > so for ad^0 i should get out > [1,0,0,0,0,...,0]
What you can use is padded_list! Example: sage: R.<x>=QQ[] sage: p = R.random_element() sage: p 3/4*x^2 + 1/2*x - 1 sage: p.padded_list(5) [-1, 1/2, 3/4, 0, 0] The documentation can be obtained with sage: p.padded_list? Best regards, Simon -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
