Matlab gives back ''symsum'' formula but not a value
1 次查看(过去 30 天)
显示 更早的评论
The equations that I have to solve is and . I used these codes to solve them:
For equation no.1: F1=symsum(atan(pi/factorial(n)),n,0,Inf); Answer that matlab gives: symsum(atan(pi/factorial(n)), n, 0, Inf).
For equation no.2: F2=symsum(((-1)^n)*(sin(pi/(2^n))),n,1,Inf); Answer that matlab gives: symsum((-1)^n*sin(pi/2^n), n, 1, Inf).
If I delete atan and sin, matlab calculates F1 and F2 like it should, but with them, it only gives formulas back.
0 个评论
回答(1 个)
Walter Roberson
2022-5-19
Wolframalpha calculates the first sum numerically, not able to find a closed form for it.
What reason do you have to expect that a closed form exists?
symsum is for calculation of closed forms, not for numeric approximation.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!