[sage-support] shortest paths in graphs

2008-02-22 Thread vgermrk
This works: graphs.CubeGraph(4).shortest_paths('') but this don't: graphs.CubeGraph(4).shortest_path_all_pairs() Maybe the shortest_path_all_pairs function needs a by_weight=False parameter too (like the other shortest paths functions). I also would like to have a function

[sage-support] Re: noncommutative algebras

2008-02-22 Thread Simon King
Dear William, On Feb 22, 1:58 am, William Stein [EMAIL PROTECTED] wrote:  If I rename it to tensor.sage (not sure if this is a good idea), Yes, that's a VERY GOOD idea.  It's really crazy to use a compiled spyx for the purposes of interfacing with the Singular interpreter via pexpect.

[sage-support] Errno 13 on worksheet cells after uploading

2008-02-22 Thread AprèsTech
Hello, After uploading a worksheet from my PC to the sagenb.org server, I can't edit or evaluate cells within it. I'm receiving the error message Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 13] Permission denied: '/home/server2/sage_notebook/

[sage-support] Trying to graph cubic function f(x)=x^(1/3)

2008-02-22 Thread Andy
I am interested in the use of Sage as a teaching tool at all grade levels. At the moment, I'm trying to weave Sage into an introductory algebra curriculum. I can graph all the basic functions with plot(x), replacing x with x^2, x^3, 1/x, etc. The one I can't get to work is x^(1/3). I've tried

[sage-support] Re: Trying to graph cubic function f(x)=x^(1/3)

2008-02-22 Thread Alex Ghitza
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Andy, I had the exact same question a few days ago. There are many issues involved here, but the short answer to your question (provided by Carl Witty) is: you can plot x^(1/3) with show(plot(lambda x : RR(x).nth_root(3), -10, 10),

[sage-support] Re: Trying to graph cubic function f(x)=x^(1/3)

2008-02-22 Thread William Stein
On Fri, Feb 22, 2008 at 6:19 AM, Alex Ghitza [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Andy, I had the exact same question a few days ago. There are many issues involved here, but the short answer to your question (provided by Carl Witty) is: you

[sage-support] Re: Errno 13 on worksheet cells after uploading

2008-02-22 Thread William Stein
On Thu, Feb 21, 2008 at 9:09 PM, AprèsTech [EMAIL PROTECTED] wrote: Hello, After uploading a worksheet from my PC to the sagenb.org server, I can't edit or evaluate cells within it. I'm receiving the error message Traceback (most recent call last): File stdin, line 1, in module

[sage-support] Re: noncommutative algebras

2008-02-22 Thread William Stein
On Fri, Feb 22, 2008 at 12:50 AM, Simon King [EMAIL PROTECTED] wrote: Dear William, On Feb 22, 1:58 am, William Stein [EMAIL PROTECTED] wrote: If I rename it to tensor.sage (not sure if this is a good idea), Yes, that's a VERY GOOD idea. It's really crazy to use a compiled

[sage-support] Re: noncommutative algebras

2008-02-22 Thread William Stein
On Fri, Feb 22, 2008 at 10:03 AM, John Palmieri [EMAIL PROTECTED] wrote: On Feb 22, 8:47 am, William Stein [EMAIL PROTECTED] wrote: On Fri, Feb 22, 2008 at 12:50 AM, Simon King [EMAIL PROTECTED] wrote: Dear William, On Feb 22, 1:58 am, William Stein [EMAIL

[sage-support] Re: shortest paths in graphs

2008-02-22 Thread Robert Miller
Looking at the repository, it seems as if I wrote these functions, but I don't think that's right. Maybe this was one of the patches I merged from Jason Grout, while his name wasn't getting on the changesets. I seem to remember Emily Kirkman working on path functions, also. I'm not sure what the

[sage-support] Re: noncommutative algebras

2008-02-22 Thread Simon King
Dear John, a brief addendum to a previous post of yours: On Feb 20, 10:22 pm, John Palmieri [EMAIL PROTECTED] wrote: By the way, is the following a bug? sage: singular.LIB('ncall.lib') sage: R=singular.ring(0,'(x1,x12,x2)','dp') sage: C=singular.matrix(3,3,'1,-1,-1, -1,1,-1, -1,-1,1')

[sage-support] Re: shortest paths in graphs

2008-02-22 Thread Robert Miller
I also would like to have a function all_shortest_paths(u,v), which returns all shortest paths from u to v. See ticket: http://trac.sagemath.org/sage_trac/ticket/2266 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Trying to graph cubic function f(x)=x^(1/3)

2008-02-22 Thread Andy
Alex Thanks for your help. I had searched the group and found the thread about nth roots, but I wasn't putting it together with the plot statement correctly. Thanks also to Jason for publishing an illustration -- good idea. The published worksheets are a great resource for learning Sage and

[sage-support] sage can't find matlab

2008-02-22 Thread chz
Hi there - I have a local install of Matlab 2007b and a local install of Sage. When I run a Matlab command from Sage, e.g. the command matlab.eval('2+2') I get the error Unable to start matlab because the command 'matlab - nodisplay' failed. The location of the Matlab executable is