  
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:
If A is a single number and B is an array, A is divided by every element in B:
If both A and B are lists with the same lengths, the corresponding elements in A and B are divided:
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:
In all cases, elements are divided using complex division where appropriate:
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
|