1. #include <iostream>
  2. #include <string>
  3.  
  4. /**
  5.  * This is a project for Physics 388 insert crap here... this is a deoxygen comment
  6.  */
  7.  
  8. using namespace std;
  9.  
  10. /**
  11.  * Logistic function
  12.  */
  13. string logistic(double r, double x_0, int numIt);
  14.  
  15. int main (int argc, char * const argv[]) {
  16.  
  17. cout << logistic(0.99, 0.02, 1000) << endl;
  18.  
  19. return 0;
  20. }
  21.  
  22. string logistic(double r, double x_0, int numIt)
  23. {
  24. double x_1 = 0;
  25. if(0 == numIt)
  26. return("All finsished");
  27. else
  28. {
  29. x_1 = (r * x_0 * (1 - x_0));
  30. cout << x_1 << endl;
  31. logistic(r, x_1, numIt - 1);
  32. }
  33.  
  34. }