[sage-support] Re: Resolved: LaTeX output for Graph Theory

2009-07-11 Thread Rob Beezer
Taxman, Thanks for the report. Current behavior is to support latex versions of graphs by adding two "\usepackage" commands to the preamble. It is possible tkz-arith.sty should also be added, and maybe something bigger like tikz and pgf. Also, the documentation could perhaps be improved b

[sage-support] Re: assume()

2009-07-11 Thread Robert Bradshaw
On Jul 11, 2009, at 4:39 PM, Minh Nguyen wrote: > On Sun, Jul 12, 2009 at 9:12 AM, Neal wrote: >> >> Hi everyone, >> >> I thought I'd share the following: >> >> sage: assume(x>0) >> sage: solve([x^2-1],x) >> [x == -1, x == 1] >> >> Shouldn't it not give me the negative solution? Also: >> >> sage

[sage-support] Re: assume()

2009-07-11 Thread Minh Nguyen
On Sun, Jul 12, 2009 at 9:12 AM, Neal wrote: > > Hi everyone, > > I thought I'd share the following: > > sage: assume(x>0) > sage: solve([x^2-1],x) > [x == -1, x == 1] > > Shouldn't it not give me the negative solution? Also: > > sage: assume(x == 1) > sage: bool(x == 1) > False We have been rec

[sage-support] assume()

2009-07-11 Thread Neal
Hi everyone, I thought I'd share the following: sage: assume(x>0) sage: solve([x^2-1],x) [x == -1, x == 1] Shouldn't it not give me the negative solution? Also: sage: assume(x == 1) sage: bool(x == 1) False Neal --~--~-~--~~~---~--~~ To post to this group, sen

[sage-support] Re: Is it possible to replace the list built-in type in Sage?

2009-07-11 Thread Marshall Hampton
You could also make your own sub-class like: class mylist(list): def sum(self): return sum(self) but then you would have to explicitly cast things to this class. -M. Hampton On Jul 11, 11:47 am, Harald Schilly wrote: > the int->integer replacement is done by a preparser. if you t

[sage-support] Re: Is it possible to replace the list built-in type in Sage?

2009-07-11 Thread Harald Schilly
the int->integer replacement is done by a preparser. if you turn it off, sage is "pure" python only. the list is a pure python object and i don't think it makes sense to change anything. I recommend you to use a "vector", sage: vector(RDF, [1,2,3]) h On Jul 11, 6:41 pm, Carlos Cordoba wrote: >

[sage-support] Is it possible to replace the list built-in type in Sage?

2009-07-11 Thread Carlos Cordoba
Hi, I noticed that the int python type is replaced by the Integer type in Sage. I'm wondering if I could do the same with the list type, so I can add a functionality I need to it. Could you tell how I can do it? Thanks, Carlos --~--~-~--~~~---~--~~ To post to th