Power

Power a variable using a second variable. It returns the y-th power of x. The second argument must be either a scalar or the same type as the first argument and in case of both arguments are vectors, matrices or signals this operation is performed element-wise. You can use '**' as an alias to '^'.

Syntax

x^y

Types
 Variable NameValue TypeVariable Type
Arguments:xreal, complexscalar, vector, matrix, signal, xy-data
yreal, complexscalar, vector, matrix, signal, xy-data
Result: zreal, complex scalar, vector, matrix, signal, xy-data
Calculator Input

Use the xy button to complete the operation.

Examples

Square Each Element of Matrix

IDDescriptionTypeValueExpression
xArgumentREAL MATRIX

[[1,2],[3,4]]
yArgumentREAL22
z Result REAL MATRIX

x^y

Matrix^Matrix (Same Size)

IDDescriptionTypeValueExpression
xArgumentREAL MATRIX

[[1,2],[3,4]]
yArgumentREAL MATRIX

[[2,2],[2,2]]
z Result REAL MATRIX

x^y

Signal^Signal (Same Number of Channels)

IDDescriptionTypeValueExpression
xArgumentREAL SIGNAL   signal([0, 0.5, 1],[1, 2, 3])
yArgumentREAL SIGNAL   signal([0, 0.5, 1],[2, 2, 2])
z Result REAL SIGNAL   x^y