comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <list_email@icloud.com>
Subject: Re: Erfc() function in ADA
Date: Mon, 1 Apr 2019 16:35:30 -0700 (PDT)
Date: 2019-04-01T16:35:30-07:00	[thread overview]
Message-ID: <df7643e9-e820-4f98-8ea2-61917eb5859c@googlegroups.com> (raw)
In-Reply-To: <b9dad693-6cb1-4650-90a8-9581dffdcdc2@googlegroups.com>

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 numerical heavy code from R/C++ into ADA and so far things seem doable. My only question is about the support for the error function and in particular the complementary error function erfc(). I assume this is library dependent so I would appreciate any information if erfc() is part of the ADA standard library or perhaps provided by GNAT in some form?
> 
> -Leo

I have used Ada for intense numerical work for many years and it awesome for 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 convert 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 Octave to execute it, and read the results from a second file back into my Ada program. And not long ago someone on this list (sorry, forgot who, but a regular poster) put up a way to connect to Julia code--this is really promising but I haven't followed up on that.

Having a deep, readily-accessible access to numerical code has been a problem with Ada: I wish there would be a concerted effort to alleviate this deficiency.

Jerry

  parent reply	other threads:[~2019-04-01 23:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-01 16:28 Erfc() function in ADA leov
2019-04-01 17:01 ` gautier_niouzes
2019-04-01 17:05   ` leov
2019-04-01 23:35 ` Jerry [this message]
2019-04-02  8:07   ` Dmitry A. Kazakov
2019-04-07 23:01   ` Jerry
2019-04-02 10:39 ` gautier_niouzes
2019-04-03 16:01   ` leov
replies disabled

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