Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Replace all numbers < e-n by 0

As always two question in one.

F = random_matrix(RR,7,50)
import numpy as np
covMatrix = np.cov(F,bias=True)
Ω=matrix(covMatrix)
Λ=Ω.inverse()
Ω*Λ

1) Is there a way to ask Sama (nicname for SAgeMAth more elegant than SM -- a wink) to overcome the number less than e-n and replace it by 0 --- I have found a way : to use change_ring(QQ) but I want to know if therre is another way. 2) is there a way to ask Sama to display only n decimal digit.