Question: Using Thonny sove this python question. Question 1 (Total 25 marks] A chemical compound decays over time when exposed to air. The differential equation for

Using Thonny sove this python question.Using Thonny sove this python question. Question 1 (Total 25 marks] A

Question 1 (Total 25 marks] A chemical compound decays over time when exposed to air. The differential equation for its instantaneous concentration n is given by: dn -0.8n1.5 +10n1 (1 |-e-3t) (1) where n1 = 2000. The concentration when initially exposed to air is 2000. Write a Python script that finds the concentration n every 0.01 s for the first 0.2 s. The script must adhere to the following constraints: a) Using equation 1, create an appropriate function to calculate de [8 marks] b) Write a script that solves for the concentration n using the Euler method. [6 marks] c) Output the results in an appropriate table. Output the concentration to one decimal place. [4 marks] d) Plot the results on a graph. Label the graph appropriately. [4 marks] e) All code should be clearly laid out according to Python conventions, i.e. appropriate variable and function names, proper indentation of code, appropriate commenting. [3 mar

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!