Ask Your Question

Is it possible to find the exponential of a symbolic matrix using sage?

asked 2012-01-11 16:50:15 +0200

Shashank gravatar image

I am searching for a function that is equivalent to mathematica's MatrixExp, that will calculate the exponential of a symbolic matrix. I don't want a term by term exponential but a something like expm() in scipy but for symbolic matrices.

Is it possible in sage?

edit retag flag offensive close merge delete


Though see, where trying to do this with sparse matrices causes problems.

kcrisman gravatar imagekcrisman ( 2012-06-22 12:03:50 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2012-01-11 17:04:45 +0200

achrzesz gravatar image

sage: m=matrix(SR,2,2)

sage: m.exp?

edit flag offensive delete link more


I get "No object 'm.exp' currently defined." Is it just my machine or it is not defined? Edit: Sorry about that it actually worked. Thanks

Shashank gravatar imageShashank ( 2012-01-11 17:10:01 +0200 )edit

Just as a followup, since Sage 5.1.beta5, e^m will also work - see

kcrisman gravatar imagekcrisman ( 2012-06-22 11:56:56 +0200 )edit

answered 2012-06-22 05:27:17 +0200

Would this work for you?

 A = matrix(SR, 2, var('a,b,c,d'))

I get a long expression which I assume is the matrix exponential.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2012-01-11 16:50:15 +0200

Seen: 1,499 times

Last updated: Jun 22 '12