精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • matlab求解 sin(x)=x*(1/3)的非0解

    matlab求解 sin(x)=x*(1/3)的非0解
    要數(shù)值解或解析解;別畫(huà)圖;重謝
    數(shù)學(xué)人氣:499 ℃時(shí)間:2020-05-26 20:01:53
    優(yōu)質(zhì)解答
    >> syms x;f=inline('sin(x)-x*(1/3)')
    f =
    Inline function:
    f(x) = sin(x)-x*(1/3)
    >> fplot(f,[-10,10])
    >> grid
    由圖像可以看出在[-4,-2]和[2,4]之間有兩個(gè)非零解,所以使用下面兩條命令
    >> [xroot,y]=fsolve(f,[2,4],1e-5)
    Optimization terminated:first-order optimality is less than options.TolFun.
    xroot =
    2.278862660075828 2.278862660076503
    y =
    1.0e-012 *
    0 -0.663136212608606
    >> [xroot,y]=fsolve(f,[-4,-2],1e-5)
    Optimization terminated:first-order optimality is less than options.TolFun.
    xroot =
    -2.278862660076468 -2.278862660075828
    y =
    1.0e-012 *
    0.629607477264926 0
    注意這里最終結(jié)果xroot是最終的區(qū)間(精度為1e-5),也就是說(shuō)方程的根在[2.278862660075828 2.278862660076503]之間,y是把該值代入f得到的函數(shù)值.
    我來(lái)回答
    類(lèi)似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版