Vanguard Software Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
Services From training to turnkey systems, our professional
services group is here to ensure your success.
Home > Services > Supporting Documents 1 >
Services
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

Contact Us

Phone:  +1 919-859-4101
Web:  www.vanguardsw.com
Email:  info@vanguardsw.com

© 2008 Vanguard Software Corporation. All rights reserved.