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: ^

Quantlet: 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:
Contents of y
[1,]   3.6194   1.9439 -0.96658
[2,]  -4.5294     1.85   1.3923
[3,]  -3.1163 -0.13572    9.987



Author: C. Hafner, S. Sperlich, W. Haerdle, 19971027 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006