[sage-support] Re: Potential memory leak when calling binomial

2009-07-26 Thread Carlo Hamalainen
On Sat, Jul 25, 2009 at 5:08 PM, Stephen Hartkehar...@gmail.com wrote: Might this be related to how binomial is evaluated using GiNaC?  Similar problems occur when replacing binomial with log. Valgrind says yes: ==26568== 4 bytes in 1 blocks are definitely lost in loss record 35 of 3,312

[sage-support] Re: Potential memory leak when calling binomial

2009-07-26 Thread Stephen Hartke
On Sun, Jul 26, 2009 at 12:31 AM, Carlo Hamalainen carlo.hamalai...@gmail.com wrote: On Sat, Jul 25, 2009 at 5:08 PM, Stephen Hartkehar...@gmail.com wrote: Might this be related to how binomial is evaluated using GiNaC? Valgrind says yes: ==26568== 4 bytes in 1 blocks are definitely lost

[sage-support] Polynomials with ZZ coefficients

2009-07-26 Thread James Parson
Dear Sage Support group, I've been trying some simple operations with ideals in polynomial rings with ZZ coefficients in Sage 4.1, and I have been puzzled by some of the results: 1. If I define a polynomial ring and ideal using, say sage: R.x = PolynomialRing(ZZ) sage: J = R.ideal(x^2 - 3, 25