Message Boards Message Boards

0
|
4332 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Drop high power terms in Matrix multiplication?

Posted 4 years ago

Hi guys,

I am using Wolfram Mathematica. Basically I am doing a multiplication of 2 3x3 Identity Matrix which consist on quadratic functions. But after multiplying both matrices, I attained a highest power of 4 in the functions. But I would only like to retain up to power of 2 in the result. Is there any way I can do that in Wolfram Mathematica?

POSTED BY: Bryan Koh
2 Replies

If m1 and m2 are your matrices try

Expand[m1.m2] //. a_. x^(m_ /; m >= 3) -> 0
POSTED BY: Hans Dolhaine
Posted 4 years ago

Thanks for the advice, Hans, it worked for me.

POSTED BY: Bryan Koh
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract