Question: import math import matplotlib.pyplot as plt def func(t,s): f= 8 - 0.7 * t + 2.5 * math.log(8/s) s = f return s t=5 terms=[]

import math import matplotlib.pyplot as plt def func(t,s): f= 8 - 0.7 * t + 2.5 * math.log(8/s) s = f return s t=5 terms=[] output=[] for i in range(1,t): terms.append(i) output=func(i,s) plt.plot(terms, output, '-bx') plt.xlabel('Number of Terms') plt.ylabel('output')

#Continue to obtain syntax error --s as undefined (Using Python). # S = So -vmt + Ks ln(So/S) #Question is to develop an M-file to generate a plot of S versus t for the case where So=8 moles/L, vm=0.7 moles/L/d, and ks = 2.5 moles/L

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!