Debian Codegraph @

opcodes/taninv2.xml

raw symbols SCIP
1
2 <refentry id="taninv2">
3 <indexterm id="IndexTaninv2"><primary>taninv2</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Opcode Equivalents of Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>taninv2</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>taninv2</refname>
13
14 <refpurpose>
15 Returns an arctangent.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Returns the arctangent of <emphasis>iy/ix</emphasis>, <emphasis>ky/kx</emphasis>, or <emphasis>ay/ax</emphasis>.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>ares <command>taninv2</command> ay, ax</synopsis>
29
30 <synopsis>ires <command>taninv2</command> iy, ix</synopsis>
31
32 <synopsis>kres <command>taninv2</command> ky, kx</synopsis>
33 <synopsis>...<command>taninv2</command>(ky, kx)... (no rate restriction)</synopsis>
34
35 <para>
36 Returns the arctangent of <emphasis>iy/ix</emphasis>, <emphasis>ky/kx</emphasis>, or <emphasis>ay/ax</emphasis>. If <emphasis>y</emphasis> is zero, <emphasis>taninv2</emphasis> returns zero regardless of the value of <emphasis>x</emphasis>. If <emphasis>x</emphasis> is zero, the return value is:
37 <itemizedlist>
38 <listitem><para><emphasis>&#960;/2</emphasis>, if <emphasis>y</emphasis> is positive.</para></listitem>
39 <listitem><para><emphasis>-&#960;/2</emphasis>, if <emphasis>y</emphasis> is negative.</para></listitem>
40 <listitem><para><emphasis>0</emphasis>, if <emphasis>y</emphasis> is 0.</para></listitem>
41 </itemizedlist>
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Initialization</title>
47 <para>
48 <emphasis>iy, ix</emphasis> -- values to be converted
49 </para>
50 </refsect1>
51
52 <refsect1>
53 <title>Performance</title>
54 <para>
55 <emphasis>ky, kx</emphasis> -- control rate signals to be converted
56 </para>
57
58 <para>
59 <emphasis>ay, ax</emphasis> -- audio rate signals to be converted
60 </para>
61 </refsect1>
62
63 <refsect1>
64 <title>Examples</title>
65 <para>
66 Here is an example of the taninv2 opcode. It uses the file <ulink url="examples/taninv2.csd"><citetitle>taninv2.csd</citetitle></ulink>.
67
68 <example>
69 <title>Example of the taninv2 opcode.</title>
70
71
72
73 <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>
74 <xi:include href="examples-xml/taninv2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
75 </example>
76
77 Its output should include a line like this:
78 <screen>instr 1: i1 = 0.464</screen>
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <para>
84 Here is another example of the taninv2 opcode. It uses the file <ulink url="examples/taninv2-advanced.csd"><citetitle>taninv2-advanced.csd</citetitle></ulink>.
85
86 <example>
87 <title>Advanced example of the taninv2 opcode.</title>
88
89
90
91 <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>
92 <xi:include href="examples-xml/taninv2-advanced.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
93 </example>
94 </para>
95 </refsect1>
96
97 <refsect1>
98 <title>See also</title>
99 <para><link linkend="MathOpeqfunc"><citetitle>Opcode Equivalents of Functions</citetitle></link></para>
100 <para><link linkend="MathTrig"><citetitle>Trigonometric Functions</citetitle></link></para>
101 </refsect1>
102
103 <refsect1>
104 <title>Credits</title>
105 <para>
106 <simplelist>
107 <member>Author: &namejohn;</member>
108 <member>University of Bath/Codemist Ltd.</member>
109 <member>Bath, UK</member>
110 <member>April 1998</member>
111 </simplelist>
112 </para>
113
114 <para>New in Csound version 3.48</para>
115 <para>Corrected on May 2002, thanks to &nameistvan;.</para>
116 <para>Available as a function in version 6.00</para>
117 </refsect1>
118 </refentry>