[sage-support] question about DiGraph

2008-09-23 Thread pong
I tried one of the examples (example 3 in DiGraph?) g = DiGraph({0:{1:'x',2:'z',3:'a'}, 2:{5:'out'}}, implementation='networkx'); show(g) However, I don't see any label of the edges, why? Also, I think the DiGraph function is very useful for drawing finite automata (thanks!) My question is: do

[sage-support] atan(0,0) returning zero?

2008-09-23 Thread Tim Lahey
Hi, In some investigations while using Sage, I noticed that atan(0,0) returns 0 while using Sage. Maxima correctly reports an error. The arctan(0,0) should be undefined. Is there a specific reason for the behaviour of reporting 0? Is there a flag to set to make it raise an error? Thanks, Tim.

[sage-support] Re: bug? with plot3d

2008-09-23 Thread John H Palmieri
On Sep 23, 2:05 pm, John H Palmieri <[EMAIL PROTECTED]> wrote: > When passing a python function to plot3d, specifying the variable > names and including 'adaptive=True' makes plot3d fail, with the > message > > AttributeError: 'function' object has no attribute 'subs' > > In more detail: > > sage:

[sage-support] Re: Storing results of solve() function

2008-09-23 Thread Jason Merrill
On Sep 23, 3:58 pm, Andy <[EMAIL PROTECTED]> wrote: > I am programming for a project in sage and I want to make use of the > solve() function.  However, I noticed that solve() does not return the > value of the solved variable but only a statement instead. > > For instance, if I wanted to do solve

[sage-support] Re: a different bug? with plot3d

2008-09-23 Thread William Stein
On Tue, Sep 23, 2008 at 2:15 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > Is the following a bug? I don't really know what 'adaptive=True' means > -- the documentation isn't very helpful -- so maybe it's not supposed > to work for functions like this... > > def g(x,y): >if y <= 0 or y >=

[sage-support] a different bug? with plot3d

2008-09-23 Thread John H Palmieri
Is the following a bug? I don't really know what 'adaptive=True' means -- the documentation isn't very helpful -- so maybe it's not supposed to work for functions like this... def g(x,y): if y <= 0 or y >= x**2: return 0 else: return 1 Then plot3d(g, (-3, 3), (-3, 3),

[sage-support] bug? with plot3d

2008-09-23 Thread John H Palmieri
When passing a python function to plot3d, specifying the variable names and including 'adaptive=True' makes plot3d fail, with the message AttributeError: 'function' object has no attribute 'subs' In more detail: sage: def f(x,y): return sin(x+y) Then the following work and produce the same gra

[sage-support] Re: question about SAGE eigenvalues

2008-09-23 Thread Jason Grout
John Cremona wrote: > 2008/9/23 John Cremona <[EMAIL PROTECTED]>: >> 2008/9/23 pong <[EMAIL PROTECTED]>: >>> >>> I tried >>> >>> sage: A=matrix([[1,1],[2,3]]) >>> sage: A.eigenvalues() >>> [0.2679491924311228?, 3.732050807568878?] >>> >>> My question is why the last digit before ? in 0.26794919243

[sage-support] Re: question about SAGE eigenvalues

2008-09-23 Thread Jason Grout
John Cremona wrote: > 2008/9/23 pong <[EMAIL PROTECTED]>: >> >> I tried >> >> sage: A=matrix([[1,1],[2,3]]) >> sage: A.eigenvalues() >> [0.2679491924311228?, 3.732050807568878?] >> >> My question is why the last digit before ? in 0.2679491924311228? is >> '8'? Shouldn't it be "7" according to >> >

[sage-support] Re: Storing results of solve() function

2008-09-23 Thread Mike Hansen
Hi Andy, On Tue, Sep 23, 2008 at 12:58 PM, Andy <[EMAIL PROTECTED]> wrote: > > I am programming for a project in sage and I want to make use of the > solve() function. However, I noticed that solve() does not return the > value of the solved variable but only a statement instead. > > For instanc

[sage-support] Storing results of solve() function

2008-09-23 Thread Andy
I am programming for a project in sage and I want to make use of the solve() function. However, I noticed that solve() does not return the value of the solved variable but only a statement instead. For instance, if I wanted to do solve([x^2 - 1], x), I would likely get a result containing the st

[sage-support] Re: installation problem with sage-3.1.2

2008-09-23 Thread mabshoff
On Sep 23, 7:37 am, abhi <[EMAIL PROTECTED]> wrote: Hi, > I am trying to install sage-3.1.2 on my Fedora 9 with gcc-4.3. I am > having problem with matplotlib-0.98.3.p1its giving error given > below > > BUILDING MATPLOTLIB >             matplotlib: 0.98.3 >                 python: 2.5.2 (r

[sage-support] Re: question about SAGE eigenvalues

2008-09-23 Thread John Cremona
2008/9/23 John Cremona <[EMAIL PROTECTED]>: > 2008/9/23 pong <[EMAIL PROTECTED]>: >> >> >> I tried >> >> sage: A=matrix([[1,1],[2,3]]) >> sage: A.eigenvalues() >> [0.2679491924311228?, 3.732050807568878?] >> >> My question is why the last digit before ? in 0.2679491924311228? is >> '8'? Shouldn't

[sage-support] Re: sage -wiki not starting

2008-09-23 Thread Adam Webb
Hi, > > > > ^^^ This is some sort of permission error. Are you running SELinux or > > > > something like that? > It turns out that although SELinux is installed it is actually disabled because it interferes to much and since I live behind a firewall it deemed unneeded. So I am back to square on

[sage-support] Re: question about SAGE eigenvalues

2008-09-23 Thread John Cremona
2008/9/23 pong <[EMAIL PROTECTED]>: > > > I tried > > sage: A=matrix([[1,1],[2,3]]) > sage: A.eigenvalues() > [0.2679491924311228?, 3.732050807568878?] > > My question is why the last digit before ? in 0.2679491924311228? is > '8'? Shouldn't it be "7" according to > > sage: ch=characteristic_polyn

[sage-support] Re: question about SAGE eigenvalues

2008-09-23 Thread William Stein
On Tue, Sep 23, 2008 at 9:34 AM, pong <[EMAIL PROTECTED]> wrote: > > > I tried > > sage: A=matrix([[1,1],[2,3]]) > sage: A.eigenvalues() > [0.2679491924311228?, 3.732050807568878?] > > My question is why the last digit before ? in 0.2679491924311228? is > '8'? Shouldn't it be "7" according to ? m

[sage-support] question about SAGE eigenvalues

2008-09-23 Thread pong
I tried sage: A=matrix([[1,1],[2,3]]) sage: A.eigenvalues() [0.2679491924311228?, 3.732050807568878?] My question is why the last digit before ? in 0.2679491924311228? is '8'? Shouldn't it be "7" according to sage: ch=characteristic_polynomial(A) sage: solve(ch(x)==0,x) [x == 2 - sqrt(3), x ==

[sage-support] Re: operations with matrices

2008-09-23 Thread John Cremona
2008/9/23 Simon King <[EMAIL PROTECTED]>: > > On Sep 23, 3:31 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: >> The rest of your query is hard to interpret. To "create a list of >> equal elements", say a list of 5 copies of the matrix m, do this: >> sage: [m]*5 > > But this would not create a list

[sage-support] Re: operations with matrices

2008-09-23 Thread Simon King
On Sep 23, 3:31 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > The rest of your query is hard to interpret. To "create a list of > equal elements", say a list of 5 copies of the matrix m, do this: > sage: [m]*5 But this would not create a list of 5 *copies* of m. The five entries of that list a

[sage-support] installation problem with sage-3.1.2

2008-09-23 Thread abhi
I am trying to install sage-3.1.2 on my Fedora 9 with gcc-4.3. I am having problem with matplotlib-0.98.3.p1its giving error given below BUILDING MATPLOTLIB matplotlib: 0.98.3 python: 2.5.2 (r252:60911, Sep 23 2008, 17:09:57) [GCC 4.3.0 2008

[sage-support] Re: operations with matrices

2008-09-23 Thread Jason Merrill
> John Cremona > > 2008/9/23 aniura <[EMAIL PROTECTED]>: > > > > > hi, > > > I wanted to know if there is a way to work in Sage with arrays of > > matrices or something similar (something like a[i,j,k], so that > > a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a > > list of matr

[sage-support] Re: operations with matrices

2008-09-23 Thread John Cremona
If you type m. you will see lots of things you can do with a matrix m. For example m.subdivide? allows you to pick out a submatrix. The rest of your query is hard to interpret. To "create a list of equal elements", say a list of 5 copies of the matrix m, do this: sage: [m]*5 [[1.00

[sage-support] Re: operations with matrices

2008-09-23 Thread David Harvey
On Sep 23, 2008, at 8:45 AM, aniura wrote: > > hi, > > I wanted to know if there is a way to work in Sage with arrays of > matrices or something similar (something like a[i,j,k], so that > a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a > list of matrices but apparently sage i

[sage-support] operations with matrices

2008-09-23 Thread aniura
hi, I wanted to know if there is a way to work in Sage with arrays of matrices or something similar (something like a[i,j,k], so that a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a list of matrices but apparently sage interprets it as a list of vectors: sage: m=matrix(RR,2,ra

[sage-support] Re: question on using integral() in sage. Fourier transform of unit step function.

2008-09-23 Thread kkwweett
Surprinsingly, SAGE 3.1.2 is more ignorant than 3.1.1: > ./sage --- | SAGE Version 3.1.2 ... | Type notebook() ... -- sage: var('a b t x') (a, b, t, x) sage: assume(exp(b*pi)<1) sage: expr(x)=integral(exp(-2*I*pi*(a+I*b)*t)

[sage-support] Re: working with rings

2008-09-23 Thread cesarnda
Actually sage: G.base_ring().order() is what I wanted, thank you so much. On Sep 23, 1:42 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 22, 2008, at 11:37 PM, Mike Hansen wrote: > > > > > > > Hello, > > On Mon, Sep 22, 2008 at 11:34 PM, cesarnda <[EMAIL PROTECTED]> wrote: > > >> If I d

[sage-support] Re: Suggestions for the notebook

2008-09-23 Thread Maike
Thanks, I'll make sure I get 3.1.2 installed today! On Sep 23, 10:26 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > Hello, > > On Tue, Sep 23, 2008 at 1:21 AM, Maike <[EMAIL PROTECTED]> wrote: > > > Okay that's right. But still, #auto doesn't work together with %hide > > or %latex, no matter whi

[sage-support] Re: Suggestions for the notebook

2008-09-23 Thread Mike Hansen
Hello, On Tue, Sep 23, 2008 at 1:21 AM, Maike <[EMAIL PROTECTED]> wrote: > > Okay that's right. But still, #auto doesn't work together with %hide > or %latex, no matter which order I put these commands in, and I need > this feature for my %latex cells, because they're the ones not being > execute

[sage-support] Re: Suggestions for the notebook

2008-09-23 Thread Maike
Okay that's right. But still, #auto doesn't work together with %hide or %latex, no matter which order I put these commands in, and I need this feature for my %latex cells, because they're the ones not being executed when I start up a worksheet. Maike On Sep 22, 6:31 pm, "William Stein" <[EMAIL P