Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python using import numpy as np!!!!! 3. The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation 1.575701x 105 6.642308

In Python using import numpy as np!!!!!
image text in transcribed
3. The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation 1.575701x 105 6.642308 x 107 T2 1.243800 x 1010 T3 8.621949 x 1011 In Osf--139.3411+ CI 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 Ttemperature (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.949 mg/L at 35C. Given a value of oxygen concentration, this formula and the bisection method can be used to solve for temperature in oC (a) Write a Python function to solve for the temperature using the secant method The function takes saturation concentration, initial guesses, and error tolerance as inputs. Record and output the error at each iteration step (b) Use your function to solve from the temperature at Osf 8, 10 and 14 mg/L. Error tolerance is 0.05 C. Notes: Use the known temperature-oxygen concentration pairs as the initial guesses (c) Draw the error vs iteration step for Oaf = 8 mg/L to see the speed of convergence 3. The saturation concentration of dissolved oxygen in freshwater can be calculated with the equation 1.575701x 105 6.642308 x 107 T2 1.243800 x 1010 T3 8.621949 x 1011 In Osf--139.3411+ CI 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 Ttemperature (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.949 mg/L at 35C. Given a value of oxygen concentration, this formula and the bisection method can be used to solve for temperature in oC (a) Write a Python function to solve for the temperature using the secant method The function takes saturation concentration, initial guesses, and error tolerance as inputs. Record and output the error at each iteration step (b) Use your function to solve from the temperature at Osf 8, 10 and 14 mg/L. Error tolerance is 0.05 C. Notes: Use the known temperature-oxygen concentration pairs as the initial guesses (c) Draw the error vs iteration step for Oaf = 8 mg/L to see the speed of convergence

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

Students also viewed these Databases questions

Question

were correct), and

Answered: 1 week ago