1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="hat">
15 <refname>hat</refname>
16 <refpurpose>(^) exponentiation</refpurpose>
19 <title>Calling Sequence</title>
20 <synopsis>A^b</synopsis>
23 <title>Description</title>
25 Exponentiation of matrices or vectors by a constant vector.
28 If <literal>A</literal> is a vector or a rectangular matrix the exponentiation is done
29 element-wise, with the usual meaning.
32 For square <literal>A</literal> matrix the exponentiation is done in the matrix sense.
35 For boolean, polynomial and rational matrices, the exponent must be an
39 <title>Remarks </title>
41 <literal>123.^b</literal> is interpreted as <literal>(123).^b</literal>. In such
42 cases dot is part of the operator, not of the number.
45 For two real or complex numbers <literal>x1</literal> and
46 <literal>x2</literal> the value of <literal>x1^x2</literal> is the "principal value"
47 determined by <literal>x1^x2 = exp(x2*log(x1))</literal>.
52 <title>Examples</title>
53 <programlisting role="example"><![CDATA[
62 <refsection role="see also">
63 <title>See Also</title>
64 <simplelist type="inline">
66 <link linkend="exp">exp</link>
69 <link linkend="log">log</link>