From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6d7a86bff9319841 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!postnews.google.com!f13g2000yqj.googlegroups.com!not-for-mail From: Ken Thomas Newsgroups: comp.lang.ada Subject: Re: Where I find Bessel function for Ada ? Date: Wed, 26 Nov 2008 07:09:20 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 152.78.70.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1227712160 22365 127.0.0.1 (26 Nov 2008 15:09:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 26 Nov 2008 15:09:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f13g2000yqj.googlegroups.com; posting-host=152.78.70.10; posting-account=B_SmUwoAAAArT7-avjstloPG8dLOABck User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.3.154.9 Safari/525.19,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:2810 Date: 2008-11-26T07:09:20-08:00 List-Id: On Nov 26, 1:08=A0pm, Paul Cole Gloster wrote: > Reinert submitted: > > |----------------------------------------------------------------| > |"I want to use the modified Bessel function of order 0 in my Ada| > > |program. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| > > | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| > > |Where I find it ?" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| > |----------------------------------------------------------------| > > 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 =A0! > > !and put it through th P2Ada translator:http://p2ada.sf.net/=A0 ! > > !The NR sources are freely available on the Internet." =A0 =A0 =A0 =A0 = =A0! > !---------------------------------------------------------------! > > 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/.htm= l 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