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

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, 17.8.2000