I'm writing some code to simulate a system of ODEs in Python and, as part of one of the ODEs, want to enter the natural logarithm of a function. However, I'm not able to find an appropriate way to do this, as it seems all the log/ln commands only work with numbers.
I've tried using math.log(x), np.log(x), and logn(e,x) while importing the necessary packages, but none of them seem to work.
#I've tried the following:
math.log(Amax/A)
np.log(Amax/A)
logn(e,Amax/A)