Ask Your Question

wpunkt's profile - activity

2021-11-13 17:31:45 +0200 received badge  Notable Question (source)
2021-11-13 17:31:45 +0200 received badge  Popular Question (source)
2014-08-28 17:48:47 +0200 received badge  Editor (source)
2014-08-28 17:47:41 +0200 asked a question Symbolic matrix calculation

Is it possible to do symbolic matrix calculation with sage? What I like to do is somehow declare that U_n are unitary matrices (without giving their dimension or explicit representation). Once declared I'd like sage to exploit the unitarity when it is evaluating expressions involving U_n, like:

A=U_1.H * U_1 * U_2

should yield

A=U_2

Is this possible?

2014-08-14 17:34:04 +0200 asked a question Imaginary matrix exponential

Is there a way sage can evaluate this?

A = Matrix(CDF,[[1,2,3.],[3,2,0],[1,2,1]]) e^(i*A)

TypeError: ECL says: Error executing code in Maxima: Unable to find the spectral representation

I was hoping that using the Complex Double Field would help. But it didn't.