[sage-support] Re: problem in displaying graphs

2009-10-22 Thread pong
Hi Jason, Setting axes_pad=.1 does work. Thanks! However, I tried your codes in the previous email. The resulting graph has nodes "clump together". I guess the problem is with the value 1.5. When I changed that to a smaller value say .05 then things work just fine. Even though, sqrt(area/pi)

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 11:03 PM, Jason Grout wrote: > > William Stein wrote: >> On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: >>> I am using SAGE 4.1.2 notebook on firefox on a Mac. >>> >>> k=graphs.CompleteGraph(6) >>> show(k) >>> >>> displays K_6 but the vertices got truncated. I don't have t

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread Jason Grout
William Stein wrote: > On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: >> I am using SAGE 4.1.2 notebook on firefox on a Mac. >> >> k=graphs.CompleteGraph(6) >> show(k) >> >> displays K_6 but the vertices got truncated. I don't have this problem >> on a linux machine running SAGE 4.1.1 notebook on

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread Jason Grout
pong wrote: > I am using SAGE 4.1.2 notebook on firefox on a Mac. > > k=graphs.CompleteGraph(6) > show(k) > > displays K_6 but the vertices got truncated. I don't have this problem > on a linux machine running SAGE 4.1.1 notebook on firefox. > > Any help? > I would like to include the pic but I

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread pong
Thanks for the reply. Is it a bug of SAGE 4.1.2 or just the Mac distribution? I guess my question is if I upgrade SAGE to the latest version on my linux machine, will I get the same problem? On Oct 22, 10:22 pm, William Stein wrote: > On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: > > > I am u

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: > > I am using SAGE 4.1.2 notebook on firefox on a Mac. > > k=graphs.CompleteGraph(6) > show(k) > > displays K_6 but the vertices got truncated. I don't have this problem > on a linux machine running SAGE 4.1.1 notebook on firefox. > > Any help? > I w

[sage-support] problem in displaying graphs

2009-10-22 Thread pong
I am using SAGE 4.1.2 notebook on firefox on a Mac. k=graphs.CompleteGraph(6) show(k) displays K_6 but the vertices got truncated. I don't have this problem on a linux machine running SAGE 4.1.1 notebook on firefox. Any help? I would like to include the pic but I don't see how on using this dis

[sage-support] Re: notebook question - "Output truncated"

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 12:00 PM, Mariah Lenox wrote: > > I have a sage script that generates some graphs > and text.  When I load the script in a cell of a sage worksheet, > I get everything I expect ... plus a message > > "WARNING: Output truncated" > > and a link for "full_output.txt". > > If

[sage-support] Re: Sage 4.1.2 Problem HTML cell Latex arrays 2X2 no longer work

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 1:48 PM, Jim Clark wrote: > > Here's another case that was working in the tinyMCE cell in Sage 4.0, > produces the error "Couldn't find \end for begin{cases}" in Sage 4.1.2, > but works in a normal (html) cell: > > %html > For the potential defined by:$$ V(x) = \begin{case

[sage-support] Re: symbolic/expression.pyx documentation patch

2009-10-22 Thread Alex Ghitza
On Thu, Oct 22, 2009 at 01:11:18PM -0400, Mariah Lenox wrote: > > Would a sage developer please check in this (very minor) > patch to the symbolic/expression.pyx documentation. > [...] Up at http://trac.sagemath.org/sage_trac/ticket/7265 -- Alex Ghitza -- Lecturer in Mathematics -- The Unive

[sage-support] sqrt(16)

2009-10-22 Thread Mikie
I want to take the expression sqrt(16) from a function parameter and return the sqrt(16) not 4. Is this possible? Thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-supp

[sage-support] Re: Sage 4.1.2 Problem HTML cell Latex arrays 2X2 no longer work

2009-10-22 Thread Jim Clark
Here's another case that was working in the tinyMCE cell in Sage 4.0, produces the error "Couldn't find \end for begin{cases}" in Sage 4.1.2, but works in a normal (html) cell: %html For the potential defined by:$$ V(x) = \begin{cases} 0 & 0 \leq x \leq a\cr \infty & x<0, x > a \end{cases}$$

[sage-support] notebook question - "Output truncated"

2009-10-22 Thread Mariah Lenox
I have a sage script that generates some graphs and text. When I load the script in a cell of a sage worksheet, I get everything I expect ... plus a message "WARNING: Output truncated" and a link for "full_output.txt". If I "save & quit" the worksheet, then restart the worksheet, now I do NOT

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Tim Lahey
On Oct 22, 2009, at 2:15 PM, Nasser Abbasi wrote: Hi, how do you run matlab command from sage like this above? I have sage 4.1.2 and matlab 2008b installed on my windows XP PC, but when I run the above, it tells me it can't start matlab: a = random_matrix(RDF,2000) timeit('a*a') 5 loops, bes

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Nasser Abbasi
On Oct 22, 11:59 am, William Stein wrote: > > Here's a benchmark (the first thing I tried): > > sage: a = random_matrix(RDF,2000) > sage: timeit('a*a') > 5 loops, best of 3: 1.8 s per loop > sage: b = matlab('rand(2000)') > sage: timeit('b*b') > 5 loops, best of 3: 3.4 s per loop > > Sage is t

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Harald Schilly
On Oct 22, 6:59 pm, William Stein wrote: > Here's a benchmark (the first thing I tried): nice+thx for this idea, i did the same on my machine using matlab 2009a (most recent i guess?) sage: a = random_matrix(RDF,2000) sage: timeit('a*a') 5 loops, best of 3: 3.28 s per loop sage: b = matlab('r

[sage-support] symbolic/expression.pyx documentation patch

2009-10-22 Thread Mariah Lenox
Would a sage developer please check in this (very minor) patch to the symbolic/expression.pyx documentation. # HG changeset patch # User Mariah Lenox # Date 1256231140 14400 # Node ID aaf2842929eca5d009d6a580a494e5f728517785 # Parent 5bf36a37cd0c2ce42b6bf42038e84a1968d3ad8b user: Mariah Lenox

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 9:41 AM, Marshall Hampton wrote: > > You might find this helpful: > > http://www.scipy.org/PerformancePython > > Generally I think numpy's numerical linear algebra is comparable to > matlab's. > > -Marshall Here's a benchmark (the first thing I tried): sage: a = random_m

[sage-support] Sage 4.1.2 Problem HTML cell Latex arrays 2X2 no longer work

2009-10-22 Thread madison.mich...@gmail.com
I frequently shift-click over a cell and define my problems over the cell using Latex. On importing my old work sheets most of those look fine. Arrays that are 1X2 are fine however all of the 2x2 arrays don't wwork in the html cell. If I include the same Latex code inside my cell using html it

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Marshall Hampton
You might find this helpful: http://www.scipy.org/PerformancePython Generally I think numpy's numerical linear algebra is comparable to matlab's. -Marshall On Oct 22, 8:15 am, Harald Schilly wrote: > not really, at least not that i'm aware of. you should ask this at > numpy/scipy since they a

[sage-support] Re: Sage / Gap: memory size question.

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 8:00 AM, Mike Hansen wrote: > > 2009/10/22 Thierry Dumont : >> Is there any way to pass such memory size option to gap.console() ? > > Currently, GAP is started with the following command: > > sage: gap._Expect__command > 'gap -r -L /home/mike/.sage//gap/workspace-28694698

[sage-support] Re: Sage / Gap: memory size question.

2009-10-22 Thread Mike Hansen
2009/10/22 Thierry Dumont : > Is there any way to pass such memory size option to gap.console() ? Currently, GAP is started with the following command: sage: gap._Expect__command 'gap -r -L /home/mike/.sage//gap/workspace-2869469835351106948 -b -p -T -o G /opt/sage/data//extcode/gap/sage.g'

[sage-support] Sage / Gap: memory size question.

2009-10-22 Thread Thierry Dumont
One of our Sage users want to make computations with Gap, from inside Sage. So his commands are: >sage >gap.console() then he can read his Gap program, start to run it, but the program aborts by lack of memory. Classically, he uses gap directly, by typing: > gap -o 4G (to get 4 Giga Bytes). I

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Harald Schilly
not really, at least not that i'm aware of. you should ask this at numpy/scipy since they are much more similar to matlab ... (these libraries are part of sage) basically, python is slower in some respect, e.g. loops, since they involve much more complex objects (i.e. python objects!). on the othe

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Simon King
Hi Joaquim! On 22 Okt., 14:22, Joaquim Puig wrote: > ... Is there any set of > benchmarks of SAGE vs Matlab? I don't know about Matlab. But there is http://www.sagemath.org/tour-benchmarks.html which is Sage vs. Magma. So, if nothing else is available, it might be better than nothing. Cheers,

[sage-support] Benchmarks w.r.t Matlab

2009-10-22 Thread Joaquim Puig
Hi all, I am preparing a presentation of SAGE for my department and I wanted to illustrate it with few comparisons with other computer packages (speed, simplicity of use, semantics). Many people in my department work with Matlab and I wanted to compare speed. Is there any set of benchmarks of SAG

[sage-support] Re: @interact sage notebook

2009-10-22 Thread Firephoenix
Ok, thanks for the answer. I'm in Montevideo, Uruguay. The University i'm talking about is "Universidad Católica del Uruguay Dámaso Antonio Larrañaga" (the Catholic University of Uruguay). We use either Sage or Maxima (whatever the wants to use) as a tool for Calculus 2, still we get to learn both

[sage-support] Re: substitute

2009-10-22 Thread Ichnich
Hi Burcin, I found a work around in my case: model_sol1_l=lambda x:exp(x)**sol1_l[a]*exp(sol1_l[b]) instead of >model_sol1_l(I)=model_exp.subs(sol1_l) Then it is at least possible to call the function, but the arguments have to be of real type or floats Greets and thanks, Stefan On Oct 2

[sage-support] Re: Weave broken in Sage 4.1 Mac intel 64 bit

2009-10-22 Thread felix
Hi, just came back to check for any progress in this thread. Tried your patch and it seems to work fine for me. Thanks a lot, Felix --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Re: substitute

2009-10-22 Thread Burcin Erocal
Hi Stefan, On Wed, 21 Oct 2009 19:49:58 -0700 (PDT) Ichnich wrote: > > Hi, > > something does not work anymore in my notebook (with version 4.1.2 > ubuntu 64bit): > > > > var('a,b,c,I') > model(I)=a*I+b > model_exp = exp(I)**a*(b) > sol1_l={b: 5.0, a: 1.1} > model_sol1_l(I)=model_exp.subs(

[sage-support] substitute

2009-10-22 Thread Ichnich
Hi, something does not work anymore in my notebook (with version 4.1.2 ubuntu 64bit): var('a,b,c,I') model(I)=a*I+b model_exp = exp(I)**a*(b) sol1_l={b: 5.0, a: 1.1} model_sol1_l(I)=model_exp.subs(sol1_l) The notebook hangs-up. It's critical on the parameter a, if you change it to 1.0 it's o.