求助matlab求和,为什么出现这种错误?。

syms beta z;
f=(z - (13*beta*z)/(5*((18*z)/25 + 33/25)))^2/2 + (z - (13*beta*z)/(5*((83*z)/100 + 26/25)))^2/2 + (z - (z*((13*beta)/5 - 13/5))/((18*z)/25 - 32/25))^2/2 + (z - (z*((13*beta)/5 - 13/5))/((83*z)/100 - 39/25))^2/2;
s=symsum(f,z,0.15,0.8)
出现错误:??? Error using ==> mupadmex
Error in MuPAD command: Illegal range [sum::sum]
Error in ==> sym.symsum at 74
r = mupadmex('mllib::map',f.s,'mllib::symsum',x.s,a.s,b.s);
求助为什么出现这种错误?谢谢啊!
file:///C:/Users/sapphire/AppData/Local/Temp/E9BIPM$_%609%7D%60VS07%60VD9H1F.gif

 Réponse acceptée

laneb
laneb le 23 Nov 2022

0 votes

symsum 是用于级数求和,求和变量是级数的项数,所以,一般是取整数。比如:
syms beta z;
f=(z - (13*beta*z)/(5*((18*z)/25 + 33/25)))^2/2 + (z - (13*beta*z)/(5*((83*z)/100 + 26/25)))^2/2 + (z - (z*((13*beta)/5 - 13/5))/((18*z)/25 - 32/25))^2/2 + (z - (z*((13*beta)/5 - 13/5))/((83*z)/100 - 39/25))^2/2;
s=symsum(f,z,0,8)

Plus de réponses (0)

Catégories

En savoir plus sur 数学 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!