Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Matlab to code for the following question?: 5.18 The saturation concentration of dissolved oxygen in freshwa- ter can be calculated with the equation (APHA,
Use Matlab to code for the following question?:
5.18 The saturation concentration of dissolved oxygen in freshwa- ter can be calculated with the equation (APHA, 1992) 1.575701 x 105 6.642308 x 107 nosf- -139.34411 + 2 T. 1.243800 x 1010 8.621 949 X 1011 al where osf - the saturation concentration of dissolved oxygen in freshwater at 1 atm (mg/L) and Ta - absolute temperature (K). Remember that Ta -T + 273.15, where T- temperature (C). According to this equation, saturation decreases with increasing temperature. For typical natural waters in temperate climates, the equation can be used to determine that oxygen concentration ranges from 14.621 mg/L at 0C to 6.413 mg/L at 40C. Given a value of oxygen concentration, this formula and the bisection method can be used to solve for temperature in C (a) If the initial guesses are set as 0 and 40C, how many bisection iterations would be required to determine temperature to an absolute error of 0,05C? (b) Develop and test a bisection program to determine T as a func- tion of a given oxygen concentration to a prespecified absolute error as in (a). Given initial guesses of 0 and 40C, test your program for an absolute error - 0.05C and the following cases: of-8, 10, and 12 mg/L. Check your results 5.18 The saturation concentration of dissolved oxygen in freshwa- ter can be calculated with the equation (APHA, 1992) 1.575701 x 105 6.642308 x 107 nosf- -139.34411 + 2 T. 1.243800 x 1010 8.621 949 X 1011 al where osf - the saturation concentration of dissolved oxygen in freshwater at 1 atm (mg/L) and Ta - absolute temperature (K). Remember that Ta -T + 273.15, where T- temperature (C). According to this equation, saturation decreases with increasing temperature. For typical natural waters in temperate climates, the equation can be used to determine that oxygen concentration ranges from 14.621 mg/L at 0C to 6.413 mg/L at 40C. Given a value of oxygen concentration, this formula and the bisection method can be used to solve for temperature in C (a) If the initial guesses are set as 0 and 40C, how many bisection iterations would be required to determine temperature to an absolute error of 0,05C? (b) Develop and test a bisection program to determine T as a func- tion of a given oxygen concentration to a prespecified absolute error as in (a). Given initial guesses of 0 and 40C, test your program for an absolute error - 0.05C and the following cases: of-8, 10, and 12 mg/L. Check your resultsStep 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