+1 (347) 474-1028 info@essayparlour.com

loop control structure and an incremental direct search a…

Academic Writing Advanced Maths loop control structure and an incremental direct search a…

Advanced Maths

loop control structure and an incremental direct search a…

loop control structure and an incremental direct search a… Show more MATLAB function file HELP PLS! Use a while loop control structure and an incremental direct search algorithm to find an approx. value for the first positive root of the equation y=a*sin(bx^2+cx+d). fuction root=search(a,b,c,d,deltax) in which deltax is the increment of x to be used in the search. You may assume tht the values of all input arguments passed to your function are valid double precision real numbers and that a positive root for the function does exist. You may assume that the input value of deltax is sufficienlty small that the search interval will contain at most one root. The output argument root returned by your program is defined as the midpoint of the final deltax interval that contrains the root. Within these assumptions, your program must be general in the sense that it will work for any combination of values for a,b,c,and d. You may use the MATLAB built in sin function for solving this problem, but you may not use any of the built in root finding functions. hint- you will have to cross the x-axis there is a sign change in y-i.e. when the product yi-1*yi is less than or equal to 0. BONUS: Have your program correctly generates an x-y plot that shoes the first positive root of the specified function. • Show less

Order Now

Ready to try a high quality writing service? Get a discount here