How to write this expression in matlab?

 採用された回答

Walter Roberson
Walter Roberson 2022 年 12 月 4 日

0 投票

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 件のコメント

Idrees Muhammad
Idrees Muhammad 2022 年 12 月 4 日
Thank you very much, I required help further,if you give me little attention.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeQuantum Mechanics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by