| 1 | |
| 2 | <refentry id="cosh"> |
| 3 | <indexterm id="IndexCosh"><primary>cosh</primary></indexterm> |
| 4 | <refentryinfo><title>Mathematical Operations:Trigonometric Functions</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>cosh</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>cosh</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Performs a hyperbolic cosine function. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Returns the hyperbolic cosine of <emphasis>x</emphasis> (<emphasis>x</emphasis> in radians). |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>cosh</command>(x) (no rate |
| 29 | restriction)</synopsis> |
| 30 | <synopsis><command>cosh</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 cosh opcode. It uses the file <ulink url="examples/cosh.csd"><citetitle>cosh.csd</citetitle></ulink>. |
| 37 | |
| 38 | <example> |
| 39 | <title>Example of the cosh 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/cosh.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 45 | </example> |
| 46 | |
| 47 | Its output should include lines like this: |
| 48 | <screen>instr 1: i1 = 1.543</screen> |
| 49 | </para> |
| 50 | </refsect1> |
| 51 | |
| 52 | <refsect1> |
| 53 | <title>See also</title> |
| 54 | <para><link linkend="MathTrig"><citetitle>Trigonometric Functions</citetitle></link></para> |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Credits</title> |
| 59 | <para>Author: &namejohn;</para> |
| 60 | <para>New in version 3.47</para> |
| 61 | </refsect1> |
| 62 | </refentry> |