Debian Codegraph @

opcodes/cos.xml

raw symbols SCIP
1
2 <refentry id="cos">
3 <indexterm id="IndexCos"><primary>cos</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Trigonometric Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>cos</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>cos</refname>
13
14 <refpurpose>
15 Performs a cosine function.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Returns the cosine of <emphasis>x</emphasis> (<emphasis>x</emphasis> in radians).
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>cos</command>(x) (no rate
29 restriction)</synopsis>
30 <synopsis><command>cos</command>(k/i[]) (k- or i-arrays )</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Examples</title>
35 <para>
36 Here is an example of the cos opcode. It uses the file <ulink url="examples/cos.csd"><citetitle>cos.csd</citetitle></ulink>.
37
38 <example>
39 <title>Example of the cos opcode.</title>
40
41
42
43 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
44 <xi:include href="examples-xml/cos.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
45 </example>
46 </para>
47 </refsect1>
48
49 <refsect1>
50 <title>See also</title>
51 <para><link linkend="MathTrig"><citetitle>Trigonometric Functions</citetitle></link></para>
52 </refsect1>
53
54 </refentry>