[sage-support] Re: Is sage 4.3.5 able to solve quadratic equations??

2010-06-22 Thread Matthias Meulien
Thanks for helping. I am trying to compute (not numericaly!) the roots of a quadratic equation build from lagrange_polynomial()... sage: p2 = SR(-3/4*pi)*x^2 + SR(7/4*pi)*x sage: p2.roots(x) [(7/3, 1), (0, 1)] Now we are back to the original question: Why the following rise a type error?? I

[sage-support] Re: Is sage 4.3.5 able to solve quadratic equations??

2010-06-22 Thread Matthias Meulien
I guess that the problem comes from the type of p1, not being an Expression. So is it possible to cast this p1 to the Expression class? A direct conversion like the following works: sage: p3 = 0 sage: for c in p1.coeffs(): : p3 = x*p3 + c : sage: p3 -3/4*pi + 7/4*pi*x sage:

[sage-support] Re: Is sage 4.3.5 able to solve quadratic equations??

2010-06-22 Thread Matthias Meulien
Thanks for helping. I am trying to compute (not numericaly!) the roots of a quadratic equation build from lagrange_polynomial()... sage: p2 = SR(-3/4*pi)*x^2 + SR(7/4*pi)*x sage: p2.roots(x) [(7/3, 1), (0, 1)] Now we are back to the original question: Why the following rise a type error?? I

[sage-support] Notebook files gone after update

2010-06-22 Thread Koch Peer-Joachim
Hi, yesterday I have updated our sage Server using sage -upgrade. It took some time, but everything worked without any problems. Today I wanted to start the notebook for all users here and I was asked to convert the notebook files. Ok I accepted and all files were converted. A new admin password

Re: [sage-support] Notebook files gone after update

2010-06-22 Thread William Stein
On Mon, Jun 21, 2010 at 11:38 PM, Koch Peer-Joachim koch.peerjoac...@googlemail.com wrote: Hi, yesterday I have updated our sage Server using sage -upgrade. It took some time, but everything worked without any problems. Today I wanted to start the notebook for all users here and I was asked

Re: [sage-support] Notebook files gone after update

2010-06-22 Thread Koch Peer-Joachim
Hi, we have a good backup system ;) I'll try a few things first, but if nothing is working- where should I place the tar ball ? Bye, Peer 2010/6/22 William Stein wst...@gmail.com On Mon, Jun 21, 2010 at 11:38 PM, Koch Peer-Joachim koch.peerjoac...@googlemail.com wrote: Hi, yesterday I

[sage-support] level set?

2010-06-22 Thread fred.ri...@gmail.com
Dear all, I have a continuous real function defined on the plane and I want to plot its iso-level sets in very contrasted colors in order for these levels to really show. The result could be in 2D or 3D. I am currently using list_plot3d and jmol. What are the options to pass to 2D or 3D viewers

[sage-support] Re: level set?

2010-06-22 Thread kcrisman
Dear Frederic, Would the options to contour_plot be of help? For instance, sage: contour_plot? snip * ``cmap`` -- a colormap (default: ``'gray'``), the name of a predefined colormap, a list of colors or an instance of a matplotlib Colormap. Type: ``import matplotlib.cm;

[sage-support] error using scipy sparse matrix

2010-06-22 Thread Rajeev
Hi, I think following is a bug - sage: from scipy import sparse sage: a = sparse.lil_matrix((10,10)) sage: a[1,2] = 1 --- ValueErrorTraceback (most recent call last)

Re: [sage-support] error using scipy sparse matrix

2010-06-22 Thread William Stein
On Tue, Jun 22, 2010 at 8:25 AM, Rajeev rajs2...@gmail.com wrote: Hi, I think following is a bug - sage: from scipy import sparse sage: a = sparse.lil_matrix((10,10)) sage: a[1,2] = 1 --- ValueError                    

[sage-support] Unexact computation with roots of unity.

2010-06-22 Thread cjung
Dear all, Here's my problem: I've written a function (the scource code below), which should compute the scalarproduct of two classfunction of a group G. But there is a little problem with that, the values of the classfunction are just given as a list of values (one entry for every conjugacy-class

[sage-support] Re: Unexact computation with roots of unity.

2010-06-22 Thread kcrisman
Here is the essence of it. sage: QQbar(e^(4/3*I*pi)*e^(2/3*I*pi).conjugate()) -0.500? + 0.866025403784439?*I QQbar is not exactly a symbolic ring. In fact, in its documentation we have sage: QQbar.zeta(3) -0.500? + 0.866025403784439?*I I'm not quite sure how to fix

[sage-support] Simplification / Latex question

2010-06-22 Thread Mike Witt
sage: version() 'Sage Version 4.4.3, Release Date: 2010-06-04' sage: f=e^(i*x*pi-i*2*pi) sage: f.simplify_full() e^(I*pi*x) # So far, so good sage: n=var('n') sage: f=e^(i*x*pi*n-i*2*pi*n) sage: f.simplify_full() e^(I*pi*n*x - 2*I*pi*n) # Is there a way I can get this to simplify? sage:

[sage-support] Re: Simplification / Latex question

2010-06-22 Thread kcrisman
sage: n=var('n') sage: f=e^(i*x*pi*n-i*2*pi*n) sage: f.simplify_full() e^(I*pi*n*x - 2*I*pi*n) # Is there a way I can get this to simplify? This apparently isn't even that easy in Maxima. Maxima 5.21.1 http://maxima.sourceforge.net using Lisp ECL 10.4.1 Distributed under the GNU Public

[sage-support] Re: Unexact computation with roots of unity.

2010-06-22 Thread Nils Bruin
On Jun 22, 11:13 am, cjung cjun...@gmx.de wrote: My question is now, if this is a bug or just a mistake in my code? I suspect that you create your roots of unity using exponents that are floats. In that case it may be a bug in Sage that it doesn't throw an error. It may be what you are

Re: [sage-support] Re: Unexact computation with roots of unity.

2010-06-22 Thread Robert Bradshaw
On Jun 22, 2010, at 1:02 PM, Nils Bruin wrote: On Jun 22, 11:13 am, cjung cjun...@gmx.de wrote: My question is now, if this is a bug or just a mistake in my code? I suspect that you create your roots of unity using exponents that are floats. If m and n are integers, m/n shouldn't be a

Re: [sage-support] Re: Unexact computation with roots of unity.

2010-06-22 Thread Robert Bradshaw
On Jun 22, 2:13 pm, cjung cjun...@gmx.de wrote: Dear all, Here's my problem: I've written a function (the scource code below), which should compute the scalarproduct of two classfunction of a group G. But there is a little problem with that, the values of the classfunction are just given as a

Re: [sage-support] Unexact computation with roots of unity.

2010-06-22 Thread Mike Hansen
On Tue, Jun 22, 2010 at 11:13 AM, cjung cjun...@gmx.de wrote: 0.?e-18 + 0.?e-19*I # - should be zero I think that this is actually zero -- it just doesn't know it for sure yet. For example, look at sage: q = QQbar(sqrt(2)) sage: p = q^2; p 2.000? sage: p == 2 True sage: p 2 and

[sage-support] Re: Unexact computation with roots of unity.

2010-06-22 Thread cjung
Hello Guys, thank you for your suggestions. s.simplify_full() s.simplify_rational() s.exactify() All these solve the problem. I choosed s.exactify, because it seems to be faster for big groups, so thanks all best regards -- To post to this group, send email to sage-support@googlegroups.com

[sage-support] Fwd: [sage-edu] Installation on Fedora 13

2010-06-22 Thread David Joyner
Forwarded from sage-edu. -- Forwarded message -- From: Adam adammichaelwil...@gmail.com Date: Tue, Jun 22, 2010 at 5:52 PM Subject: [sage-edu] Installation on Fedora 13 To: sage-edu sage-...@googlegroups.com I tried to install Sage from source on Fedora (Linux Fedora

Re: [sage-support] Fwd: [sage-edu] Installation on Fedora 13

2010-06-22 Thread Dr. David Kirkby
On 06/22/10 11:56 PM, David Joyner wrote: Forwarded from sage-edu. -- Forwarded message -- From: Adamadammichaelwil...@gmail.com Date: Tue, Jun 22, 2010 at 5:52 PM Subject: [sage-edu] Installation on Fedora 13 To: sage-edusage-...@googlegroups.com I tried to install Sage from