How to write this expression in matlab?

2 次查看(过去 30 天)
how to write in matlab f0r n=0 to 200
and for 0.03

采纳的回答

Walter Roberson
Walter Roberson 2022-12-4
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) = 

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Quantum Mechanics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by