HP 40gs how to get a submartix from a matrix
|
09-01-2023, 06:15 AM
Post: #6
|
|||
|
|||
RE: HP 40gs how to get a submartix from a matrix
(08-31-2023 11:56 PM)Anthony The Koala Wrote: In python, I learned a way of multiplying matrices: The @ operator only works on objects of type array from numpy. While you can multiply a list by an integer the result is probably not what you expected. For objects of type Matrix from sympy you have to use the ordinary * operator: Code: P = U * M * V This library allows to use fractions and return the result in LaTeX: Code: from sympy import latex Code: \left[\begin{matrix}-3 & 2\\\frac{8}{3} & - \frac{5}{3}\end{matrix}\right] Or then: \( \left[\begin{matrix}-3 & 2\\\frac{8}{3} & - \frac{5}{3}\end{matrix}\right] \) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP 40gs how to get a submartix from a matrix - Anthony The Koala - 08-31-2023, 04:30 AM
RE: HP 40gs how to get a submartix from a matrix - Thomas Klemm - 08-31-2023, 02:40 PM
RE: HP 40gs how to get a submartix from a matrix - Gilles - 08-31-2023, 03:07 PM
RE: HP 40gs how to get a submartix from a matrix - Anthony The Koala - 08-31-2023, 11:56 PM
RE: HP 40gs how to get a submartix from a matrix - Anthony The Koala - 09-01-2023, 02:31 AM
RE: HP 40gs how to get a submartix from a matrix - Thomas Klemm - 09-01-2023 06:15 AM
RE: HP 40gs how to get a submartix from a matrix - Anthony The Koala - 09-01-2023, 07:27 AM
RE: HP 40gs how to get a submartix from a matrix - carey - 09-03-2023, 08:02 AM
|
User(s) browsing this thread: 2 Guest(s)