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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, 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.196.232 with SMTP id ip8mr24261905pbc.6.1341912379167; Tue, 10 Jul 2012 02:26:19 -0700 (PDT) Path: l9ni11304pbj.0!nntp.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Tue, 10 Jul 2012 04:26:16 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> <637de084-0e71-4077-a1c5-fc4200cad3cf@googlegroups.com> <1wqz1wr8wto96.1fwpyip6ct1z9.dlg@40tude.net> Reply-To: nma@12000.org NNTP-Posting-Host: 3VOmTkrtV3h0ncGAx1mHHw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 1598 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-10T04:26:16-05:00 List-Id: On 7/10/2012 4:21 AM, Nasser M. Abbasi wrote: > ------------------------------- > octave:23> A=rand(3,1) > A = > 0.45896 > 0.61557 > 0.26697 > > octave:24> abs(V) > ans = > 3 4 5 > > octave:25> norm(V) > ans = 7.0711 > ------------------------- meant to use A, not v above ofcourse: ---------------------- octave:26> abs(A) ans = 0.45896 0.61557 0.26697 octave:27> norm(A) ans = 0.81293 ---------------------- --Nasser