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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,86e8c626be2471ae X-Google-Attributes: gid1094ba,public X-Google-Thread: 103376,fc050a66c3b5d87d X-Google-Attributes: gid103376,public From: bv Subject: Re: F9X twister & ADA (was: n-dim'l vectors) Date: 2000/04/10 Message-ID: <38F28A85.53809F39@sdynamix.com>#1/1 X-Deja-AN: 609373052 Content-Transfer-Encoding: 7bit References: <8cctts$ujr$1@nnrp1.deja.com> <38EA0440.1ECBC158@ncep.noaa.gov> <38ED4ECA.ADB698C9@sdynamix.com> X-Accept-Language: en X-Server-Date: 11 Apr 2000 02:16:48 GMT Content-Type: text/plain; charset=us-ascii Organization: Eclipse Software Mime-Version: 1.0 Newsgroups: comp.lang.fortran,comp.lang.ada Date: 2000-04-11T02:16:48+00:00 List-Id: Richard Maine wrote: > > Yes, by the way, the committee certainly looked at ADA. And it shows in > quite a few places. Surely, you're joking Mr."Feinman"? It takes a lot more than just *looking* at ADA! Anyhow, in case the counter example in ADA baffled you here's how the same fcn might look in the F9X that could have been: vector function normalize(v) external vector vector u,v real norm vni = 1/norm(v) do i=1,len(v) u(i) = v(i)*vni enddo return u end ** somewhere in your code (sans interfaces & modules) vector u,v, normalize . . . u = normalize(v) Too bad for the missed chance when so much could have been done with but a little extra tasking on the solitary assignments of the "return" and "external". -- Dr.B.Voh ----------------------------------------------- Modeling * Simulation * Analysis http://www.sdynamix.com -----------------------------------------------