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
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
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" 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="cotd" xml:lang="en">
18 <refname>cotd</refname>
19 <refpurpose>element-wise cotangent function, argument in degree</refpurpose>
23 <synopsis>y = cotd(x)</synopsis>
26 <title>Arguments</title>
31 <para>a real array.</para>
37 <para>a real array with same dimensions as
45 <title>Description</title>
47 The entries of <varname>y</varname> are the cotangents of the
48 corresponding entries of <varname>x</varname> supposed to be given in
49 degree. <code>t=cos(x)./sin(x)</code>. For entries equal to
50 <literal>n*180</literal> with <literal>n</literal> integers the results
51 are infinite, whereas <code>cotg(n*%pi)</code> is large but finite
52 because <constant>%pi</constant> cannot be represented exactly. For entries
53 equal to <literal>n*90</literal> with <literal>n</literal> integers and
54 odd the results are exactly <literal>0</literal>.
58 <title>Examples</title>
59 <programlisting role="example"><![CDATA[
64 <refsection role="see also">
65 <title>See also</title>
66 <simplelist type="inline">
68 <link linkend="cotg">cotg</link>