- #1

- 6

- 0

Hey everyone,

I am struggling to properly insert my simple model syntax in mathematica for a population growth.

The formula is as following:

Rate of growth over time = birth rate*N - death rate*N + net migration rate*N

I have been trying to add saturation to the model for the population N.

That's my syntax attached only with the birth Rate included. The graph I am getting is somewhat weird.

sol1 = NDSolve[{D[x[t],t]==r x[t] (1-x[t]/k), x[0]==100} /. {r->1.4, k-> 100000},x[t], {t,0,100}]

Plot[x[t] /. sol1, {t,0, 100}]

N/K is the saturation.

Also, sometimes with the same syntax inserted, there's an error popping up, see attachment 2.

thanks in advance for any help.

I am struggling to properly insert my simple model syntax in mathematica for a population growth.

The formula is as following:

Rate of growth over time = birth rate*N - death rate*N + net migration rate*N

I have been trying to add saturation to the model for the population N.

That's my syntax attached only with the birth Rate included. The graph I am getting is somewhat weird.

sol1 = NDSolve[{D[x[t],t]==r x[t] (1-x[t]/k), x[0]==100} /. {r->1.4, k-> 100000},x[t], {t,0,100}]

Plot[x[t] /. sol1, {t,0, 100}]

N/K is the saturation.

Also, sometimes with the same syntax inserted, there's an error popping up, see attachment 2.

thanks in advance for any help.