形式系统

计算机专业教学
posts - 48, comments - 150, trackbacks - 0, articles - 10
  教师博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

2006年4月21日

posted @ 2006-04-21 16:56 形式系统 阅读(1007) | 评论 (3)编辑 收藏

2008年10月7日

posted @ 2008-10-07 16:43 形式系统 阅读(228) | 评论 (0)编辑 收藏

2008年7月1日

posted @ 2008-07-01 16:36 形式系统 阅读(193) | 评论 (0)编辑 收藏

2008年6月23日

posted @ 2008-06-23 00:01 形式系统 阅读(280) | 评论 (2)编辑 收藏

     摘要: #include
#include

#define MAX 200

char dates[MAX][15];

double a[MAX]={12.3,12.6,12.5,12.4,11.2,13.2,12.3,14.3,15.5,13.4 };
double b05[MAX];
double b10[MAX];
double b20[MAX];

int i;

/* 求一个点的移动平均值 */
double avg(int pos, int r)
{ int i,j;
double s;

for(j=0;j<=r-1;j++)
s+=a[pos-r];
b[pos]=s/r;
/*printf("%10f",b[i]); */
return b[pos];
}

/* 求  阅读全文

posted @ 2008-06-23 00:00 形式系统 阅读(346) | 评论 (2)编辑 收藏

2008年6月22日

posted @ 2008-06-22 23:58 形式系统 阅读(351) | 评论 (4)编辑 收藏

2008年6月18日

posted @ 2008-06-18 20:25 形式系统 阅读(151) | 评论 (0)编辑 收藏

2008年4月13日

posted @ 2008-04-13 19:42 形式系统 阅读(223) | 评论 (0)编辑 收藏

2008年3月29日

posted @ 2008-03-29 20:35 形式系统 阅读(220) | 评论 (0)编辑 收藏

2008年1月10日

posted @ 2008-01-10 19:52 形式系统 阅读(382) | 评论 (0)编辑 收藏

2007年11月16日

posted @ 2007-11-16 19:05 形式系统 阅读(240) | 评论 (3)编辑 收藏