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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,67d995bf9f62ea45 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: matrix package with Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <23f0d8f1-e7bd-4af9-a0ee-cea85cbff4bd@x21g2000yqa.googlegroups.com> <8f4ba975-5441-4b42-89ad-b53373a59eb9@g19g2000yqc.googlegroups.com> <53250ca8-da19-47a9-a9b1-3cd1653fb05f@y4g2000yqy.googlegroups.com> <3dd1b818-4ab0-495f-97c5-8f59035d71a4@d37g2000yqm.googlegroups.com> Date: Tue, 20 Jul 2010 09:27:26 +0200 Message-ID: <84wh7j2x1re7$.1l00kxvcht5yw.dlg@40tude.net> NNTP-Posting-Date: 20 Jul 2010 09:27:26 CEST NNTP-Posting-Host: b260669e.newsspool2.arcor-online.net X-Trace: DXC=nY^R0W_mSHW\9P[:DUn00QA9EHlD;3YcR4Fo<]lROoRQ8kF On Mon, 19 Jul 2010 17:34:25 -0500, Randy Brukardt wrote: > I am no expert on numerics, but I have to wonder what other languages and/or > packages do in such cases? Perhaps they just don't care (there is precedent > for that; Ada takes great pains to define the accuracy of most of the > numerical functions, most other languages say nothing at all). Clearly, this > problem would need to be solved in some way before a general routine could > in introduced (of course, the abstract above seems to imply that such a > solution is impossible). "Accuracy requirements for the subprograms Solve, Inverse, Determinant, Eigenvalues and Eigensystem are implementation defined." -- ARM G.3.1 I agree that it is not good from Ada design point of view. The requirement should be: the accuracy is the precision of the corresponding Real type (or else Constraint_Error). This is an immense problem, especially for generic units, I have no idea how to approach it using existing language means, not to mention algorithmic issues. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de