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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM 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 Received: by 10.68.219.170 with SMTP id pp10mr24064069pbc.1.1341907576370; Tue, 10 Jul 2012 01:06:16 -0700 (PDT) Path: l9ni11278pbj.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Tue, 10 Jul 2012 01:06:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <76f6881a-cde1-4653-b97d-78a6fceea025@googlegroups.com> References: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> NNTP-Posting-Host: 62.203.238.118 Mime-Version: 1.0 X-Trace: posting.google.com 1341907576 25500 127.0.0.1 (10 Jul 2012 08:06:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 10 Jul 2012 08:06:16 +0000 (UTC) Cc: nma@12000.org In-Reply-To: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=62.203.238.118; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-10T01:06:15-07:00 List-Id: Le mardi 10 juillet 2012 07:22:58 UTC+2, Ada novice a =E9crit : > Believe me, for someone who do numerical computations on a daily basis, a= n operation like V**2 is a NECESSITY. It's a pity that Ada does not off= er such a facility. I do not blame those who stick to Matlab (or Fortran?) = for doing numerical computations. Wait... There are *such* facilities and several built-in operations *like* = that: http://www.ada-auth.org/standards/12rm/html/RM-G-3-1.html Apparently it is not enough. But it is possible to make a proposal for the = next standard (and shorter term, for the next GNAT version). The snag with that *specific* operation, v**2 meaning "v(i)**2 for each i",= is that it is counter-intuitive from a linear algebra point of view. You w= ould rather expect v**2 =3D v*v. Now another snag is should "*" be the dot = or the cross product ?... These kind of things are thought-out carefully before landing into an Ada s= tandard... G.