[sage-support] Re: Resolved: LaTeX output for Graph Theory

2009-07-10 Thread Minh Nguyen
On Sat, Jul 11, 2009 at 2:36 PM, Taxman wrote: > >> That is exactly what you should expect, since the tikzpicture >> environment is only defined when you are using the tikz package. >> >> Perhaps we should update the documentation on the Sage graphs stuff to >> make it (more?) clear that the outpu

[sage-support] Resolved: LaTeX output for Graph Theory

2009-07-10 Thread Taxman
> That is exactly what you should expect, since the tikzpicture > environment is only defined when you are using the tikz package. > > Perhaps we should update the documentation on the Sage graphs stuff to > make it (more?) clear that the output only makes sense in a document > that uses TikZ. Ri

[sage-support] Re: axes_range problem ?

2009-07-10 Thread Mike Witt
Yes, that seems to do the trick. Thanks! -Mike On Jul 10, 5:56 pm, Marshall Hampton wrote: > I am not sure but I think when objects are added together their > bounding boxes are checked, which might result in the -2 to 2 > plotrange you are seeing.  So you might have to do: > > (e+p).show(xmax =

[sage-support] Re: axes_range problem ?

2009-07-10 Thread Marshall Hampton
I am not sure but I think when objects are added together their bounding boxes are checked, which might result in the -2 to 2 plotrange you are seeing. So you might have to do: (e+p).show(xmax = 2, xmin = -2) to get what you want. -M. Hampton On Jul 9, 5:14 pm, Mike Witt wrote: > var('t') >

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread Dan Drake
On Fri, 10 Jul 2009 at 08:11AM -0700, Taxman wrote: > Oh, I forgot to mention, Ubuntu 9.04's pgf is at the latest version > 2.0 > > I think my first message was really unclear. What I meant was, if I > include \usepackage{tikz} at the top of a tex file and render it > manually on the command line,

[sage-support] Re: Sum of four square

2009-07-10 Thread Marshall Hampton
Want to review it? :) On Jul 10, 6:03 pm, Jaap Spies wrote: > Marshall Hampton wrote: > > In case anyone looked at that in the last few hours, I replaced the > > patch recently with some fixes and minor speedups. > > I noticed! > > Jaap --~--~-~--~~~---~--~~ To p

[sage-support] Re: Sum of four square

2009-07-10 Thread Jaap Spies
Marshall Hampton wrote: > In case anyone looked at that in the last few hours, I replaced the > patch recently with some fixes and minor speedups. > I noticed! Jaap --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsu

[sage-support] Re: Sum of four square

2009-07-10 Thread Marshall Hampton
In case anyone looked at that in the last few hours, I replaced the patch recently with some fixes and minor speedups. -Marshall On Jul 10, 3:22 pm, Marshall Hampton wrote: > A slightly revised effort is now up for review as trac #6509: > > http://trac.sagemath.org/sage_trac/ticket/6509 > > -Ma

[sage-support] Re: Regarding Solving matrix equations.

2009-07-10 Thread David Joyner
On Fri, Jul 10, 2009 at 2:05 PM, vaiby wrote: > > Hi. > > I have 2x2 matrices x, y, z  whose entries are polynomials in 3 > variables. > [In fact each matrix involves only one variable, and its terms are > linear over complex numbers in that variable]. > I want to solve a equation like : x*y*z ==

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Mikie
If it works don't fix. I like 3.2.2 because of the output in a textarea is nicer than 4.0. I will leave it along. On Jul 10, 10:19 am, Robert Bradshaw wrote: > On Jul 10, 2009, at 9:13 AM, Mikie wrote: > > > I am using 3.2.2 sage.  Will this fix work? > > No idea, but it might. You can try it

[sage-support] Re: Sum of four square

2009-07-10 Thread Marshall Hampton
A slightly revised effort is now up for review as trac #6509: http://trac.sagemath.org/sage_trac/ticket/6509 -Marshall On Jul 10, 2:08 pm, Marshall Hampton wrote: > I have tested this up to 1, seems to work: > > def brute_force_s4(n): > ''' > Brute force search for decomposition in

[sage-support] Re: Sum of four square

2009-07-10 Thread Marshall Hampton
I have tested this up to 1, seems to work: def brute_force_s4(n): ''' Brute force search for decomposition into a sum of four squares, for cases that the main algorithm fails to handle. ''' for i in range(0,int(sqrt(n))+1): for j in range(i,int(sqrt(n-i^2))+1):

[sage-support] Re: Sum of four square

2009-07-10 Thread Jaap Spies
Minh Nguyen wrote: > Hi > > On Sat, Jul 11, 2009 at 12:30 AM, Santanu > Sarkar wrote: >> Is the algorithm for sum of four square i,e every positive integer >> can be expressed as the sum of four square is implemented in >> Sage > > If you're referring to Lagrange's four-square theorem, then Sa

[sage-support] Re: Sage binary vs source on Windows

2009-07-10 Thread William Stein
On Thu, Jul 9, 2009 at 7:47 PM, Minh Nguyen wrote: > > Hi, > > I'm CC'ing this to sage-windows, as your questions are very relevant > to the Windows port of Sage. > > -- > Regards > Minh Van Nguyen > > On Fri, Jul 10, 2009 at 6:46 AM, DigDug_the_2nd > wrote: >> >> Thanks, that's really helpful. >

[sage-support] Regarding Solving matrix equations.

2009-07-10 Thread vaiby
Hi. I have 2x2 matrices x, y, z whose entries are polynomials in 3 variables. [In fact each matrix involves only one variable, and its terms are linear over complex numbers in that variable]. I want to solve a equation like : x*y*z == m[m a given matrix] (Of course it is just a bunch of four

[sage-support] Re: Sum of four square

2009-07-10 Thread Marshall Hampton
Since that was a first stab at it, I doubt it is better than the built- in. In order to handle special cases, I think my code could fall back on some brute-force version like: def brute_force_s4(n): for i in range(0,int(sqrt(n))): for j in range(i,int(sqrt(n-i^2))): for k

[sage-support] Re: Sum of four square

2009-07-10 Thread William Stein
On Fri, Jul 10, 2009 at 10:01 AM, Marshall Hampton wrote: > > I tried to do this for fun, but my code doesn't quite work.  There is > a java applet with quite readable source code available at: > http://www.alpertron.com.ar/FSQUARES.HTM > I was trying to implement the ideas at: http://www.schorn.c

[sage-support] Re: Sum of four square

2009-07-10 Thread Marshall Hampton
I tried to do this for fun, but my code doesn't quite work. There is a java applet with quite readable source code available at: http://www.alpertron.com.ar/FSQUARES.HTM I was trying to implement the ideas at: http://www.schorn.ch/howto.html but I am out of time for now, maybe someone else can fi

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Robert Bradshaw
On Jul 10, 2009, at 9:13 AM, Mikie wrote: > I am using 3.2.2 sage. Will this fix work? No idea, but it might. You can try it out. > The work around is > working for me and I would like not to damage the 40 stat functions I > have created. Are you talking about modifications to the library it

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Mikie
I am using 3.2.2 sage. Will this fix work? The work around is working for me and I would like not to damage the 40 stat functions I have created. Thanks On Jul 10, 3:10 am, Robert Bradshaw wrote: > On Jul 9, 2009, at 1:57 PM, Kevin Horton wrote: > > > > > > > On 9 Jul 2009, at 15:02, William

[sage-support] Re: Sum of four square

2009-07-10 Thread Taxman
You could try to get the paper through your library or pay for it from Wiley. Here's the citation and link: http://www3.interscience.wiley.com/journal/113400834/abstract?CRETRY=1&SRETRY=0 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@google

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread Taxman
Oh, I forgot to mention, Ubuntu 9.04's pgf is at the latest version 2.0 I think my first message was really unclear. What I meant was, if I include \usepackage{tikz} at the top of a tex file and render it manually on the command line, then I don't get the Unknown environment "tikzpicture" error,

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread javier
Hi there, you possibly just need to install the newest pgf tex package. You can download it from http://sourceforge.net/projects/pgf/ unpack the tgz file, copy the contents of the pgf inside a location where your tex system can find it, if you want a local installation just for one user, th

[sage-support] Re: Sum of four square

2009-07-10 Thread Minh Nguyen
Hi On Sat, Jul 11, 2009 at 12:30 AM, Santanu Sarkar wrote: > Is the algorithm for sum of four square i,e every positive integer > can be expressed as the sum of four square is implemented in > Sage If you're referring to Lagrange's four-square theorem, then Sage probably doesn't have it yet:

[sage-support] LaTeX output for Graph Theory

2009-07-10 Thread Taxman
Hi, I was motivated to install Sage from the Graph Theory example on http://mvngu.wordpress.com/2009/06/24/sage-4-0-2-released/ (the release tour). To run it I downloaded tkz-berge.sty and tkz-graph.sty, but I still get the error Unknown environment "tikzpicture" on running the example. Doing som

[sage-support] Sum of four square

2009-07-10 Thread Santanu Sarkar
Is the algorithm for sum of four square i,e every positive integer can be expressed as the sum of four square is implemented in Sage --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Re: Communication with Sage

2009-07-10 Thread Aleksey Gogolev
Thanks everyone! Answers are really helpful! I'll try this "simple_server" snippet. 2009/7/9 Robert Bradshaw : > > On Jul 9, 2009, at 12:55 AM, Minh Nguyen wrote: > >> Hi Aleksey, >> >> On Thu, Jul 9, 2009 at 5:33 PM, Aleksey >> Gogolev wrote: >>> >>> Hello! >>> >>> Advise needed. >>> >>> I have

[sage-support] Re: logarithms in complex number fields

2009-07-10 Thread John Cremona
David is right, you should be possible to do what you want using the log function in the units module. When Sage has better support for f.g. abelian groups (which is on its way, I think) this kind of thing should be simpler to do. John Cremona On Jul 9, 11:55 am, davidloeffler wrote: > On Jul

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Robert Bradshaw
On Jul 9, 2009, at 1:57 PM, Kevin Horton wrote: > > On 9 Jul 2009, at 15:02, William Stein wrote: > >> On Thu, Jul 9, 2009 at 11:31 AM, Mikie >> wrote: >>> >>> Robert, how do I update my sage installation when you create a >>> patch. Do I have to reinstall Sage? >>> Thanx >> >> I just did >> >>

[sage-support] Re: Install problem for Sage

2009-07-10 Thread etoipi
UPDATE: So I just started watching the first screencast, Episode 1, and realized I had the window to notebook already open, just didn't know it was the window to use sage. It seems despite my Terminal problem, I really don't have a problem. Unless you see that I need to fix something, I'll cons