Unfortunately, there may not be any API to compute the matrix cosine or a matrix sine (I'm not familiar with the topic of quantum mechanics, but if you mean by computing the matrix-valued functions with diagonalization) And unfortunately, I'm not very willing to introduce some new matrix-functional API until expression blowup problems are resolved, but as there already is `Matrix.exp` method, you can be able to compute matrix cosine from the exponential with the Euler identity.
On Thursday, January 30, 2020 at 9:36:46 PM UTC+9, Raman Sehgal wrote: > > Hello Sympy experts, > I am trying to do some quantum mechanics using sympy > I want to take cosine of an quantum operator matrix > > I didn't find any function in Quantum Operator that will help me. > > could you please help me with that, or suggest how it can be done > > > Regards, > > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/da417fbb-15e5-471c-b33e-eeb2c7e311b5%40googlegroups.com.