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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:8209:: with SMTP id o9mr205996jag.15.1554307287850; Wed, 03 Apr 2019 09:01:27 -0700 (PDT) X-Received: by 2002:aca:4c08:: with SMTP id z8mr171210oia.30.1554307287645; Wed, 03 Apr 2019 09:01:27 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!78no16773itl.0!news-out.google.com!l81ni29itl.0!nntp.google.com!136no16655itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 3 Apr 2019 09:01:27 -0700 (PDT) In-Reply-To: <973f2c6a-87cd-4551-9edb-3b8a2f6541a2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.124.247.54; posting-account=eVYiYAoAAACkiV_qyXRdYTr1YYz1hNDO NNTP-Posting-Host: 73.124.247.54 References: <973f2c6a-87cd-4551-9edb-3b8a2f6541a2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Erfc() function in ADA From: leov@gammawizard.com Injection-Date: Wed, 03 Apr 2019 16:01:27 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56058 Date: 2019-04-03T09:01:27-07:00 List-Id: On Tuesday, April 2, 2019 at 6:39:59 AM UTC-4, gautier...@hotmail.com wrote: > A few random remarks... > > 1) For further references: there is now in Mathpaqs (rev. 153+) a separate Erf_function package. > Since Phi_function.Phi uses Erf(x) anyway, it's better to have access to Erf directly. > > 2) About the Numerical Recipies: be careful, some versions support only 7-8 digits (single precision), so numerical errors cumulate very quickly. > > 3) Some good stuff can be found in the Alglib and Cephes libraries, in C, Fortran or Pascal > > 4) Simple special functions (with one parameter) could well be in an official Ada.Numerics.Generic_Special_Functions (low maintenance effort for compiler vendors) > > 5) Don't forget to check: https://www.adaic.org/ada-resources/tools-libraries/ > > 6) Perhaps the Alire system has some math packages ? Thanks for enhancing the library. I just ported my code and the Phi function is working like a charm.