收藏 分享(赏)

方向相的同步图和程序---程兴超.doc

上传人:myw993772 文档编号:7151190 上传时间:2019-05-07 格式:DOC 页数:6 大小:4.05MB
下载 相关 举报
方向相的同步图和程序---程兴超.doc_第1页
第1页 / 共6页
方向相的同步图和程序---程兴超.doc_第2页
第2页 / 共6页
方向相的同步图和程序---程兴超.doc_第3页
第3页 / 共6页
方向相的同步图和程序---程兴超.doc_第4页
第4页 / 共6页
方向相的同步图和程序---程兴超.doc_第5页
第5页 / 共6页
点击查看更多>>
资源描述

1、20406080102040608010 -1.0-0.750-0.50-0.2500.00.2500.500.7501.020406080102040608010 -1.0-0.750-0.50-0.2500.00.2500.500.7501.03.20406080102040608010 0.900.92500.9500.97501.01.0251.051.0751.0.20406080102040608010 0.7600.7340.76080.7810.8150.84290.87030.89760.9250列列列.(一)前三幅图的程序program coupleimplicit non

2、ereal,parameter:e1=0.6,u=3.7integer,parameter:con=1real,dimension(100,100):x2,x3integer,dimension(100,100):x1integer i,j,t,time,kk=time()open(10,file=“output10.txt“)do j=1,100do i=1,100x2(i,j)=ran(k)end doend dodo t=1,20000 do j=1,100do i=1,1001 if(i=1.and.j=1)then x3(i,j)=u*x2(i,j)*(1-x2(i,j)+e1*u*

3、(x2(i+1,j)*(1-x2(i+1,j)+x2(100,j)*(1-x2(100,j)+x2(i,j+1)*(1-x2(i,j+1)+x2(i,100)*(1-x2(i,100)-4*x2(i,j)*(1-x2(i,j)/42 elseif(i=1.and.j=100)then x3(i,j)=u*x2(i,j)*(1-x2(i,j)+e1*u*(x2(i+1,j)*(1-x2(i+1,j)+x2(100,j)*(1-x2(100,j)+x2(i,1)*(1-x2(i,1)+x2(i,j-1)*(1-x2(i,j-1)-4*x2(i,j)*(1-x2(i,j)/43 elseif(i=1

4、00.and.j=1)thenx3(i,j)=u*x2(i,j)*(1-x2(i,j)+e1*u*(x2(1,j)*(1-x2(1,j)+x2(i-1,j)*(1-x2(i-1,j)+x2(i,j+1)*(1-x2(i,j+1)+x2(i,100)*(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j-1)*(1-x2(i,j-1)-4*x2(i,j)*(1-x2(i,j)/4end ifif(t=20000)thenif(x3(i,j)-x2(i,j)0)thenx1(i,j)=conelseif(x3(i,j)-x2(i,j)0)then! x1(i,j)=con! elseif(x3(i,j)-x2(i,j)0)then! x1(i,j)=-con! end if! end ifend doend do x2=x3end do write(10,“(100f12.9)“)x3write(*,“(100f12.9)“)x3close(10)pauseend

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报