ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 22 Jun 2012 12:03:50 +0200Is it possible to find the exponential of a symbolic matrix using sage?https://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 16:50:15 +0100https://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>
https://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 12:03:50 +0200https://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>
https://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 17:04:45 +0100https://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?answer=13114#post-id-13114Comment by Shashank for <p>sage: m=matrix(SR,2,2)</p>
<p>sage: m.exp?</p>
https://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 17:10:01 +0100https://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=20557#post-id-20557Comment by kcrisman for <p>sage: m=matrix(SR,2,2)</p>
<p>sage: m.exp?</p>
https://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 11:56:56 +0200https://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?comment=19534#post-id-19534Answer 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>
https://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.Fri, 22 Jun 2012 05:27:17 +0200https://ask.sagemath.org/question/8620/is-it-possible-to-find-the-exponential-of-a-symbolic-matrix-using-sage/?answer=13744#post-id-13744