1 | initial version |
Instead of symbolic I
use QQbar(I)
:
sage: A = Matrix(CDF, [[1,2,3],[3,2,0],[1,2,1]])
sage: C=QQbar(I)*A
sage: C.exp()
[ 0.651747342998 - 1.54379760025*I -0.732155536636 - 0.455927080561*I 0.599292752801 + 1.47303558858*I]
[ 0.174911238362 + 0.933804036222*I 1.13443260356 - 0.693298035819*I -1.27314454332 - 1.61769465706*I]
[ -0.648998777944 - 0.58745124185*I -0.166313517385 + 0.263048322578*I 1.50051037188 - 0.465334495539*I]
See http://sagemath.org/doc/reference/number_fields/sage/rings/qqbar.html