Ask Your Question
2

Matrix symbolic definition for algebra

asked 2023-01-09 08:26:29 +0100

Pickle gravatar image

updated 2023-01-10 02:09:32 +0100

Is there a way to define variables as matrices and then perform simplification? For instance, instead of A=var('A') being a scalar variable, can A be defined as a matrix?

edit retag flag offensive close merge delete

Comments

1

These are similar examples of what I am thinking. Is there similar functionality in Sagemath? https://www.diva-portal.org/smash/get...https://ieeexplore.ieee.org/document/...

Pickle gravatar imagePickle ( 2023-01-10 02:10:00 +0100 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2023-01-09 10:28:24 +0100

FrédéricC gravatar image

Use the tensor algebra

sage: R = algebras.Free(QQ,['A','B','C'])
sage: A,B,C = R.gens()
sage: A*B-B*A
A*B - B*A
edit flag offensive delete link more

Comments

1

This is a good idea. However, it doesn't seem to allow for matrix operations like determinant and transpose

Pickle gravatar imagePickle ( 2023-01-10 00:50:22 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-01-09 08:26:29 +0100

Seen: 196 times

Last updated: Jan 10 '23