How to write this expression in matlab?

 Accepted Answer

syms k n r
expr = nchoosek(n, k) * (n-k)/sqrt(n) * (-1)^(n-k) * sinh(r)^(2*n-1-2*k) * cosh(r)^(2*k-n-1)
expr = 
g(n) = symsum(expr, k, 0, n)
g(n) = 
simplify(g, 'steps', 20)
ans(n) = 

1 Comment

Thank you very much, I required help further,if you give me little attention.

Sign in to comment.

More Answers (0)

Categories

Find more on Quantum Mechanics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!