Codes for coherent state function?
1 次查看(过去 30 天)
显示 更早的评论
Summation n=0 to10 exp-abs(alpha)^2*alpha^n/sqrtfactorial(n)
0 个评论
采纳的回答
Walter Roberson
2023-1-13
syms alpha n
result = symsum(exp(-abs(alpha)^2 * alpha^n / sqrt(factorial(n)) ), n, 0, 10)
12 个评论
Walter Roberson
2023-2-9
remove the sum() from resultsym to get length(alpha) by length(0:11), which would be removing the summation from the formula
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!