Heard about the software Fortran

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Fortran Software
Click For Summary

Discussion Overview

The discussion centers around the programming language Fortran, its usability compared to Matlab, its historical context, installation options, and its relevance in current programming practices, particularly in scientific and engineering fields.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants suggest that Fortran is better than Matlab for numerical methods but question its ease of use.
  • One participant notes that Fortran is the first programming language and has been widely used in mathematics and science for decades, though it may be harder to use than Matlab.
  • Another participant mentions that Fortran has higher performance for large-scale tasks, such as simulations, but may not be necessary for most users today.
  • There is a query about the availability and cost of Fortran compilers, with a response indicating that Gnu provides a free Fortran compiler (GFortran) and mentioning the historical context of Fortran versions.
  • One participant highlights that much existing Fortran code is based on the older Fortran77 standard, which lacks modern programming features, making it challenging to read and modify.
  • Another participant counters that recent Fortran standards (1990, 1995, 2003, 2008) have introduced object-oriented programming features, making it comparable to C++ in usability.
  • There is mention of additional free compilers like G95 and the availability of workspace environments, though some may require payment.

Areas of Agreement / Disagreement

Participants express differing views on the usability and relevance of Fortran today, with some emphasizing its historical significance and performance, while others critique its complexity and outdated features. No consensus is reached regarding its overall utility compared to modern programming languages.

Contextual Notes

Participants discuss the evolution of Fortran standards and the implications for legacy code, but there are unresolved questions about the necessity of learning Fortran for contemporary programming tasks.

sara_87
Messages
748
Reaction score
0
Hello,

I just heard about the software Fortran but i know nothing about it. I heard it is better than Matlab when dealing with numerical methods.
Is it easier to use than Matlab?
 
Physics news on Phys.org


FORTRAN is a programming language (like Java or Basic) - in fact the first programming language.
It's been used for 50years for most maths and science projects because mathematicians and scientists were the main users of computers.
It's certainly harder to use than a maths specific language like Matlab/Mathematica but has higher performance if you need to run huge tasks - like simulating a nuclear weapon or predicting the weather.
Unless you end up working in a field like this on existing code you are likely to never need to learn Fortran today
 
Last edited:


ok, what about if i want to install it on my computer, do i have to buy it or is it free from the internet?
 


There used to be several companies selling Fortran on PCs but I don't know if any are still around - it's more a workstation-supercomputer market.

Gnu produce a free fortran compiler - http://gcc.gnu.org/wiki/GFortran
The most common Fortran out there is from 1977 and is called fortran77, there have been a few updates the most recent major one in 1995 = fortran95 . fortran isn't used very much for new projects, if you are learning this to get a job most of the coe out there will be F77 so using the newer features isn't necessarily an advantage.
It's a fairly simple language but doesn't have many of the new features of programming (classes, objects, templates etc) from somethign like Java, C++ or python. It's much more like Basic.
Also don't expect much in the way of nice IDE or GUI resources, fortran is from the time of green screen terminals and teletype printers.
 


I feel like mgb is fortran bashing here a little (haha). As mentioned, much of the fortran software that exists today is written in fortran77, which is not object-oriented, typically is written such tha variables are declared on the fly, and is just all-in-all hard as hell to read, modify, or use.

However, with standards updates in 1990, 1995, 2003, and 2008, it is just as "nice" to use as C++, with full object oriented programming, etc etc. I personally work in the aerospace industry, and you not a see legacy code, or a new code being developed that is not written in FORTRAN.

Aside from GFortran, G95 is also a very nice free open source compiler. You can get into workspace environments with things like VisualFortran, but expect to pay.
 

Similar threads

Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
6
Views
4K
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K