Here are the help notes to clarify some points of lab-8.
In [ ]:
#FORGET ABOUT THE subs function. We will not be using it for this lab.#Instead, we shall find the expression for the derivative (using the diff function)#However, we shall store that expression as a mathematical function of some dummy variable, say P. Let's see.
Nprime(N)=0.2*N*(1-N/200)*(N/100-1)#Let us see what diff function does:print(diff(Nprime))
#16.defstability(chng_eqn,eql_list):derXprime(P)=diff(chng_eqn(P))#Converts the derivative of chng_eqn into a mathematical function named derXprime.foreqineql_list:val=derXprime(eq)ifval<0:print("STABLE")elifval>0:print("UNSTABLE")else:print("TEST FAILS")