| Applying science to business management |
  
Power
Format: A ^ B
Arguments: [num] A Base, may be any real number,
complex number, or matrix
[num] B Power, may be any real, complex number, or list
Returns: [num] A raised to the power B
Note: If A is a matrix, it must be square and B
must be a real integer. You can calculate the inverse of a matrix
using the command A^-1.
This function is performed using one of the following methods
as is appropriate for the input data:
If A is a list and B is a single number, every
element in A is raised to the power B:
If A is a single number and B is a list, A
is raised to every element in B:
If both A and B are lists with the same lengths,
the corresponding elements in A and B are matched:
If A is a matrix and B is a single integer, A
is raised to the power B:
In all cases, complex numbers are supported.
Examples: 2^3 = 8
4^(1/2) = 2 (square
root of 4)
I^2 = -1
[1,2,3,4]^2 = [1,4,9,16]
2^[1,2,3,4] = [2,4,8,16]
[1,2,3,4]^[1,2,3,4] = [1,4,27,256]
[[1,2],[3,4]]^-1 =
[[-2,1],[1.5,-0.5]]
[[1,2],[3,4]]^2 = [[7,10],[15,22]]
See Also: sqrt, exp
|