Re: A question on Newton's Method
- From: Jon Harrop <usenet@xxxxxxxxxxxxxx>
- Date: Fri, 01 Apr 2005 22:17:19 +0100
I can't believe you'd advise a noob to use a compiler which is still getting
5 bug reports per day. How can you sleep at night?
beliavsky@xxxxxxx wrote:
> What "computer-specific problems" do you avoid by using OCaml instead
> of Fortran? Do you mean "platform-specific"?
No, I mean problems with your numerical code which have nothing to do with
maths. My main concern here is non-determinism from:
1. Out of bounds
2. Uninitialised variables
3. Aliasing
....
As this is one students seem to have the most problems with. Most compiler
bugs probably also fall into this category. Memory leaks are obviously
another important class of hassle which most numerical programmers
shouldn't have to deal with.
Another concern is the intractability of most problems in Fortran which, in
this case, means the lack of availability of the basic data structures and
algorithms. If he doesn't want to have to deal with modulo arithmetic then
there are arbitrary-precision integers and rationals (Num in OCaml, the
native format in Mathematica, and a major hassle in Fortran). If he wants
to perform set operations on a "set of numbers" then there should be
library functions (Set module in OCaml, Union etc. in Mathematica, and a
major hassle in Fortran).
An interactive programming environment is also particularly important when
starting out. Mathematica has an awesome graphical environment (the
"notebook" front end) and OCaml has it's top-level.
Finally, the ability to visualise your results is hugely beneficial. This is
obviously easiest with Mathematica, followed by OCaml (the built-in
Graphics module, or the lablGL OpenGL bindings) and then Fortran.
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com
.
- Follow-Ups:
- Re: A question on Newton's Method
- From: beliavsky
- Re: A question on Newton's Method
- References:
- A question on Newton's Method
- From: David M
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: beliavsky
- A question on Newton's Method
- Prev by Date: Re: Time Series Analysis
- Next by Date: Re: using downhill simplex routine from 'numerical recipes'
- Previous by thread: Re: A question on Newton's Method
- Next by thread: Re: A question on Newton's Method
- Index(es):
Relevant Pages
|