fortran 找错program eepreal::u1,u0,n,Ei(5),sum,x(5)integer::max=20parameter(eps=1e-10,y=0.577215665)write(*,100) '请输入x的值' !x=0.5000,0.5234,0.7635,1.2536,2.5000,2.7865,3.3500read*,x100 format(2x,f7.4)u0=-x;n=1;sum=u0do while(u1-u0>eps)u1

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 15:09:22

fortran 找错program eepreal::u1,u0,n,Ei(5),sum,x(5)integer::max=20parameter(eps=1e-10,y=0.577215665)write(*,100) '请输入x的值' !x=0.5000,0.5234,0.7635,1.2536,2.5000,2.7865,3.3500read*,x100 format(2x,f7.4)u0=-x;n=1;sum=u0do while(u1-u0>eps)u1
fortran 找错
program eep
real::u1,u0,n,Ei(5),sum,x(5)
integer::max=20
parameter(eps=1e-10,y=0.577215665)
write(*,100) '请输入x的值' !x=0.5000,0.5234,0.7635,1.2536,2.5000,2.7865,3.3500
read*,x
100 format(2x,f7.4)
u0=-x;n=1;sum=u0
do while(u1-u0>eps)
u1=-uo*n*x/((n+1)*(n+1))
sum=sum+u1
n=n+1
end do
Ei=y+lnx+sum
write(*,200) '结果为:',Ei
200 format(1x,f10.6)
end

fortran 找错program eepreal::u1,u0,n,Ei(5),sum,x(5)integer::max=20parameter(eps=1e-10,y=0.577215665)write(*,100) '请输入x的值' !x=0.5000,0.5234,0.7635,1.2536,2.5000,2.7865,3.3500read*,x100 format(2x,f7.4)u0=-x;n=1;sum=u0do while(u1-u0>eps)u1
我完全看不懂你的意图,所以无法完全给你修改正确.
首先,你先确定一下,u1,u0 是什么含义?x 是什么含义?Ei 是什么含义?他们分别是数组,还是单变量?
不管怎么样
u0=-x;n=1;sum=u0
u0 是单变量,它不能等于一个数组 x
u1=-uo*n*x/((n+1)*(n+1))
u1 也是单变量,它不能等于一个数组 x 的运算结果

fortran fortran 找错program eepreal::u1,u0,n,Ei(5),sum,x(5)integer::max=20parameter(eps=1e-10,y=0.577215665)write(*,100) '请输入x的值' !x=0.5000,0.5234,0.7635,1.2536,2.5000,2.7865,3.3500read*,x100 format(2x,f7.4)u0=-x;n=1;sum=u0do while(u1-u0>eps)u1 fortran求找错program dsdimplicit nonereal(8) ::a(2,2)data a/1,3,2,4/call brinv(a,2)print*,aend program dsdsubroutine brinv(a,n)dimension a(n,n),is(n),js(n)double precision a,t,dl=1do 100 k=1,nd=0.0do 10 i=k,ndo 10 j=k,nif(abs(a(i,j)).gt.d) thend=a fortran ran函数如下语句program ranimplicit noneinteger i do i=1,1000print*,i,ran()enddoend program编译通不过去 是什么原因 我用的fortran 90 想用随机函数 如何知道自己编写的fortran程序哪里错了program mainimplicit nonereal::x,yread*,xif(x>=0.and.x program k1 real i do 99 i=1.10,5 print *,i,i*i 99 Continue end fortran程序,do 99 i=1.10,5 fortran语言问题求大神解答.大学95版.Program testImplicit noneInteger::sum,isum=0.0do i=1,203,2sum=sum+iend dowrite(*,*)iend FORTRAN中的错误forrtl:severe:Program Exception-array bounds exceeded固定格式 program mainIMPLICIT NONEDOUBLE PRECISION::XJ1,XJ2,XJ3,XM1,XM2,XM3DOUBLE PRECISION ,EXTERNAL::S3JDOUBLEPRECISION::JM,J12,J13,J23,J,JM11,JM12,JM21,JM22,JM31,JM32DOUBL fortran一个小程序,有两个错误.This line is comment line.PROGRAM 1DOUBLE PRECISION,PARAMETER::PI=3.1415926DOUBLE PRECISION R,SREAD *,RS=PI*(R**2)WRITE(*,*) SEND PROGRAM 1 fortran循环, fortran 中, fortran中的:: fortran rec EE 是什么意思? EE是什么意思 找错别字, 找错别字 找错别字