Overview | Statement List | Example


两个向量的点积

Synopsis

DOTF(A,B)

Description

Multiplies the corresponding components of two vectors and adds the products.

Using the function as shown below, where A and B are arrays, each consisting of the three components of a vector,

C=DOTF(A,B)

is equivalent to the following expression:

C=A(1)*B(1)+A(2)*B(2)+A(3)*B(3)

Parameters

Parameter

Description

A,B

Two-, three-position numerical arrays which represent vectors which are used to calculate the DOT product.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.