<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://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="pt">
    <refnamediv>
        <refname>cosd</refname>
        <refpurpose>função co-seno elemento a elemento, argumento dado em
            graus
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Seqüência de Chamamento</title>
        <synopsis>y=cosd(x)</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Parâmetros</title>
        <variablelist>
            <varlistentry>
                <term>x</term>
                <listitem>
                    <para>vetor/matriz de reais</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Descrição</title>
        <para>
            Para um vetor ou uma matriz <literal>x</literal> de ângulos dados em
            graus, <literal>cosd(x)</literal> é o co-seno de seus elementos. Os
            resultados estão em <literal>[-1 1]</literal>. Para elementos de entrada
            que são iguais a <literal>n*90</literal> com <literal>n</literal> inteiro
            e ímpar, o resultado é exatamento zero.
        </para>
    </refsection>
    <refsection>
        <title>Exemplos</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>Ver Também</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>
