fortran的问题
programmianimplicitdoubleprecision(a-h,o-w)implicitdoublecomplex(x-z)dimension(4)::a=...
program mian
implicit double precision (a-h,o-w)
implicit double complex (x-z)
dimension(4) :: a=(/15.539616,3.599934,1.013762,0.270006/)
dimension(4) :: axh=(/0.070874,0.339753,0.727159,1.0/)
dimension(2) :: adh=(/-0.883671,1.53165/)
dimension(4) :: xc
pi=3.141592653
xc(1)=adh(1)*axh(1)*(2.0/a(1)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(1))
xc(2)=adh(1)*axh(2)*(2.0/a(2)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(2))
xc(3)=adh(1)*axh(1)*(2.0/a(3)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(3))
xc(4)=adh(1)*axh(1)*(2.0/a(4)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(4))
end
这个程序四个数组部分会出现提示
test\Text2.f(6):error FOR2588: Type declaration statement cannot occur here 展开
implicit double precision (a-h,o-w)
implicit double complex (x-z)
dimension(4) :: a=(/15.539616,3.599934,1.013762,0.270006/)
dimension(4) :: axh=(/0.070874,0.339753,0.727159,1.0/)
dimension(2) :: adh=(/-0.883671,1.53165/)
dimension(4) :: xc
pi=3.141592653
xc(1)=adh(1)*axh(1)*(2.0/a(1)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(1))
xc(2)=adh(1)*axh(2)*(2.0/a(2)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(2))
xc(3)=adh(1)*axh(1)*(2.0/a(3)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(3))
xc(4)=adh(1)*axh(1)*(2.0/a(4)/pi**3)**0.25
& *(-dcmplx(0.d0,1.d0)/2.0/a(4))
end
这个程序四个数组部分会出现提示
test\Text2.f(6):error FOR2588: Type declaration statement cannot occur here 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询