#include <iostream>
#include <string>
/**
* This is a project for Physics 388 insert crap here... this is a deoxygen comment
*/
using namespace std;
/**
* Logistic function
*/
string logistic(double r, double x_0, int numIt);
int main (int argc, char * const argv[]) {
cout << logistic(0.99, 0.02, 1000) << endl;
return 0;
}
string logistic(double r, double x_0, int numIt)
{
double x_1 = 0;
if(0 == numIt)
return("All finsished");
else
{
x_1 = (r * x_0 * (1 - x_0));
cout << x_1 << endl;
logistic(r, x_1, numIt - 1);
}
}