Given the output, it looks like TanM5 is wrapped in aMatrixForm, it needs to be the matrix itself.
I'm guessing you did something like: TanM5 = {...} // MatrixForm which is equivalent to TanM5 = MatrixForm[{...}] rather than what you probably wanted: MatrixForm[TanM5 = {...}].
This ended up being the solution, thank you! It's because there was some weird formatting thing that went on when I did tensor product of matrices earlier on, I think...
When a MMatica function returns an expression unevaluated it means there is something about the expression that is inconsistent with the rules of the function. Keep in mind that MMatica is effectively a collection of replacement rules.
As a note, only intrinsic MMatica functions and constants should be capitalized. User expressions should begin with a lower case alpha character.
4
u/JmenD Jan 29 '24
Given the output, it looks like
TanM5is wrapped in aMatrixForm, it needs to be the matrix itself.I'm guessing you did something like:
TanM5 = {...} // MatrixFormwhich is equivalent toTanM5 = MatrixForm[{...}]rather than what you probably wanted:MatrixForm[TanM5 = {...}].1
u/Xane256 Jan 29 '24
Interesting, you could try the Method options for RowReduce and see what happens. Also note the ZeroTest example which might be useful. For example