On Dec 3, 2008, at 12:18 AM, Jason Grout wrote:
An easier way: sage: f=factor(16200) sage: f 2^3 * 3^4 * 5^2 sage: [i^j for i,j in f] [8, 81, 25]
Thanks. That works, but Sage automatically expands things so you need to do, [(i^j).factor() for i,j in f] To ensure that each polynomial term is shown factorized. That solves one of my problems. Unfortunately, the partial fraction routine for polynomials doesn't take arguments as to terms to do the expansion over. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey
smime.p7s
Description: S/MIME cryptographic signature