[sage-support] Matrices over FreeMonoid-"linear combinations"

2010-09-28 Thread mhs
Hi sage-support readers, I would like to know if there is any way to construct special matrices as follows: Start with a FreeMonoid on n generators a,b,c, Now (like in the case of a group ring) form linear combinations with NON-NEGATIVE integer coeffs of elements of this FreeMonoid, an exampl

[sage-support] Bug in norm of sparse matrix

2010-09-28 Thread VictorMiller
Observe (using sagenb.org) sage: M = matrix(ZZ,4,4,sparse=True) sage: M.norm() Traceback (click to the left of this block for traceback) ... AttributeError: 'sage.matrix.matrix_generic_sparse.Matrix_generic_sparse' object has no attribute 'SVD' sage: M.norm(1) Traceback (click to the left of th

[sage-support] Re: "python not found" error after installation (Ubuntu)

2010-09-28 Thread obrintpas
Thank you very much for your help to both of you! A fresh download solved the issue. Thanks again! On Sep 28, 9:48 am, maldun wrote: > Hi! > > First: Have you checked, if the files that sage says are missing are > really missing. > It could also be that something wasn't correct with unpacking. >

[sage-support] Re: simplifying expressions

2010-09-28 Thread Yann
On Sep 28, 5:51 am, Aidan wrote: > Hi, > > This may be a repeat question, but is there a function to simplify > complex expressions in sage? For example, the input > > M = matrix([[e^(2*pi*I*i*j/3) for i in [0..2]] for j in [0..2]]); > M.eigenvalues() > > outputs > > [-1/2*(-10/9*I*sqrt(3) + 2*I

[sage-support] Re: "python not found" error after installation (Ubuntu)

2010-09-28 Thread maldun
I'm Ubuntu user myself and recommend to install it from source when you use Ubuntu. Here's a link how to do it: http://ubuntuforums.org/showthread.php?t=1382405 I personally had troubles with the precompiled versions myself from time to time. Although it is more time consuming to build from source

[sage-support] Re: "python not found" error after installation (Ubuntu)

2010-09-28 Thread maldun
Hi! First: Have you checked, if the files that sage says are missing are really missing. It could also be that something wasn't correct with unpacking. Sometimes programs like ark are the troublemakers. second: I'm Ubuntu user myself and personally would recommend to build sage from source. I had

[sage-support] Re: simplifying expressions

2010-09-28 Thread Yann
On Sep 28, 2:15 pm, kcrisman wrote: > On Sep 27, 11:51 pm, Aidan wrote: > > > > > Hi, > > > This may be a repeat question, but is there a function to simplify > > complex expressions in sage? For example, the input > > > M = matrix([[e^(2*pi*I*i*j/3) for i in [0..2]] for j in [0..2]]); > > M.ei

Re: [sage-support] "python not found" error after installation (Ubuntu)

2010-09-28 Thread Dan Drake
On Mon, 27 Sep 2010 at 09:05PM -0700, obrintpas wrote: > Hi List, > could someone please help a newbie who has problems running sage? > After unpacking the standard 4.5.3 package for 64bit ubuntu linux, i > get the following error when trying to run sage from the terminal. I > am running it on Ubun

[sage-support] Re: simplifying expressions

2010-09-28 Thread kcrisman
On Sep 27, 11:51 pm, Aidan wrote: > Hi, > > This may be a repeat question, but is there a function to simplify > complex expressions in sage? For example, the input > > M = matrix([[e^(2*pi*I*i*j/3) for i in [0..2]] for j in [0..2]]); > M.eigenvalues() > > outputs > > [-1/2*(-10/9*I*sqrt(3) + 2*

[sage-support] Re: common devisor

2010-09-28 Thread Yann
On Sep 28, 11:09 am, Johannes wrote: > I'm wondering about on more little thing: > I have an expression like this: > (-bc)/((1/b -1) bc -1) + c /((1/b -1) bc -1) + (-1)/((1/b -1) bc -1) -1 > which could be simplified by hand to (-2(bc +1)/(c-bc -1) > why do i get this complex expression, evne if I

Re: [sage-support] Re: common devisor

2010-09-28 Thread Johannes
I'm wondering about on more little thing: I have an expression like this: (-bc)/((1/b -1) bc -1) + c /((1/b -1) bc -1) + (-1)/((1/b -1) bc -1) -1 which could be simplified by hand to (-2(bc +1)/(c-bc -1) why do i get this complex expression, evne if I call simplify on it? maybe this question is rel