Python Forum
Some help with some calculus and fish
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some help with some calculus and fish
#1
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]

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 please
Here's my source document
Reply


Messages In This Thread
Some help with some calculus and fish - by agritheory - Aug-10-2018, 05:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculus in python pythonforumrocks 13 16,739 Mar-24-2017, 04:10 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020