Re: "Modern Fortran Explained": announcement



"Daniel Carrera" <daniel@xxxxxxxxx> wrote in message
news:imq7gp$u2k$1@xxxxxxxxxxxxxxxx
On 03/28/2011 04:18 PM, Beliavsky wrote:
If I were teaching programming to someone interested in physics or
engineering, I might start with a Python (with the SciPy package) or
Octave.

I'm not a fan of Python's syntax, or SciPy's separation of matrices vs
narrays. So I'd vote for Octave.

I wish there was an Octave-like interactive program with a slightly more
Fortran-like syntax.


One such book is "Python Scripting
for Computational Science" (2008) by Hans Petter Langtangen, but the
Fortran code in that book uses the F77 style, because that's what the
Python wrapping tools in the book handle...


I've been thinking lately about how I would design a course on scientific
computing that taught Fortran. My first goal would be to force everyone
to use strictly modern Fortran, and I think you can do that with only
three simple rules:

1. The program must compile without warnings with gfortran -std=f2008

2. *ALL* procedures must be in modules.

3. Every module must start with "implicit none".



4. The COMMON statement is forbidden.

--
Qolin

Email: my qname at domain dot com
Domain: qomputing


.



Relevant Pages

  • Re: "Modern Fortran Explained": announcement
    ... So I'd vote for Octave. ... Fortran-like syntax. ... Fortran code in that book uses the F77 style, ... Python wrapping tools in the book handle... ...
    (comp.lang.fortran)
  • Re: "Modern Fortran Explained": announcement
    ... So I'd vote for Octave. ... I wish there was an Octave-like interactive program with a slightly more Fortran-like syntax. ... Python wrapping tools in the book handle... ... I've been thinking lately about how I would design a course on scientific computing that taught Fortran. ...
    (comp.lang.fortran)
  • Re: Continuous system simulation in Python
    ... Yes I have considered Octave. ... think you could do more in Python and in more simple ways. ... Matlab and Python offer today a ...
    (comp.lang.python)
  • Re: Continuous system simulation in Python
    ... part of the simulator. ... > Yes I have considered Octave. ... In fact I'm already using Matlab and ... > think you could do more in Python and in more simple ways. ...
    (comp.lang.python)
  • Re: LSODE usage example in C/C++ required
    ... I tried to look for sample code on internet but could not ... If you are OK using code with the GPL license, GNU Octave (the nice ... free version of Matlab) has a C++ interface to LSODE. ... I have no idea about doing the linking to the Fortran library though. ...
    (sci.math.num-analysis)