Codes for coherent state function?
조회 수: 4 (최근 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!