matlab中用牛顿法求方程的根
题目
matlab中用牛顿法求方程的根
用matlab求解以下问题:
用牛顿法求解方程x=e^-x在x0=0.5附近的根(ε=10^-5)
答案
代码如下:function rtn=newton1(fx,dfx,x0,tol,N)% Newton Method% The first parameter fx is a external function with respect to viable x.% The second parameter dfx is the first order diffential function ...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点