Debian Codegraph @

opcodes/log10.xml

raw symbols SCIP
1
2 <refentry id="log10">
3 <indexterm id="IndexLog10"><primary>log10</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Mathematical Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>log10</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>log10</refname>
13
14 <refpurpose>
15 Returns a base 10 log.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Returns the base 10 log of <emphasis>x</emphasis> (<emphasis>x</emphasis> positive only).
23 </para>
24
25 <para>
26 The argument value is restricted for <link linkend="log"><citetitle>log</citetitle></link>,
27 <emphasis>log10</emphasis>, and <link linkend="sqrt"><citetitle>sqrt</citetitle></link>.
28 </para>
29 </refsect1>
30
31 <refsect1>
32 <title>Syntax</title>
33 <synopsis><command>log10</command>(x) (no rate restriction)</synopsis>
34 <synopsis><command>log10</command>(k/i[]) (k- or i-arrays )</synopsis>
35 <para>
36 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.
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Examples</title>
42 <para>
43 Here is an example of the log10 opcode. It uses the file <ulink url="examples/log10.csd"><citetitle>log10.csd</citetitle></ulink>.
44
45 <example>
46 <title>Example of the log10 opcode.</title>
47
48
49
50 <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>
51 <xi:include href="examples-xml/log10.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
52 </example>
53
54 Its output should include a line like this:
55 <screen>instr 1: i1 = 0.903</screen>
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>See also</title>
61 <para><link linkend="MathMatfunc"><citetitle>Mathematical Functions</citetitle></link></para>
62 </refsect1>
63
64 <refsect1>
65 <title>Credits</title>
66 <para>Written by &namejohn;.</para>
67 <para>New in version 3.47</para>
68 <para>Example written by &namekevin;.</para>
69 </refsect1>
70 </refentry>