
ACM_方程求根
文章平均质量分 83
沐茈静
这个作者很懒,什么都没留下…
展开
-
hdu 2199Can you solve this equation?(牛顿迭代法)
#include #include #include #define f(x) 8*x*x*x*x+7*x*x*x+2*x*x+3*x+6-y //f(x)= 0;f1(x)=f(x)';即f1(x)为f(x)的导数; #define f1(x) 32*x*x*x+21*x*x+4*x+3 using namespace std; #pragma comment(linker,"/STA原创 2013-11-15 21:59:23 · 1603 阅读 · 0 评论 -
HDU2899 Strange fuction(牛顿迭代法)
最近刚学完数值分析上的方程求根——牛顿法,所以做几题练习一下。 Problem Description Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 Can you find the minimum value when x is between 0 and 100.原创 2013-11-15 22:11:05 · 1560 阅读 · 0 评论