fsolve解非线性方程组,只迭代了8次就退出了,得到的结果进行复算不等于0,存在较大的误差。(是不是需要修改算法?)
运行程序得到的结果提示如下:
x =
1.0e+003 *
Columns 1 through 4
0.008229968721187 0.000000000008083 0.000006858621379 1.206234368839563
Column 5
0.000029820218392
fval =
-0.003404951183545
0.109922506812515
0.055200484333056
0.009207767273016
-0.000813641543979
exitflag =
-2
output =
iterations: 8
funcCount: 54
algorithm: 'trust-region dogleg'
firstorderopt: 3.163833174781097e+003
message: [1x775 char]
ans =
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 ze