ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 22 Jun 2012 05:03:50 -0500Is it possible to find the exponential of a symbolic matrix using sage?http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/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?Wed, 11 Jan 2012 09:50:15 -0600http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/Comment by kcrisman for <p>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. </p>
<p>Is it possible in sage?</p>
http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=19532#post-id-19532Though see http://trac.sagemath.org/sage_trac/ticket/12101, where trying to do this with sparse matrices causes problems.Fri, 22 Jun 2012 05:03:50 -0500http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=19532#post-id-19532Answer by achrzesz for <p>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. </p>
<p>Is it possible in sage?</p>
http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?answer=13114#post-id-13114sage: m=matrix(SR,2,2)
sage: m.exp?
Wed, 11 Jan 2012 10:04:45 -0600http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?answer=13114#post-id-13114Comment by kcrisman for <p>sage: m=matrix(SR,2,2)</p>
<p>sage: m.exp?</p>
http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=19534#post-id-19534Just as a followup, since Sage 5.1.beta5, e^m will also work - see http://trac.sagemath.org/sage_trac/ticket/4735Fri, 22 Jun 2012 04:56:56 -0500http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=19534#post-id-19534Comment by Shashank for <p>sage: m=matrix(SR,2,2)</p>
<p>sage: m.exp?</p>
http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=20557#post-id-20557I get "No object 'm.exp' currently defined." Is it just my machine or it is not defined? Edit: Sorry about that it actually worked. ThanksWed, 11 Jan 2012 10:10:01 -0600http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=20557#post-id-20557Answer by JuanPi for <p>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. </p>
<p>Is it possible in sage?</p>
http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?answer=13744#post-id-13744Would this work for you?
A = matrix(SR, 2, var('a,b,c,d'))
exp(A)
I get a long expression which I assume is the matrix exponential.Thu, 21 Jun 2012 22:27:17 -0500http://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?answer=13744#post-id-13744