[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::fortran

Title:Digital Fortran
Notice:Read notes 1.* for important information
Moderator:QUARK::LIONEL
Created:Thu Jun 01 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1333
Total number of notes:6734

1242.0. "ATAN2 accepted in PARAMETER statement on Alpha, not VAX" by SUBPAC::FARICELLI () Wed Mar 26 1997 16:06

   Minor difference between the VAX/VMS Fortran compiler and the
   Alpha {VMS/Unix} Fortran compiler:

      real PIO2
      parameter ( PIO2=ATAN2(1.0,0.0) )

   is accepted by the Alpha compiler(s), but not the VAX.
   The help file for the Alpha VMS compiler does not list ATAN2
   as acceptable in constant expressions for parameters.
   There are probably other functions that the Alpha compiler accepts also.

   -- John Faricelli
T.RTitleUserPersonal
Name
DateLines
1242.1DF77 help could be improvedTLE::WHITLOCKStan WhitlockWed Mar 26 1997 16:3913
>>   The help file for the Alpha VMS compiler does not list ATAN2
>>   as acceptable in constant expressions for parameters.
>>   There are probably other functions that the Alpha compiler accepts also.

It appears that the DF77 help file lists only the intrinsics that the F77
standard allows in conpile-time constant expressions.  So does the DF77 LRM.

DF90 does a better job of lists the categories of intrinsics allowed but doesn't
give the definitive list {just like the F90 standard doesn't}.

I'll look into expanding the list in the DF77 help file.

/Stan