1道java的数学题目
小弟我刚接触java,现在老师规定要用java做题目..请各位指教
Test your newton() on the problem of solving f(x) = sinx -cos2x = 0
using an initial guess X=45 degrees. Note that the left hand side of this equation, f(x)=sinx-cs2x
and it derivative f'(x)=cosx+2sin2x are programmed as methods in the class F1. In all of your runs, you need leave the tol and maxIter parameters unchanges.
谢谢
文件我也上传了
http://www.freewebs.com/raphaelj/Newton.java
[此贴子已经被作者于2006-4-30 1:45:11编辑过]