~ubuntu-branches/ubuntu/trusty/csound-manual/trusty-proposed

« back to all changes in this revision

Viewing changes to opcodes/fareylen.xml

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Sateler
  • Date: 2011-08-01 22:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801222158-90kslkp5ujci2f5d
Tags: 1:5.13~dfsg-1
* New upstream release
 - Add Menno Knevel to the copyright file
 - Refresh patch 2000-stripped-opcodes.diff
 - Update copyright hints file
* Update Vcs-* headers
* Bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<refentry id="fareylen">
 
3
<indexterm id="IndexFareylen"><primary>fareylen</primary></indexterm>
 
4
  <refentryinfo><title>Miscellaneous</title></refentryinfo>
 
5
  <refmeta>
 
6
    <refentrytitle>fareylen</refentrytitle>
 
7
  </refmeta>
 
8
 
 
9
  <refnamediv>
 
10
    <refname>fareylen</refname>
 
11
    <refpurpose>
 
12
      returns the length of a Farey Sequence.
 
13
    </refpurpose>
 
14
  </refnamediv>
 
15
 
 
16
  <refsect1>
 
17
    <title>Description</title>
 
18
    <para>
 
19
This opcode can be used in conjunction with <link linkend="GENfarey"><citetitle>GENfarey</citetitle></link>.
 
20
It calculates the length of Farey Sequence F<subscript>n</subscript>. Its length is given by:
 
21
|F<subscript>n</subscript>| = 1 + SUM over n phi(m) 
 
22
where phi(m) is Euler's totient function, which gives the number of integers &le; m that are coprime to m.
 
23
    </para>
 
24
    <para>
 
25
      Some values for the length of F<subscript>n</subscript> given n:
 
26
      <itemizedlist>
 
27
        <listitem>n     |F<subscript>n</subscript>|</listitem>
 
28
        <listitem>1     2</listitem>
 
29
        <listitem>2     3</listitem>
 
30
        <listitem>3     5</listitem>
 
31
        <listitem>4     7</listitem>
 
32
        <listitem>5     11</listitem>
 
33
        <listitem>6     13</listitem>
 
34
        <listitem>7     19</listitem>
 
35
        <listitem>8     23</listitem>   
 
36
        <listitem>9     29</listitem>
 
37
        <listitem>10    33</listitem>
 
38
        <listitem>11    43</listitem>   
 
39
        <listitem>12    47</listitem>
 
40
        <listitem>13    59</listitem>
 
41
        <listitem>14    65</listitem>
 
42
        <listitem>15    73</listitem>
 
43
        <listitem>16    81</listitem>
 
44
        <listitem>17    97</listitem>
 
45
        <listitem>18    103</listitem>
 
46
        <listitem>19    121</listitem>
 
47
      </itemizedlist>
 
48
    </para>
 
49
 
 
50
  </refsect1>
 
51
 
 
52
  <refsect1>
 
53
    <title>Syntax</title>
 
54
    <synopsis>kfl <command>fareylen</command> kfn</synopsis>
 
55
  </refsect1>
 
56
 
 
57
  <refsect1>
 
58
    <title>Performance</title>
 
59
    <para>
 
60
      The length of the identified Farey sequence is returned.
 
61
    </para>
 
62
 
 
63
    <para>
 
64
      <emphasis>kfn</emphasis> -- Integer identifying the sequence.
 
65
    </para>
 
66
  </refsect1>
 
67
 
 
68
  <refsect1>
 
69
    <title>Credits</title>
 
70
    <para>
 
71
      <simplelist>
 
72
        <member>Author: Georg Boenn </member>
 
73
        <member>University of Glamorgan, UK</member>
 
74
      </simplelist>
 
75
    </para>
 
76
 
 
77
    <para>New in Csound version 5.13</para>
 
78
  </refsect1>
 
79
</refentry>