Python This simulates the population of fish. Use this to generate a plot with a numerical solution and the exact solution on the same plot axes for model parameters, P_m = 20,000 fish with a birth rate of b=6%, a harvesting rate of h=4%, a change in t=0.5 and y_0=5000

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter1: Fundamentals Of C++ Programming
Section: Chapter Questions
Problem 2PP: (Conversion) An object’s polar moment of inertia, J, represents its resistance to twisting. For a...
icon
Related questions
Question

Python

This simulates the population of fish. Use this to generate a plot with a numerical solution and the exact solution on the same plot axes for model parameters, P_m = 20,000 fish with a birth rate of b=6%, a harvesting rate of h=4%, a change in t=0.5 and y_0=5000  

The differential equation has an exact solution
yo PM (h-b)
(PM(h-b) + byo)e(h-b)t - byo
y(t) =
Transcribed Image Text:The differential equation has an exact solution yo PM (h-b) (PM(h-b) + byo)e(h-b)t - byo y(t) =
with yo as the initial population of fish. Use this to generate a plot
of the numerical solution and the exact solution on the same plot axes
for model parameters PM = 20,000 fish with a birth rate of 6% and a
harvesting rate of h = 4% and At = 0.5 and yo = 5000.
Transcribed Image Text:with yo as the initial population of fish. Use this to generate a plot of the numerical solution and the exact solution on the same plot axes for model parameters PM = 20,000 fish with a birth rate of 6% and a harvesting rate of h = 4% and At = 0.5 and yo = 5000.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Fibonacci algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole