Python Forum
nsimplify, make zero the really small numbers in the matrix
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nsimplify, make zero the really small numbers in the matrix
#6
Ok, I found the reason :)))

The thing is that my real matrix is coming from another mathematical process. And when I print my real matrix, I used this line:

np.set_printoptions(precision=3) #"rounding"
so real matrix came as normal
However I should have used this code line
realmat=realmat.round(3)
Because with the previous script, I was printing in a normal shape but I wasn't actually changing the my real matrix. so when I multiply my real matrix and the symbolic matrix, I had this issue

Now it is ok :)
Thanks
Reply


Messages In This Thread
RE: nsimplify, make zero the really small numbers in the matrix - by quest - Jan-19-2022, 11:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check if two matrix are equal and of not add the matrix to the list quest 3 892 Jul-10-2023, 02:41 AM
Last Post: deanhystad
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 3,412 May-03-2021, 06:30 AM
Last Post: Gribouillis
  How do I make a symmetric matrix from a column vector? leocsmith 3 3,736 Mar-30-2021, 10:17 AM
Last Post: leocsmith
  How to make this function general to create binary numbers? (many nested for loops) dospina 4 4,520 Jun-24-2020, 04:05 AM
Last Post: deanhystad
  Print Numbers starting at 1 vertically with separator for output numbers Pleiades 3 3,787 May-09-2019, 12:19 PM
Last Post: Pleiades
  How to extract specific numbers from a matrix? Alberto 0 3,373 Mar-06-2018, 02:52 PM
Last Post: Alberto
  How to make a subtraction within a range of numbers? Alberto 3 10,168 May-08-2017, 09:13 PM
Last Post: ichabod801
  matrix from matrix python numpy array shei7141 1 3,743 Jan-16-2017, 06:10 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020