[sage-devel] factor_trial_division returns Python longs as exponents #13692

2012-11-07 Thread Dima Pasechnik
> On 2012-11-07, Nils Bruin wrote: >> --=_Part_192_12193529.1352305182475 >> Content-Type: text/plain; charset=ISO-8859-1 >> >> >> >> On Tuesday, November 6, 2012 11:12:45 PM UTC-8, Rolandb wrote: >>> >>> Hi, have a look at: >>> >>> print [p for p in Integer(8).factor(limit=10^6)] >>> >>> [(2,

Re: [sage-devel] Re: Groups and ParentWithGens vs. Parent

2012-11-07 Thread Robert Bradshaw
On Wed, Nov 7, 2012 at 2:43 AM, Florent Hivert wrote: > Hi, > >> > So, if you want a general framework, I could imagine that the following >> > could work. Provide Parent with a method, say, >> > def to_generator_data(self,x) >> > which by default raises a NotImplementedError. >> > And t

[sage-devel] Re: Polyhedrons over various base rings

2012-11-07 Thread Volker Braun
Please do! On Wednesday, November 7, 2012 3:31:59 AM UTC-5, Nicolas M. ThiƩry wrote: > > On Tue, Nov 06, 2012 at 07:45:41AM -0800, Volker Braun wrote: > >I don't know any library that supports it natively. Though perhaps > one > >could pick a lower/upper rational approximation for sqrt

Re: [sage-devel] Re: Indexing of symbolic expressions

2012-11-07 Thread Michael Orlitzky
On 11/06/2012 10:51 PM, Andrey Novoseltsev wrote: > On Nov 6, 7:14 am, Jason Grout wrote: >> What about a[None] returning a? That's a little awkward, I guess. >> >> Thanks, >> >> Jason > > I would never think that a[None] would return a, whatever a is! I'd > expect something "empty"... I've jus

Re: [sage-devel] Re: Groups and ParentWithGens vs. Parent

2012-11-07 Thread Florent Hivert
Hi, > > So, if you want a general framework, I could imagine that the following > > could work. Provide Parent with a method, say, > > def to_generator_data(self,x) > > which by default raises a NotImplementedError. > > And then, there could be a method > > def from_generator_data(se

[sage-devel] Re: Polyhedrons over various base rings

2012-11-07 Thread Nicolas M. Thiery
On Tue, Nov 06, 2012 at 07:45:41AM -0800, Volker Braun wrote: >I don't know any library that supports it natively. Though perhaps one >could pick a lower/upper rational approximation for sqrt(5), say, and >extract some information that way? I never thought about it, though. Ok, thanks

[sage-devel] Re: Polyhedrons over various base rings

2012-11-07 Thread Nicolas M. Thiery
On Tue, Nov 06, 2012 at 07:45:41AM -0800, Volker Braun wrote: >I don't know any library that supports it natively. Though perhaps one >could pick a lower/upper rational approximation for sqrt(5), say, and >extract some information that way? I never thought about it, though. >My own