~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/polynomials/help/en_US/factors.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *
12
12
 -->
13
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" version="5.0-subset Scilab" xml:lang="en" xml:id="factors">
14
 
  <refnamediv>
15
 
    <refname>factors</refname>
16
 
    <refpurpose> numeric real factorization</refpurpose>
17
 
  </refnamediv>
18
 
  <refsynopsisdiv>
19
 
    <title>Calling Sequence</title>
20
 
    <synopsis>[lnum,g]=factors(pol [,'flag'])
21
 
      [lnum,lden,g]=factors(rat [,'flag'])
22
 
      rat=factors(rat,'flag')
23
 
    </synopsis>
24
 
  </refsynopsisdiv>
25
 
  <refsection>
26
 
    <title>Arguments</title>
27
 
    <variablelist>
28
 
      <varlistentry>
29
 
        <term>pol</term>
30
 
        <listitem>
31
 
          <para>real polynomial</para>
32
 
        </listitem>
33
 
      </varlistentry>
34
 
      <varlistentry>
35
 
        <term>rat</term>
36
 
        <listitem>
37
 
          <para>
38
 
            real rational polynomial (<literal>rat=pol1/pol2</literal>)
39
 
          </para>
40
 
        </listitem>
41
 
      </varlistentry>
42
 
      <varlistentry>
43
 
        <term>lnum</term>
44
 
        <listitem>
45
 
          <para>list of polynomials (of degrees 1 or 2)</para>
46
 
        </listitem>
47
 
      </varlistentry>
48
 
      <varlistentry>
49
 
        <term>lden</term>
50
 
        <listitem>
51
 
          <para>list of polynomials (of degrees 1 or 2)</para>
52
 
        </listitem>
53
 
      </varlistentry>
54
 
      <varlistentry>
55
 
        <term>g</term>
56
 
        <listitem>
57
 
          <para>real number</para>
58
 
        </listitem>
59
 
      </varlistentry>
60
 
      <varlistentry>
61
 
        <term>flag</term>
62
 
        <listitem>
63
 
          <para>
64
 
            character string <literal>'c'</literal> or <literal>'d'</literal>
65
 
          </para>
66
 
        </listitem>
67
 
      </varlistentry>
68
 
    </variablelist>
69
 
  </refsection>
70
 
  <refsection>
71
 
    <title>Description</title>
72
 
    <para>
73
 
      returns the factors of polynomial <literal>pol</literal> in the list <literal>lnum</literal>
74
 
      and the "gain" g.
75
 
    </para>
76
 
    <para>
77
 
      One has pol= g times product of entries of the list <literal>lnum</literal>
78
 
      (if <literal>flag</literal> is not given). If <literal>flag='c'</literal> is given, then
79
 
      one has <literal>|pol(i omega)|</literal> = <literal>|g*prod(lnum_j(i omega)|</literal>.
80
 
      If <literal>flag='d'</literal> is given, then
81
 
      one has <literal>|pol(exp(i omega))|</literal> = <literal>|g*prod(lnum_i(exp(i omega))|</literal>.
82
 
      If argument of <literal>factors</literal> is a 1x1 rational <literal>rat=pol1/pol2</literal>,
83
 
      the factors of the numerator <literal>pol1</literal> and the denominator <literal>pol2</literal>
84
 
      are returned in the lists <literal>lnum</literal> and <literal>lden</literal> respectively.
85
 
    </para>
86
 
    <para>
87
 
      The "gain" is returned as <literal>g</literal>,i.e. one has:
88
 
      rat= g times (product entries in lnum) / (product entries in lden).
89
 
    </para>
90
 
    <para>
91
 
      If <literal>flag</literal> is <literal>'c'</literal> (resp. <literal>'d'</literal>), the roots of <literal>pol</literal>
92
 
      are refected wrt the imaginary axis (resp. the unit circle), i.e.
93
 
      the factors in <literal>lnum</literal> are stable polynomials.
94
 
    </para>
95
 
    <para>
96
 
      Same thing if <literal>factors</literal> is invoked with a rational arguments:
97
 
      the entries in <literal>lnum</literal> and <literal>lden</literal> are stable polynomials if
98
 
      <literal>flag</literal> is given. <literal>R2=factors(R1,'c')</literal> or <literal>R2=factors(R1,'d')</literal>
99
 
      with <literal>R1</literal> a rational function or SISO <literal>syslin</literal> list then the
100
 
      output <literal>R2</literal> is a transfer with stable numerator and denominator and
101
 
      with same magnitude as <literal>R1</literal> along the imaginary axis (<literal>'c'</literal>)
102
 
      or unit circle (<literal>'d'</literal>).
103
 
    </para>
104
 
  </refsection>
105
 
  <refsection>
106
 
    <title>Examples</title>
107
 
    <programlisting role="example"><![CDATA[ 
 
14
    <refnamediv>
 
15
        <refname>factors</refname>
 
16
        <refpurpose> numeric real factorization</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Calling Sequence</title>
 
20
        <synopsis>[lnum,g]=factors(pol [,'flag'])
 
21
            [lnum,lden,g]=factors(rat [,'flag'])
 
22
            rat=factors(rat,'flag')
 
23
        </synopsis>
 
24
    </refsynopsisdiv>
 
25
    <refsection>
 
26
        <title>Arguments</title>
 
27
        <variablelist>
 
28
            <varlistentry>
 
29
                <term>pol</term>
 
30
                <listitem>
 
31
                    <para>real polynomial</para>
 
32
                </listitem>
 
33
            </varlistentry>
 
34
            <varlistentry>
 
35
                <term>rat</term>
 
36
                <listitem>
 
37
                    <para>
 
38
                        real rational polynomial (<literal>rat=pol1/pol2</literal>)
 
39
                    </para>
 
40
                </listitem>
 
41
            </varlistentry>
 
42
            <varlistentry>
 
43
                <term>lnum</term>
 
44
                <listitem>
 
45
                    <para>list of polynomials (of degrees 1 or 2)</para>
 
46
                </listitem>
 
47
            </varlistentry>
 
48
            <varlistentry>
 
49
                <term>lden</term>
 
50
                <listitem>
 
51
                    <para>list of polynomials (of degrees 1 or 2)</para>
 
52
                </listitem>
 
53
            </varlistentry>
 
54
            <varlistentry>
 
55
                <term>g</term>
 
56
                <listitem>
 
57
                    <para>real number</para>
 
58
                </listitem>
 
59
            </varlistentry>
 
60
            <varlistentry>
 
61
                <term>flag</term>
 
62
                <listitem>
 
63
                    <para>
 
64
                        character string <literal>'c'</literal> or <literal>'d'</literal>
 
65
                    </para>
 
66
                </listitem>
 
67
            </varlistentry>
 
68
        </variablelist>
 
69
    </refsection>
 
70
    <refsection>
 
71
        <title>Description</title>
 
72
        <para>
 
73
            returns the factors of polynomial <literal>pol</literal> in the list <literal>lnum</literal>
 
74
            and the "gain" g.
 
75
        </para>
 
76
        <para>
 
77
            One has pol= g times product of entries of the list <literal>lnum</literal>
 
78
            (if <literal>flag</literal> is not given). If <literal>flag='c'</literal> is given, then
 
79
            one has <literal>|pol(i omega)|</literal> = <literal>|g*prod(lnum_j(i omega)|</literal>.
 
80
            If <literal>flag='d'</literal> is given, then
 
81
            one has <literal>|pol(exp(i omega))|</literal> = <literal>|g*prod(lnum_i(exp(i omega))|</literal>.
 
82
            If argument of <literal>factors</literal> is a 1x1 rational <literal>rat=pol1/pol2</literal>,
 
83
            the factors of the numerator <literal>pol1</literal> and the denominator <literal>pol2</literal>
 
84
            are returned in the lists <literal>lnum</literal> and <literal>lden</literal> respectively.
 
85
        </para>
 
86
        <para>
 
87
            The "gain" is returned as <literal>g</literal>,i.e. one has:
 
88
            rat= g times (product entries in lnum) / (product entries in lden).
 
89
        </para>
 
90
        <para>
 
91
            If <literal>flag</literal> is <literal>'c'</literal> (resp. <literal>'d'</literal>), the roots of <literal>pol</literal>
 
92
            are refected wrt the imaginary axis (resp. the unit circle), i.e.
 
93
            the factors in <literal>lnum</literal> are stable polynomials.
 
94
        </para>
 
95
        <para>
 
96
            Same thing if <literal>factors</literal> is invoked with a rational arguments:
 
97
            the entries in <literal>lnum</literal> and <literal>lden</literal> are stable polynomials if
 
98
            <literal>flag</literal> is given. <literal>R2=factors(R1,'c')</literal> or <literal>R2=factors(R1,'d')</literal>
 
99
            with <literal>R1</literal> a rational function or SISO <literal>syslin</literal> list then the
 
100
            output <literal>R2</literal> is a transfer with stable numerator and denominator and
 
101
            with same magnitude as <literal>R1</literal> along the imaginary axis (<literal>'c'</literal>)
 
102
            or unit circle (<literal>'d'</literal>).
 
103
        </para>
 
104
    </refsection>
 
105
    <refsection>
 
106
        <title>Examples</title>
 
107
        <programlisting role="example"><![CDATA[ 
108
108
n=poly([0.2,2,5],'z');
109
109
d=poly([0.1,0.3,7],'z');
110
110
R=syslin('d',n,d);
114
114
w=exp(2*%i*%pi*[0:0.1:1]);
115
115
norm(abs(horner(R1,w))-abs(horner(R,w)))
116
116
 ]]></programlisting>
117
 
  </refsection>
118
 
  <refsection role="see also">
119
 
    <title>See Also</title>
120
 
    <simplelist type="inline">
121
 
      <member>
122
 
        <link linkend="simp">simp</link>
123
 
      </member>
124
 
    </simplelist>
125
 
  </refsection>
 
117
    </refsection>
 
118
    <refsection role="see also">
 
119
        <title>See Also</title>
 
120
        <simplelist type="inline">
 
121
            <member>
 
122
                <link linkend="simp">simp</link>
 
123
            </member>
 
124
        </simplelist>
 
125
    </refsection>
126
126
</refentry>