How to write this expression in matlab?
2 views (last 30 days)
Show older comments
Idrees Muhammad
on 4 Dec 2022
Commented: Idrees Muhammad
on 4 Dec 2022
how to write in matlab f0r n=0 to 200
and for 0.03
0 Comments
Accepted Answer
Walter Roberson
on 4 Dec 2022
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)
g(n) = symsum(expr, k, 0, n)
simplify(g, 'steps', 20)
More Answers (0)
See Also
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!