Matrix Power

pow(x, n, ...)

# S3 method for default
pow(x, n, ...)

Arguments

x

If yac_symbol treat as such, else call pow.default().

n

nth power of the square matrix.

...

further arguments passed to pow.default()

Examples

(x <- matrix(c(1, 2, 2, 3), ncol = 2))
#>      [,1] [,2]
#> [1,]    1    2
#> [2,]    2    3
pow(x, 2)
#>      [,1] [,2]
#> [1,] 1597 2584
#> [2,] 2584 4181
pow(ysym(x), 2)
#> {{ 5,  8},
#>  { 8, 13}}