Question

The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation: In osf - -139.34411 +1.57
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below are the codes to your question

clc
clear all
close all
osf=@(T) exp(-139.34411 +1.575701*(10^5)/T-6.642308*(10^7)/(T^2)+1.243800*(10^10)/(T^3)-8.621949*(10^11)/(T^4));
fplot(osf,[273,308]);
nOsf=@(T) exp(-139.34411 +1.575701*(10^5)/T-6.642308*(10^7)/(T^2)+1.243800*(10^10)/(T^3)-8.621949*(10^11)/(T^4))-10;
pt=fzero(nOsf,280);
hold on;
plot(pt,10,'*k');
title('osf vs Ta');
xlabel('Ta');
ylabel('osf');

Figure 1 File Edit View nsert Iools Desktop Window Help osf vs Ta 15 14 13 12 10 275 280 285 290 295 300 305 та O Type here t

b)

clc
clear all
close all
f=@(T) exp(-139.34411 +1.575701*(10^5)/T-6.642308*(10^7)/(T^2)+1.243800*(10^10)/(T^3)-8.621949*(10^11)/(T^4))-10;
fplot(f,[273,308]);
pt=fzero(f,280);
hold on;
plot(pt,0,'*k');
title('f vs Ta');
xlabel('Ta');
ylabel('f(Ta)');

Figure 1 File Edit View nsert Iools Desktop Window Help fvs Ta 2 -2 275 280 285 290 295 300 305 Ta O Type here to search ^ 口痰

c)

clear all
clc
f = @(T) exp(-139.34411 +1.575701*(10^5)/T-6.642308*(10^7)/(T^2)+1.243800*(10^10)/(T^3)-8.621949*(10^11)/(T^4))-10;
a=280;
b=300;
iter = 0;
e=0.05;
if f(a)*f(b)>=0

                disp('No Root')

else

                prev = (a+b)/2;
                p=a;
                while (abs(p-fzero(f,280))>e)
                    prev=p;

                                 iter =iter+ 1;

                                p = (a+b)/2;

                                if f(p) == 0

                                                break;

                                end

                                if f(a)*f(p)<0

                                                b = p;

                                else

                                                a = p;

                                end

                end

end
    fprintf('Total Iterations %d, root=%2.8f\n',iter,p);

clear all 2 -cl 3- @ (T) +1.575701(10^5) /T-6.642308*(10^7)/ (T21+1.243800*(10^10) / (T^3)-8.621949 (10^11)/ (T-4))-10: f

f)

=================================

Bisect method

==================================

clear all
clc
f = @(T) exp(-139.34411 +1.575701*(10^5)/T-6.642308*(10^7)/(T^2)+1.243800*(10^10)/(T^3)-8.621949*(10^11)/(T^4))-10;
a=280;
b=300;
iter = 0;
e=0.05;
if f(a)*f(b)>=0

                disp('No Root')

else

                prev = (a+b)/2;
                p=a;
               for iter=1:4
                    prev=p;

                              

                                p = (a+b)/2;

                                if f(p) == 0

                                                break;

                                end

                                if f(a)*f(p)<0

                                                b = p;

                                else

                                                a = p;

                                end

                end

end
    fprintf('Total Iterations %d, root=%2.8f\n',iter,p);

==============================

False position method

==============================

clc

f = @(T) exp(-139.34411 +1.575701*(10^5)/T-6.642308*(10^7)/(T^2)+1.243800*(10^10)/(T^3)-8.621949*(10^11)/(T^4))-10;
x0=280;
x1=300;
i=0;
imax=20;
x2=300;
for i=1:4
if(i~=1)
    x1=x2;
    end
    x2=x1-((f(x1)/(f(x1)-f(x0)))*(x1-x0));
    x0=x1;
end
    fprintf('Total Iteration %d, root=%2.8f\n',i,x2);

7 imax=20; x2-300; for i=1 : 4 10- 12- 13- 14- 15- 16 - Command Window x2-x1- ((f (xl)/ (f (xl)-f (x0))) x0=x1 ; (xl-x0)) fpr

Add a comment
Know the answer?
Add Answer to:
The saturation concentration of dissolved oxygen in freshwater can be calculated with the equatio...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation, ln Osf...

    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...

  • Need the solution in Matlab MU UUNIUI) in the tex the same initial guesses as in...

    Need the solution in Matlab MU UUNIUI) in the tex 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 03 = -139.34411 + 5 6.642308 x 107 1.243800 x 1010 + 72 8.621949 x 1011 where Oss = the saturation concentration of dissolved oxy- gen in freshwater at 1 atm (mg L-'); and T, = absolute temperature (K). Remember that Ta = 1...

  • I need the Matlab code please. Problem Statement #2: ds (c) using the To the same...

    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...

  • matlab please TABLE P15.5 Dissolved oxygen concentration in water as a function of temperature (°C) and...

    matlab please TABLE P15.5 Dissolved oxygen concentration in water as a function of temperature (°C) and chloride concentration (O/L). Dissolved Oxygen (mg/L) for Temperature (C) and Concentration of Chloride (g/L) C=Og/L c=10 g/l c=20 g/L 14.6 12.9 11.4 12.8 11.3 10.3 11.3 10.1 8.96 10.1 9.03 8.08 9.09 8.17 7.35 8.26 7.46 6.73 6.85 6.20 1.56 the percent relative error for your prediction. Explain pos sible causes for the discrepancy. 15.7 As compared with the models from Probs. 15.5 and...

  • the equilibrium concentration of dissolved oxygen jn mg/L in Lake Titicaca. The elevation is 3.850 m...

    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)

  • QUESTION 3 a) After a point of wastewater discharge, the dissolved oxygen (DO) concentration is found...

    QUESTION 3 a) After a point of wastewater discharge, the dissolved oxygen (DO) concentration is found as 83.33% of the saturation DO. The remaining BOD after 5 days at the point of discharge is 10.13 mg/L. The BOD rate constant determined in the laboratory under standard conditions is 0.115/day. The saturation DO concentration in the river water is 9 mg/L. The deoxygenation and the reaeration rate coefficients are 0.25/day and 0.45/day, respectively. The river travels at a velocity of 0.12...

  • 74 Percent Concentration -The amount of solute dissolved in a fixed amount of solvent is called the concentration of th...

    74 Percent Concentration -The amount of solute dissolved in a fixed amount of solvent is called the concentration of the solution. Concentrations are typically expressed as Mass al.) (% m/m) which is the mass of the solute (g) divided by the mass of the solution [solute+ solvent] (g)x 1000/0; or as Volume ol.) (% v/v ) which is the volume of the solute in a fixed volume of solution (1O0mL of solution) x 1000/0; or less commonly in the laboratory,...

  • Based on question 2, how would you go about solving question number 9? Please solve question...

    Based on question 2, how would you go about solving question number 9? Please solve question number 2 and 3 if possible. 2. (10 points) A groundwater in California has the following water quality characteristics. From the analysis shown below, determine the total hardness, carbonate hardness and noncarbonate hardness of the groundwater. Express your answers in units of mg/L as CaCO3 and as meq/L. Constituent Units Concentration or Value 10 90 40 30 10 3.1 Carbon Dioxide (CO2) Calcium (Ca2+)...

  • From the data table determine the rate law for reactions 1-4 and calculate the value of...

    From the data table determine the rate law for reactions 1-4 and calculate the value of k for each. Thanks I-IV BACKGROUND INFORMATION Given: 3% H2O2 Concentration= 0.88M & 1.5% H2O2 Concentration= 0.44 M •Calculation of H2O2 after mixing for parts I,II, IV= 0.704 M •Calculation of I^- after mixing for parts I,II, IV= 0.10 M •Calculation of Initial (mol/L-s) Filled in Table Now the solutions for Rate Order and Rate Constant are needed Reactants 8 ml 30% HO, 2...

  • reply ma as soon as possible 120 points total Due: October 23, 2019 Budget your time...

    reply ma as soon as possible 120 points total Due: October 23, 2019 Budget your time carefully TRUE OR FALSE (45 points - 3 points cach): Mark whether the statements as written are "true" or "false". If the statement is false, make minor changes to the statement so that the statement is true. The primary adverse health effect resulting from the disposal of mercury wastes into Minamata Bay was dysentery The flow regime in horizontal velocity grit chambers approaches continuous...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT