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=ham 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!postnews.google.com!q12g2000yqj.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: matrix package with Ada Date: Sun, 25 Jul 2010 12:15:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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> NNTP-Posting-Host: 193.11.22.91 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1280085317 24970 127.0.0.1 (25 Jul 2010 19:15:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 25 Jul 2010 19:15:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q12g2000yqj.googlegroups.com; posting-host=193.11.22.91; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12558 Date: 2010-07-25T12:15:17-07:00 List-Id: Thanks for all these information. I'll comment as appropriate: On Jul 20, 12:34 am, "Randy Brukardt" wrote: > As far as I know, we haven't had a single request for more numeric > facilities in Ada 2012, and I'm pretty sure that there are no open requests > for the same. This can mean that people are still not much aware of Ada as a very good and robust language for scientific programming. If we look at recent publications, how many books discuss scientific computations from the view of Ada, how many from the view say C++? For Ada, the sad news is that we have practically no recent publication. There were strong interest in the 1980s...e.g. the book Scientific Ada and Applied Ada. What happened after that? > If you want to see additional facilities, you need to ask (on Ada-Comment) > and give examples of problems that you have that can't be solved with the > current facilities. (Even better, would be to actively participate in the > language revision process; we don't have enough numerics expertise to do a > great job.) I also don't have enough numerics expertise. But if other languages have successfully created numerical libraries since 1970 or 1980, then I guess that the Ada committee could do some outsourcing and put up a team that would look into the matter. I read here that some Ada users translate the codes from the book Numerical recipes in Pascal. Translation can be ok, but re- writing the code in Ada's spirit using generics and so on would be far better. If the Ada committee doesn't put efforts to create good numerical libraries, then we can say that Ada won't be appealing to someone needing numerical computations. > In any case, the eigenvalue routines originally were supposed to work on all > matrices. That was dropped as the algorithms to solve such things are > supposedly suspect. Here's the discussion from AI95-0296-1 (which defines > the G.3 packages): > In view of these computational difficulties and the fact that requiring the > eigensystem of general matrices is uncommon, we decided not to provide such > facilities. > [End of quote from AI95-0296-1.] I don't think that eigensystem analysis of general non-symmetric matrices is uncommon. Many real-life systems can only be modeled better as non-symmetric systems and these abound in engineering. If eigensystem analysis for only symmetric matrices would exist, then many engineering achievements would not be possible. The fact that other languages do provide support for non-symmetric matrices do indicate that they are needed more often than one may think. > I recall that the situation is actually worse than reported here; some of > the algorithms used may not terminate for some matricies. Algorithms that > don't terminate aren't tolerable in the Ada predefined libraries! This is good that Ada takes much care in providing robust libraries. > 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). Still, as I mentioned the engineering community will be frustrated if eigensystem analysis for non-symmetric matrices wouldn't exist. Other languages have successfully implemented algorithms to deal with general matrices. These algorithms usually have to pass some benchmarks and these benchmarks are available in literature. The problem with Ada remains that there is practically no recent books (we have two in the 1980's that I know) which specifically that discuss numerical techniques. A new person considering to use Ada would be only puzzled to see why there are no such books after the 1990's. So that person will easily consider Fortran, C++ or something else. If on the other hand, the Ada committee will provide robust numeric libraries and some authors would consider writing books demonstrating the power of Ada in numerical computing, then people will become interested using Ada in scientific programming. YC