Menu

Please Write Python Send Picture Code Well Written Code Thank Q43869947

Problems to be solved using Python 1. Write a Python algorithm that evaluates y (t) = f(y,t) y(a) = yo using a first order T

Please write in python, and send a picture of the code as wellas written code. Thank you!

Problems to be solved using Python 1. Write a Python algorithm that evaluates y’ (t) = f(y,t) y(a) = yo using a first order Taylor series expansion to approximate the derivative and f(y,t) = y – t? +1, with y(0) = 0.5 (i.e., a = 0 and yo = 0.5). Derive the analytical solution and plot your computed results together with the analytical solution for te (0,5). Comment your code to explain the key steps. Report the time step size (i.e., At) used to achieve a reasonably accurate answer. Engineering Problem dt Consider that the chemical reaction A + B proceeds in a stirred tank according to the following kinetic relationship LA =-kA A(0) = 1 Here k is the rate constant set at k = 0.5. Solve this problem with Python using a first order Taylor series expansion to approximate the derivative and plot the computed At). Approx- imate, using graphical means, the time required for A to diminish to half of its initial value. In a 150 word description indicate the method used to ensure that the numerical estimate is correct. Show transcribed image text Problems to be solved using Python 1. Write a Python algorithm that evaluates y’ (t) = f(y,t) y(a) = yo using a first order Taylor series expansion to approximate the derivative and f(y,t) = y – t? +1, with y(0) = 0.5 (i.e., a = 0 and yo = 0.5). Derive the analytical solution and plot your computed results together with the analytical solution for te (0,5). Comment your code to explain the key steps. Report the time step size (i.e., At) used to achieve a reasonably accurate answer. Engineering Problem dt Consider that the chemical reaction A + B proceeds in a stirred tank according to the following kinetic relationship LA =-kA A(0) = 1 Here k is the rate constant set at k = 0.5. Solve this problem with Python using a first order Taylor series expansion to approximate the derivative and plot the computed At). Approx- imate, using graphical means, the time required for A to diminish to half of its initial value. In a 150 word description indicate the method used to ensure that the numerical estimate is correct.

Expert Answer


Answer to Please write in python, and send a picture of the code as well as written code. Thank you!…

OR