Question: Strange behavior of MatrixExponential

Does anyone understand this behavior? Why under some situations the exponential is not explicitly calculated by maple?

issue_matrix_exp.mw

I'm on linux x86_64, using Maple 2017.3

thanks.
 

Code:

restart:

H:=Matrix(4,4, 0):
H[2,3]:=a*exp(I*(b*x+phi)):
H[3,2]:=a*exp(-I*(b*x+phi)):
H;

LinearAlgebra:-MatrixExponential(-I*H); #result as I would expect

H2:=subs(a=0.1, b=0.3, phi=0.1, H); #substitute a few variables

LinearAlgebra:-MatrixExponential(-I*H2); #why does this not work?

H3:=subs(x=0.35, H2); #substitute numerical value for x as well

LinearAlgebra:-MatrixExponential(-I*H3); #now get a result
Please Wait...