solve using newton method
and fix point
then sketch
the full detail in the photo
((the code should be at basic level))
Project lb for Chemical Engineering Students
In a chemical engineering process, water vapor (H20) is heated to sufficiently high
temperatures that a significant portion of the water dissociates, or splits apart, to form
oxygen (O2) and hydrogen (H):
H,0 = H2 +202
If it is assumed that this is the only reaction involved, the mole fraction x of H,0 that
dissociates can be represented by
2pc
x
K=
-x2+x
where K = the reaction equilibrium constant and pe=the total pressure of the mixture. If
K=0.05, determine the value of x that satisfies the above equation for the following
values of pt = 3, 5, 7, 10.
Use Newton’s method. Use Tolerance Tol = 10-5
X
Iterations
Pt
3
5
7
10
Define a suitable equation as x = g(x) and use fixed point method to solve this problem
and complete the table.
X
P:
Iterations
3
5
7
10
For each pressure value, chose a suitable interval for x to sketch the graphs of f(x).