Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.3 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Scilab > Scilab keywords > hat


(^) exponentiation

Calling Sequence



Exponentiation of matrices or vectors by a constant vector.

If A is a vector or a rectangular matrix the exponentiation is done element-wise, with the usual meaning.

For square A matrices the exponentiation is done in the matrix sense.

For boolean, polynomial and rational matrices, the exponent must be an integer


123.^b is interpreted as (123).^b. In such cases dot is part of the operator, not of the number.

For two real or complex numbers x1 et x2 the value of x1^x2 is the "principal value" determined by x1^x2 = exp(x2*log(x1)).


[1 2;2 4]^(1+%i)
[1 2 s]^4
[s 1;1  s]^(-1)

See Also

  • exp — element-wise exponential
  • inv — matrix inverse
<< global Scilab keywords if then else >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:09:24 CEST 2011