Codes for coherent state function?
1 view (last 30 days)
Show older comments
Summation n=0 to10 exp-abs(alpha)^2*alpha^n/sqrtfactorial(n)
0 Comments
Accepted Answer
Walter Roberson
on 13 Jan 2023
syms alpha n
result = symsum(exp(-abs(alpha)^2 * alpha^n / sqrt(factorial(n)) ), n, 0, 10)
12 Comments
Walter Roberson
on 9 Feb 2023
remove the sum() from resultsym to get length(alpha) by length(0:11), which would be removing the summation from the formula
More Answers (0)
See Also
Categories
Find more on Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!