Fortran F90 Unclassifiable Statement(Basic)

时间:2015-09-08 00:35:57

标签: fortran fortran90

我刚开始在我大学的物理课上编码,所以我对这一切都很陌生。但是,我无法找到我在这个方面出错的地方:

! Purpose: Assignment #2
! Author: Rourke Sekelsky
! Date: 9/7/2015

program arith
implicit none ! Turn off implicit typing
real :: x,y ! Define variables
real, parameter :: pi = 3.14159 ! Set the parameter pi

write(*,*) "Enter x:" ! Prompt user to enter their x-value
read(*,*) x ! Read in x-value

y = (3.0*x)+(6.0*pi)((x**3+x**(7.0/2.0)))+11.0/3.0 
! Determine value of function at given x-value

write(*,*) " f(x) = ",y ! Write out the function value

stop ! Stop execution of program
end program arith

编辑:我在" y ="得到了一个无法分类的陈述错误。部分。这个程序不会用gfortran编译,我不确定是什么错。一些帮助会很好,谢谢!

1 个答案:

答案 0 :(得分:2)

一个字符错字。您在被乘数之间遗漏了BL.Case mCase = null; var temp = db.Cases.Select( xx => new { CaseID = xx.CaseID, FirstName = xx.FirstName, LastName = xx.LastName }).FirstOrDefault(u => u.CaseID == CaseID); if (temp != null) { mCase = Mapper.DynamicMap<BL.Case>(temp); } 运算符。 *有效。