Logistic Map

Hi, I need somehelp to build a programm for logistic map.
f(x)=xL(1-x) where L is fixed. I need to create an array and then save it as a file.
tr-trajectory

#include <fstream>
std:: ofstream out;
out. open( "logistic_map.txt"):
for (k=0; k<n; k++)
out << tr[k]<< "\n";
out. close();
What should be in the array tr?
Topic archived. No new replies allowed.