摘要:
题目:用二分法求方程x3-x-1=0在[1,2]内的近拟解,要求误差不超过0.001。要求,用matlab写出编码,x_up = 2;
x_down = 1;
error = 0.001;
res_down = x_down^3 - x_down - 1;
res_up = x_up^3 - x_up - 1; while(res_down * res_up < 0) x = 0.5*(x_up + x_down); res = x^3 - x - 1; if( res*res_down < 0 ) ... 阅读全文
posted @ 2012-03-02 13:07 月不识己 阅读(2182) 评论(0) 推荐(0)
浙公网安备 33010602011771号