Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Fortran Programming Language

Learning FORTRAN


I'd like to teach my self FORTRAN, so I'm looking for two
recommendations:

  *  a free downloadable FORTRAN compiler for Windows XP, and

  *  a book (for beginners but also scholarly) that gives an account
     of FORTRAN preferably giving the text of its own compiler.

Tia.

--
Remove "antispam" and ".invalid" for e-mail address.
We have lingered in the chambers of the sea
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.

In article <45CCBECE.845E@antispamhotmail.co.uk.invalid>,
        Frederick Williams <Frederick_Willi@antispamhotmail.co.uk.invalid> writes:

> I'd like to teach my self FORTRAN, so I'm looking for two
> recommendations:

>   *  a free downloadable FORTRAN compiler for Windows XP, and

There a few freely available compilers.  A google search will
provide other URLs.  I prefer

http://gcc.gnu.org/wiki/GFortranBinaries

>   *  a book (for beginners but also scholarly) that gives an account
>      of FORTRAN preferably giving the text of its own compiler.

You did not stated your experience with other programming
languages, so my recommendation may not be what you need.
That said, I'd recommend the book "Fortran 95/2003 Explained"
by Metcalf, Reid, and  Cohen

--
Steve
http://troutmask.apl.washington.edu/~kargl/

Hi,

On Feb 9, 7:33 pm, Frederick Williams

<Frederick_Willi@antispamhotmail.co.uk.invalid> wrote:
> I'd like to teach my self FORTRAN, so I'm looking for two
> recommendations:
>   *  a free downloadable FORTRAN compiler for Windows XP, and

I think there are:

- GNU Fortran, http://gcc.gnu.org/wiki/GFortranBinaries#Windows
- g95, http://ftp.g95.org/
  [Both: use the mingw builds rather than Cygwin, unless you already
use Cygwin]
- FTN95, http://www.silverfrost.com/32/ftn95/
ftn95_personal_edition.asp
- Open Watcom, http://www.openwatcom.org/index.php/Main_Page

Don't ask me for a preference, I frankly don't know since I develop
under Linux.

>From a glance I would say, FTN95 seems to be most beginner friendly

with a
graphical IDE.
(On the other hand, one could also use Eclipse/Photran as IDE
http://www.eclipse.org/photran/ with any of the compilers above.)

>   *  a book (for beginners but also scholarly) that gives an account
>      of FORTRAN preferably giving the text of its own compiler.

I personally like
Fortran 95/2003 explained by Michael Metcalf, John Reid and Malcolm
Cohen
but this is not really something for beginners. (It contains a nice
sum up of all the Fortran features;
I think it can be a rather nice book if you already know other
programming languages,
or when you know Fortran and want to have a reference, which is more
readable than
the Fortran standard.)

For free resources, the following was suggested:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread...

Maybe others come up with some better book suggestions. However, it
also depends on your
preferences and knowledge:

How well do you know other programming languages or put differently:
Do you want to have rather lots of examples and slow pace? Or do you
know already well how to programming in  language X and the book
should teach you fast Fortran without too many examples? Or ...

Do you need mostly Fortran 77 for some reasons?
I think most in this newsgroup would suggest otherwise to learn
Fortran 90/95 and only skim over Fortran 77; at least that is what I
recommend.

The biggest difference between Fortran 77 and Fortran 90/95/2003 is
that Fortran 77 is fixed-form source which stems from the good old
days of punch cards; you will surely see programs written in Fortran
77 but new projects one should write in Fortran 9x. One can easily mix
them in one project [but not in the same file].

Some other tips
They maybe not helpful right now, but one should really know them

a) Start any program/subroutine/module with "implicit none" it makes
debugging much easier

b) If you have a subroutine in the same file as the PROGRAM or another
SUBROUTINE, don't assume that the other function is known to the
compiler in the PROGRAM or another SUBROUTINE section; you need to use
"contains" or modules for that. (The compiler does not need to know
about the subroutine for using it, but you loose the error checking of
the compiler and might get surprising results if the compiler uses the
wrong type.)

c)  "1.5" is always a single precision number, you need to use "1.5d0"
to have a double precision number.

Tobias

On Fri, 09 Feb 2007 18:33:40 GMT, Frederick Williams

<Frederick_Willi@antispamhotmail.co.uk.invalid> wrote:
>  *  a free downloadable FORTRAN compiler for Windows XP, and

You might want to take a look at FTN95.  There is a personal edition
which is aimed at people learning the language.  This compiler has a
comprehensive error checking system which is ideal for beginners.

Check out www.silverfrost.com for more information.

Hope this helps,
Mark
--
       |\      _,,,---,,_          A picture used to be worth a
ZZZzzz /,`.-'`'    -.  ;-;;,       thousand words - then along
      |,4-  ) )-,_. ,\ (  `'-'     came television!
     '---''(_/--'  `-'\_)          

Mark Stevens  (mark at thepcsite fullstop co fullstop uk)

Tobias Burnus <bur@net-b.de> wrote:
> The biggest difference between Fortran 77 and Fortran 90/95/2003 is
> that Fortran 77 is fixed-form source

I would disagree with the categorization of that as the biggest
difference. Indeed, I'd place that more at the level of trivial
differences. And recall that fixed-form source is also valid
f90/95/2003.

It is hard for me to say what the biggest differences are. There are so
many major new features in f90. Modules are a candidate, as they pervade
almost everything in the language.

I know the two features that had me looking for something other than f77
long ago, when I settled on f90 before compilers for it were even out.
Those two features were dynamic allocation and structures. So in some
sense, those two were the biggest for me initially. I've since come to
see others as major also.

--
Richard Maine                    | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle           |  -- Mark Twain

For me, it was array syntax.  Imagine being able to flat-field a CCD
image by simply writing the statement

   FlattenedImage = BiasSubtractedImage / MasterFlatImage

And, of course, variable names with more than six characters, with
lowercase part of the character set.  Yes, many FORTRAN 77 compilers
supported long name, but Fortran 90 added it to the standard.

Frederick Williams

<Frederick_Willi@antispamhotmail.co.uk.invalid> wrote:
> I'd like to teach my self FORTRAN, so I'm looking for two
> recommendations:

>   *  a free downloadable FORTRAN compiler for Windows XP, and

>   *  a book (for beginners but also scholarly) that gives an account
>      of FORTRAN preferably giving the text of its own compiler.

The current language is customarily spelled "Fortran," with the
spelling "FORTRAN" typcially reserved for the former versions
(such as FORTRAN 77).  If you want to learn, it would be
sensible to learn the current language, Fortran 95, which has
many added features to improve productivity and reduce the
probability of coding errors.

Others have pointed you to free downloads.  Without commenting
on others, I have had good luck with g95.

Don't overlook online tutorials, for example the one at

http://www.dnp.fmph.uniba.sk/cernlib/asdoc/WWW/f90/f90.html

which I found by Googling on "fortran 95 tutorial".

Best of luck.

--
Mike Prager, NOAA, Beaufort, NC
Address spam-trapped; remove color to reply.
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.

Tobias Burnus wrote:

> The biggest difference between Fortran 77 and Fortran 90/95/2003 is
> that Fortran 77 is fixed-form source ...

For a controversial catalog of other differences:

  http://www.soks.org/view/Fortran95ForFortran77Programmers

Regards,
--
Bil Kleb
http://funit.rubyforge.org

"Frederick Williams" <Frederick_Willi@antispamhotmail.co.uk.invalid>
wrote in message news:45CCBECE.845EE2E@antispamhotmail.co.uk.invalid...

> I'd like to teach my self FORTRAN, so I'm looking for two
> recommendations:

>  *  a free downloadable FORTRAN compiler for Windows XP, and

>  *  a book (for beginners but also scholarly) that gives an account
>     of FORTRAN preferably giving the text of its own compiler.

> Tia.

Check my web site below,  you'll find links to free Fortran compilers and
Fortran tutorials and links to help pages and other Fortran goodies.

http://12000.org/my_courses/UCI_COURSES/TA_COURSES/spring_TA_MAE_185/...

Nasser

C, Pascal, PL/M, Coral-66, various assemblers.

> so my recommendation may not be what you need.
> That said, I'd recommend the book "Fortran 95/2003 Explained"
> by Metcalf, Reid, and  Cohen

Thanks.

--
Remove "antispam" and ".invalid" for e-mail address.
We have lingered in the chambers of the sea
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.

Yes, if they are interesting and show FORTRAN at its best.  (Or perhaps
at its worst: how to do things that FORTRAN doesn't do well.)

> and slow pace?

No.

> Or do you
> know already well how to programming in  language X and the book
> should teach you fast Fortran without too many examples? Or ...

> Do you need mostly Fortran 77 for some reasons?
> I think most in this newsgroup would suggest otherwise to learn
> Fortran 90/95 and only skim over Fortran 77;

Since I'm planning to learn it for fun, the version does matter, at
least I don't think it does.

> at least that is what I
> recommend.

--
Remove "antispam" and ".invalid" for e-mail address.
We have lingered in the chambers of the sea
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.

I had wondered about that :-).

> If you want to learn, it would be
> sensible to learn the current language, Fortran 95, which has
> many added features to improve productivity and reduce the
> probability of coding errors.

> Others have pointed you to free downloads.  Without commenting
> on others, I have had good luck with g95.

> Don't overlook online tutorials, for example the one at

> http://www.dnp.fmph.uniba.sk/cernlib/asdoc/WWW/f90/f90.html

> which I found by Googling on "fortran 95 tutorial".

> Best of luck.

--
Remove "antispam" and ".invalid" for e-mail address.
We have lingered in the chambers of the sea
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.

Frederick Williams wrote:

> I'd like to teach my self FORTRAN, so I'm looking for two
> recommendations:

>   *  a free downloadable FORTRAN compiler for Windows XP, and

>   *  a book (for beginners but also scholarly) that gives an account
>      of FORTRAN preferably giving the text of its own compiler.

> Tia.

Thanks for the advice.

--
Remove "antispam" and ".invalid" for e-mail address.
We have lingered in the chambers of the sea
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.

I would think that it should matter quite a lot.  Newer Fortran's have
essential features lacking in Fortran 66/77.  It is difficult to program
  "well" without those features.

>>at least that is what I
>>recommend.

--

Gary Scott
mailto:garylscott@sbcglobal dot net

***** 5 Jan: Back from 7 days in Cozumel! *****

Fortran Library:  http://www.fortranlib.com

Support the Original G95 Project:  http://www.g95.org
-OR-
Support the GNU GFortran Project:  http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows
it can't be done.

-- Henry Ford

Frederick Williams wrote:
> I'd like to teach my self FORTRAN, so I'm looking for two
> recommendations:

>   *  a free downloadable FORTRAN compiler for Windows XP, and

>   *  a book (for beginners but also scholarly) that gives an account
>      of FORTRAN preferably giving the text of its own compiler.

Compiler:
---------
Tobias listed "free" (free of charge) Fortran 9x compilers for Windows.
Many people recommended the Silverfrost FTN95 compiler. One advantage is
that it comes with a full-featured IDE with debugger and it runs
out-of-the-box without any configuration. But the "free" personal
version add a splash screen ('personal version - only for non-commercial
use' or similar) to your Fortran programs and delayed therewith the
start of your programs for a few seconds. This could be very annoying
particularly if you learn Fortran because your edit-compile-run cycles
are very short in general.

g95 and gfortran do not have this disadvantage but you have to use this
compilers on the command-line or configure an IDE or editor. Furthermore
it could make sense to install MinGW/Msys (or Cygwin) additionally to
have further libraries or tools you may need in later projects.

On Windows I use g95 with MinGW/Msys (www.mingw.org) and SciTE Editor
(www.scintilla.org/SciTE.html) or Photran (www.eclipse.org/photran/).

Fortran Book:
-------------
Many people recommend Metcalf et al., "Fortran 95/2003 explained". This
is very good reference but I would not recommend this book to learn the
language (as Tobias did). I would recommend "Fortran 90/95 for
Scientists and Engineers" from Chapman, McGraw Hill.

IMO it is well structured and suitable for learning and reference. But
FORTRAN 90/95 for Scientists and Engineers" is a textbook primarily.
Chapman offers complete little sample programs and procedures and not
only code snippets. IMHO this issue is very important for beginners
because you can see the mentioned statements in a code context. The
sample programs are very practical for people mentioned in the title and
easy to understand. You will even find tricks and hints for your
programming practice.

Additionally you will find text boxes for good programming practice,
Fortran 95-only statements and a abstract with training exercises after
each chapter. The appendix contains the solutions and other useful tables.

I own both books, Metcalf and Chapman.

Tutorials
---------
There are many tutorials in the web. Look at
http://www.dmoz.org/Computers/Programming/Languages/Fortran/Tutorials/.

Best regards,

Hani

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc