这个fortran的二维数组定义的有错吗?
题目
这个fortran的二维数组定义的有错吗?
REAL GROUP(7,3)=(/
&0.3,0.6,1.2,
&0.016,0.022,0.038,
&0.016,0.022,0.035,
&0.2,0.2,0.2,
&0.2,0.2,0.4,
&2,2,4,
&9,9,9
&/)
这样写行吗,也不行啊
REAL,DIMENSION(3,7)::group
group=(/
&0.3,0.6,1.2,
&0.016,0.022,0.038,
&0.016,0.022,0.035,
&0.2,0.2,0.2,
&0.2,0.2,0.4,
&2.0,2.0,4.0,
&9.0,9.0,9.0
&/)
报错.
错误1 error #6366: The shapes of the array expressions do not conform. [GROUP]E:workFortran_pracPartComposite_140415Part_Composite.for19
答案
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点