Vanguard Software
Forecasting & Planning Solutions

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:

  dsc00209.gif

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

  dsc00210.gif

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

  dsc00211.gif

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

  dsc00212.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

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Customer Questionnaires

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2009 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend