On Oct 7, 8:45 am, Mike Hansen [EMAIL PROTECTED] wrote:
Hello,
On Mon, Oct 6, 2008 at 6:50 PM, SK [EMAIL PROTECTED] wrote:
Now, I try and compute X * (X^(-1)). Instead of getting an identity
matrix, I get a complicated matrix in x, y and z. Thinking that the
^ may be the issue, I tried
Thank you Mike and John. It seemed unlikely to me that there was a bug
anyway, but I had to ask. I used the 'simplify_rational' and it worked
perfectly. Also, I noticed that Mike used 'apply_map'. That and lambda
make it look rather close to Lisp; it looks like the more I look at
sagemath, the
A slight variation on John's answer: you could also do:
sage: R.x,y,z=QQ[]
sage: X = matrix( [ [x, y, z], [y, z, x], [z, x, y] ])
sage: Y = X*X^-1
sage: Y = matrix(R,Y)
sage: Y
[1 0 0]
[0 1 0]
[0 0 1]
M. Hampton
On Oct 7, 8:16 pm, SK [EMAIL PROTECTED] wrote:
Thank you Mike and John. It