How to write this expression in matlab?

2 visualizzazioni (ultimi 30 giorni)
how to write in matlab f0r n=0 to 200
and for 0.03

Risposta accettata

Walter Roberson
Walter Roberson il 4 Dic 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)
expr = 
g(n) = symsum(expr, k, 0, n)
g(n) = 
simplify(g, 'steps', 20)
ans(n) = 
  1 Commento
Idrees Muhammad
Idrees Muhammad il 4 Dic 2022
Thank you very much, I required help further,if you give me little attention.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Quantum Mechanics in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by