Fortran tutorial for someone with no prior programming experience?


by Light Bearer
Tags: experience, fortran, programming, tutorial
Light Bearer
Light Bearer is offline
#1
Jan10-13, 02:32 PM
P: 22
Hi there,

As the title suggests, I am looking to start learning my first programming language. I am a mature student (24) who has recently returned to school to pursue physics. A friend of mine who does physics suggested that I learn Fortran (90/95) as my first language. I am looking online for tutorials but haven't had much luck. The tutorials on the Fortran site all seem to assume prior programming experience, and obviously I have none I was hoping someone could recommend a good online tutorial (preferably free, but I am willing to pay)...Any help is appreciated.

Alternatively a good friend of mine who does CS suggested that I learn Python as my first language and provided me with a great online tutorial. Opinions on whether I should learn Fortran or Python as my first language? Or is it irrelevant? Thanks!
Phys.Org News Partner Science news on Phys.org
Cougars' diverse diet helped them survive the Pleistocene mass extinction
Cyber risks can cause disruption on scale of 2008 crisis, study says
Mantis shrimp stronger than airplanes
jedishrfu
jedishrfu is offline
#2
Jan10-13, 02:40 PM
P: 2,489
I'd check out Processing.org as a first language. Its designed from visual graphic artists uses Java syntax and gives immediate feedback. Processing is based on Java so learning it isn't a loss. From there I'd get into using Java and learn how to use Netbeans or Eclipse for serious programming.

For physics related stuff I'd checkout Open Source Physics at www.compadre.org/osp. They have a lot of physics simulations. I took a course a few years ago where we used the book Intro to Comp Physics which is based on the Open Source Physics library and can do a lot of cool simulations.

Other opinions will follow...
rcgldr
rcgldr is offline
#3
Jan10-13, 04:15 PM
HW Helper
P: 6,929
A somewhat current primer for Fortran:

fprimer.pdf

An ancient classic Fortran primer:

ibm_704_fortran_primer.pdf

jedishrfu
jedishrfu is offline
#4
Jan10-13, 04:20 PM
P: 2,489

Fortran tutorial for someone with no prior programming experience?


and a more recent ebook on fortran-90

http://www.usm.uni-muenchen.de/peopl..._beginners.pdf
gsal
gsal is offline
#5
Jan10-13, 07:35 PM
P: 838
If your interests are in physics, then, yes, Fortran and Python are very good choices. Fortran for all the legacy libraries that by virtue of being around for decades are now bug-free. And Python for its great popularity in the engineering and scientific community as a quick dynamic language, as a replacement for matlab and mathcad in both programming ease, handling of matrices, and data visualization.

If you have to choose, I would learn Fortran first. Up to Fortran 77, it all was very easy to learn; starting from Fortran 90, Fortran started to include more advanced stuff that makes learning Fortran a bit more of an effort.

I can think of two reasons to learn Fortran first:
  1. Its staticly-typed nature...you will learn to declare variables correctly of a type and keep them that way.
  2. For the purposes of programming physics or other calculations/simulation, you can quickly learn most of Fortran, if not all, in a short given time frame with a tutorial or a book and be done with it.
I can think of a reason to take on Python second:
  1. You may never finish studying Python...and all its modules; thus, you would probably never get back to Fortran

Often, you need both. People continue to use individual Fortran functions for the main number crunching and glue them together by wrapping them with Python to ease GUI creation, data gathering and manipulation, data visualization.

my 2 cents...more like 3
Light Bearer
Light Bearer is offline
#6
Jan10-13, 09:49 PM
P: 22
Thanks for all the replies, I appreciate it. I've downloaded all the recommended tutorials and look forward to getting into them. I will learn Fortran first...thanks gsal!

Quote Quote by rcgldr View Post
A somewhat current primer for Fortran:

fprimer.pdf

I go to SMU! I had no idea this existed. I guess I will start learning Fortran from Clarke's tutorial and see how it goes.

Thanks again

Edit: The Python tutorial my friend recommended: http://learnpythonthehardway.org/book/
Mark44
Mark44 is offline
#7
Jan11-13, 01:25 AM
Mentor
P: 21,059
Quote Quote by gsal View Post
If your interests are in physics, then, yes, Fortran and Python are very good choices. Fortran for all the legacy libraries that by virtue of being around for decades are now bug-free. And Python for its great popularity in the engineering and scientific community as a quick dynamic language, as a replacement for matlab and mathcad in both programming ease, handling of matrices, and data visualization.

If you have to choose, I would learn Fortran first. Up to Fortran 77, it all was very easy to learn; starting from Fortran 90, Fortran started to include more advanced stuff that makes learning Fortran a bit more of an effort.

I can think of two reasons to learn Fortran first:
  1. Its staticly-typed nature...you will learn to declare variables correctly of a type and keep them that way.
  2. For the purposes of programming physics or other calculations/simulation, you can quickly learn most of Fortran, if not all, in a short given time frame with a tutorial or a book and be done with it.
I can think of a reason to take on Python second:
  1. You may never finish studying Python...and all its modules; thus, you would probably never get back to Fortran

Often, you need both. People continue to use individual Fortran functions for the main number crunching and glue them together by wrapping them with Python to ease GUI creation, data gathering and manipulation, data visualization.

my 2 cents...more like 3
Good advice!
Light Bearer
Light Bearer is offline
#8
Jan11-13, 02:47 PM
P: 22
I may as well just learn them both.


Register to reply

Related Discussions
Do you need prior experience for apprenticeship? Career Guidance 1
Fractals Programming Tutorial Programming & Computer Science 8
Intel Manufacturing Technician good prior experience for aspiring EE? Career Guidance 1
Math B.S. - no prior work experience Career Guidance 15
FORTRAN Tutorial Programming & Computer Science 24