The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
388
Posted by: RJ | September 25, 2009 @ 2:47am
C++ Code
[
Download
]
#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); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.48 / 8
102 Votes
http://codebin.yi.org/393
page generated in 0.01 seconds