Debian Codegraph @

opcodes/exp.xml

raw symbols SCIP
1
2 <refentry id="exp">
3 <indexterm id="IndexExp"><primary>exp</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Mathematical Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>exp</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>exp</refname>
11
12 <refpurpose>
13 Returns e raised to the x-th power.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Returns e raised to the <emphasis>x</emphasis>th power.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis><command>exp</command>(x) (no rate
27 restriction)</synopsis>
28 <synopsis><command>exp</command>(k/i[]) (k- or i-arrays)</synopsis>
29
30 <para>
31 where the argument within the parentheses may be an expression. Value converters perform arithmetic translation from units of one kind to units of another. The result can then be a term in a further expression.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Examples</title>
37 <para>
38 Here is an example of the exp opcode. It uses the file <ulink url="examples/exp.csd"><citetitle>exp.csd</citetitle></ulink>.
39
40 <example>
41 <title>Example of the exp opcode.</title>
42 <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>
43 <xi:include href="examples-xml/exp.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
44 </example>
45 Its output should include lines like this:
46 <screen>
47 new alloc for instr 1:
48 instr 1: i1 = 7.389
49 B 0.000 .. 1.000 T 1.000 TT 1.000 M: 0.00000 0.00000
50 .........</screen>
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <para>
56 Here is another example of the exp opcode. It uses the file <ulink url="examples/exp-musical.csd"><citetitle>exp-musical.csd</citetitle></ulink>.
57
58 <example>
59 <title>Musical example of the exp opcode.</title>
60 <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>
61 <xi:include href="examples-xml/exp-musical.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 Its output should include lines like this:
64 <screen>
65 Generated events per second: 1
66 rtevent: T 0.000 TT 0.000 M: 0.00000 0.00000
67 new alloc for instr 10:
68 rtevent: T 0.811 TT 0.811 M: 0.48906 0.48906
69 new alloc for instr 10:
70 Generated events per second: 2
71 rtevent: T 1.387 TT 1.387 M: 0.48611 0.48611
72 rtevent: T 1.833 TT 1.833 M: 0.48421 0.48421
73 Generated events per second: 3
74 rtevent: T 2.198 TT 2.198 M: 0.47536 0.47536
75 rtevent: T 2.506 TT 2.506 M: 0.46530 0.46530
76 rtevent: T 2.773 TT 2.773 M: 0.44986 0.44986
77 Generated events per second: 4
78 rtevent: T 3.009 TT 3.009 M: 0.48096 0.48096
79 .........</screen>
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>See also</title>
85 <para><link linkend="MathMatfunc"><citetitle>Mathematical Functions</citetitle></link></para>
86 </refsect1>
87
88 <refsect1>
89 <para>New in version 4.21</para>
90 </refsect1>
91 </refentry>