求解方程时限:1000ms内存限制:10000K 总时限:3000ms描述:用牛顿迭代法求方程2x^3-4x^2+3xsinx-6=0的根,要求误差小于10的-6次方。输入:一个浮点数,表示起始点。输出:一个浮点数,为方程的根。输入样例:1.0输出样例:2.064076提示:来源:代码:#include <stdio.h>#include <math.h>float fun1(float a);float fun2(float b);int main(){ float x0,x1; float a,b; scanf("%f",&x0); wh Read More
posted @ 2011-05-29 17:07
itbird
Views(286)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号