利用matlab 编程 1.求用方程求根的二分法求方程x3-x-1=0在区间[1,1.5]内的一个实根,要求误差小于0.005。2.

日期:2011-05-25 22:07:15 人气:1

利用matlab 编程 1.求用方程求根的二分法求方程x3-x-1=0在区间[1,1.5]内的一个实根,要求误差小于0.005。2.

这是源代码: 在matlab中保存为:bisection.m function rtn=bisection(fx,xa,xb,n,delta) % Bisection Method % The first parameter fx is a external function with respect to viable x. % xa is the left point of the initial interval % xb is the right point of the in
    A+
热门评论