comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Numerical Computation and Ada95
Date: Fri, 11 May 2001 14:28:50 -0400
Date: 2001-05-11T18:28:52+00:00	[thread overview]
Message-ID: <9dhb14$4v4$1@nh.pace.co.uk> (raw)
In-Reply-To: 9dh4ol$s9g$1@s1.read.news.oleane.net

I was afraid to say anything because its been so long since I regularly used
Fortran that I couldn't be sure that later versions of the language didn't
add features of which I was not aware. When I *was* a Fortran programmer and
started learning Ada, I was very impressed with the fact that Ada seemed to
have so much better support for math than did Fortran. (Aside from lack of
Log & trig at the time. :-) Certainly, Ada has added lots of new
mathematical capabilities in Ada95 only by now I don't know if Fortran has
caught up.

At the time, I was very impressed that Ada let you specify the accuracy you
required and/or check the accuracy that was available. Ada defined model
numbers and safe numbers that gave one a model for understanding how
calculations were going to be made & thus one could plan for it. Fortran
basically left the mechanics of the computations up to the machine with no
rigorous formal definition of behavior. (Or at least it was not nearly as
rigorous as the definition Ada provided.) Lots of this is a major aid in
numerical analysis when you're trying to figure out how good your
computations are going to be.

Now the numerous attributes available for numeric types as well as adding
support for decimal & modular types would have me claiming that there is
quite a bit more support in Ada for number crunching than one gets with
Fortran - but the last Fortran I used was Fortran77. If later versions have
caught up, I'd like to know about it, but I'd recommend that Fortran number
crunchers take a serious look at Ada's numeric support because they just
might find it to be superior. (That, and its hard to beat Generics for
building computations once & reusing them with different numeric types!)

MDC

--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Jean-Pierre Rosen" <rosen@adalog.fr> wrote in message
news:9dh4ol$s9g$1@s1.read.news.oleane.net...
> An other point I'm surprised nobody mentionned:
> Provided your compiler supports Annex F, you get guarantees about the
numerical accuracies of computations, *including* the accuracy
> of the math library.
> AFAIK, Fortran tells you nothing about the accuracy of sin, log, etc. So
if you are concerned not only by fast results, but also by
> accurate results, Ada is a big winner.
>






  reply	other threads:[~2001-05-11 18:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-09 19:13 Numerical Computation and Ada95 N&J
2001-05-09 19:42 ` David Starner
2001-05-10 12:23   ` Pat Rogers
2001-05-10 13:51   ` Ted Dennison
2001-05-10 18:21   ` Jeffrey Carter
2001-05-09 19:43 ` Ted Dennison
2001-05-09 21:57 ` James Rogers
2001-05-10  0:41 ` Dr Adrian Wrigley
2001-05-10  5:45   ` N&J
2001-05-10  6:37     ` David Starner
2001-05-10  6:48     ` tmoran
2001-05-10 20:12       ` Gary Scott
2001-05-10 14:04     ` Ted Dennison
2001-05-11 14:15       ` Marin David Condic
2001-05-10 20:08     ` Gary Scott
2001-05-11 11:58       ` Larry Kilgallen
2001-05-11 11:31         ` Dan Nagle
2001-05-11 14:33         ` Gary Scott
2001-05-11  4:00     ` Lao Xiao Hai
2001-05-11 14:03     ` Marin David Condic
2001-05-10  8:00 ` Martin Dowie
2001-05-10 14:11   ` Ted Dennison
2001-05-10 15:46     ` Martin Dowie
2001-05-10 13:54 ` Martin Stift
2001-05-11  5:59   ` mike
2001-05-10 19:07 ` Laurent Guerby
2001-05-10 20:49 ` N&J
2001-05-11 16:28   ` Jean-Pierre Rosen
2001-05-11 18:28     ` Marin David Condic [this message]
2001-05-13 21:42   ` Gautier de Montmollin
2001-05-11  2:02 ` DuckE
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox