Suppose I have inherited of a matrix with real numbers that is X.yyyy style numbers. Is there a simple way to transform this matrix in a matrix composed of rational numbers and vis-versa ? And what if the matrix is composed of mixed numbers ? In that last case, could I impose a ring ?
Say M1=matrix(2, 2,(1.2,2.3564,3.0000,5.4321))
, M2=matrix(2, 2,(1/2,2/6, 3/8,. 5.4321))
, M3=matrix(2, 2,(1.2,3/4,1,2.756))