Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Compute dot product ( scalar product ) of two passed arrays or matrices.

 

Syntax

 

dp = DOTProduct(Matrix_A[()], Matrix_B[()])

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

Matrix_1

Variable

No

Any numeric variable representing an array or a matrix

Matrix_2

Variable

No

Any numeric variable representing an array or a matrix

 

Remarks

 

Restrictions

 

The number of elements in first and second passed matrix must be the same

 

See also

 

MAT, DET

 

Examples

 

USES "Math"

 

Dim M1(3)  As Long VALUE 1, 3, -5

Dim M2(3)  As EXT  VALUE 4, -2, -1

Dim Result As EXT

 

Result = DOTProduct( M1, M2 )

 

MSGBOX 0, Result

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software