已知60=x*2*sin(pi*74/(4*x)),用matlab解此方程的语句该怎么写?
答案:2 悬赏:70 手机版
解决时间 2021-02-19 19:02
- 提问者网友:咪咪
- 2021-02-19 13:37
已知60=x*2*sin(pi*74/(4*x)),用matlab解此方程的语句该怎么写?
最佳答案
- 五星知识达人网友:玩世
- 2021-02-19 14:16
solve('60=x*2*sin(pi*74/(4*x))')ans =-31.281066120310786755821961868485不过函数是偶函数,31.281066120310786755821961868485也因该是一个解,通过绘图也可以看出 已知60=x*2*sin(pi*74/(4*x)),用matlab解此方程的语句该怎么写?(图1)答案网 www.Zqnf.com 答案网 www.Zqnf.com 当然也可以用数值方法,但是对初值的依赖很大,你可以先绘图大致确定解的位置.在图可以看出解大约在30和-30左右所以有以下程序>> f=@(x)60-x*2*sin(pi*74/(4*x));>> fsolve(f,-30)Equation solved.fsolve completed because the vector of function values is near zeroas measured by the default value of the function tolerance,andthe problem appears regular as measured by the gradient.<stopping criteria details>ans = -31.2811>> fsolve(f,30)Equation solved.fsolve completed because the vector of function values is near zeroas measured by the default value of the function tolerance,andthe problem appears regular as measured by the gradient.<stopping criteria details>ans = 31.2811
全部回答
- 1楼网友:持酒劝斜阳
- 2021-02-19 15:11
我检查一下我的答案
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯