Ask Your Question

Chisx's profile - activity

2020-05-27 15:03:15 -0600 received badge  Notable Question (source)
2020-05-27 15:03:15 -0600 received badge  Popular Question (source)
2016-02-25 15:50:37 -0600 received badge  Student (source)
2016-02-25 04:59:55 -0600 asked a question How do I enter an imaginary number into a matrix

In a very simple example, I am created a 2 by 2 matrix like this

var('i')
ran40 = matrix(QQ,2,2,[[2*i,-2],[3,4]])
show(ran40)

I need to eventually call show(ran40.rref()) so that I can see the reduced row echelon form of the above matrix. But I get syntax errors in the creation of the matrix above.

How do I simply put the imaginary letter i into a matrix and then it actually be computed on. That is, the imaginart "part" is actually used in the RREF computation.