[sage-support] Why two functions matrix.invert(), matrix.inverse()?

2009-03-09 Thread Omar
Does anybody know why there are two methods to invert matrices? One of them is called m.inverse() and the other is m.invert(). invert() seems to be only defined for dense matrices with rational entries, and inverse() seems to work for both sparse and dense matrices over any field. Is there a

[sage-support] Re: symbolic matrix multiplication in sage

2009-03-09 Thread alex
. do not work. I have tried A.AI A . AI and maxima(A.AI) please help me thx On Mar 9, 5:58 am, Robert Dodier robert.dod...@gmail.com wrote: alex wrote: How can i compute the matrix multiplication (product) of two symbolic matrices in sage ? I have tried: A = maxima(matrix ([a, b], [c,

[sage-support] Re: symbolic matrix multiplication in sage

2009-03-09 Thread Simon King
Dear Alex, On Mar 9, 12:21 pm, alex alessandro.bernardini.1...@gmail.com wrote: . do not work. I have tried A.AI A . AI This does not work because A and AI live in Sage, and in Sage the dot does not mean multiplication. A.AI means look for an attribute named AI of the object A. Since A has

[sage-support] Re: symbolic matrix multiplication in sage

2009-03-09 Thread David Joyner
On Sun, Mar 8, 2009 at 1:43 PM, alex alessandro.bernardini.1...@gmail.com wrote: How can i compute the matrix multiplication (product) of two symbolic matrices in sage ? I have tried: A = maxima(matrix ([a, b], [c, d])) AI= A.invert() and A * AI gives

[sage-support] Re: sage simplification

2009-03-09 Thread Stan Schymanski
Just a word of caution with respect to simplify_full(). If your function involves floating point numbers, simplify_full() can give an erroneous result (see bug #2604950 in Maxima or

[sage-support] Re: instructions for installing sage do not work

2009-03-09 Thread kcrisman
The terminal opened as follows: Last login: Sun Mar  8 16:23:08 on console /Applications/sage/sage ; exit; You have mail. Laptop-3:~ test$ /Applications/sage/sage ; exit; -- | Sage Version 3.2.3, Release Date: 2009-01-05  

[sage-support] Re: Why two functions matrix.invert(), matrix.inverse()?

2009-03-09 Thread William Stein
On Sun, Mar 8, 2009 at 7:35 PM, Omar omar.anto...@gmail.com wrote: Does anybody know why there are two methods to invert matrices? One of them is called m.inverse() and the other is m.invert(). invert() seems to be only defined for dense matrices with rational entries, and inverse() seems

[sage-support] Re: instructions for installing sage do not work

2009-03-09 Thread nsauer
Thanks for your help, everything works great now. How do I write matrices inside [ ] instead of ( ) ? On Mar 9, 7:38 am, kcrisman kcris...@gmail.com wrote: The terminal opened as follows: Last login: Sun Mar  8 16:23:08 on console /Applications/sage/sage ; exit; You have mail.

[sage-support] Re: symbolic matrix multiplication in sage

2009-03-09 Thread Robert Bradshaw
On Mar 9, 2009, at 4:44 AM, David Joyner wrote: On Sun, Mar 8, 2009 at 1:43 PM, alex alessandro.bernardini.1...@gmail.com wrote: How can i compute the matrix multiplication (product) of two symbolic matrices in sage ? I have tried: A = maxima(matrix ([a, b], [c, d])) AI= A.invert()

[sage-support] Re: Why two functions matrix.invert(), matrix.inverse()?

2009-03-09 Thread John H Palmieri
On Mar 9, 9:35 am, William Stein wst...@gmail.com wrote: [snip] That sounds likely.  The somebody was probably me.  I hope somebody opens a track ticket to deprecate, then remove (in some number of months) invert. http://trac.sagemath.org/sage_trac/ticket/5460 John

[sage-support] Re: sage simplification

2009-03-09 Thread Martin Rubey
Maurizio maurizio.gran...@gmail.com writes: What is the reason to have such a bugged function? I wouldn't consider sage: var('omgo zr ys cz') (omgo, zr, ys, cz) sage: omgo = (sqrt(-zr^2 + 2*ys*zr + (2*cz - zr)^2 - 2*ys*(2*cz - zr)) + 2*zr- 2*cz)/(2*zr - 2*cz) sage:

[sage-support] sage fails to run in binary

2009-03-09 Thread gsage
I extracted atom binary on my eeepc 900A. The following error message occurs Error setting environment variables by running /home/net/documents/ python programs/sage-3.2.3-ubuntu-Intel_AtomN270-Netbook-i686-Linux/ local/bin/sage-env; possibly contact sage-devel (see

[sage-support] Re: instructions for installing sage do not work

2009-03-09 Thread kcrisman
On Mar 9, 1:03 pm, nsauer nsa...@math.ucalgary.ca wrote: Thanks for your help, everything works great now. Great! How do I write matrices inside [ ] instead of ( )  ? I'm not sure - can you be more specific about what command you are trying, what output you are getting, and what output you

[sage-support] Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Alex Lara
Hi guys, After I found a bug in sage 3.2.3 ( see Division error in Sage 3.3 but not in Sage 3.1.1 posted march 7, 2009), I decided used sage 3.1.1. Now I have a problem with sage 3.1.1 1. the program generate the object H 2. save H 3. G =load(H) I assume G == H, but it doesn't happens. See the

[sage-support] Re: Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Mike Hansen
On Mon, Mar 9, 2009 at 6:37 PM, Alex Lara lrodr...@gmail.com wrote: Some idea of how to fix this? I don't have a copy of Sage 3.1.1 handy right now since it is so old. In Sage 3.4.rc0, I run your code and get H and G to be the same. --Mike --~--~-~--~~~---~--~~

[sage-support] Re: Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Justin Walker
On Mar 9, 2009, at 6:42 PM, Mike Hansen wrote: On Mon, Mar 9, 2009 at 6:37 PM, Alex Lara lrodr...@gmail.com wrote: Some idea of how to fix this? I don't have a copy of Sage 3.1.1 handy right now since it is so old. In Sage 3.4.rc0, I run your code and get H and G to be the same. FWIW,

[sage-support] Re: Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Mike Hansen
On Mon, Mar 9, 2009 at 7:24 PM, Justin Walker jus...@mac.com wrote: FWIW, the problem shows in Sage 3.3 (the -1 and -2 entries are interchanged; the rest show in the same order). There is no guarantee on the order of the elements when you iterate through a dictionary. --Mike

[sage-support] Re: Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Justin Walker
D'oh! On Mar 9, 2009, at 7:30 PM, Mike Hansen wrote: On Mon, Mar 9, 2009 at 7:24 PM, Justin Walker jus...@mac.com wrote: FWIW, the problem shows in Sage 3.3 (the -1 and -2 entries are interchanged; the rest show in the same order). There is no guarantee on the order of the elements when

[sage-support] Re: sage fails to run in binary

2009-03-09 Thread gsage
On Mar 9, 6:32 pm, gsage sambe...@gmail.com wrote: I extracted atom binary on my eeepc 900A. The following error message occurs Error setting environment variables by running /home/net/documents/ python programs/sage-3.2.3-ubuntu-Intel_AtomN270-Netbook-i686-Linux/ local/bin/sage-env;

[sage-support] Re: changing notebook stylesheet - i can't find it?

2009-03-09 Thread compound eye
thanks Tim On Mar 9, 2:11 pm, Timothy Clemans timothy.clem...@gmail.com wrote: Hi, You can customize the notebook css by creating your own css file at $HOME/.sage/notebook.css The main css code is athttp://hg.sagemath.org/sage-main/file/b0aa7ef45b3c/sage/server/notebo... On Sun, Mar 8,

[sage-support] Re: Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Craig Citro
Hi Alex, After I found a bug in sage 3.2.3 ( see Division error in Sage 3.3 but not in Sage 3.1.1 posted march 7, 2009), I decided used sage 3.1.1. Now I have a problem with sage 3.1.1 1. the program generate the object H 2. save H 3. G =load(H) So this is a pretty funky bug -- however,