Re: [sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Dan Drake
On Wed, 03 Mar 2010 at 11:13PM -0600, Jason Grout wrote: > +1. Try for vector formats, but fall back to just getting an image > out there by default. I keep forgetting to put the [png] in for 3d > graphics because it's not consistent and simple to remember (I have to > keep looking it up in the m

[sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Jason Grout
On 03/03/2010 10:03 PM, Dan Drake wrote: The [png] is because of the way SageTeX works; it defaults to saving to eps and pdf formats. Maybe I should do things in a try/except; something like try: foo.save('filename.eps') foo.save('filename.pdf') except ValueError:

[sage-support] Re: Pretty printing expressions with using the Maxima engine

2010-03-03 Thread Mike
Is the "show" command what you're looking for? sage: show((a + 2)*(a^2 + a + 1)*(a^2 + 3*a + 3)/(a + 1)^5) or if it's defined as a variable sage: S.show() or just show(S) -mike- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this grou

Re: [sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Dan Drake
On Wed, 03 Mar 2010 at 08:21PM -0600, Jason Grout wrote: > On 03/03/2010 08:14 PM, Dan Drake wrote: > >On Wed, 03 Mar 2010 at 01:34PM +, Colombel Bruno wrote: > >>I'm trying to use sagetex to put 3d-surfaces in latex document : > >> > >>\begin{sageblock} > >>var('u,v') > >>h= lambda u,v

[sage-support] Re: Why does my little program bring my department's server to its knees?

2010-03-03 Thread Ben Linowitz
Justin and Alasdair, Thanks for your help. I'm sorry that you had to reformat the code. I had it written up in a text file and was just copying and pasting it into the terminal running sage. I suppose that the formatting must have gotten screwed up when I copied from the text file to post here.

[sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Jason Grout
On 03/03/2010 08:14 PM, Dan Drake wrote: On Wed, 03 Mar 2010 at 01:34PM +, Colombel Bruno wrote: I'm trying to use sagetex to put 3d-surfaces in latex document : \begin{sageblock} var('u,v') h= lambda u,v: u^2 + 2*v^2 f=plot3d(h, (u,-1,1), (v,-1,1)) f.show()

Re: Re : [sage-support] Re: Sagetex issue

2010-03-03 Thread Dan Drake
On Wed, 03 Mar 2010 at 01:34PM +, Colombel Bruno wrote: > I'm trying to use sagetex to put 3d-surfaces in latex document : > > \begin{sageblock} > var('u,v') > h= lambda u,v: u^2 + 2*v^2 > f=plot3d(h, (u,-1,1), (v,-1,1)) > f.show() > \end{sageblock} > > \sageplot[][pn

Re: [sage-support] Re: Why does my little program bring my department's server to its knees?

2010-03-03 Thread Justin C. Walker
On Mar 3, 2010, at 14:09 , Ben Linowitz wrote: Thank you for your response Alex. Here is the code: [snip] The code isn't usable as-is (no indenting, wrapped comments), but if I've reformatted it correctly, using 'top' while this is running shows that the python process is continually ex

[sage-support] Re: animations of raytraces of 3d plots.

2010-03-03 Thread Marshall Hampton
Ah, cool, I thought there might be a slicker way to do that but I was too lazy to look it up :) Thanks, Marshall On Mar 3, 7:30 pm, Jason Grout wrote: > On 03/03/2010 06:25 PM, Marshall Hampton wrote: > > > Okay, this is somewhat baroque but might be helpful. One of the main > > things is the ze

[sage-support] Re: animations of raytraces of 3d plots.

2010-03-03 Thread Jason Grout
On 03/03/2010 06:25 PM, Marshall Hampton wrote: Okay, this is somewhat baroque but might be helpful. One of the main things is the zero-padding of file names, e.g. in the line "fname = prelabel + '0'*(3-len(str(i)))+str(i)": You could use the python formatting magic: sage: "%03d"%1 '001' sag

[sage-support] Re: Scientific Notation

2010-03-03 Thread Jason Grout
On 03/03/2010 11:41 AM, Oscar Castillo-Felisola wrote: Hi everybody! I'd like to know if there is a way of say Sage to return a result in scientific notation by default, as well as controlling the number of significant digits. There is a very big patch on trac [1] that improves the options fo

[sage-support] Re: Re : Re: Sagetex issue

2010-03-03 Thread Jason Grout
On 03/03/2010 07:34 AM, Colombel Bruno wrote: I'm trying to use sagetex to put 3d-surfaces in latex document : \begin{sageblock} var('u,v') h= lambda u,v: u^2 + 2*v^2 f=plot3d(h, (u,-1,1), (v,-1,1)) f.show() \end{sageblock} \sageplot[][png]{f} The \sageplot function doesn't work here ...

[sage-support] Pretty printing expressions with using the Maxima engine

2010-03-03 Thread Alasdair
If I want to pretty print a rational expression in the console, I need to invoke maxima: sage: var('a') sage: S=factor(sum(1/(a+1)^i for i in range(6))) sage: S (a + 2)*(a^2 + a + 1)*(a^2 + 3*a + 3)/(a + 1)^5 sage: print S (a + 2)*(a^2 + a + 1)*(a^2 + 3*a + 3)/(a + 1)^5 sage: print maxima(S) whic

[sage-support] Re: Why does my little program bring my department's server to its knees?

2010-03-03 Thread Alasdair
Without running the code, you may have a memory problem; it could be that all previously computed results are stored until the program is finished. You may possibly get around this by either deleting variables after they've been used, or running the program with a smaller range for c. -Alasdair

[sage-support] Re: animations of raytraces of 3d plots.

2010-03-03 Thread Marshall Hampton
Okay, this is somewhat baroque but might be helpful. One of the main things is the zero-padding of file names, e.g. in the line "fname = prelabel + '0'*(3-len(str(i)))+str(i)": def tachbs(p, th = .2, fade = 1.0, xres = 500, yres = 500, **kwds): c_center = [2*max([q[i] for q in p.vertices()])

[sage-support] french wiki and french discussion group

2010-03-03 Thread Vincent D
Hi, Started at SAGE days 20 there is now * a french wiki dedicated to SAGE and education : http://sagemath-edu.fr * a discussion list : liste @ sagemath-edu.fr (or http://mail.irem.univ-mrs.fr/mailman/listinfo/sagemath-edu) Anybody who want to increase the internationalization of SAGE (at le

[sage-support] Re: image of a complex function

2010-03-03 Thread Marshall Hampton
Here's one attempt at such a thing. It might be better to use the inverse map, since you get artifacts doing the forward image pixel by pixel. Result at: http://www.d.umn.edu/~mhampton/testing.png and original image: http://www.d.umn.edu/~mhampton/davep.png for z -> z + z^2/2 from PIL import Imag

[sage-support] Re: Why does my little program bring my department's server to its knees?

2010-03-03 Thread Ben Linowitz
Thank you for your response Alex. Here is the code: # # # # #The second loop (with the “i” variable”) chooses a prime less than 100. # I then set the (2,1) and (3,1) entries of the 3x3 matrix A equal to various multiples of this prime (i.e. (2,1)=c1*prime and (3,1)=c2*prime) # # # # for c in rang

Re: [sage-support] Why does my little program bring my department's server to its knees?

2010-03-03 Thread Alex Ghitza
Hi, On Wed, 3 Mar 2010 08:08:13 -0800 (PST), Ben Linowitz wrote: > I wrote a little program which almost brought my department's server > down and would like to know why. Here is a brief description of the > program [I can reproduce the actual code if necessary]: That would indeed be helpful.

Re: [sage-support] Re: animations of raytraces of 3d plots.

2010-03-03 Thread calcpage
BTW, tachyon is supposed to run over MPI. Can I use SAGE to run tachyon over a cluster? TIA, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- To post to this group, send em

Re: [sage-support] Scientific Notation

2010-03-03 Thread David Joyner
Type RealField? to read the instrucitons. I think it is RealField(sci_not=True) or something like that. On Wed, Mar 3, 2010 at 12:41 PM, Oscar Castillo-Felisola wrote: > Hi everybody! > > I'd like to know if there is a way of say Sage to return a result in > scientific notation by default, as we

[sage-support] Re: Computing the real period omega of an Elliptic Curve

2010-03-03 Thread Adrián
Thank you. On 3 mar, 12:14, William Stein wrote: > On Wed, Mar 3, 2010 at 10:09 AM, Adrián wrote: > > Hi, I'm trying to work through some parts of William Stein's book on > > the Birch and Swinnerton-Dyer conjecture, and I'm doing some examples > > in SAGE. Everything seems to work fine, but I a

Re: [sage-support] Computing the real period omega of an Elliptic Curve

2010-03-03 Thread William Stein
On Wed, Mar 3, 2010 at 10:09 AM, Adrián wrote: > Hi, I'm trying to work through some parts of William Stein's book on > the Birch and Swinnerton-Dyer conjecture, and I'm doing some examples > in SAGE. Everything seems to work fine, but I always get an error > message when I try to compute the real

[sage-support] Computing the real period omega of an Elliptic Curve

2010-03-03 Thread Adrián
Hi, I'm trying to work through some parts of William Stein's book on the Birch and Swinnerton-Dyer conjecture, and I'm doing some examples in SAGE. Everything seems to work fine, but I always get an error message when I try to compute the real period, I even tried the same example that is on the b

[sage-support] Scientific Notation

2010-03-03 Thread Oscar Castillo-Felisola
Hi everybody! I'd like to know if there is a way of say Sage to return a result in scientific notation by default, as well as controlling the number of significant digits. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-su

Re: [sage-support] Re: animations of raytraces of 3d plots.

2010-03-03 Thread Christopher Olah
On Thu, Feb 18, 2010 at 8:14 AM, Marshall Hampton wrote: > I recommend using ffmpeg for stuff like that, it will do a better job > than animate as long as animate is just using imagemagick.  You need > to save the image files with sequential names.  I can post an example > if you are interested.

[sage-support] numerical ODE solving and Cython

2010-03-03 Thread Flavio Coelho
Hi, I really liked the method for speeding numerical integration of ODES presented in the sage documentation. However, it uses the GSL solver instead of the scipy.integrate.odeint I normally use. I tried to apply the same methodology but I can't get past this error: ValueError: object too deep

[sage-support] unsolicited Sage emails

2010-03-03 Thread William Stein
Hi, A couple of days ago, I put the following on my website, since I get a really *huge* amount of off-list email directed at me about Sage. Since I'm going to stick to it, and it's relevant to many people on these lists I'm posting this here, so people will know. "WARNING: If you send me an unso

[sage-support] Why does my little program bring my department's server to its knees?

2010-03-03 Thread Ben Linowitz
I wrote a little program which almost brought my department's server down and would like to know why. Here is a brief description of the program [I can reproduce the actual code if necessary]: 1. Choose an odd prime p which is less than 100 2. Let a and b be small multiples of p (each no more than

[sage-support] for help with partial differencial equations

2010-03-03 Thread wxuyec
Hi everyone,I want to use sage to solve the partial differential  equations analytically.can anyone help to point out where I can find the documents about that?Thank you very much!YC -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

Re : [sage-support] Re: Sagetex issue

2010-03-03 Thread Colombel Bruno
I'm trying to use sagetex to put 3d-surfaces in latex document : p, li { white-space: pre-wrap; } \begin{sageblock} var('u,v') h= lambda u,v: u^2 + 2*v^2 f=plot3d(h, (u,-1,1), (v,-1,1)) f.show() \end{sageblock} \sageplot[][png]{f} The \sageplot function doesn't

[sage-support] Re: Setting up a sage server securely for students' use

2010-03-03 Thread ma...@mendelu.cz
On 2 bře, 23:29, David Kirkby wrote: > On 2 March 2010 21:44, Andrzej Giniewicz wrote: > 1) How to start the server. You don't want to be in a position that if > the system gets rebooted, a power failure etc, that someone has to > manually restart the server. > > The exact method of doing this wo