当前位置: > 用牛顿迭代法求方程的根:2*x*x*x-4*x*x+3*x-6=0...
题目
用牛顿迭代法求方程的根:2*x*x*x-4*x*x+3*x-6=0

提问时间:2020-10-26

答案
#include #include int main(){double x = 1,x2;do {x2 = x;x -= (2*x*x*x-4*x*x+3*x-6)/(6*x*x-8*x+3);} while(fabs(x - x2) > 1e-6);printf("root=%.2f ",x);}
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.