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="ru">
21 <refname>cotd</refname>
22 <refpurpose>поэлементный котангенс, аргумент в градусах</refpurpose>
25 <title>Синтаксис</title>
26 <synopsis>y = cotd(x)</synopsis>
29 <title>Аргументы</title>
34 <para>вещественный массив.</para>
40 <para>вещественный массив тех же размеров, что и
48 <title>Описание</title>
50 Элементы <varname>y</varname> являются котангенсом соответствующих
51 элементов <varname>x</varname> в предположении, что они даны в градусах.
52 <code>t=cos(x)./sin(x)</code>. Для элементов, равных
53 <literal>n*180</literal>, где <literal>n</literal> - целые числа, результат
54 равен бесконечности, хотя <code>cotg(n*%pi)</code> и большой, но конечный,
55 поскольку <constant>%pi</constant> не может быть представлено точно. Для
56 элементов, равных <literal>n*90</literal>, где <literal>n</literal> - нечётное целое,
57 результаты равны строго <literal>0</literal>.
61 <title>Примеры</title>
62 <programlisting role="example"><![CDATA[
64 cotd([-180 -90 0 90 180])
67 --> cotd([30 45 60 90])
69 1.7320508 1. 0.5773503 0.
71 --> cotd([-180 -90 0 90 180])
76 <refsection role="see also">
77 <title>Смотрите также</title>
78 <simplelist type="inline">
80 <link linkend="cotg">cotg</link>
83 <link linkend="coth">coth</link>
86 <link linkend="tan">tan</link>
89 <link linkend="tand">tand</link>