[sage-support] Re: help getting top k eigenvalues of a graph

2009-08-22 Thread Jason Grout
arun wrote: > Hi, > > I have a graph with a few billion edges in a comma separated edge > file. I am trying to find the top 10 eigenvalues and corresponsing > eigenvectors for this graph. This is what I tried (please see below) > and it hasn't worked. Can somone please guide me? > > Thanks, > Ar

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

2009-08-22 Thread Robert Bradshaw
On Aug 22, 2009, at 2:41 PM, William Stein wrote: > On Sat, Aug 22, 2009 at 2:39 PM, Robert Bradshaw > wrote: > > On Aug 22, 2009, at 1:23 PM, Golam Mortuza Hossain wrote: > > > Hi, > > > > On Sat, Aug 22, 2009 at 2:28 PM, Robert > > Bradshaw wrote: > >> You have to invoke simplify for it to l

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

2009-08-22 Thread William Stein
On Sat, Aug 22, 2009 at 2:39 PM, Robert Bradshaw < rober...@math.washington.edu> wrote: > > On Aug 22, 2009, at 1:23 PM, Golam Mortuza Hossain wrote: > > > Hi, > > > > On Sat, Aug 22, 2009 at 2:28 PM, Robert > > Bradshaw wrote: > >> You have to invoke simplify for it to look at assumptions. > >> >

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

2009-08-22 Thread Robert Bradshaw
On Aug 22, 2009, at 1:23 PM, Golam Mortuza Hossain wrote: > Hi, > > On Sat, Aug 22, 2009 at 2:28 PM, Robert > Bradshaw wrote: >> You have to invoke simplify for it to look at assumptions. >> >> sage: var('a') >> sage: assume(a, 'real') >> sage: a.conjugate().simplify() >> a > > I guess, we should

[sage-support] help getting top k eigenvalues of a graph

2009-08-22 Thread arun
Hi, I have a graph with a few billion edges in a comma separated edge file. I am trying to find the top 10 eigenvalues and corresponsing eigenvectors for this graph. This is what I tried (please see below) and it hasn't worked. Can somone please guide me? Thanks, Arun import networkx as nx; fro

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

2009-08-22 Thread Golam Mortuza Hossain
Hi, On Sat, Aug 22, 2009 at 2:28 PM, Robert Bradshaw wrote: > You have to invoke simplify for it to look at assumptions. > > sage: var('a') > sage: assume(a, 'real') > sage: a.conjugate().simplify() > a I guess, we should be careful here. When you invoke ".simplify()" the expression is passed

[sage-support] Re: ImageMagick on sagenb.org

2009-08-22 Thread William Stein
On Sat, Aug 22, 2009 at 11:11 AM, Dave wrote: > > Would it be possible to get ImageMagick available on sagenb.org? If > this isn't the right group to post this request to, can someone tell > me what the right one is (devel, edu, etc)? This is definitely the right place to ask... and I just di

[sage-support] ImageMagick on sagenb.org

2009-08-22 Thread Dave
Would it be possible to get ImageMagick available on sagenb.org? If this isn't the right group to post this request to, can someone tell me what the right one is (devel, edu, etc)? I tried out Marshall Hampton's animation of the witch of agnesi from http://wiki.sagemath.org/pics. It runs fine o

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

2009-08-22 Thread Mani chandra
Robert Bradshaw wrote: > On Aug 22, 2009, at 3:13 AM, Mani chandra wrote: > > >> Mani chandra wrote: >> >>> 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 >>> >>> >>>

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

2009-08-22 Thread Robert Bradshaw
On Aug 22, 2009, at 3:13 AM, Mani chandra wrote: > > Mani chandra wrote: >> 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 >> >>> >> >> > Hi, > > Perhaps I wasn't specific. > > sage: va

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

2009-08-22 Thread Golam Mortuza Hossain
Hi, On Aug 22, 11:20 am, Minh Nguyen wrote: > On Sun, Aug 23, 2009 at 12:16 AM, Mani chandra wrote: > >>>       Can this be some sort of a feature request for the next release? > > >> See ticket #6802: > > >>http://trac.sagemath.org/sage_trac/ticket/6802 > > > Oops, I should have checked before

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

2009-08-22 Thread boris.fonda
> You used to be able to type > > sage -optional > > to get a list of all optional packages, but that seems to be broken now. > Also, what I would do is implement the graphviz functions, and the error > if graphviz is not present could suggest installing it. > > - Robert I dont know about Graphvi

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

2009-08-22 Thread Minh Nguyen
On Sun, Aug 23, 2009 at 12:16 AM, Mani chandra wrote: > > Minh Nguyen wrote: >> Hi Mani, >> >> On Sat, Aug 22, 2009 at 8:40 PM, Mani chandra wrote: >> >>> William Stein wrote: >>> sage: var('a') sage: a.conjugate() conjugate(a) What I want is for SAGE

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

2009-08-22 Thread Mani chandra
Minh Nguyen wrote: > Hi Mani, > > On Sat, Aug 22, 2009 at 8:40 PM, Mani chandra wrote: > >> William Stein wrote: >> >>> >>> sage: var('a') >>> sage: a.conjugate() >>> conjugate(a) >>> >>> What I want is for SAGE to return a, instead of conjugate(a). Does >>> "var" >>>

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

2009-08-22 Thread Minh Nguyen
Hi Mani, On Sat, Aug 22, 2009 at 8:40 PM, Mani chandra wrote: > > William Stein wrote: >> >> >> >> sage: var('a') >> sage: a.conjugate() >> conjugate(a) >> >> What I want is for SAGE to return a, instead of conjugate(a). Does >> "var" >> take any arguments that forces a va

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

2009-08-22 Thread Mani chandra
William Stein wrote: > > > > sage: var('a') > sage: a.conjugate() > conjugate(a) > > What I want is for SAGE to return a, instead of conjugate(a). Does > "var" > take any arguments that forces a variable to be real? > > > Unfortunately, I don't think this is implemented yet

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

2009-08-22 Thread William Stein
On Sat, Aug 22, 2009 at 3:13 AM, Mani chandra wrote: > > Mani chandra wrote: > > 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 > > > > > > > > > > Hi, > >Perhaps I wasn't specifi

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

2009-08-22 Thread Mani chandra
Mani chandra wrote: > 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 > > > > > Hi, Perhaps I wasn't specific. sage: var('a') sage: a.conjugate() conjugate(a) What I want is for SAGE to

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

2009-08-22 Thread Simon King
Hi Jason! On 22 Aug., 11:15, Jason Grout wrote: > Simon King wrote: [...] > Of course, you'd probably do repr(M) instead, which is more standard > Python. [...] repr(M) returns a string, but doesn't print it. So, in order to display repr(M) inside a function, you'd do print repr(M) which is no

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

2009-08-22 Thread Jason Grout
Simon King wrote: > Hi Jason, > > On 22 Aug., 04:49, Jason Grout wrote: >> Robert Bradshaw wrote: > [...] >>> One problem with this is that then one can't do "print M" and get what one >>> expects from a non-terminal line (e.g. inside a function, or anything but >>> the last line of a notebook c

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

2009-08-22 Thread Simon King
Hi Jason, On 22 Aug., 04:49, Jason Grout wrote: > Robert Bradshaw wrote: [...] > > One problem with this is that then one can't do "print M" and get what one > > expects from a non-terminal line (e.g. inside a function, or anything but > > the last line of a notebook cell). > > Can you elaborate