comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Thomas <kst@ecs.soton.ac.uk>
Subject: Re: Where I find Bessel function for Ada ?
Date: Wed, 26 Nov 2008 07:09:20 -0800 (PST)
Date: 2008-11-26T07:09:20-08:00	[thread overview]
Message-ID: <de0bec28-e6be-4ae7-b67d-b34a430bd4b1@f13g2000yqj.googlegroups.com> (raw)
In-Reply-To: ggjhp2$5ts$1@nntp.motzarella.org

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 at
http://archives.math.utk.edu/software/msdos/numerical.analysis/nrpas13/.html

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.

Ken





  reply	other threads:[~2008-11-26 15:09 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 [this message]
2008-11-26 16:12       ` Ludovic Brenta
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