【C/C++】實現牛頓迭代

1 #include<bits/stdc++.h> 2 using namespace std; 3 4 5 /*(x+2)^2 +1 6 -2(x-1)^2+7 7 8 */ 9 double f(double x){ 10 return 4-x- pow(2,x); 11 } 12 double df(double x){ 13
相關文章
相關標籤/搜索