<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( https://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2008 - INRIA
 * Copyright (C) 2015 - Samuel GOUGEON
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="imag" xml:lang="ru">
    <refnamediv>
        <refname>imag</refname>
        <refpurpose>мнимая часть</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Синтаксис</title>
        <synopsis>y = imag(x)</synopsis>
    </refsynopsisdiv>
    <refsection role="parameters">
        <title>Аргументы</title>
        <variablelist>
            <varlistentry>
                <term>x</term>
                <listitem>
                    <para>Массив действительных или комплексных чисел. Матричные многочлены или рациональные функции с вещественными или комплексными коэффициентам
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>y</term>
                <listitem>
                    <para>Матрица действительных чисел. Матричные многочлены или
                        рациональные функции с вещественными коэффициентам,
                        with same sizes than <varname>x</varname>.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection role="description">
        <title>Описание</title>
        <para>
            <code>imag(x)</code> является мнимой частью
            <varname>x</varname>. (См. <constant>%i</constant> для ввода комплексных чисел).
        </para>
    </refsection>
    <refsection role="examples">
        <title>Примеры</title>
        <programlisting role="example"><![CDATA[
c = [ 2 %i, 1+0*%i, 2-3*%i  log(-1) (-1)^(1/3) ]
imag(c)

s = sprand(3,3,0.3) + sprand(3,3,0.3)*%i
imag(s)

// Polynomials with complex coeficients:
A = [1-%i*%z (%z-%i)^2]
imag(A)

// Rationals with complex coeficients:
A = [ %z/(1-%z)  (1-%z)/%z^2];
B = A(1,[2 1]);
C = A + %i*B
B, imag(C)
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>Смотрите также</title>
        <simplelist type="inline">
            <member>
                <link linkend="real">real</link>
            </member>
        </simplelist>
    </refsection>
    <refsection role="history">
        <title>История</title>
        <revhistory>
            <revision>
                <revnumber>6.0</revnumber>
                <revdescription>Extension to rationals
                </revdescription>
            </revision>
        </revhistory>
    </refsection>
</refentry>
