Aug-10-2018, 05:31 PM
(This post was last modified: Aug-10-2018, 05:34 PM by agritheory.)
Full disclosure, I've never taken calculus but I understand what I'm up against here. I need to return a list of values that represent the estimated weight of a fish on day n (index) based on the log of two inputs.
Growth from 35 to 258 g in 61 days yields the equation: ln(258) – ln(35) = tk
t is time in days; k is a rate constant (feed conversion ratio; lbs fed:lbs gained, which is not actually constant).
Anyway, this should end up with an inclined sigmoidal curve.
[Image: slide0019_image043.gif]
Growth from 35 to 258 g in 61 days yields the equation: ln(258) – ln(35) = tk
t is time in days; k is a rate constant (feed conversion ratio; lbs fed:lbs gained, which is not actually constant).
Anyway, this should end up with an inclined sigmoidal curve.
[Image: slide0019_image043.gif]
from math import log, exp start_weight = 35 end_weight = 258 t = 61 # k = ? # list comprehension return [log(end_weight) - log(start_weight) for x in range(0, t)] # some help here pleaseHere's my source document