LF Fortran Language Reference

LF Fortran Language Reference

LF Fortran Language Reference Revision G.05 Copyright Copyright © 1994-2011 by Lahey Computer Systems, Inc. All rights reserved worldwide. This manual is protected by federal copyright law. No part of this manual may be copied or distributed, transmitted, transcribed, stored in a retrieval system, or translated into any human or computer language, in any form or by any means, electronic, mechanical, magnetic, manual, or otherwise, or disclosed to third parties. Trademarks Names of Lahey products are trademarks of Lahey Computer Systems, Inc. Other brand and product names are trademarks or registered trademarks of their respective holders. Disclaimer Lahey Computer Systems, Inc. and Fujitsu, Ltd. reserve the right to revise their software and publications with no obligation to notify any person or any organization of such revision. In no event shall Lahey Computer Systems, Inc. or Fujitsu, Ltd. be liable for any loss of profit or any other commercial damage, including but not limited to special, consequential, or other damages. Lahey Computer Systems, Inc. http://www.lahey.com Technical Support [email protected] Table of Contents Introduction...........................................vii ATAN2 Function ...........................................79 Manual Organization .....................................vii BACKSPACE Statement ...............................80 Notational Conventions ................................viii BIT_SIZE Function........................................81 BLOCK DATA Statement .............................81 Elements of Fortran................................1 BTEST Function ............................................82 Character Set.................................................... 1 CALL Statement ............................................83 Names .............................................................. 1 CARG Function .............................................86 Statement Labels.............................................. 2 CASE Construct.............................................88 Source Form .................................................... 2 CBRT Function..............................................90 Data.................................................................. 4 CEILING Function.........................................90 Expressions.................................................... 19 CHAR Function .............................................91 Input/Output................................................... 22 CHARACTER Statement...............................92 Input/Output Editing...................................... 25 CLOSE Statement..........................................94 Statements...................................................... 33 CMPLX Function...........................................96 Executable Constructs ................................... 42 COMMON Statement ....................................97 Procedures ..................................................... 43 COMPLEX Statement....................................99 Program Units................................................ 55 Computed GOTO Statement (obsolescent).100 Scope ............................................................. 58 CONJG Function..........................................102 CONTAINS Statement.................................102 Alphabetical Reference........................61 CONTINUE Statement ................................103 ABS Function ................................................ 61 COS Function...............................................104 ACHAR Function .......................................... 62 COSH Function............................................104 ACOS Function ............................................. 62 COUNT Function.........................................105 ADJUSTL Function....................................... 63 CPU_TIME Subroutine................................106 ADJUSTR Function ...................................... 63 CSHIFT Function.........................................107 AIMAG Function .......................................... 64 CYCLE Statement........................................108 AINT Function .............................................. 64 DATA Statement..........................................108 ALL Function ................................................ 65 DATE_AND_TIME Subroutine ..................110 ALLOCATABLE Statement ......................... 66 DBLE Function ............................................111 ALLOCATE Statement ................................. 67 DEALLOCATE Statement ..........................112 ALLOCATED Function ................................ 69 DIGITS Function .........................................113 ANINT Function............................................ 69 DIM Function...............................................113 ANY Function ............................................... 70 DIMENSION Statement ..............................114 Arithmetic IF Statement (obsolescent)......... 71 DLL_EXPORT Statement ...........................115 ASIN Function............................................... 72 DLL_IMPORT Statement............................116 Assigned GOTO Statement (obsolescent).... 73 DO Construct ...............................................116 ASSIGN Statement (obsolescent) ................ 73 DOT_PRODUCT Function..........................119 Assignment Statement ................................... 74 DOUBLE PRECISION Statement...............120 ASSOCIATED Function ............................... 77 DPROD Function.........................................122 ATAN Function............................................. 78 DVCHK Subroutine (Windows Only).........123 LF Fortran 95 Language Reference iii Contents ELEMENTAL Procedure........................... 123 IOSTAT_MSG Subroutine ..........................177 END Statement............................................ 125 ISHFT Function ...........................................178 ENDFILE Statement ................................... 127 ISHFTC Function.........................................179 ENTRY Statement....................................... 128 KIND Function ............................................180 EOSHIFT Function ..................................... 129 LBOUND Function......................................181 EPSILON Function ..................................... 130 LEN Function...............................................182 EQUIVALENCE Statement........................ 131 LEN_TRIM Function...................................182 ERROR Subroutine ..................................... 133 LGE Function...............................................183 EXIT Statement........................................... 133 LGT Function...............................................184 EXIT Subroutine ......................................... 134 LLE Function...............................................184 EXP Function .............................................. 134 LLT Function...............................................185 EXPONENT Function................................. 135 LOG Function ..............................................186 EXTERNAL Statement............................... 135 LOG10 Function ..........................................187 FLOOR Function......................................... 136 LOGICAL Function.....................................188 FLUSH Subroutine...................................... 137 LOGICAL Statement...................................188 FORALL Construct..................................... 138 MATMUL Function.....................................190 FORALL Statement .................................... 139 MAX Function.............................................192 FORMAT Statement ................................... 140 MAXEXPONENT Function........................192 FRACTION Function.................................. 146 MAXLOC Function.....................................193 FUNCTION Statement................................ 147 MAXVAL Function.....................................194 GETCL Subroutine...................................... 149 MERGE Function ........................................195 GETENV Subroutine .................................. 150 MIN Function...............................................196 GO TO Statement........................................ 150 MINEXPONENT Function .........................196 HUGE Function........................................... 151 MINLOC Function.......................................197 IACHAR Function ...................................... 152 MINVAL Function ......................................198 IAND Function............................................ 152 ML_EXTERNAL Statement .......................199 IBCLR Function .......................................... 153 MOD Function.............................................200 IBITS Function............................................ 154 MODULE Statement ...................................200 IBSET Function........................................... 154 MODULE PROCEDURE Statement...........201 ICHAR Function ......................................... 155 MODULO Function.....................................202 IEOR Function ............................................ 156 MVBITS Subroutine....................................203 IF Construct................................................. 156 NAMELIST Statement ................................204 IF Statement ................................................ 158 NDPERR

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    341 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us