MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]Error using ==> sym.mpower Exponent must be a numeric integer. (https://www.labfans.com/bbs/showthread.php?t=3167)

gonganshu 2008-05-22 22:06

[求助]Error using ==> sym.mpower Exponent must be a numeric integer.
 
向高手求教
sym b
s2=limit(((-1)^(b-1))/b*(a22)^b,b,inf)
ac=symsum(((-1)^(b-1))/b*(a22)^b,b,1,inf)%%%求无穷数列的和
其中a22为6*6的非奇异阵
运行后出现??? Error using ==> sym.mpower
Exponent must be a numeric integer.
Error in ==>s2=limit(((-1)^(b-1))/b*(a22)^b,b,inf)
Error in ==>ac=symsum(((-1)^(b-1))/b*(a22)^b,b,1,inf)

kewin 2008-05-23 10:19

改成syms b

gonganshu 2008-05-23 15:48

[QUOTE=kewin;11112]改成syms b[/QUOTE]

这样我也试过,同样的问题

guflei 2008-05-25 23:32

> syms b a22;
>> s2=limit(((-1)^(b-1))/b*(a22)^b,b,inf)
ac=symsum(((-1)^(b-1))/b*(a22)^b,b,1,inf)%%%求无穷数列的和

s2 =

limit((-1)^(b-1)/b*a22^b,b = inf)


ac =

log(1+a22)

6.5版本,运行成功!


所有时间均为北京时间。现在的时间是 03:14

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.