请输入您要查询的字词:

 

单词 FORTRAN
释义

FORTRAN


FORTRAN11Acronym that comes from For-mula Tran-slating. (or ForTran or Fortran) is a computer programming language developed by IBM in the 1950s with a focus on scientific and engineering applications. FORTRAN is still in use today in the sciences despite the dominance of C++ (http://planetmath.org/C) for most general applications and Mathematica and Maple for algebra applications. Sloane’s On-Line Encyclopedia of Integer Sequences does not include FORTRAN source code but provides links to it. The current version is FORTRAN 2003; an international group of corporations and programmers is working on FORTRAN 2008.

The following FORTRAN program takes two integers as inputs and outputs their greatest common divisorMathworldPlanetmath using Euclid’s algorithmMathworldPlanetmath. It requires positive integers as inputs. NB is just a variable name that has nothing to do with Zentrums. The function NGCD is defined after the main program. It was written by Wikipedia user Rwwww:

*     euclid.f (FORTRAN 77)*     Find greatest common divisor using the Euclidean algorithmMathworldPlanetmath*     Written by: Wikipedia User:Rwwww      PROGRAM EUCLID        PRINT *, 'A?'        READ *, NA        IF (NA.LE.0) THEN          PRINT *, 'A must be a positive integer.'          STOP        END IF        PRINT *, 'B?'        READ *, NB        IF (NB.LE.0) THEN          PRINT *, 'B must be a positive integer.'          STOP        END IF        PRINT *, 'The GCD of', NA, ' and', NB, ' is', NGCD(NA, NB), '.'        STOP      END      FUNCTION NGCD(NA, NB)        IA = NA        IB = NB    1   IF (IB.NE.0) THEN          ITEMP = IA          IA = IB          IB = MOD(ITEMP, IB)          GOTO 1        END IF        NGCD = IA        RETURN      END
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/25 8:13:51