* Bug #14105 fixed - New block comments /*...*/ feature was not documented.
[scilab.git] / scilab / modules / core / help / ja_JP / 1_keywords / star.xml
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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="star">
3     <refnamediv>
4         <refname>star</refname>
5         <refpurpose>(*) 乗算演算子</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>説明</title>
9         <para>
10             乗算. 一般的な意味. 定数,論理値,多項式,有理関数 および
11             <literal>syslin</literal> リスト(直列結合を意味します)で有効です.
12         </para>
13         <para>
14             要素毎の乗算の場合は,  <literal>x.*y</literal> のようにします. 
15             <literal>x</literal> または <literal>y</literal> がスカラー(1x1 行列)の場合,  <literal> .* </literal>
16             は <literal>*</literal>と同じになります.
17         </para>
18         <para>
19             クロネッカー積は,  <literal>x.*.y</literal> です.
20         </para>
21         <para>
22             <literal>A*.B</literal> は
23             定義済みの意味がない演算子で, * または /. と同様に
24             新しい演算子を定義する際に使用可能です(
25             (<link linkend="overloading">オーバーロード</link>参照).
26         </para>
27         <para>
28             <note>
29                 Remark that <code>/*</code> start to comment a block of code and
30                 <code>*/</code> end to comment this block.
31             </note>
32         </para>
33     </refsection>
34     <refsection>
35         <title>例</title>
36         <programlisting role="example"><![CDATA[
37 // 基本的な数値演算
38 2 * 2 // 4
39 2 * [%pi, %eps] // 6.2831853    4.441D-16
40 rand(2,2) * rand(2)
41 [1, 2; 3, 4] * [%pi,%eps; %e, %pi]
42  ]]></programlisting>
43         <programlisting role="example"><![CDATA[
44 // 多項式演算
45 s=poly(0,"s");
46 p=1+s+2*s^2;
47 q=1+s+2*s^3;
48 p * q
49 //               2    3    4    5
50 //    1 + 2s + 3s + 4s + 2s + 4s
51  ]]></programlisting>
52         <programlisting role="example"><![CDATA[
53 // 有理数
54 s=poly(0,'s');
55 W=[1/s,1/(s+1)];
56 W' * W
57 //    1           1          
58 //    -         -----        
59 //     2             2       
60 //    s         s + s        
61 //                           
62 //      1           1        
63 //    -----     ---------    
64 //         2              2  
65 //    s + s     1 + 2s + s   
66  ]]></programlisting>
67     </refsection>
68     <refsection role="see also">
69         <title>参照</title>
70         <simplelist type="inline">
71             <member>
72                 <link linkend="dot">dot</link>
73             </member>
74             <member>
75                 <link linkend="slash">slash</link>
76             </member>
77             <member>
78                 <link linkend="backslash">backslash</link>
79             </member>
80             <member>
81                 <link linkend="syslin">syslin</link>
82             </member>
83             <member>
84                 <link linkend="overloading">overloading</link>
85             </member>
86             <member>
87                 <link linkend="comments">comments</link>
88             </member>
89         </simplelist>
90     </refsection>
91 </refentry>