> 数学 >
跪求用牛顿法求方程近似根 的Matlab 程序
求x^3-2x-5=0在(2,3)内的近似解(取n=3)
人气:346 ℃ 时间:2020-02-06 08:51:38
解答
function s=NewtonIterate(x,eps)%Newton迭代法求解非线性方程组的解%x为迭代初值,eps为允许误差ifnargin==1eps=1.0e-6;elseif nargin> x= NewtonIterate(2.5,eps)x =1307/624
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版