Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
library("multi")
randomize(1000)
x = normal(3,3)
y = power(x,2)
y
Result:
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: ^

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Hafner, Sperlich 971027
(C) MD*TECH Method and Data Technologies, 28.6.1999