Question: Solve part 1 and 2 19672/i Homework?preview 14247782 Dispersion algorithm MATLAB exercize Develop an iterative technique using the Newton Raphson technique to solve the dispersion
19672/i Homework?preview 14247782 Dispersion algorithm MATLAB exercize Develop an iterative technique using the Newton Raphson technique to solve the dispersion relationship for wave number k given angular frequency and water depth h. Part 1 Your code should consist of two components 1. A main code ("modelm"). At this stage, the main code only gencrates the depth vector, and calls the dispersion function from within this loop to solve for the wavenumber at every water depth for a given frequency. 2. A separate dispersion solver function, "wavenumber.am The dispersion solver should require h, and g as inputs and should return the wavenumber vector to the main program. The dispersion function should allow h to be a vector on input and return the wavenumber vector (ie. the wavenumber at a range of water depths for a wave of a given frequency), should be single valued. For the Newton-Raphson solution method given by the accuracy of the solution is controlled by the following condition:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
