Debian Codegraph @

opcodes/hypot.xml

raw symbols SCIP
1
2 <refentry id="hypot">
3 <indexterm id="IndexHypot"><primary>hypot</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Arrays</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>hypot</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>hypot</refname>
11 <refpurpose>
12 Euclidean distance function.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Returns the value of sqrt(arg1*arg1+arg2*arg2).
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ires[] <command>hypot</command> iarg1[], iarg2[] </synopsis>
26 <synopsis>kres[] <command>hypot</command> karg1[], karg2[]</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>iarg[]1/2 </emphasis> -- the operands.
33 </para>
34 </refsect1>
35
36 <refsect1>
37 <title>Performance</title>
38 <para>
39 <emphasis>karg[]1/2 </emphasis> -- the operands
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 Here is an example of the hypot opcode. It uses the file <ulink url="examples/hypot.csd"><citetitle>hypot.csd</citetitle></ulink>.
47 <example>
48 <title>Example of the hypot opcode.</title>
49 <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>
50 <xi:include href="examples-xml/hypot.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
51 </example>
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>See Also</title>
57 <para>
58 <link linkend="arrayOpcodes"><citetitle></citetitle>array opcodes</link>
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>Credits</title>
64 <para>
65 <simplelist>
66 <member>Author: Victor Lazzarini</member>
67 <member> 2017 </member>
68 </simplelist>
69 </para>
70 </refsect1>
71 </refentry>