1 <?xml version="1.0" encoding="UTF-8"?>
2 <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="imult" xml:lang="ja">
3     <refnamediv>
4         <refname>imult</refname>
5         <refpurpose>虚数単位 i を乗じる</refpurpose>
6     </refnamediv>
7     <refsynopsisdiv>
8         <title>呼び出し手順</title>
9         <synopsis>y = imult(x)</synopsis>
10     </refsynopsisdiv>
11     <refsection>
12         <title>パラメータ</title>
13         <variablelist>
14             <varlistentry>
15                 <term>x</term>
16                 <listitem>
17                     <para>実数または複素数のスカラー,ベクトルまたは行列</para>
18                 </listitem>
19             </varlistentry>
20             <varlistentry>
21                 <term>y</term>
22                 <listitem>
23                     <para>複素数のスカラー,ベクトルまたは行列</para>
24                 </listitem>
25             </varlistentry>
26         </variablelist>
27     </refsection>
28     <refsection>
29         <title>説明</title>
30         <para>
31             <code>imult(x)</code> は,
32             <varname>x</varname> が <constant>%inf</constant> や <constant>%nan</constant>のような "特殊な"浮動小数点数からなる時に
33             発生する問題を生じることなく,
34             <code>y = %i*x</code> よりも効率的に <literal>x x i</literal> を実行します.
35         </para>
36     </refsection>
37     <refsection>
38         <title>例</title>
39         <programlisting role="example"><![CDATA[
40 z1 = imult(%inf)
41 z2 = %i * %inf
42  ]]></programlisting>
43     </refsection>
44 </refentry>