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,ab436e97ff76821f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.73 with SMTP id qs9mr23938003pbc.7.1341905247258; Tue, 10 Jul 2012 00:27:27 -0700 (PDT) Path: l9ni11278pbj.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Tue, 10 Jul 2012 09:27:22 +0200 Organization: cbb software GmbH Message-ID: <1576iawk6qc1k$.cnnztz5x3piq$.dlg@40tude.net> References: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-10T09:27:22+02:00 List-Id: On Mon, 9 Jul 2012 22:22:58 -0700 (PDT), Ada novice wrote: >> Interesting example... How often do you do need that, frankly ? > > Believe me, for someone who do numerical computations on a daily basis, an > operation like V**2 is a NECESSITY. Where is a problem? "**" is a user-definable operator in Ada. Moreover, it can be overloaded. Provided that V**2 is quite ambiguous. it could mean 1. inner product 2. cross product 3. matrix: Transpose (V) * V ... > It's a pity that Ada does not offer such a facility. Ada does it. Maybe some library X does not, then take Y or extend X. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de