sigma665 发表于 2012-1-9 21:16:51

复杂非线性方程求零点问题

clc
clear
syms N M
K3=;
% K3=vpa(K3);
K5=subs(K3,M,1);
df=det(K5);

dff=eval(['@(N)',char(df)]);

opt=optimset;
opt.largeScale='off';
opt.MaxFunEvals=200;
opt.TolX=1e-10;
opt.TolFun=1e-10;
=fsolve(dff,3e6,opt)结果如下:
No solution found.

fsolve stopped because the relative size of the current step is less than the
selected value of the step size tolerance squared, but the vector of function values
is not near zero as measured by the selected value of the function tolerance.

<stopping criteria details>


x =

4.0041e+006 +1.3434e-011i


f =

-5.4836e+082 +9.3127e+086i

明显不对,此乃何故?

zccbest 发表于 2012-1-11 09:51:42

本帖最后由 zccbest 于 2012-1-11 09:53 编辑

明显是不收敛,换个初始值试试
页: [1]
查看完整版本: 复杂非线性方程求零点问题