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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c89924cb7c8c5a42 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-13 15:06:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Who said strong typing is a benefit? Date: Mon, 14 Oct 2002 00:07:01 +0200 Organization: Enyo -- not your organization Message-ID: <87d6qedmd6.fsf@deneb.enyo.de> References: <8db3d6c8.0210121718.25cf55e4@posting.google.com> <%%8q9.21249$rz6.2550@sccrnsc02> <3DA96E28.9090104@worldnet.att.net> <87lm52eaa9.fsf@deneb.enyo.de> NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1034546812 6414 212.9.189.171 (13 Oct 2002 22:06:52 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 13 Oct 2002 22:06:52 GMT Cancel-Lock: sha1:7M2ukoFaJGM3NsDE3bEr56HIKF0= Xref: archiver1.google.com comp.lang.ada:29756 Date: 2002-10-13T22:06:52+00:00 List-Id: Michael Bode writes: > So if I have a vector > > [ 1 ] > [ 2 ] > [ 3 ] > [ 4 ] > > which would be element > > [ 0.3 1 ] > [ pi sqrt(2)] > > of this vector? Values are truncated to obtain integer indices, and an entry n in the matrix is replaced with the nth component of the vector. Your example gives an error (zero index). Nice error message, BTW: ??? Capitalized internal function PI; Caps Lock may be on.