Post Reply 
Could somebody explain why?
04-09-2018, 09:45 AM
Post: #3
RE: Could somebody explain why?
I am not that deep in this kind of mathematics, but I want to give it a try.
At first glance one awaits sine working on a matrix element by element which is wrong, only if your matrix is quadratic and diagonal this will hold. In your case you may try (exp(i*M)-exp(-i*M))/(2i) which exactly gives your result, you can do diagonalization yourself, for example via jordan(M)=[P,J]. Then M=P*J*P^-1 and so sin(M)=P*sin(J)*P^-1, this works as J is diagonal, and gives the same result, so the prime is correct. I tried Wolfram, but that handles matrices as lists of lists and this may be the reason for it returning the sine of the elements. So everything seems to be dependent on implementation, the 50G refuses an evaluation of transcendential functions on matrices. I think Bernard can give deeper explanation.
If you know what you need you can use apply(x->sin(x),m).
Arno
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Could somebody explain why? - John P - 04-08-2018, 09:24 PM
RE: Could somebody explain why? - toshk - 04-09-2018, 05:00 AM
RE: Could somebody explain why? - Arno K - 04-09-2018 09:45 AM
RE: Could somebody explain why? - John P - 04-09-2018, 04:53 PM
RE: Could somebody explain why? - toshk - 04-09-2018, 05:08 PM
RE: Could somebody explain why? - John P - 04-09-2018, 06:18 PM
RE: Could somebody explain why? - parisse - 04-10-2018, 09:18 AM



User(s) browsing this thread: 1 Guest(s)