Page 1 of 1

Population biology models

Posted: Mon Apr 21, 2014 3:56 pm
by deleted-208965
Hey guys!
I'm having trouble with my population biology module project. The demonstration only shows how to estimate a population using the modules in the program Matlab. I was hoping to program It in C programming language. If someone could just covert the given equation to C program capable that'd be great! Thanks!

Re: Population biology models

Posted: Sun Apr 27, 2014 5:52 pm
by deleted-71603
Hello. I assume you are talking about this project:
https://www.sciencebuddies.org/science- ... ml#summary

Is there a reason you want to do it in C and not MATLAB? I'm not familiar with C, but I am familiar with MATLAB. If there are experts knowledgeable in C, we won't write the program for you. We would want you to make an attempt and then ask questions when you are stuck. That's the fun of a science project...to learn something new!

If you are not already familiar with the C programming language, I recommend you stick with MATLAB, so that you have a clear example of the code. If you still want to do it in C, first try to write the program yourself. It looks like all you need to do in the program is define a few variables and write a couple of equations. If you're not familiar enough with either C or MATLAB, the basic help files should steer you in the right direction. Programming is not easy, but I bet you can get there with a little effort. Write back with your code if you are having problems.

Good luck!

Re: Population biology models

Posted: Wed Apr 30, 2014 9:52 am
by deleted-208965
Actually, I know C very well :) I messed around for a few more hours and think I figured it out! Here it is:

Pop5 = startPop + growthRate * (5 - startPop/CarryCap) * startPop;
Pop10 = startPop + growthRate * (10 - startPop/CarryCap) * startPop;
Pop15 = startPop + growthRate * (15 - startPop/CarryCap) * startPop;
Pop20 = startPop + growthRate * (20 - startPop/CarryCap) * startPop;
Pop25 = startPop + growthRate * (25 - startPop/CarryCap) * startPop;
just
printf("%d", pop5);
and so on.
Thanks anyways Dcnick96!
:D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

Re: Population biology models

Posted: Thu May 01, 2014 5:46 am
by deleted-71603
Good luck!

Re: Population biology models

Posted: Fri Jul 18, 2014 2:58 am
by seijimax
C has absolutely no numerical processing library and I would never suggest that you use it. You will be better off using mathematica (trial/purchase). If you want a cost-free option you should look into octave and sage.