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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:660c:60b:: with SMTP id i11mr1546038itk.9.1554161730770; Mon, 01 Apr 2019 16:35:30 -0700 (PDT) X-Received: by 2002:a9d:51d2:: with SMTP id d18mr19121816oth.61.1554161730608; Mon, 01 Apr 2019 16:35:30 -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!78no54488itl.0!news-out.google.com!l81ni57itl.0!nntp.google.com!136no54413itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 1 Apr 2019 16:35:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.98.182.104; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 184.98.182.104 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Erfc() function in ADA From: Jerry Injection-Date: Mon, 01 Apr 2019 23:35:30 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56042 Date: 2019-04-01T16:35:30-07:00 List-Id: On Monday, April 1, 2019 at 9:29:00 AM UTC-7, le...@gammawizard.com wrote: > Greetings, I have been looking into reimplementing a collection of numeri= cal heavy code from R/C++ into ADA and so far things seem doable. My only q= uestion is about the support for the error function and in particular the c= omplementary error function erfc(). I assume this is library dependent so I= would appreciate any information if erfc() is part of the ADA standard lib= rary or perhaps provided by GNAT in some form? >=20 > -Leo I have used Ada for intense numerical work for many years and it awesome fo= r that. But from time to time I need a special function and then I frown. I= have linked to libraries in GNU Scientific Library and Octave and a couple= of times to specialized libraries. I have translated Numerical Recipes to = Ada. (Thanks to Gautier for the Pascal-to-Ada converter but one can also co= nvert it quickly yourself if you want to.) I've even cobbled together a few= lines that write an Octave (Matlab) script to a text file, then call Octav= e to execute it, and read the results from a second file back into my Ada p= rogram. And not long ago someone on this list (sorry, forgot who, but a reg= ular poster) put up a way to connect to Julia code--this is really promisin= g but I haven't followed up on that. Having a deep, readily-accessible access to numerical code has been a probl= em with Ada: I wish there would be a concerted effort to alleviate this def= iciency. Jerry