Codes for coherent state function?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Summation n=0 to10 exp-abs(alpha)^2*alpha^n/sqrtfactorial(n)
0 commentaires
Réponse acceptée
Walter Roberson
le 13 Jan 2023
syms alpha n
result = symsum(exp(-abs(alpha)^2 * alpha^n / sqrt(factorial(n)) ), n, 0, 10)
12 commentaires
Walter Roberson
le 9 Fév 2023
remove the sum() from resultsym to get length(alpha) by length(0:11), which would be removing the summation from the formula
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Applications dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!