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

  • <center id="usuqs"></center>
  • 
    
  • matlab畫圖:用二分法求方程x^3cosx+6sin^5x-3=0

    matlab畫圖:用二分法求方程x^3cosx+6sin^5x-3=0
    其他人氣:273 ℃時(shí)間:2020-03-27 16:12:13
    優(yōu)質(zhì)解答
    用二分法,你得先找出一個(gè)根所在的區(qū)間
    function [a,b]=findbracket(f,x0)
    %f is the function evaluated
    %x0 is the starting point
    %a is the left boundary
    %b is the right boundary
    %[a,b] is the interval around x0 wanted
    a=x0;
    b=x0;
    dx=0.001;
    while f(a)*f(b)>0
    a=a-dx;
    if f(a)*f(b) f=@(x)(x^3)*cos(x)+6*(sin(x))^5-3
    f =
    @(x)(x^3)*cos(x)+6*(sin(x))^5-3
    >> [a,b]=findbracket(f,1)
    a =
    0.9850
    b =
    1.0070
    所以在這個(gè)區(qū)間內(nèi)有一個(gè)根,然后再用二分法精確到0.00001
    >> p=bisection(f,a,b,1e-5)
    p =
    0.9919
    這是一個(gè)根
    我來(lái)回答
    類似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版