Learn R Programming

Ryacas (version 1.1.5)

pow: Matrix Power

Description

Matrix Power

Usage

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

Run this code
(x <- matrix(c(1, 2, 2, 3), ncol = 2))
pow(x, 2)
pow(ysym(x), 2)

Run the code above in your browser using DataLab