Fortran — разлика између измена

С Википедије, слободне енциклопедије
Садржај обрисан Садржај додат
Autobot (разговор | доприноси)
м razne izmene
→‎Додатна литература: исправке формата датума
Ред 99: Ред 99:
== Додатна литература ==
== Додатна литература ==
;Чланци
;Чланци
* {{Cite journal|last=Allen|first = F.E.|date=September 1981| title = A History of Language Processor Technology in IBM| journal = IBM Journal of Research and Development| publisher = [[IBM]]| volume = 25| issue = 5| url = http://ieeexplore.ieee.org/document/5390587/ | doi = 10.1147/rd.255.0535 }}
* {{Cite journal|last=Allen|first = F.E.|date=септембар 1981| title = A History of Language Processor Technology in IBM| journal = IBM Journal of Research and Development| publisher = [[IBM]]| volume = 25| issue = 5| url = http://ieeexplore.ieee.org/document/5390587/ | doi = 10.1147/rd.255.0535 }}
* {{Cite journal|last=Backus|first = J. W.|author2=H. Stern, I. Ziller, R. A. Hughes, R. Nutt, R. J. Beeber, S. Best, R. Goldberg, L. M. Haibt, H. L. Herrick, R. A. Nelson, D. Sayre, P. B. Sheridan|year=1957| title = The FORTRAN Automatic Coding System| journal = Western joint computer conference: Techniques for reliability| publisher = [[Institute of Radio Engineers]], [[American Institute of Electrical Engineers]], [[Association for Computing Machinery|ACM]]| location = Los Angeles, California| doi = 10.1145/1455567.1455599|last3=Ziller|first3 = I.|last4=Hughes|first4 = R. A.|last5=Nutt|first5 = R.|last6=Beeber|first6 = R. J.|last7=Best|first7 = S.|last8=Goldberg|first8 = R.|last9=Haibt|first9 = L. M.|last10=Herrick|first10 = H. L.|last11=Nelson|first11 = R. A.|last12=Sayre|first12 = D.|last13=Sheridan|first13 = P. B.|pages=188-198}}
* {{Cite journal|last=Backus|first = J. W.|author2=H. Stern, I. Ziller, R. A. Hughes, R. Nutt, R. J. Beeber, S. Best, R. Goldberg, L. M. Haibt, H. L. Herrick, R. A. Nelson, D. Sayre, P. B. Sheridan|year=1957| title = The FORTRAN Automatic Coding System| journal = Western joint computer conference: Techniques for reliability| publisher = [[Institute of Radio Engineers]], [[American Institute of Electrical Engineers]], [[Association for Computing Machinery|ACM]]| location = Los Angeles, California| doi = 10.1145/1455567.1455599|last3=Ziller|first3 = I.|last4=Hughes|first4 = R. A.|last5=Nutt|first5 = R.|last6=Beeber|first6 = R. J.|last7=Best|first7 = S.|last8=Goldberg|first8 = R.|last9=Haibt|first9 = L. M.|last10=Herrick|first10 = H. L.|last11=Nelson|first11 = R. A.|last12=Sayre|first12 = D.|last13=Sheridan|first13 = P. B.|pages=188-198}}
* {{Cite journal|last=Chivers|first = Ian D.|first2 = Jane|last2=Sleightholme|year=2013| title = Compiler support for the Fortran 2003 & 2008 standards| journal = [[Association for Computing Machinery|ACM]] [[SIGPLAN]] Fortran Forum| publisher = [[Association for Computing Machinery|ACM]]| volume = 28| issue = 1| issn = 1061-7264| doi = 10.1145/1520752.1520755| url = http://www.fortranplus.co.uk/fortran_info.html|archive-url=https://web.archive.org/web/20080516202558/http://www.fortranplus.co.uk/fortran_info.html|url-status=dead|archive-date=16. 05. 2008|pages=26-28}}
* {{Cite journal|last=Chivers|first = Ian D.|first2 = Jane|last2=Sleightholme|year=2013| title = Compiler support for the Fortran 2003 & 2008 standards| journal = [[Association for Computing Machinery|ACM]] [[SIGPLAN]] Fortran Forum| publisher = [[Association for Computing Machinery|ACM]]| volume = 28| issue = 1| issn = 1061-7264| doi = 10.1145/1520752.1520755| url = http://www.fortranplus.co.uk/fortran_info.html|archive-url=https://web.archive.org/web/20080516202558/http://www.fortranplus.co.uk/fortran_info.html|url-status=dead|archive-date=16. 5. 2008|pages=26-28}}
* {{cite web|url=http://hopl.murdoch.edu.au/showlanguage.prx?exp=8&language=FORTRAN | title = FORTRAN – Backus et al high-level compiler (Computer Language) |last=Pigott|first = Diarmuid |year=2006| work = The Encyclopedia of Computer Languages | publisher = [[Murdoch University]] | accessdate=05. 05. 2010 |url-status=dead | archiveurl = https://web.archive.org/web/20091008230959/http://hopl.murdoch.edu.au/showlanguage.prx?exp=8&language=FORTRAN | archivedate=08. 10. 2009 |df=dmy }}
* {{cite web|url=http://hopl.murdoch.edu.au/showlanguage.prx?exp=8&language=FORTRAN | title = FORTRAN – Backus et al high-level compiler (Computer Language) |last=Pigott|first = Diarmuid |year=2006| work = The Encyclopedia of Computer Languages | publisher = [[Murdoch University]] | accessdate=5. 5. 2010 |url-status=dead | archiveurl = https://web.archive.org/web/20091008230959/http://hopl.murdoch.edu.au/showlanguage.prx?exp=8&language=FORTRAN | archivedate=8. 10. 2009 |df=dmy }}
* {{Cite journal|year=1985| title = Design Considerations for IBM Personal Computer Professional FORTRAN, an Optimizing Compiler| journal = IBM Systems Journal| volume = 24| issue = 1| url = http://www.research.ibm.com/journal/sj/241/ibmsj2401G.pdf|last=Roberts|first = Mark L. |last2=Griffiths|first2 = Peter D.| publisher = [[IBM]]| doi = 10.1147/sj.241.0049|pages=49-60}}
* {{Cite journal|year=1985| title = Design Considerations for IBM Personal Computer Professional FORTRAN, an Optimizing Compiler| journal = IBM Systems Journal| volume = 24| issue = 1| url = http://www.research.ibm.com/journal/sj/241/ibmsj2401G.pdf|last=Roberts|first = Mark L. |last2=Griffiths|first2 = Peter D.| publisher = [[IBM]]| doi = 10.1147/sj.241.0049|pages=49-60}}


Ред 108: Ред 108:
* {{Cite book|ref=harv|last=Ansi x3.9-1966|title=USA Standard FORTRAN|publisher=American National Standards Institute|url = http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf
* {{Cite book|ref=harv|last=Ansi x3.9-1966|title=USA Standard FORTRAN|publisher=American National Standards Institute|url = http://www.fh-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf
}} Informally known as FORTRAN 66.
}} Informally known as FORTRAN 66.
* {{Cite book|ref=harv|last=Ansi x3.9-1978|title=American National Standard – Programming Language FORTRAN|publisher=American National Standards Institute|url=http://www.fortran.com/fortran/F77_std/rjcnf.html|access-date=28. 05. 2018|archive-url=https://web.archive.org/web/20131029134137/http://www.fortran.com/fortran/F77_std/rjcnf.html|archive-date=29. 10. 2013|url-status=dead}} Also known as [[International Organization for Standardization|ISO]] 1539-1980, informally known as FORTRAN 77.
* {{Cite book|ref=harv|last=Ansi x3.9-1978|title=American National Standard – Programming Language FORTRAN|publisher=American National Standards Institute|url=http://www.fortran.com/fortran/F77_std/rjcnf.html|access-date=28. 5. 2018|archive-url=https://web.archive.org/web/20131029134137/http://www.fortran.com/fortran/F77_std/rjcnf.html|archive-date=29. 10. 2013|url-status=dead}} Also known as [[International Organization for Standardization|ISO]] 1539-1980, informally known as FORTRAN 77.
* {{Cite book|ref=harv|last=ANSI X3.198-1992 (R1997) / ISO/IEC 1539:1991|title=American National Standard – Programming Language Fortran Extended|publisher=American National Standards Institute / ISO/IEC|url = http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=17366
* {{Cite book|ref=harv|last=ANSI X3.198-1992 (R1997) / ISO/IEC 1539:1991|title=American National Standard – Programming Language Fortran Extended|publisher=American National Standards Institute / ISO/IEC|url = http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=17366
| archive-url = https://web.archive.org/web/20020501111055/http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=17366
| archive-url = https://web.archive.org/web/20020501111055/http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=17366
|url-status=dead
|url-status=dead
| archive-date=01. 05. 2002
| archive-date=1. 5. 2002
| df = dmy-all
| df = dmy-all
}} Informally known as Fortran 90.
}} Informally known as Fortran 90.
* {{Cite book|ref=harv| ref = harv|last = ISO/IEC 1539-1:1997| title = Information technology – Programming languages – Fortran – Part 1: Base language|url = http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf| accessdate=28. 05. 2018
* {{Cite book|ref=harv| ref = harv|last = ISO/IEC 1539-1:1997| title = Information technology – Programming languages – Fortran – Part 1: Base language|url = http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf| accessdate=28. 5. 2018
| archive-url = https://web.archive.org/web/20110818190618/http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf
| archive-url = https://web.archive.org/web/20110818190618/http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf
| archive-date=18. 08. 2011
| archive-date=18. 8. 2011
|url-status=dead
|url-status=dead
| df =
| df =
Ред 124: Ред 124:
}} Informally known as Fortran 2003.
}} Informally known as Fortran 2003.
* {{Cite book|ref=harv|last=ISO/IEC 1539-1:2010 (Final Draft International Standard)|title=Information technology – Programming languages – Fortran – Part 1: Base language|url = ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1830.pdf
* {{Cite book|ref=harv|last=ISO/IEC 1539-1:2010 (Final Draft International Standard)|title=Information technology – Programming languages – Fortran – Part 1: Base language|url = ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1830.pdf
}}{{dead link|date=July 2017 | bot = InternetArchiveBot |fix-attempted=yes }} Informally known as Fortran 2008.
}}{{dead link|date=јул 2017 | bot = InternetArchiveBot |fix-attempted=yes }} Informally known as Fortran 2008.


;Сродни стандарди
;Сродни стандарди
Ред 130: Ред 130:
| journal = [[Association for Computing Machinery|ACM]] [[SIGPLAN]] Notices
| journal = [[Association for Computing Machinery|ACM]] [[SIGPLAN]] Notices
| issn = 0362-1340
| issn = 0362-1340
|date=October 1981
|date=октобар 1981
| volume = 16
| volume = 16
| issue = 7|pages=45-60|publisher=ACM Press
| issue = 7|pages=45-60|publisher=ACM Press
Ред 138: Ред 138:


;Други референтни материјал
;Други референтни материјал
* {{Cite book|ref=harv| url = http://www.ecma-international.org/publications/files/ECMA-ST-WITHDRAWN/ECMA-9,%201st%20Edition,%20April%201965.pdf | format = PDF | title = ECMA Standard on FORTRAN | publisher = European Computer Manufacturers Association |date=April 1965 | accessdate=17. 11. 2014}}
* {{Cite book|ref=harv| url = http://www.ecma-international.org/publications/files/ECMA-ST-WITHDRAWN/ECMA-9,%201st%20Edition,%20April%201965.pdf | format = PDF | title = ECMA Standard on FORTRAN | publisher = European Computer Manufacturers Association |date=април 1965 | accessdate=17. 11. 2014}}
* {{Cite book|ref=harv| url = http://wwwcdf.pd.infn.it/localdoc/f77_sun.pdf | format = PDF | title = FORTRAN 77 4.0 Reference Manual | publisher = Sun Microsystems, Inc. |year=1995| accessdate=17. 11. 2014}}
* {{Cite book|ref=harv| url = http://wwwcdf.pd.infn.it/localdoc/f77_sun.pdf | format = PDF | title = FORTRAN 77 4.0 Reference Manual | publisher = Sun Microsystems, Inc. |year=1995| accessdate=17. 11. 2014}}
* {{cite web|url=http://www.atkielski.com/PDF/data/fortran.pdf | format = PDF | title = FORTRAN Coding Form | publisher = [[IBM]] | accessdate=17. 11. 2014 |url-status=dead | archiveurl = https://web.archive.org/web/20150608095341/http://www.atkielski.com/PDF/data/fortran.pdf | archivedate=08. 06. 2015 |df=dmy-all }}
* {{cite web|url=http://www.atkielski.com/PDF/data/fortran.pdf | format = PDF | title = FORTRAN Coding Form | publisher = [[IBM]] | accessdate=17. 11. 2014 |url-status=dead | archiveurl = https://web.archive.org/web/20150608095341/http://www.atkielski.com/PDF/data/fortran.pdf | archivedate=8. 6. 2015 |df=dmy-all }}
* {{Cite book|ref=harv| url = http://www.fh-jena.de/~kleine/history/languages/GC28-6515-10-FORTRAN-IV-Language.pdf | format = PDF | title = IBM System/360 and System/370 Fortran IV Language | publisher = [[International Business Machines]] |date=May 1974 | accessdate=17. 11. 2014}}
* {{Cite book|ref=harv| url = http://www.fh-jena.de/~kleine/history/languages/GC28-6515-10-FORTRAN-IV-Language.pdf | format = PDF | title = IBM System/360 and System/370 Fortran IV Language | publisher = [[International Business Machines]] |date=мај 1974 | accessdate=17. 11. 2014}}
* {{cite web|url=http://michaelgoerz.net/refcards/fortran_refcard_a4.pdf | title = Modern Fortran Reference Card |last=Goerz|first = Michael |year=2014| accessdate=14. 12. 2014}}
* {{cite web|url=http://michaelgoerz.net/refcards/fortran_refcard_a4.pdf | title = Modern Fortran Reference Card |last=Goerz|first = Michael |year=2014| accessdate=14. 12. 2014}}


Ред 164: Ред 164:
* {{Cite book|ref=harv|first = Larry|last=Nyhoff|last2=Leestma|first2=Sanford|year=1995|title=FORTRAN 77 for Engineers and Scientists with an Introduction to Fortran 90
* {{Cite book|ref=harv|first = Larry|last=Nyhoff|last2=Leestma|first2=Sanford|year=1995|title=FORTRAN 77 for Engineers and Scientists with an Introduction to Fortran 90
| edition = 4th|publisher=[[Prentice Hall]]|isbn=978-0-13-363003-9}}
| edition = 4th|publisher=[[Prentice Hall]]|isbn=978-0-13-363003-9}}
* {{Cite book|ref=harv|last=Page|first = Clive G.| title = Professional Programmer's Guide to Fortran77| url = http://www.star.le.ac.uk/~cgp/prof77.html| accessdate=04. 05. 2010| edition = 7 June 2005|year=1988| publisher = Pitman| location = London|isbn=978-0-273-02856-7}}
* {{Cite book|ref=harv|last=Page|first = Clive G.| title = Professional Programmer's Guide to Fortran77| url = http://www.star.le.ac.uk/~cgp/prof77.html| accessdate=4. 5. 2010| edition = 7 June 2005|year=1988| publisher = Pitman| location = London|isbn=978-0-273-02856-7}}
* {{Cite book|ref=harv|last=Press|first = William H.| title = Numerical Recipes in Fortran 90: The Art of Parallel Scientific Computing| url = http://www.nrbook.com/a/bookf90pdf.php|year=1996| publisher = Cambridge University Press| location = Cambridge, UK|isbn=978-0-521-57439-6}}
* {{Cite book|ref=harv|last=Press|first = William H.| title = Numerical Recipes in Fortran 90: The Art of Parallel Scientific Computing| url = http://www.nrbook.com/a/bookf90pdf.php|year=1996| publisher = Cambridge University Press| location = Cambridge, UK|isbn=978-0-521-57439-6}}
* {{Cite book|ref=harv|last=Sleighthome|first = Jane|last2=Chivers|first2 = Ian David| title = Interactive Fortran 77: A Hands-On Approach| url = http://www.fortranplus.co.uk/fortran_books.html| edition = 2nd| series = Computers and their applications|year=1990| publisher = E. Horwood| location = Chichester|isbn=978-0-13-466764-5| accessdate=12. 03. 2014|archive-url=https://web.archive.org/web/20140312213359/http://www.fortranplus.co.uk/fortran_books.html|archive-date=12. 03. 2014|url-status=dead}}
* {{Cite book|ref=harv|last=Sleighthome|first = Jane|last2=Chivers|first2 = Ian David| title = Interactive Fortran 77: A Hands-On Approach| url = http://www.fortranplus.co.uk/fortran_books.html| edition = 2nd| series = Computers and their applications|year=1990| publisher = E. Horwood| location = Chichester|isbn=978-0-13-466764-5| accessdate=12. 3. 2014|archive-url=https://web.archive.org/web/20140312213359/http://www.fortranplus.co.uk/fortran_books.html|archive-date=12. 3. 2014|url-status=dead}}


== Спољашње везе ==
== Спољашње везе ==

Верзија на датум 23. јануар 2020. у 20:53

Фортран
Оригинални називенгл. Fortran
Изговара сефортран
Моделпроцедурални, императивни, структурирани, објектно-оријентисани
Појавио се1957.
Аутор(и)Џон Бакус
Дизајнер(и)Џон Бакус, IBM
Актуелна верзијаFortran 2003
Систем типовајаки, статички
Имплементацијемноге
Утицао наалгол 58, бејсик, C

Фортран је програмски језик намењен превасходно за обимна математичка израчунавања.

Фортран I

Први преводилац за фортран је осмишљен и написан у периоду од 1954. до 1957. године од стране IBM-овог тима који је предводио Џон Бакус. Прва примена му је била за прорачун параметара у нуклеарној електрани[тражи се извор]. Потиснуо је асемблер (јер је био једноставнији за програмирање и преносив) и брзо био прихваћен од стране научника и војних организација. Коришћен је за војне пројекте и свемирска истраживања.

Фортран II, III, IV и фортран 66

Бушена картица са линијом кода у фортрану
  • Фортран II (1958) је био значајно побољшање јер је омогућавао поделу програма у модуле и повезивање са асемблерским модулима.
  • Фортран III (1958) никада није јавно објављен. Омогућавао је асемблерски код усред фортрановог кода, али је тиме губљена преносивост.
  • Фортран IV (1961) био је пречишћени и допуњени фортран II (додати искази COMMON и EQUIVALENCE и отклоњене неке неправилности).
  • У мају 1962. године комитет ASA започео је пројекат стандардизације овог језика што је омогућило израду преводиоца за сваки нови модел рачунара који се појави на тржишту. Нови ASA стандард објављен је 1966. и постао општепознат под именом FORTRAN 66. Био је то први стандард ове врсте у свету.

Пример програма написаног у фортрану 66:

# PROGRAM TRIVIAL
# INTEGER I
# I=2
# IF (I .GE. 2) CALL STAMPAJ
# STOP
# END
# SUBROUTINE STAMPAJ
# PRINT *,'Zdravo svete!'
# RETURN
# END

Фортран 77

Фортран 77 (скраћено Ф77) је нови стандард (из 1977. године) који је додао:

  • петље DO са опадањем контролне променљиве.
  • Блоковску наредбу IF ... THEN ... ELSE ... ENDIF. Пре фортрана 77 постојала је само наредба IF ... GOTO.
  • Тест је претходио извршавању DO петљи. Пре Ф77 DO петље су се увек извршавале бар једном
  • Тип CHARACTER. Пре Ф77 знаци су увек били чувани у променљивама типа INTEGER.
  • Апостроф је постао знак који ограничава константне ниске.
  • Главни програм се није више завршавао са наредбом STOP.

Пример програма у фортрану 77:

C Главни програм
# PROGRAM PRIMER77
# PARAMETER (MAKS_VELICINA=99)
# REAL A(MAKS_VELICINA)
# READ (5,5, END=11) K
# FORMAT(I5)
# IF (K .LE. 0 .OR. K .GT. MAKS_VELICINA) STOP
# READ *,(A(I), I=1, K)
# PRINT *,(A(I), I=1, K)
# PRINT *,'Suma brojeva je: ', SUMA(A, K)
# GOTO 4
# PRINT *,'Kraj'
# STOP
# END

C Функција за сумирање
# FUNCTION SUMA(V, N)
# REAL :: V(N)
# SUMA = 0.0
# DO 19 I = 1, N
# SUMA = SUMA + V(I)
# CONTINUE
# RETURN
# END

Фортран 90

Фортран 90 је донео много новина које су га приближиле данас популарним језицима (као што је C, на пример).

Фортран 95

Фортран 95 је донео неколико мањих побољшања у односу на фортран 90.

Етимологија

Име „фортран“ долази од енглеског назива за овај програмски језик, „FORTRAN“, који је настао узимањем почетних слова енглеских речи „Formula Translation“. У српском језику ова скраћеница се лексикализовала, па се више не користи енглески оригинал него српски прилагођени облик „фортран“.

Додатна литература

Чланци
"Core" language standards
Сродни стандарди
Други референтни материјал
Уџбеници

Спољашње везе