% temparature
T=[0 5 10 15 20 25 30];
% oxygen concentration for chloride concentration 0 g/L
C0=[14.6 12.8 11.3 10.1 9.09 8.26 7.56];
% oxygen concentration for chloride concentration 10 g/L
C10=[12.9 11.3 10.1 9.03 8.17 7.46 6.85];
% oxygen concentration for chloride concentration 20 g/L
C20=[11.4 10.3 8.96 8.08 7.35 6.73 6.20];
% set all chloride concentration
C=[linspace(0,0,length(T)) linspace(10,10,length(T))
linspace(20,20,length(T))];
% set time
T=[T T T];
% set all oxygen concentration
O=[C0 C10 C20];
% define a fitting function for O = f3(T) + f1(C)
myfun =fittype(@(a,b,c,d,e,cValue,TValue) a*TValue.^3+b*TValue.^2+c*TValue+d+e*cValue, 'ind', {'cValue' 'TValue'},'dep','z');
% plynomial fitting
P=fit([T',C'],O',myfun);
% display polynomial curve
disp(P);
% get value of oxygen concentration
v=P(15,12);
% relative error
error=abs(v-9.09);
fprintf('\nRelative error is %.4f\n',error);
matlab please TABLE P15.5 Dissolved oxygen concentration in water as a function of temperature (°C) and...
The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation, ln Osf = −139.34411 + 1.575701 × 105 Ta − 6.642308 × 107 T2 a + 1.243800 × 1010 T3 a − 8.621949 × 1011 T4 where Osf is the saturation concentration of dissolved oxygen in freshwater at 1 atm (mg/L) and Ta is the absolute temperature in Kelvin (K), where Ta = T + 273.15, where T is the temperature in Celsius (oC). According to...
Calculate the concentration in units of mg/L for oxygen dissolved in 1050.0 mL of water at 25 °C, if the partial pressure of O2 in gas phase in equilibrium with the water is 238.1 mm Hg. Assume the density of water =1 g/mL
by matlab 2. The following data defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T0 8 16 24 32 14.621 11.843 9.870 8.418 7.305 Write a MATLAB code for Lagrange Interpolation to find 1st degree and 2nd degree polyno- mial approximation to the value of 0(27). 2. The following data defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T0 8 16 24 32 14.621 11.843 9.870...
the equilibrium concentration of dissolved oxygen jn mg/L in Lake Titicaca. The elevation is 3.850 m (atmospheric pressure = 0.62 atm)? Assume T-20 °C and K 0.62 atm)? Assume T-20 °C and Kn730 atm-L/mol. What would the concentration be with the same temperature at sea level? Explain the significance of this equation for a) developing and b) developed countries: 1 - (P)(A)(T)
I need the Matlab code please. Problem Statement #2: ds (c) using the To the same initial guesses as in (b). 5.9) The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation 1.575701 x 105 In of =-139.3441144 20 34411 + - Ta where mum const! of the 1.243800 x 100 6.642308 x 107 1 = 1 72 8.621949 x 1011 Deva ks = 5.12 car where Oxf = the saturation concentration of dissolved oxy- gen...
Determine the minimum dissolved oxygen (DO) concentration in a river downstream from a wastewater treatment plant (WWTP) discharging at a flow rate of 5.00 million gallons per day (MGD). The WWTP achieves secondary treatment standards (BOD5 = 30 mg/L). The wastewater temperature is 25.0 °C and contains 4.0 mg/L of DO. The characteristics of the river upstream from the point of discharge are Q=20.0 cubic feet per second (cfs), T = 20.0°C, BODu = 3.0 mg/L. and DO = 7.0...
5, 7, and 8 please! 5. What mass of calcium chloride must be dissolved in water to renare 200 mL of a solution with concentration of 0.50 M? 6. What is the coefficient for oxygen when this equation is balanced? HS(g) + 20 (8) SO(g) + H2O(l) (B)3 (C)4 (D) 5 7. Ammonia is prepared by the Haber Process. N2 +3 H2< =>2 NHỊ If 2.0 mol of N, and 3.0 mol of Hare combined together, what is the percent...
An aqueous CaCl2 solution has a vapor pressure of 80.2 mmHg at 50 ∘C. The vapor pressure of pure water at this temperature is 92.6 mmHg. What is the concentration of CaCl2 in mass percent? A hypothetical solution forms between a solid and a liquid. The values of the thermodynamic quantities involved in the process are shown in the following table. Action Enthalpy separation of solute 11.5 kJ/mol separation of solvent 21.8 kJ/mol formation of solute-solvent interactions -86.7 kJ/mol solute...
The following primary standards can be used for the standardization of bases except. a. Benzoic acid b. Oxalic acid c. CaCO3 d. KHP A solution that may contain NaOH, Na 2CO3, and NaHCO3, alone or in compatible combination was titrated with 0.1200 M HCl. The volume of the acid required to reach the phenolphthalein endpoint was 25.67 mL while 38.13 mL to reach the methyl red endpoint. What are the components of the mixture? a. Na2CO3 only b. NaOH only...
10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...