用二分法求方程x3+4x2-10=0在[1,2]之间的根,要求精度为0.005
人气:476 ℃ 时间:2020-04-05 06:24:09
解答
#include"stdio.h"//#include"conio.h"#include"math.h"float fun(float x){ return (x*x*x+4*x*x-10);}float xpoint(float x1,float x2){ return (x1+x2)/2;}float root(float x1,float x2){ float x,y,y1,y2; y1...
推荐
猜你喜欢