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