Question: Need working MATLAB code Problem #1. Root-Locating Methods: Consider the following non-linear equation for the friction factor, f, of a fluid flowing in a round
Problem #1. Root-Locating Methods: Consider the following non-linear equation for the friction factor, f, of a fluid flowing in a round pipe, 4log (Re-04 where Re is the so-called Reynolds number. You are asked to do the following: a) Develop a MATLAB script file to find the value of f when Re 25000 by using the graphic method. b) Check your answer by using 'fzero c) Write down the iteration algorithm of the secant method to solve for f d) Develop a MATLAB function file that can find f for any given Re (Re> 4000) by using the secant method. Use your function file developed in c) to make a plot showing the variation of fversus Re in the range of Re from 10000 to 500000. e)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
