Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #50131

Re: Dot product

From Ron Aaron <rambamist@gmail.com>
Newsgroups comp.lang.forth
Subject Re: Dot product
Date 2016-08-15 10:01 +0300
Organization A noiseless patient Spider
Message-ID <norpch$igv$1@dont-email.me> (permalink)
References <norft6$sva$1@dont-email.me> <2906a9e9-5e8b-4563-92ec-034f8dcc3de1@googlegroups.com>

Show all headers | View raw



On 08/15/2016 09:43, lehs wrote:
> Den måndag 15 augusti 2016 kl. 06:19:51 UTC+2 skrev Ron Aaron:
>> From RosettaCode:
>>
>> http://8th-dev.com/forum/index.php/topic,1050.0.html
>>
>> [1,3,-5] [4,-2,1] ' n:* ' n:+ a:dot . cr
>>
>> outputs 3
>>
>> The a:dot word is a generalized dot-product of two similarly-sized
>> arrays.  So it can do a great deal more than a simple math dot-product.
> 
> isn't the dot product of [1,3,-5] and [4,-2,1] =1*4+3*(-2)+(-5)*1=-7?
> 

Yes.  The last '1' s/b a '-1'.  Sorry :o

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Dot product Ron Aaron <rambamist@gmail.com> - 2016-08-15 07:19 +0300
  Re: Dot product lawrencedo99@gmail.com - 2016-08-14 21:57 -0700
    Re: Dot product Ron Aaron <rambamist@gmail.com> - 2016-08-15 08:33 +0300
  Re: Dot product lehs <skydda.barnen@gmail.com> - 2016-08-14 23:43 -0700
    Re: Dot product Ron Aaron <rambamist@gmail.com> - 2016-08-15 10:01 +0300
  Re: Dot product "WJ" <w_a_x_man@yahoo.com> - 2016-08-18 17:19 +0000

csiph-web