Download Sysquake User Manual

Transcript
LME Reference — operators
261
– the first operand is a square matrix and the second operand is an
integer;
– or the first operand is a scalar and the second operand is a square
matrix.
Other cases yield an error.
mpower(x,y) is equivalent to xˆy. It can be used to redefine this
operator for objects.
Examples
2 ˆ 3
8
[1,2;3,4] ˆ 2
7 10
15 22
2 ˆ [1,2;3,4]
10.4827 14.1519
21.2278 31.7106
See also
operator .ˆ, expm
Operator .ˆ
Scalar power.
Syntax
M1 .ˆ M2
x .ˆ M
M .ˆ x
power(x, y)
Description
M1.ˆM2 calculates M1 to the M2 power, element-wise. Both arguments
must have the same size, unless one of them is a scalar.
power(x,y) is equivalent to x.ˆy. It can be used to redefine this
operator for objects.
Examples
[1,2;3,4].ˆ2
1 4
9 16
[1,2,3].ˆ[5,4,3]
1 16 27