Problem Using Summation Notation with Euler's Number
Mostrar comentarios más antiguos
Hi all,
I am having a problem using summation notation. My code is as follows:
syms n x
SumFe56 = symsum(1/n^2*exp(-n^2*pi^2*10^-12*(7.50*10^-12)),n,1,Inf)
BulkFe56 = (20*.9175)+((6*.9175*(9-20))/pi^2)*SumFe56
I am thus trying to do define a sum, titled SumFe56, and then put this value into my BulkFe56 equation to generate a single number answer. When I run my code, however, for the first two lines, I receive this output:
SumFe56 =
symsum(exp(-(161205712616447904232271790533*n^2)/2177807148294006166165597487563316553318400000000000)/n^2, n, 1, Inf)
With the answer for BulkFe56 as follows:
BulkFe56 = 367/20 - (6907963692174921*symsum(exp(-(161205712616447904232271790533*n^2)/2177807148294006166165597487563316553318400000000000)/n^2, n, 1, Inf))/1125899906842624
I am assuming that my summation code was written incorrectly, but I am not sure how. I would like my SumFe56 to just be a single value, which I can then easily put into my code for BulkFe56, to generate, yet again, a single numerical value.
Does anybody have any insight into what I'm doing incorrectly?
Thank you.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!