<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( https://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2008 - INRIA
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
* Copyright (C) 2019 - Samuel GOUGEON
 *
 * 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="cosd" xml:lang="ja">
    <refnamediv>
        <refname>cosd</refname>
        <refpurpose>要素毎の余弦(引数の単位:度)</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>呼び出し手順</title>
        <synopsis>y=cosd(x)</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>引数</title>
        <variablelist>
            <varlistentry>
                <term>x</term>
                <listitem>
                    <para>実数ベクトル/行列</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>説明</title>
        <para>
            ベクトルまたは行列<literal>x</literal>に角度(単位:度)が
            指定されると,
            <code>cosd(x)</code>は各要素の余弦となります.
            結果は <literal>[-1 1]</literal>の範囲となります.
            入力要素が<literal>n*90</literal>
            (<literal>n</literal>は奇数の整数)に等しい
            場合,結果は完全にゼロとなります.
        </para>
    </refsection>
    <refsection>
        <title>サンプル</title>
        <scilab:image>
            x=-360:1:360
            plot(x,cosd(x))
        </scilab:image>
    </refsection>
    <refsection>
        <title>例</title>
        <programlisting role="example"><![CDATA[
cosd([0 30 45 60 90 360])
1 ./ cosd([-90 90])
 ]]></programlisting>
    <screen><![CDATA[
--> cosd([0 30 45 60 90 360])
 ans  =
   1.   0.8660254   0.7071068   0.5   0.   1.

--> 1 ./ cosd([-90 90])
 ans  =
   Inf   Inf
]]></screen>
    </refsection>
    <refsection>
        <title>参照</title>
        <simplelist type="inline">
            <member>
                <link linkend="acosd">acosd</link>
            </member>
            <member>
                <link linkend="cos">cos</link>
            </member>
            <member>
                <link linkend="acos">acos</link>
            </member>
            <member>
                <link linkend="cosh">cosh</link>
            </member>
            <member>
                <link linkend="acosh">acosh</link>
            </member>
        </simplelist>
    </refsection>
</refentry>