As we know
from sympy import *
x = sin(pi/4)
y = sin(pi/5)
A = Matrix([x, y])
print(x)
print(A.evalf())
displays
sqrt(2)/2
Matrix([[0.707106781186548], [0.587785252292473]])
So
print(round(x.evalf(), 3))
print(round(y.evalf(), 3))
displays
0.707
0.588
But how can we round all the elements in a Matrix in a terse way, so that
print(roundMatrix(A, 3))
can displays
Matrix([[0.707], [0.588]])