the homework is to write a MATLAB code to solve an equation using newton method, fixed point method and graph the solution. the answer should be represented in table.
instructions:
Do not use Matlab built-in functions for the methods.
Use Matlab with the double precision IEEE arithmetic.
Use “disp” and “sprintf” to format the output.
Use %g or %e format to format the errors and very small numbers
Use the various options for the “plot” and “subplot” functions to produce professional graphs.
Use “hold” to combine graphs for comparison purpose. Use appropriate plot symbols and colors.
Project 1c for Chemical Engineering Students
The volume V of liquid in a hollow horizontal cylinder of radius r and length L is related
to the depth of the liquid h by
v = [r2cos-1 (5″) – (r = n)/2rh – h24
Determine h for the following data using Newton’s method. Use Tolerance Tol = 10-5
r
h
Iterations
V
8
15
10
L
5
6
12
2
4
5
Define a suitable equation as h = g(h) and use fixed point method to solve this problem
and complete the table for the above data values.
r
H
Iterations
V
8
15
10
L
5
6
12
2.
4
5
For each case, chose a suitable interval for h to sketch the graphs of f(h).