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.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad3b8638a6e09884 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!xlned.com!feeder7.xlned.com!feed.xsnews.nl!border-2.ams.xsnews.nl!upload-2.xsnews.nl!10.10.69.6.MISMATCH!frontend-F09-06.ams.news.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada References: <4e23f350$0$2573$703f8584@news.kpn.nl> <4e240690$0$6538$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: <4e240690$0$6538$9b4e6d93@newsspool4.arcor-online.net> Subject: Re: Incorrect error? Date: Mon, 18 Jul 2011 13:46:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3508.1109 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3508.1109 Message-ID: <4e241d2d$0$2577$703f8584@news.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1310989614 news.kpn.nl 2577 77.168.179.107@kpn/77.168.179.107:49943 Xref: g2news1.google.com comp.lang.ada:20217 Date: 2011-07-18T13:46:18+02:00 List-Id: I just was converting a C++ program with the function VecCross The suggestion in that program was that a Cross vector was the result of a vector product. L. Dries "Georg Bauhaus" schreef in bericht news:4e240690$0$6538$9b4e6d93@newsspool4.arcor-online.net... On 18.07.11 11:45, stefan-lucks@see-the.signature wrote: > On Mon, 18 Jul 2011, ldries46 wrote: > > [...] >> a : Real_Vector(0 .. 2); >> b : Real_Vector(0 .. 2); >> cross : Real_Vector(0 .. 2); >> begin > [...] >> Cross := a * b; -- VecCross( a, b, Cross ); <---------------- line 65 >> the > > Why do you expect the product of two vectors to be an vector? For a vector product, if a тип b is to be one, I find the expectation quite justified. Confusion is what we get in return for Ada overloading ASCII punctuation, in this case "*". ;-) (Wolfram's title is "cross product", http://mathworld.wolfram.com/CrossProduct.html IIUC.)