First time here? Check out the FAQ!

Ask Your Question
2

Matrix symbolic definition for algebra

asked 2 years ago

Pickle gravatar image

updated 2 years ago

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?

Preview: (hide)

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 ( 2 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 2 years ago

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
Preview: (hide)
link

Comments

1

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

Pickle gravatar imagePickle ( 2 years ago )

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: 2 years ago

Seen: 203 times

Last updated: Jan 10 '23