Question
using matlab, please answer what you can. In a chemical engineering process, water vapor (H2O) is heated to sufficiently high temperatures that a significant portion
using matlab, please answer what you can.
In a chemical engineering process, water vapor (H2O) is heated to sufficiently high temperatures that a significant portion of the water dissociates, or splits apart, to form oxygen (O2) and hydrogen (H2).
If it is assumed that this is the only reaction involved, the mole fraction, x, of H2O that dissociates can be represented by:
Where K is the reactions equilibrium constant and pt is the total pressure of the mixture.
QUESTIONS:
1. Write two function files which perform the bisection and modified secant methods separately. The bisection-method function you write must perform the search for the root in the upper bracket.
2. Assume pt to be 3.5 find the value of x when K=0.04. Plot the function that you are solving. Then prompt the user to enter a lower and upper limit. If the initial guesses do not bracket a root, your m-file should continue to prompt the user for new guesses until valid guesses are provided. Perform the bisection method using the function file written in part A with a precision of 1e-4 to find the root of the profile and print the root value.
2pt 1 x 2 xStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started