Chinaunix首页 | 论坛 | 博客
  • 博客访问: 591928
  • 博文数量: 149
  • 博客积分: 7191
  • 博客等级: 少将
  • 技术积分: 1561
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-19 14:15
文章分类

全部博文(149)

文章存档

2013年(1)

2011年(2)

2010年(14)

2009年(29)

2008年(26)

2007年(31)

2006年(32)

2005年(14)

分类: C/C++

2006-11-11 21:13:58

/* 本程序针对上海交通大学 用非线性电路研究混沌现象 编写.
* 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;
}
阅读(2307) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~