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

contents.gifindex.gifprev1.gifnext1.gif

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:

  dph00428.gif

If A is a single number and B is a list, A is raised to every element in B:

  dph00429.gif

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

  dph00430.gif

If A is a matrix and B is a single integer, A is raised to the power B:

  dph00431.gif

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

  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