Fortran F90不可分类语句(基本)

Fortran F90不可分类语句(基本),fortran,fortran90,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 par

我刚开始在我大学的一门物理课上编写代码,所以我对这一切都很陌生。但是,我找不到我在这一点上的错误:

! 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编译,我也不确定出了什么问题。帮点忙就好了,谢谢

一个字符的打字错误。您在被乘数之间遗漏了
*
运算符<代码>y=(3.0*x)+(6.0*pi)*((x**3.0+x**(7.0/2.0))+11.0/3.0起作用。

也许你应该描述一下程序的意图、预期输出和当前输出。这会有所帮助。呜呜。所以,我把它投了更高的票。