/* 本程序针对上海交通大学 用非线性电路研究混沌现象 编写.
* This program is written by 张浩.
* StudentID: 5050309640
* ClassID: F0503023
* Date: 2006-10-17
*/
#include
#include
int main()
{
ofstream out("result.txt");
double k=0.0, x=5.0;
int i;
for(k=0.1; k<2.1;k+=0.01)
{
for(i=0;i<500;i++)
x=1-k*x*x;
for(i=1;i<300;i++)
{
x=1-k*x*x;
out< // "char(0x20)" & "char(0x09)" are used to seperate k and x
// when k and x are copied to an excel file.
}
}
cout<<"This program is written by Zhang Hao,"< cout<<"the result has been outputed into text."< return 0;
}
阅读(2336) | 评论(2) | 转发(0) |