UVa10341 Solve It
摘要:
对函数求一阶导数, 0 ) puts ("No solution" ); else { double x = 0, y = 1, m; while ( y-x > eps ) { m = x + (y-x)/2; if ( f(m) 0 ) x = m; else y = m; } printf ( "%.4lf\n", x ); } 阅读全文
posted @ 2013-06-26 18:38 Ac_coral 阅读(171) 评论(0) 推荐(0) 编辑