Library: | multi |
See also: | ^ |
Macro: | power | |
Description: | calculates x to the power of exponent |
Usage: | y =power(matrixx,exponent) | |
Input: | ||
matrixx | n x n matrix, | |
exponent | integer, exponent of the matrix | |
Output: | ||
y | matrix, x^exponent |
library("multi") randomize(1000) x = normal(3,3) y = power(x,2) y
Content of object y [1,] 3.619372 1.943857 -0.966584 [2,] -4.529428 1.849981 1.392299 [3,] -3.116261 -0.135716 9.986969
Library: | multi |
See also: | ^ |