1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2019 - Samuel GOUGEON
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17 xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19 xmlns:scilab="http://www.scilab.org" xml:id="cotd" xml:lang="fr">
21 <refname>cotd</refname>
22 <refpurpose>cotangent des éléments de l'argument donné en
27 <title>Séquence d'appel</title>
28 <synopsis>y = cotg(x)</synopsis>
31 <title>Paramètres</title>
36 <para>Tableau réel.</para>
42 <para>Tableau réel de mêmes dimensions que
50 <title>Description</title>
52 Les éléments de <literal>y</literal> sont les cotangentes
53 (<literal>y=cos(x)./sin(x)</literal>) des éléments correspondants de
54 <literal>x</literal> supposés donnés en degrés. Pour les éléments égaux à
55 <literal>n*180</literal> avec <literal>n</literal> entier le résultat et
56 infini (ou une erreur selon le mode ieee choisi) tandis que
57 <literal>cotg(n*%pi)</literal> est très grand mais fini car
58 <literal>%pi</literal> ne peut être représenté exactement. Pour les
59 éléments égaux à <literal>n*90</literal> avec <literal>n</literal> entier
60 et impair le résultat est exactement 0.
64 <title>Exemples</title>
65 <programlisting role="example"><![CDATA[
67 cotd([-180 -90 0 90 180])
70 --> cotd([30 45 60 90])
72 1.7320508 1. 0.5773503 0.
74 --> cotd([-180 -90 0 90 180])
79 <refsection role="see also">
80 <title>Voir aussi</title>
81 <simplelist type="inline">
83 <link linkend="cotg">cotg</link>
86 <link linkend="coth">coth</link>
89 <link linkend="tan">tan</link>
92 <link linkend="tand">tand</link>