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,ab436e97ff76821f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.241.162 with SMTP id wj2mr23618605pbc.2.1341897779089; Mon, 09 Jul 2012 22:22:59 -0700 (PDT) Path: l9ni11236pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Mon, 9 Jul 2012 22:22:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> References: NNTP-Posting-Host: 130.240.232.139 Mime-Version: 1.0 X-Trace: posting.google.com 1341897778 24119 127.0.0.1 (10 Jul 2012 05:22:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 10 Jul 2012 05:22:58 +0000 (UTC) Cc: nma@12000.org In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.240.232.139; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-09T22:22:58-07:00 List-Id: On Tuesday, July 10, 2012 5:24:57 AM UTC+1, (unknown) wrote: > Le mardi 10 juillet 2012 01:27:54 UTC+2, Nasser M. Abbasi a =E9crit=A0: >=20 > > In Fortran, I can just write V**2, where V is a vector. In Ada, > > I can&#39;t do that. Since ** is not defined on this array type > > and this number type. > >=20 > > I would have to write a loop to iterate over V and do V(I)**2 on > > each element. > >=20 > > This for me, is a step backward. This is how Fortran77 was. >=20 > 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. It's a pity that Ada does not offer suc= h a facility. I do not blame those who stick to Matlab (or Fortran?) for do= ing numerical computations. YC