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

contents.gifindex.gifprev1.gifnext1.gif

Divide

Format: A / B

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

Returns: [num] A divided by B

Description: Division 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 divided by B:

  dph00418.gif

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

  dph00419.gif

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

  dph00420.gif

If A and B are matrices and the number of columns in A is equal to the number of rows in B and B is square:

  dph00421.gif

In all cases, elements are divided using complex division where appropriate:

  dph00422.gif

Examples: 6/2 = 3

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

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

2/[1,2,3,4] = [2,1,0.667,0.5]

[1,2,3,4]/[1,2,3,4] = [1,1,1,1]

[[1,2],[3,4]]/[[1,2],[3,4]] = [[1,0],[0,1]]

See Also: Multiply

  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