Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!hsdndev!bbn.com!fwebb From: fwebb@bbn.com (Fred Webb) Newsgroups: comp.lang.fortran Subject: Re: intrinsic Keywords: intrinsic list Message-ID: <61653@bbn.BBN.COM> Date: 18 Dec 90 20:27:14 GMT References: <52072@eerie.acsu.Buffalo.EDU> <1990Dec18.035700.6440@alchemy.chem.utoronto.ca> Sender: news@bbn.com Reply-To: fwebb@BBN.COM (Fred Webb) Distribution: comp Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 36 In article , quan@sol.surv.utas.oz (Stephen Quan) writes... >Could anyone give me a list of intrinsic names. >eg. > COS SIN DCOS DSIN CHAR ... In article <52072@eerie.acsu.Buffalo.EDU> v087mxgb@ubvmsa.cc.buffalo.edu writes: >My Lahey has them listed as follows (I have omitted the >Lahey extensions, and included only those which they >depict as standards); > ... In article <1990Dec18.035700.6440@alchemy.chem.utoronto.ca> mroussel@alchemy.chem.utoronto.ca (Marc Roussel) writes: >IFIX IDINT FLOAT SINGL MAX0 AMAX1 DMAX1 AMAX0 MAX1 MIN0 AMIN1 DMIN1 AMIN0 MIN1 >Are any of these standard? Neither ININT (which appeared in Shawn's article), nor IDINT, cited by Marc, nor SINGL are standard. I think ININT is a typo for IDNINT, and SINGL is a typo for SNGL, both of which are standard. In addition to those cited by Shawn, MAX, MIN, DBLE and CMPLX are also required by the f77 standard. The following names are supposed to be "generic" names, and work with various argument types: INT, REAL, DBLE, CMPLX, AINT, ANINT, NINT, ABS, MOD, SIGN, DIM, MAX, MIN, SQRT, EXP, LOG, LOG10, SIN, COS, TAN, ASIN, ACOS, ATAN, ATAN2, SINH, COSH, and TANH. The rest of the names are specific names for various argument combinations. In the MAX/MIN world, 0 implies a integer arguments, 1 implies real arguments; A implies a real result, D implies a double result (and double arguments). The functions AMAX0/AMIN0 (integer argument, real result) and MAX1/MIN1 (real argument, integer result) aren't accessible through the generic MAX/MIN names. Any Fortran which doesn't have all of these isn't a full Fortran 77. -- Fred