1.

Do Spaces Mater In Fortran Equations?

Answer»

No. Spaces are generally ADDED for clarity Some compilers get upset if you write things like” INTEGERI,J” RATHER than INTEGER I,J”. Simple neatness will KEEP you out of these PROBLEMS.

The following are all EQUIVALENT:
x=x*y**2*sin(x)
x=x * y2 * sin(x)
x= x * y**2 * sin ( x)

No. Spaces are generally added for clarity Some compilers get upset if you write things like” INTEGERI,J” rather than INTEGER I,J”. Simple neatness will keep you out of these problems.

The following are all equivalent:
x=x*y**2*sin(x)
x=x * y2 * sin(x)
x= x * y**2 * sin ( x)



Discussion

No Comment Found