[sage-support] Re: force sage to print a matrix

2009-08-21 Thread Jason Grout
Robert Bradshaw wrote: > On Fri, 21 Aug 2009, Simon King wrote: > >> On 22 Aug., 00:57, William Stein wrote: >>> On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote: >> [...] sage: print M.str() but there might be nicer (and more intuitive!) ways. >>> I think that is the only way. I c

[sage-support] Re: %slide, %latex and matrices

2009-08-21 Thread Elizabeth Yip
I sort of solve my own problem. If I change the line feed '\\' to the tab &: \left(\begin{array}{r} 1 & \a & \a^{2} & a^{3} & a^{4} & 0 & 1 & 2 a & 3 a^{2} & 4 a^{3} & 0 & 0 & 1 & 3 a & 6 a^{2} & 0 & 0 & 0 & 1 & 4 a & 0 & 0 & 0 & 0 & 1 \end{array}\right) Then both %slide and %latex display t

[sage-support] Re: force sage to print a matrix

2009-08-21 Thread kcrisman
This is not as nice, but I have this problem a lot, and just do sage: M.rows() which at least lets me look at the matrix, if that's all you want. However, the suggestions above are great for a "real" solution. - kcrisman --~--~-~--~~~---~--~~ To post to this group,

[sage-support] %slide, %latex and matrices

2009-08-21 Thread Elizabeth Yip
Hi I am using the sage 4.1 notebook. When I enter the following into a notebook cell, I get the correct display of the matrix: %latex \left(\begin{array}{r} 1 & a & a^{2} & a^{3} & a^{4} \\ 0 & 1 & 2 a & 3 a^{2} & 4 a^{3} \\ 0 & 0 & 1 & 3 a & 6 a^{2} \\ 0 & 0 & 0 & 1 & 4 a \\ 0 & 0 & 0 & 0

[sage-support] Re: force sage to print a matrix

2009-08-21 Thread William Stein
On Fri, Aug 21, 2009 at 5:34 PM, Robert Bradshaw < rober...@math.washington.edu> wrote: > On Fri, 21 Aug 2009, Simon King wrote: > > > > > On 22 Aug., 00:57, William Stein wrote: > >> On Fri, Aug 21, 2009 at 3:18 PM, Simon King > wrote: > > [...] > >>> sage: print M.str() > >>> but there might

[sage-support] Re: force sage to print a matrix

2009-08-21 Thread Robert Bradshaw
On Fri, 21 Aug 2009, Simon King wrote: > > On 22 Aug., 00:57, William Stein wrote: >> On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote: > [...] >>>  sage: print M.str() >>> but there might be nicer (and more intuitive!) ways. >> >> I think that is the only way.  I can't think of any nicer way.

[sage-support] Re: force sage to print a matrix

2009-08-21 Thread Simon King
On 22 Aug., 00:57, William Stein wrote: > On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote: [...] > >  sage: print M.str() > > but there might be nicer (and more intuitive!) ways. > > I think that is the only way.  I can't think of any nicer way.  Any idea > what it *should* be? sage: M 29 x 2

[sage-support] Re: force sage to print a matrix

2009-08-21 Thread William Stein
On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote: > > On 22 Aug., 00:02, amps wrote: > > I have a program that outputs a matrix for certain values of n. for > > n=5 it works fine but for n=6 it just outputs > > > > 29 x 29 dense matrix over Integer Ring > > > > how can I force sage to output t

[sage-support] Introduction to Vectors by homerj on sagenb.org

2009-08-21 Thread Jason Grout
Since there's no way for me to tell how to reach homerj to comment on his very, *very* nice worksheet on sagenb.org, I'll just mention here (for him and for others that may benefit) that I made some revisions to his worksheet that take advantage of some of the new things we've added to Sage in

[sage-support] force sage to print a matrix

2009-08-21 Thread amps
I have a program that outputs a matrix for certain values of n. for n=5 it works fine but for n=6 it just outputs 29 x 29 dense matrix over Integer Ring how can I force sage to output the actual matrix? --~--~-~--~~~---~--~~ To post to this group, send email to s

[sage-support] Re: Optional package in Sage : Graphviz

2009-08-21 Thread Robert Bradshaw
On Fri, 21 Aug 2009, Nathann Cohen wrote: > > It's true that having Graphviz to plot our graphs would be very > interesting I'd like to spend some time on this, but I sent a lot > of patches to be reviewed already in the Graph section and I am not > sure it is a good idea to send even more fo

[sage-support] Re: Optional package in Sage : Graphviz

2009-08-21 Thread Nathann Cohen
It's true that having Graphviz to plot our graphs would be very interesting I'd like to spend some time on this, but I sent a lot of patches to be reviewed already in the Graph section and I am not sure it is a good idea to send even more for the moment ^^; There was a second question in my m

[sage-support] Re: force sage to print a matrix

2009-08-21 Thread Simon King
On 22 Aug., 00:02, amps wrote: > I have a program that outputs a matrix for certain values of n.  for > n=5 it works fine but for n=6 it just outputs > > 29 x 29 dense matrix over Integer Ring > > how can I force sage to output the actual matrix? Perhaps sage: M = random_matrix(ZZ,29,29) sag

[sage-support] rename a vertex as a letter

2009-08-21 Thread docfleetwood
Is there a way to 'map' the vertices of a graph as letters A-Z rather than numbers 0-26? AND If so, will other functions or actions on the graph understand the mapping? For example, if I setup an 'interact' where the drop-down choices are numbers will the actions in the 'interact' understand th

[sage-support] Re: Optional package in Sage : Graphviz

2009-08-21 Thread Robert Bradshaw
On Fri, 21 Aug 2009, Jason Grout wrote: > > Nathann Cohen wrote: >> Hello >> >> As we are dealing in Sage with a patch concerning the plotting of >> Trees, I wondered why we were not using Graphviz to plot them.. The >> answer is the usual one : Graphviz is not GPL-Uncompatible... Even >> th

[sage-support] Re: Optional package in Sage : Graphviz

2009-08-21 Thread Jason Grout
Nathann Cohen wrote: > Hello > > As we are dealing in Sage with a patch concerning the plotting of > Trees, I wondered why we were not using Graphviz to plot them.. The > answer is the usual one : Graphviz is not GPL-Uncompatible... Even > though, there is in Sage an optional package for Gra

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-21 Thread Ondrej Certik
On Fri, Aug 21, 2009 at 8:22 AM, Mani chandra wrote: > Ondrej Certik wrote: >> On Mon, Aug 17, 2009 at 11:06 AM, William Stein wrote: >> >>> On Mon, Aug 17, 2009 at 6:27 AM, Mani chandra wrote: >>> William Stein wrote: > On Mon, Aug 17, 2009 at 2:26 AM, Juan Jose > Garcia-Ripoll

[sage-support] How does one define a "real" variable

2009-08-21 Thread Mani chandra
Hi, How does one define a variable in sage and make sure the it's conjugate is the same as the variable itself? Thanks, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-21 Thread Mani chandra
Ondrej Certik wrote: > On Mon, Aug 17, 2009 at 11:06 AM, William Stein wrote: > >> On Mon, Aug 17, 2009 at 6:27 AM, Mani chandra wrote: >> >>> William Stein wrote: >>> On Mon, Aug 17, 2009 at 2:26 AM, Juan Jose Garcia-Ripoll wrote: > On Mon, Aug 17, 2

[sage-support] Optional package in Sage : Graphviz

2009-08-21 Thread Nathann Cohen
Hello As we are dealing in Sage with a patch concerning the plotting of Trees, I wondered why we were not using Graphviz to plot them.. The answer is the usual one : Graphviz is not GPL-Uncompatible... Even though, there is in Sage an optional package for Graphviz that can be installed prett