* Bug 15337 fixed: mistake in l_p definition in norm() page
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / matrixoperations / norm.xml
index 6908aac..b120a15 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) 2008 - INRIA
  * 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="norm" xml:lang="ja">
-
+<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="norm" xml:lang="ja">
     <refnamediv>
-
         <refname>norm</refname>
-
         <refpurpose>行列のノルム</refpurpose>
-
     </refnamediv>
-
     <refsynopsisdiv>
-
         <title>呼び出し手順</title>
-
-        <synopsis>[y]=norm(x [,flag])</synopsis>
-
+        <synopsis>
+        y = norm(x)
+        y = norm(x, normType)
+        </synopsis>
     </refsynopsisdiv>
-
     <refsection>
-
         <title>引数</title>
-
         <variablelist>
-
             <varlistentry>
-
                 <term>x</term>
-
                 <listitem>
-
                     <para>実数または複素数のベクトルまたは(通常または疎の)行列 </para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
-                <term>flag</term>
-
-                <listitem>
-
-                    <para>文字列 (ノルムの型) (デフォルト値 =2)</para>
-
-                </listitem>
-
+                <term>normType</term>
+                    <para>
+                        <itemizedlist>
+                            <listitem>
+                                For a matrix <literal>x</literal>: a number among
+                                <literal>1, 2, %inf, -%inf</literal>, or a word among
+                                <literal>"inf"</literal> (or <literal>"i"</literal>) or
+                                <literal>"fro"</literal> (or <literal>"f"</literal>).
+                            </listitem>
+                            <listitem>
+                                For a vector <literal>x</literal>: any number or <literal>%inf</literal>,
+                                <literal>-%inf</literal>; or a word <literal>"inf"</literal>
+                                (<literal>"i"</literal>), <literal>"fro"</literal> (<literal>"f"</literal>).
+                            </listitem>
+                        </itemizedlist>
+                    </para>
+                    Default value = 2.
             </varlistentry>
-
             <varlistentry>
-
                 <term>y</term>
-
                 <listitem>
-
                     <para>
-
                         ノルム
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
         </variablelist>
-
     </refsection>
-
     <refsection>
-
         <title>説明</title>
-
         <para>行列の場合</para>
-
         <variablelist>
-
             <varlistentry>
-
                 <term>norm(x)</term>
-
                 <listitem>
-
                     <para>
-
                         または<literal>norm(x,2)</literal> は
-
                         <literal>x</literal>の最大特異値 (<literal>max(svd(x))</literal>)
-
                         となります.
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
                 <term>norm(x,1)</term>
-
                 <listitem>
-
                     <para>
-
                         <literal>x</literal>のl_1 ノルム  (列の和の最大値:
-
                         <literal>max(sum(abs(x),'r'))</literal> ).
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
                 <term>norm(x,'inf'),norm(x,%inf)</term>
-
                 <listitem>
-
                     <para>
-
                         <literal>x</literal>の無限大ノルム (列の和の最大値
-
                         : <literal>max(sum(abs(x),'c'))</literal> ).
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
                 <term>norm(x,'fro')</term>
-
                 <listitem>
-
                     <para>フロベニウスノルム,すなわち,
-
                         <literal>sqrt(sum(diag(x'*x)))</literal>.
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
         </variablelist>
-
         <para>ベクトルの場合</para>
-
         <variablelist>
-
             <varlistentry>
-
                 <term>norm(v,p)</term>
-
                 <listitem>
-
                     <para>
-
-                        l_p ノルム (<literal>sum(v(i)^p))^(1/p)</literal> .
-
+                        l_p ノルム <literal>sum(abs(v(i))^p)^(1/p)</literal> .
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
                 <term>norm(v), norm(v,2)</term>
-
                 <listitem>
-
                     <para>
-
                         l_2 ノルム
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
                 <term>norm(v,'inf')</term>
-
                 <listitem>
-
                     <para>
-
                         <literal>max(abs(v(i)))</literal>.
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
         </variablelist>
-
     </refsection>
-
     <refsection>
-
         <title>例</title>
-
         <programlisting role="example"><![CDATA[
-A=[1,2,3];
+A = [1,2,3];
 norm(A,1)
 norm(A,'inf')
-A=[1,2;3,4]
-max(svd(A))-norm(A)
-A=sparse([1 0 0 33 -1])
+A = [1,2;3,4]
+max(svd(A)) - norm(A)
+
+A = sparse([1 0 0 33 -1])
 norm(A)
  ]]></programlisting>
-
     </refsection>
-
     <refsection role="see also">
-
         <title>参照</title>
-
         <simplelist type="inline">
-
             <member>
-
                 <link linkend="h_norm">h_norm</link>
-
             </member>
-
             <member>
-
                 <link linkend="dhnorm">dhnorm</link>
-
             </member>
-
             <member>
-
                 <link linkend="h2norm">h2norm</link>
-
             </member>
-
             <member>
-
                 <link linkend="abs">abs</link>
-
             </member>
-
             <member>
-
                 <link linkend="svd">svd</link>
-
             </member>
-
         </simplelist>
-
     </refsection>
-
-</refentry>
-
+</refentry>
\ No newline at end of file