comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Where I find Bessel function for Ada ?
Date: Wed, 26 Nov 2008 08:12:21 -0800 (PST)
Date: 2008-11-26T08:12:21-08:00	[thread overview]
Message-ID: <111195bd-6d60-42e6-8ce1-bf7c27a2f665@u14g2000yqg.googlegroups.com> (raw)
In-Reply-To: de0bec28-e6be-4ae7-b67d-b34a430bd4b1@f13g2000yqj.googlegroups.com

On Nov 26, 4:09 pm, Ken Thomas <k...@ecs.soton.ac.uk> wrote:
> On Nov 26, 1:08 pm, Paul Cole Gloster <Colin_Paul_Glos...@ACM.org>
> wrote:
>
>
>
> > Reinert submitted:
>
> > |----------------------------------------------------------------|
> > |"I want to use the modified Bessel function of order 0 in my Ada|
>
> > |program.                                                        |
>
> > |                                                                |
>
> > |Where I find it ?"                                              |
> > |----------------------------------------------------------------|
>
> > It may be best to write your own version so that you could justifiably
> > have an accurate level of confidence of it.
>
> > Gautier responded:
>
> > !---------------------------------------------------------------!
> > !"It is in the Numerical Recipes in Pascal, chapter 6.4, pp 191.!
>
> > !All you need to pick the right Pascal source, like bessj0.pas  !
>
> > !and put it through th P2Ada translator:http://p2ada.sf.net/ !
>
> > !The NR sources are freely available on the Internet."          !
> > !---------------------------------------------------------------!
>
> > I have not thoroughly assessed that particular part of "Numerical
>
> > Recipes", but some parts of "Numerical Recipes" are
> > untrustworthy. Early in 2009 on
> > WWW.ACCU.org
> > a review by myself which is almost ready for publication should be
> > available.
>
> The source for the Pascal version of Numerical Recipes can be found athttp://archives.math.utk.edu/software/msdos/numerical.analysis/nrpas1...
>
> As the code for bessj0 is very short, translation to Ada is a small
> exercise. On the other hand, the code seems to deal with only single
> precision arithmetic so does not promise high accuracy.

I suppose this is easy to fix by making the Ada implementation
generic. The user then instantiates it for any floating-point type
with the required accuracy.

--
Ludovic Brenta.



  reply	other threads:[~2008-11-26 16:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26  8:40 Where I find Bessel function for Ada ? reinkor
2008-11-26 11:05 ` gautier_niouzes
2008-11-26 12:57   ` Dmitry A. Kazakov
2008-12-03  4:18     ` R. B. Love
2008-12-03 13:22       ` Dmitry A. Kazakov
2008-12-03 14:24         ` Hyman Rosen
2008-12-03 14:54           ` Dmitry A. Kazakov
2008-12-06 22:02       ` Nasser Abbasi
2008-12-06 22:37         ` Per Sandberg
2008-12-19 12:39         ` Colin Paul Gloster
2008-12-19 23:30           ` Jerry
2008-11-26 13:08   ` Paul Cole Gloster
2008-11-26 15:09     ` Ken Thomas
2008-11-26 16:12       ` Ludovic Brenta [this message]
2008-11-26 17:17         ` Dmitry A. Kazakov
2008-11-27  3:07 ` Jerry
replies disabled

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