power - Power operation (^,.^) (original) (raw)
Scilab 5.3.3
- Scilab help
- Scilab
- Scilab keywords
- ans
- backslash (\)
- brackets
- case
- colon
- comma
- comments
- comparison
- do
- dot
- else
- elseif
- empty
- end
- equal
- for
- global
- hat
- if then else
- left
- less
- minus
- not
- parents
- percent
- plus
- power
- quote
- return
- select
- semicolon (;)
- slash
- star
- then
- tilda
- try
- while
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function
Scilab help >> Scilab > Scilab keywords > power
Calling Sequence
Arguments
A,t
scalar, polynomial or rational matrix.
b
a scalar, a vector or a scalar matrix.
Description
"(A:square)^(b:scalar)"IfAis a square matrix andbis a scalar thenA^bis the matrixAto the powerb."(A:matrix).^(b:scalar)"Ifbis a scalar andAa matrix thenA.^bis the matrix formed by the element ofAto the powerb(elementwise power). IfAis a vector andbis a scalar thenA^bandA.^bperforms the same operation (i.e elementwise power)."(A:scalar).^(b:matrix)"IfAis a scalar andbis a matrix (or vector)A^bandA.^bare the matrices (or vectors) formed bya^(b(i,j))."(A:matrix).^(b:matrix)"IfAandbare vectors (matrices) of the same sizeA.^bis theA(i)^b(i)vector (A(i,j)^b(i,j)matrix).
Notes:
- For square matrices A^p is computed through successive matrices multiplications if p is a positive integer, and by diagonalization if not.
-** and ^ operators are synonyms.
Examples
A=[1 2;3 4]; A^2.5, A.^2.5 (1:10)^2 (1:10).^2
s=poly(0,'s') s^(1:10)
See Also
- exp — element-wise exponential