i have a problem with symsum
Afficher commentaires plus anciens
mu = 2.7;
sigma = 1;
a =log(10)/10;
syms j r;
yf = symsum((r^-mu) , j, 1, 3)./(r^-mu);
g = symsum((r^(-2*mu))./(r^-mu).^2, j, 1, 3);
H=exp((a^2*sigma^2)./2)*(g*((exp(a^2*sigma^2)-1)+1))^-1/2;
==> the result is 3 for yf (the result take the same value of j index)
==> the result of H is 1541528098327599/9497638187650606
Any one know what is the problem here Thank you for your consideration

Réponses (1)
Thorsten
le 19 Août 2016
Probably the yf is wrong:
yf = symsum((r^-mu) , j, 1, 3)./(r^-mu);
==> the result is 3 for yf (the result take the same value of j index)
This doesn't make sense, because yf is just a constant, not a function of r and eta, as specified.
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!