Re: [sage-devel] Adding NN (nonegative integer)

2011-01-20 Thread John Cremona
On 20 January 2011 09:43, Florent Hivert wrote: > On Thu, Jan 20, 2011 at 09:37:26AM +, John Cremona wrote: >> On 20 January 2011 09:31, Florent Hivert >> wrote: >> >> >> >> >> OK, that's easy -- just add it in sage/misc/latex_macros.py in the >> >> obvious place where there's a list of simi

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-20 Thread Florent Hivert
On Thu, Jan 20, 2011 at 09:37:26AM +, John Cremona wrote: > On 20 January 2011 09:31, Florent Hivert wrote: > > >> > >> OK, that's easy -- just add it in sage/misc/latex_macros.py in the > >> obvious place where there's a list of similar things.  A simple patch! > > > > Sure ! My question isn

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-20 Thread John Cremona
On 20 January 2011 09:31, Florent Hivert wrote: >> >> OK, that's easy -- just add it in sage/misc/latex_macros.py in the >> obvious place where there's a list of similar things.  A simple patch! > > Sure ! My question isn't technical. Sorry for not being clear about it. The > list of those macros

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-20 Thread Florent Hivert
On Thu, Jan 20, 2011 at 09:17:49AM +, John Cremona wrote: > On 20 January 2011 08:51, Florent Hivert wrote: > >      Hi John, > > > > On Wed, Jan 19, 2011 at 10:45:05PM +, John Cremona wrote: > >> What more than the following are you proposing? > >> > >> sage: version() > >> 'Sage Version

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-20 Thread John Cremona
On 20 January 2011 08:51, Florent Hivert wrote: >      Hi John, > > On Wed, Jan 19, 2011 at 10:45:05PM +, John Cremona wrote: >> What more than the following are you proposing? >> >> sage: version() >> 'Sage Version 4.6.2.alpha0, Release Date: 2011-01-13' >> sage: NN >> Non negative integer se

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-20 Thread Florent Hivert
Hi John, On Wed, Jan 19, 2011 at 10:45:05PM +, John Cremona wrote: > What more than the following are you proposing? > > sage: version() > 'Sage Version 4.6.2.alpha0, Release Date: 2011-01-13' > sage: NN > Non negative integer semiring > sage: latex(NN) > \Bold{N} When I wrote my e-mai

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-19 Thread John Cremona
What more than the following are you proposing? sage: version() 'Sage Version 4.6.2.alpha0, Release Date: 2011-01-13' sage: NN Non negative integer semiring sage: latex(NN) \Bold{N} John On 19 January 2011 12:23, Florent Hivert wrote: >      Hi there, > > In combinatorics, we very often use the

[sage-devel] Adding NN (nonegative integer)

2011-01-19 Thread Florent Hivert
Hi there, In combinatorics, we very often use the set of non negative integers. It is currently implemented in sage as NonNegativeIntegers(). Note that it is only a facade parent, that is element it generate are plain standard sage Integer with parent ZZ. We'd like to have it standard in the