Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Multiply

Format: A * B

Arguments: [num] A, B Any real numbers, complex numbers, vectors, or matrices to multiply

Returns: [num] Product of A and B

Description: Multiplication is carried out using one of the following methods as is appropriate for the input data:

If A is an array and B is a single number, every element in A is multiplied by B:

  dsc00204.gif

If A is a single number and B is an array, every element in B is multiplied by A:

  dsc00205.gif

If both A and B are lists with the same lengths, the corresponding elements in A and B are multiplied:

  dsc00206.gif

If A and B are matrices and the number of columns in A is equal to the number of rows in B, matrix multiplication is used:

  dsc00207.gif

In all cases, elements are multiplied using complex multiplication where appropriate:

  dsc00208.gif

Examples: 3*6 = 18

(2+3*I)*I = -3+2i

[1,2,3,4]*2 = [2,4,6,8]

2*[1,2,3,4] = [2,4,6,8]

[1,2,3,4]*[1,2,3,4] = [1,4,9,16]

[[1,2],[3,4]]*[[1,2],[3,4]] = [[7,10],[15,22]]

See Also: Implied Multiply, Divide

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend