<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
 * Copyright (C) 09/2013 - A. Khorshidi
 *
 * 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="bode_asymp" xml:lang="ja">
    <refnamediv>
        <refname>bode_asymp</refname>
        <refpurpose>ボード線図の漸近線</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>呼び出し手順</title>
        <synopsis>
            bode_asymp(sl)
            bode_asymp(sl, wmin, wmax)
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>引数</title>
        <variablelist>
            <varlistentry>
                <term>sl</term>
                <listitem>
                    <para>
                        <literal>syslin</literal> リスト (連続時間系のSISOまたはSIMO線形システム)
                        (状態空間または有理型).
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>wmin, wmax</term>
                <listitem>
                    <para>実スカラー: 周波数領域の下限および上限 (単位: rad/s).</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>説明</title>
        <para>
            システム<literal>sl</literal>の漸近線をプロットします.
        </para>
        <para>
            オプション引数 <literal>wmin</literal> および <literal>wmax</literal> (単位:rad/s)
            により漸近線をプロットする際に周波数範囲を指定することができます.
        </para>
        <para>
            <note>
                関数<code>bode()</code> または <code>gainplot()</code>は,
                <code>bode_asymp()</code>の前にコールする必要があることに注意してください.
            </note>
        </para>
        <para>
            <warning>
                警告: 最初の入力引数が実数行列の場合,この関数は適用できません.
            </warning>
        </para>
    </refsection>
    <refsection>
        <title>例</title>
        <programlisting role="example"><![CDATA[
s = poly(0, "s");
h = syslin("c", (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
clf(); bode(h, 0.01, 100); bode_asymp(h);
 ]]></programlisting>
        <para>
            <scilab:image localized="true">
                s = poly(0, "s");
                h = syslin("c", (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
                clf(); bode(h, 0.01, 100); bode_asymp(h);
            </scilab:image>
        </para>
        <programlisting role="example"><![CDATA[
s = poly(0, "s");
h1 = syslin("c", (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
h2 = syslin("c", (10*(s+3))/(s*(s+2)*(s^2+s+2)));
clf(); bode([h1; h2], 0.01, 100, ["h1"; "h2"]); bode_asymp([h1; h2]);
 ]]></programlisting>
        <para>
            <scilab:image localized="true">
                s = poly(0, "s");
                h1 = syslin("c", (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
                h2 = syslin("c", (10*(s+3))/(s*(s+2)*(s^2+s+2)));
                clf(); bode([h1; h2], 0.01, 100, ["h1"; "h2"]); bode_asymp([h1; h2]);
            </scilab:image>
        </para>
        <programlisting role="example"><![CDATA[
s = %s;
G = (s+10)/(s*(s+100)); // 有理行列
sys = syslin("c", G); // 伝達関数表現の連続時間線形系
f_min = .0001; f_max = 1600; // 単位: Hz
clf(); bode(sys, f_min, f_max, "rad"); // オプション引数 "rad" は Hzをrad/sに変換します
bode_asymp(sys, 10, 1000); // 指定した範囲(単位:rad/s)で漸近線をプロット
 ]]></programlisting>
        <para>
            <scilab:image localized="true">
                s = %s;
                G = (s+10)/(s*(s+100));
                sys = syslin("c", G);
                f_min = .0001; f_max = 1600;
                clf(); bode(sys, f_min, f_max, "rad");
                bode_asymp(sys, 10, 1000);
            </scilab:image>
        </para>
        <programlisting role="example"><![CDATA[
s = poly(0, "s");
h = syslin("c", (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
h = tf2ss(h);
clf();
gainplot(h, 0.01, 100, "$\frac{s^2+18 s+100}{s^2+6.06 s+102.1}$"); // 単位: ヘルツ
bode_asymp(h)
 ]]></programlisting>
        <para>
            <scilab:image localized="true">
                s = poly(0,"s");
                h = syslin("c",(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
                h = tf2ss(h);
                clf();
                gainplot(h, 0.01, 100, "$\frac{s^2+18 s+100}{s^2+6.06 s+102.1}$");
                bode_asymp(h)
            </scilab:image>
        </para>
    </refsection>
    <refsection role="see also">
        <title>参照</title>
        <simplelist type="inline">
            <member>
                <link linkend="bode">bode</link>
            </member>
            <member>
                <link linkend="black">black</link>
            </member>
            <member>
                <link linkend="nyquist">nyquist</link>
            </member>
            <member>
                <link linkend="gainplot">gainplot</link>
            </member>
            <member>
                <link linkend="repfreq">repfreq</link>
            </member>
            <member>
                <link linkend="g_margin">g_margin</link>
            </member>
            <member>
                <link linkend="p_margin">p_margin</link>
            </member>
            <member>
                <link linkend="calfrq">calfrq</link>
            </member>
            <member>
                <link linkend="phasemag">phasemag</link>
            </member>
            <member>
                <link linkend="datatips">datatips</link>
            </member>
            <member>
                <link linkend="show_margins">show_margins</link>
            </member>
        </simplelist>
    </refsection>
    <refsection>
        <title>履歴</title>
        <revhistory>
            <revision>
                <revnumber>5.5.0</revnumber>
                <revremark>bode_asymp() 関数が導入されました.</revremark>
            </revision>
        </revhistory>
    </refsection>
</refentry>
