Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3 0 solutions submitted ( max: 4 ) Create a script that projects population based on static: Birth Rate ( BR ) Death Rate

Problem 3
0 solutions submitted (max: 4)
Create a script that projects population based on static:
Birth Rate (BR)
Death Rate (DR)
Calculate a migration that varies sinesoidally with time. Migration is given by the function M(t)=Mbase+Mvar**sin(2**p**tTper), where Mbase is the base migration rate, Mvar is the variance in migration and Tper is the period in time over which it varies.
BR, DR, Mbase, Mvar, and Tper are provided at the start of the script template. The initial time (tinit), final time (tfinal), time step size (delt), and initial population (Pinit) are also provided. Please use P for the population variable name and M for the migration variable name. Create P and M as row vectors. Not following these conventions will result in an incorrect answer.
Once you have calculated P, plot P and M as a functions of time on a 21 subplot. Make sure to include axis labels and titles as this is good practice in plotting.
BR=.15;
DR=.09;
tinit =0;
tfinal =100;
delt =.5;
Pinit =400;
Mbase =0;
Mvar =2000;
Tper =10;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions