Hello,
The matrix exponential is defined as
expm(A)=I+A+1/2*A^2+...+1/k!*A^k+...
where the "*" denotes the matrix product.
You can obtain what you wanted with
exp(A)
i.e. element-wise exponential of A
S.
Le 02/02/2017 à 09:49, Jean Rubagenga a écrit :
Hi,
I am trying to use expm() and do not get what I am expecting.
I enter A = [1,0.5,0.7;0.3,0.7,1;1,0,1]
and B = expm(A)
and get as result
B =
4.1672519 1.3854159 2.8881517
2.1672628 2.4007931 3.0513947
3.17163590.66800663.96685.
I expected the matrix B elements to be exponents of corresponding
elements of matrix A. For example
B(1,1) = B(2,3) = B(3,1) = B(3,3) = 2.7182818
Could you please explain to me what is going on?
Thanks
Jean
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users