Download Bacteria_Source.zip - 35.3 KB

Introduction
Bacteria growth is a very important subject in microbiology
and medical science. There is formula for determining reproduced bacteria from
primary bacteria. In this formula we use log function, regeneration time and
period time.
Formula is:
Logb= t*log2+(g*loga)/g
That t is
period time,
Logb is reproduced bacteria,
Loga is primary bacteria
And g is regeneration time.
If t*log2+loga/g equals to Re, For calculate
b you must follow it. b= 10^Re.
I wrote a program in VC++6 that calculate reproduced
bacteria from primary bacteria. BacteriaGrowth method calculates it. This
method defined in BacteriaGrowth.h file inside _BACTERIA structure. In
this method nPrimary parameter is primary bacteria, reGenerationTime is
Regeneration time for reproducing one bacterium to two bacteria and PeriodTime
is total time for result.
Using the code
Source code is:
#include <windows.h>
#include <math.h>
typedef struct _BACTERIA
{
double BacteriaGrowth(ULONG nPrime,
ULONG reGenerationTime, ULONG Period);
}BACTERIA;
double BACTERIA::BacteriaGrowth(ULONG nPrimary,
ULONG reGenerationTime,ULONG PeriodTime)
{
double Num=0;
Num=(PeriodTime*log10(2)+(reGenerationTime*log10(nPrimary)))
/reGenerationTime;
return (double)powl(10,Num);
}
Points of Interest
BacteriaGrowth method is very useful for microbiology,
medical and nutrition laboratory. for example: 3 bacteria while 4 hours(240
minutes) and after 15 minutes reproduce 196608 bacteria.
History
Not update.
Copyright
This is my own code and No Copyright. So you can change or
distribute it freely.
Special Thanks
My mother and father.
Reference
Formula for determining reproduced bacteria is obtained from
"Food Microbiology, author: Abolfath shojai arani (Ph.D.). Tehran-
Iran 1376.
ISBN 964-4555-00-4".
Please visit my web blogs:
http://www.sci11.blogspot.com
(Visual C++& Mathematic)
http://www.sci12.blogspot.com
(Visual C++&Chemistry)