摘要: 1.由f(x)计算f(x)的导数; 2.输入一个X,并让其作为X0进行计算; 3.反复迭代X,直到|x-x0|<=1e-5; 4.输出当前X; #include<iostream>#include<math.h>using namespace std; int main(){ float X,X0, 阅读全文
posted @ 2023-04-15 11:23 The-rich 阅读(125) 评论(0) 推荐(0)