How can I plot a Farey diagram? Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to make this beautiful animationPlotting an epicycloidGenerating a topological space diagram for an n-element setMathematica code for Bifurcation DiagramHow to draw a contour diagram in Mathematica?How to draw timing diagram from a list of values?Expressing a series formulaBifurcation diagram for Piecewise functionHow to draw a clock-diagram?How can I plot a space time diagram in mathematica?Plotting classical polymer modelA problem in bifurcation diagram

If Jon Snow became King of the Seven Kingdoms what would his regnal number be?

Why does Python start at index 1 when iterating an array backwards?

If a contract sometimes uses the wrong name, is it still valid?

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Should gear shift center itself while in neutral?

List *all* the tuples!

Do I really need recursive chmod to restrict access to a folder?

Letter Boxed validator

What's the purpose of writing one's academic bio in 3rd person?

Gastric acid as a weapon

Doubts about chords

Stars Make Stars

Single word antonym of "flightless"

How discoverable are IPv6 addresses and AAAA names by potential attackers?

How does cp -a work

Are my PIs rude or am I just being too sensitive?

Java 8 stream max() function argument type Comparator vs Comparable

Why are there no cargo aircraft with "flying wing" design?

I am not a queen, who am I?

Does surprise arrest existing movement?

The logistics of corpse disposal

Why was the term "discrete" used in discrete logarithm?

Should I call the interviewer directly, if HR aren't responding?



How can I plot a Farey diagram?



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to make this beautiful animationPlotting an epicycloidGenerating a topological space diagram for an n-element setMathematica code for Bifurcation DiagramHow to draw a contour diagram in Mathematica?How to draw timing diagram from a list of values?Expressing a series formulaBifurcation diagram for Piecewise functionHow to draw a clock-diagram?How can I plot a space time diagram in mathematica?Plotting classical polymer modelA problem in bifurcation diagram










5












$begingroup$


How can I plot the following diagram for a Farey series?



enter image description here










share|improve this question











$endgroup$











  • $begingroup$
    From the beautiful book A. Hatcher Topology of numbers
    $endgroup$
    – G. R.
    Apr 8 at 21:16






  • 2




    $begingroup$
    Could you perhaps expand a bit on how the curves are calculated etc?
    $endgroup$
    – MarcoB
    Apr 8 at 21:40






  • 1




    $begingroup$
    pi.math.cornell.edu/~hatcher/TN/TNch1.pdf
    $endgroup$
    – Moo
    Apr 8 at 23:17






  • 1




    $begingroup$
    Technically this is not a Farey series/sequence $F_n$ of order $n$, which is defined to be all fractions (sometimes restricted to the interval between 0 and 1) with denominator at most $n$. For example 3/8 is present but not 1/8. It's a recursive mediant subdivision. It's related in that in any three successive terms of a Farey sequence, the middle one is the mediant of the other two.
    $endgroup$
    – Michael E2
    Apr 9 at 17:44











  • $begingroup$
    If it wasn't for the very good answers you got, I would have voted to close this question as it gives no details, no definitions no code and shows no personal effort. Please, next time try asking good questions.
    $endgroup$
    – rhermans
    Apr 11 at 9:18
















5












$begingroup$


How can I plot the following diagram for a Farey series?



enter image description here










share|improve this question











$endgroup$











  • $begingroup$
    From the beautiful book A. Hatcher Topology of numbers
    $endgroup$
    – G. R.
    Apr 8 at 21:16






  • 2




    $begingroup$
    Could you perhaps expand a bit on how the curves are calculated etc?
    $endgroup$
    – MarcoB
    Apr 8 at 21:40






  • 1




    $begingroup$
    pi.math.cornell.edu/~hatcher/TN/TNch1.pdf
    $endgroup$
    – Moo
    Apr 8 at 23:17






  • 1




    $begingroup$
    Technically this is not a Farey series/sequence $F_n$ of order $n$, which is defined to be all fractions (sometimes restricted to the interval between 0 and 1) with denominator at most $n$. For example 3/8 is present but not 1/8. It's a recursive mediant subdivision. It's related in that in any three successive terms of a Farey sequence, the middle one is the mediant of the other two.
    $endgroup$
    – Michael E2
    Apr 9 at 17:44











  • $begingroup$
    If it wasn't for the very good answers you got, I would have voted to close this question as it gives no details, no definitions no code and shows no personal effort. Please, next time try asking good questions.
    $endgroup$
    – rhermans
    Apr 11 at 9:18














5












5








5


2



$begingroup$


How can I plot the following diagram for a Farey series?



enter image description here










share|improve this question











$endgroup$




How can I plot the following diagram for a Farey series?



enter image description here







graphics number-theory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 9 at 3:01









Michael E2

151k12203482




151k12203482










asked Apr 8 at 21:12









G. R.G. R.

293




293











  • $begingroup$
    From the beautiful book A. Hatcher Topology of numbers
    $endgroup$
    – G. R.
    Apr 8 at 21:16






  • 2




    $begingroup$
    Could you perhaps expand a bit on how the curves are calculated etc?
    $endgroup$
    – MarcoB
    Apr 8 at 21:40






  • 1




    $begingroup$
    pi.math.cornell.edu/~hatcher/TN/TNch1.pdf
    $endgroup$
    – Moo
    Apr 8 at 23:17






  • 1




    $begingroup$
    Technically this is not a Farey series/sequence $F_n$ of order $n$, which is defined to be all fractions (sometimes restricted to the interval between 0 and 1) with denominator at most $n$. For example 3/8 is present but not 1/8. It's a recursive mediant subdivision. It's related in that in any three successive terms of a Farey sequence, the middle one is the mediant of the other two.
    $endgroup$
    – Michael E2
    Apr 9 at 17:44











  • $begingroup$
    If it wasn't for the very good answers you got, I would have voted to close this question as it gives no details, no definitions no code and shows no personal effort. Please, next time try asking good questions.
    $endgroup$
    – rhermans
    Apr 11 at 9:18

















  • $begingroup$
    From the beautiful book A. Hatcher Topology of numbers
    $endgroup$
    – G. R.
    Apr 8 at 21:16






  • 2




    $begingroup$
    Could you perhaps expand a bit on how the curves are calculated etc?
    $endgroup$
    – MarcoB
    Apr 8 at 21:40






  • 1




    $begingroup$
    pi.math.cornell.edu/~hatcher/TN/TNch1.pdf
    $endgroup$
    – Moo
    Apr 8 at 23:17






  • 1




    $begingroup$
    Technically this is not a Farey series/sequence $F_n$ of order $n$, which is defined to be all fractions (sometimes restricted to the interval between 0 and 1) with denominator at most $n$. For example 3/8 is present but not 1/8. It's a recursive mediant subdivision. It's related in that in any three successive terms of a Farey sequence, the middle one is the mediant of the other two.
    $endgroup$
    – Michael E2
    Apr 9 at 17:44











  • $begingroup$
    If it wasn't for the very good answers you got, I would have voted to close this question as it gives no details, no definitions no code and shows no personal effort. Please, next time try asking good questions.
    $endgroup$
    – rhermans
    Apr 11 at 9:18
















$begingroup$
From the beautiful book A. Hatcher Topology of numbers
$endgroup$
– G. R.
Apr 8 at 21:16




$begingroup$
From the beautiful book A. Hatcher Topology of numbers
$endgroup$
– G. R.
Apr 8 at 21:16




2




2




$begingroup$
Could you perhaps expand a bit on how the curves are calculated etc?
$endgroup$
– MarcoB
Apr 8 at 21:40




$begingroup$
Could you perhaps expand a bit on how the curves are calculated etc?
$endgroup$
– MarcoB
Apr 8 at 21:40




1




1




$begingroup$
pi.math.cornell.edu/~hatcher/TN/TNch1.pdf
$endgroup$
– Moo
Apr 8 at 23:17




$begingroup$
pi.math.cornell.edu/~hatcher/TN/TNch1.pdf
$endgroup$
– Moo
Apr 8 at 23:17




1




1




$begingroup$
Technically this is not a Farey series/sequence $F_n$ of order $n$, which is defined to be all fractions (sometimes restricted to the interval between 0 and 1) with denominator at most $n$. For example 3/8 is present but not 1/8. It's a recursive mediant subdivision. It's related in that in any three successive terms of a Farey sequence, the middle one is the mediant of the other two.
$endgroup$
– Michael E2
Apr 9 at 17:44





$begingroup$
Technically this is not a Farey series/sequence $F_n$ of order $n$, which is defined to be all fractions (sometimes restricted to the interval between 0 and 1) with denominator at most $n$. For example 3/8 is present but not 1/8. It's a recursive mediant subdivision. It's related in that in any three successive terms of a Farey sequence, the middle one is the mediant of the other two.
$endgroup$
– Michael E2
Apr 9 at 17:44













$begingroup$
If it wasn't for the very good answers you got, I would have voted to close this question as it gives no details, no definitions no code and shows no personal effort. Please, next time try asking good questions.
$endgroup$
– rhermans
Apr 11 at 9:18





$begingroup$
If it wasn't for the very good answers you got, I would have voted to close this question as it gives no details, no definitions no code and shows no personal effort. Please, next time try asking good questions.
$endgroup$
– rhermans
Apr 11 at 9:18











3 Answers
3






active

oldest

votes


















12












$begingroup$

The curvilinear triangles which are characteristic for this type of plot are called hypocycloid curves. We can use the parametric equations on Wikipedia to plot these, like so:



x[a_, b_, t_] := (b - a) Cos[t] + a Cos[(b - a)/a t]
y[a_, b_, t_] := (b - a) Sin[t] - a Sin[(b - a)/a t]
hypocycloid[n_] := ParametricPlot[
x[1/n, 1, t], y[1/n, 1, t],
t, 0, 2 Pi,
PlotStyle -> Thickness[0.002], Black
]

Show[
Graphics[Circle[0, 0, 1]],
hypocycloid[2],
hypocycloid[4],
hypocycloid[8],
hypocycloid[16],
hypocycloid[32],
hypocycloid[64],
ImageSize -> 500
]


Mathematica graphics



I've previously written about an application of hypocycloids here, and I showed how to visualize epicycloids here.



How to generate the labels is described here (also linked to by moo in a comment). I will simply provide the code.



mediant[a_, b_, c_, d_] := a + c, b + d
recursive[v1_, v2_, depth_] := If[
depth > 2,
mediant[v1, v2],
recursive[v1, mediant[v1, v2], depth + 1],
mediant[v1, v2],
recursive[mediant[v1, v2], v2, depth + 1]
]

computeLabels[v1_, v2_] := Module[numbers,
numbers =
Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
StringTemplate["``/``"] @@@ numbers
]
computeLabelsNegative[v1_, v2_] := Module[numbers,
numbers =
Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
StringTemplate["-`2`/`1`"] @@@ numbers
]

labels = Reverse@Join[
"1/0",
computeLabels[1, 0, 1, 1],
"1/1",
computeLabels[1, 1, 0, 1],
"0/1",
computeLabelsNegative[1, 0, 1, 1],
"-1,1",
computeLabelsNegative[1, 1, 0, 1]
];

coords = CirclePoints[1.1, 186 Degree, 64];

Show[
Graphics[Circle[0, 0, 1]],
hypocycloid[2],
hypocycloid[4],
hypocycloid[8],
hypocycloid[16],
hypocycloid[32],
hypocycloid[64],
Graphics@MapThread[Text, labels, coords],
ImageSize -> 500
]


Mathematica graphics






share|improve this answer











$endgroup$




















    5












    $begingroup$

    Using Graph with a bit of coding:



    addPoint[p : h_[a_,b_], q : h_[c_,d_], i_] :=
    With[np = h[a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

    addPoint[p : h_[a_,b_], q : h_[-1][c_,d_], i_] :=
    With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

    addPoint[p : h_[-1][a_,b_], q : h_[c_,d_], i_] :=
    With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

    addPoint[p : h_[-1][a_,b_], q : h_[-1][c_,d_], i_] :=
    With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

    fLabel[fr_, angle_] :=
    With[tangle=ArcTan@@angle, Placed[fLabel[fr], AngleVector[1/2, 1/2, .7, #] & /@tangle, tangle+Pi]]

    fLabel[h_[a_, b_]] := ToString[a] ~~ "/" ~~ ToString[b]
    fLabel[h_[-1][a_, b_]] := "-" ~~ ToString[a] ~~ "/" ~~ ToString[b]

    FareyDiagram[n_Integer, d_Integer: 1, opts___?OptionQ] :=
    Block[fr, top, bottom, stedges, toppart, bottompart, vert, edges, coords, labels, labpos, cfunc, i, edgestyle, dstyle, nopts,
    cfunc = ColorFunction /. Flatten[opts] /. ColorFunction -> Automatic;
    nopts = FilterRules[Flatten[opts], Options[Graph]];
    top = fr[0,1], fr[1,1], fr[1,0];
    bottom = fr[1,0], fr[-1][1,1], fr[0,1];
    stedges = UndirectedEdge@@@Join[Partition[top, 2, 1], Partition[bottom, 2, 1], fr[0, 1],fr[1, 0]];
    i = 0;toppart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#, 2, 1],1]][[All,1]])&, top, n]];
    i = 0;bottompart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#,2,1],1]][[All,1]])&,bottom, n]];
    vert = Join[toppart[[1]], bottompart[[1, 2;;-2]]];
    edges = Flatten[stedges, toppart[[2, 1]], bottompart[[2, 1]]];
    coords = CirclePoints[1,0,Length[vert]];
    labpos = Range[1, Length[vert], 2 ^ (d - 1)];
    labels = Thread[vert[[labpos]]->fLabel@@@Transpose[vert,coords][[labpos]]];
    edgestyle = Black;
    dstyle = Black;
    If[cfunc =!= Automatic,
    edgestyle = Flatten[Table[0, Length[stedges]], toppart[[2, 2]], bottompart[[2, 2]]];
    edgestyle = edgestyle / Max[edgestyle];
    edgestyle = Thread[edges -> Flatten[cfunc[1 - #] & /@ edgestyle]];
    dstyle = cfunc[1]
    ];
    Graph[vert, edges, nopts, VertexCoordinates->CirclePoints[1,0,Length[vert]], VertexLabels->labels,
    EdgeShapeFunction->(BSplineCurve[#1[[1]],0,0,#1[[2]], SplineWeights->2,EuclideanDistance@@#,2]&),
    PerformanceGoal->"Speed", Epilog->dstyle, Circle[], VertexShapeFunction -> "Point", EdgeStyle -> edgestyle, VertexStyle -> dstyle]
    ]


    Example:



    FareyDiagram[4]


    enter image description here



    FareyDiagram[6, 4, ColorFunction -> Hue, 
    VertexLabelStyle -> Darker[Red]]


    enter image description here






    share|improve this answer











    $endgroup$




















      4












      $begingroup$

      I looked up the Farey sequence on Wikipedia, out of curiosity, because I had not heard of it before. The Farey sequence of order $n$ is "the sequence of completely reduced fractions between 0 and 1 which, when in lowest terms, have denominators less than or equal to $n$, arranged in order of increasing size".



      On that basis, you can generate the sequence as follows, for instance:



      ClearAll[farey]
      farey[n_Integer] := (Divide @@@ Subsets[Range[n], 2]) ~ Join ~ 0, 1 //DeleteDuplicates //Sort


      So for instance:



      farey[5]



      0, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1




      I am not sure how these sequences are connected with the figure you showed though.






      share|improve this answer









      $endgroup$












      • $begingroup$
        Thanks to C.E., it is a concrete answer
        $endgroup$
        – G. R.
        Apr 9 at 12:58











      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "387"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f194838%2fhow-can-i-plot-a-farey-diagram%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      12












      $begingroup$

      The curvilinear triangles which are characteristic for this type of plot are called hypocycloid curves. We can use the parametric equations on Wikipedia to plot these, like so:



      x[a_, b_, t_] := (b - a) Cos[t] + a Cos[(b - a)/a t]
      y[a_, b_, t_] := (b - a) Sin[t] - a Sin[(b - a)/a t]
      hypocycloid[n_] := ParametricPlot[
      x[1/n, 1, t], y[1/n, 1, t],
      t, 0, 2 Pi,
      PlotStyle -> Thickness[0.002], Black
      ]

      Show[
      Graphics[Circle[0, 0, 1]],
      hypocycloid[2],
      hypocycloid[4],
      hypocycloid[8],
      hypocycloid[16],
      hypocycloid[32],
      hypocycloid[64],
      ImageSize -> 500
      ]


      Mathematica graphics



      I've previously written about an application of hypocycloids here, and I showed how to visualize epicycloids here.



      How to generate the labels is described here (also linked to by moo in a comment). I will simply provide the code.



      mediant[a_, b_, c_, d_] := a + c, b + d
      recursive[v1_, v2_, depth_] := If[
      depth > 2,
      mediant[v1, v2],
      recursive[v1, mediant[v1, v2], depth + 1],
      mediant[v1, v2],
      recursive[mediant[v1, v2], v2, depth + 1]
      ]

      computeLabels[v1_, v2_] := Module[numbers,
      numbers =
      Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
      StringTemplate["``/``"] @@@ numbers
      ]
      computeLabelsNegative[v1_, v2_] := Module[numbers,
      numbers =
      Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
      StringTemplate["-`2`/`1`"] @@@ numbers
      ]

      labels = Reverse@Join[
      "1/0",
      computeLabels[1, 0, 1, 1],
      "1/1",
      computeLabels[1, 1, 0, 1],
      "0/1",
      computeLabelsNegative[1, 0, 1, 1],
      "-1,1",
      computeLabelsNegative[1, 1, 0, 1]
      ];

      coords = CirclePoints[1.1, 186 Degree, 64];

      Show[
      Graphics[Circle[0, 0, 1]],
      hypocycloid[2],
      hypocycloid[4],
      hypocycloid[8],
      hypocycloid[16],
      hypocycloid[32],
      hypocycloid[64],
      Graphics@MapThread[Text, labels, coords],
      ImageSize -> 500
      ]


      Mathematica graphics






      share|improve this answer











      $endgroup$

















        12












        $begingroup$

        The curvilinear triangles which are characteristic for this type of plot are called hypocycloid curves. We can use the parametric equations on Wikipedia to plot these, like so:



        x[a_, b_, t_] := (b - a) Cos[t] + a Cos[(b - a)/a t]
        y[a_, b_, t_] := (b - a) Sin[t] - a Sin[(b - a)/a t]
        hypocycloid[n_] := ParametricPlot[
        x[1/n, 1, t], y[1/n, 1, t],
        t, 0, 2 Pi,
        PlotStyle -> Thickness[0.002], Black
        ]

        Show[
        Graphics[Circle[0, 0, 1]],
        hypocycloid[2],
        hypocycloid[4],
        hypocycloid[8],
        hypocycloid[16],
        hypocycloid[32],
        hypocycloid[64],
        ImageSize -> 500
        ]


        Mathematica graphics



        I've previously written about an application of hypocycloids here, and I showed how to visualize epicycloids here.



        How to generate the labels is described here (also linked to by moo in a comment). I will simply provide the code.



        mediant[a_, b_, c_, d_] := a + c, b + d
        recursive[v1_, v2_, depth_] := If[
        depth > 2,
        mediant[v1, v2],
        recursive[v1, mediant[v1, v2], depth + 1],
        mediant[v1, v2],
        recursive[mediant[v1, v2], v2, depth + 1]
        ]

        computeLabels[v1_, v2_] := Module[numbers,
        numbers =
        Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
        StringTemplate["``/``"] @@@ numbers
        ]
        computeLabelsNegative[v1_, v2_] := Module[numbers,
        numbers =
        Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
        StringTemplate["-`2`/`1`"] @@@ numbers
        ]

        labels = Reverse@Join[
        "1/0",
        computeLabels[1, 0, 1, 1],
        "1/1",
        computeLabels[1, 1, 0, 1],
        "0/1",
        computeLabelsNegative[1, 0, 1, 1],
        "-1,1",
        computeLabelsNegative[1, 1, 0, 1]
        ];

        coords = CirclePoints[1.1, 186 Degree, 64];

        Show[
        Graphics[Circle[0, 0, 1]],
        hypocycloid[2],
        hypocycloid[4],
        hypocycloid[8],
        hypocycloid[16],
        hypocycloid[32],
        hypocycloid[64],
        Graphics@MapThread[Text, labels, coords],
        ImageSize -> 500
        ]


        Mathematica graphics






        share|improve this answer











        $endgroup$















          12












          12








          12





          $begingroup$

          The curvilinear triangles which are characteristic for this type of plot are called hypocycloid curves. We can use the parametric equations on Wikipedia to plot these, like so:



          x[a_, b_, t_] := (b - a) Cos[t] + a Cos[(b - a)/a t]
          y[a_, b_, t_] := (b - a) Sin[t] - a Sin[(b - a)/a t]
          hypocycloid[n_] := ParametricPlot[
          x[1/n, 1, t], y[1/n, 1, t],
          t, 0, 2 Pi,
          PlotStyle -> Thickness[0.002], Black
          ]

          Show[
          Graphics[Circle[0, 0, 1]],
          hypocycloid[2],
          hypocycloid[4],
          hypocycloid[8],
          hypocycloid[16],
          hypocycloid[32],
          hypocycloid[64],
          ImageSize -> 500
          ]


          Mathematica graphics



          I've previously written about an application of hypocycloids here, and I showed how to visualize epicycloids here.



          How to generate the labels is described here (also linked to by moo in a comment). I will simply provide the code.



          mediant[a_, b_, c_, d_] := a + c, b + d
          recursive[v1_, v2_, depth_] := If[
          depth > 2,
          mediant[v1, v2],
          recursive[v1, mediant[v1, v2], depth + 1],
          mediant[v1, v2],
          recursive[mediant[v1, v2], v2, depth + 1]
          ]

          computeLabels[v1_, v2_] := Module[numbers,
          numbers =
          Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
          StringTemplate["``/``"] @@@ numbers
          ]
          computeLabelsNegative[v1_, v2_] := Module[numbers,
          numbers =
          Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
          StringTemplate["-`2`/`1`"] @@@ numbers
          ]

          labels = Reverse@Join[
          "1/0",
          computeLabels[1, 0, 1, 1],
          "1/1",
          computeLabels[1, 1, 0, 1],
          "0/1",
          computeLabelsNegative[1, 0, 1, 1],
          "-1,1",
          computeLabelsNegative[1, 1, 0, 1]
          ];

          coords = CirclePoints[1.1, 186 Degree, 64];

          Show[
          Graphics[Circle[0, 0, 1]],
          hypocycloid[2],
          hypocycloid[4],
          hypocycloid[8],
          hypocycloid[16],
          hypocycloid[32],
          hypocycloid[64],
          Graphics@MapThread[Text, labels, coords],
          ImageSize -> 500
          ]


          Mathematica graphics






          share|improve this answer











          $endgroup$



          The curvilinear triangles which are characteristic for this type of plot are called hypocycloid curves. We can use the parametric equations on Wikipedia to plot these, like so:



          x[a_, b_, t_] := (b - a) Cos[t] + a Cos[(b - a)/a t]
          y[a_, b_, t_] := (b - a) Sin[t] - a Sin[(b - a)/a t]
          hypocycloid[n_] := ParametricPlot[
          x[1/n, 1, t], y[1/n, 1, t],
          t, 0, 2 Pi,
          PlotStyle -> Thickness[0.002], Black
          ]

          Show[
          Graphics[Circle[0, 0, 1]],
          hypocycloid[2],
          hypocycloid[4],
          hypocycloid[8],
          hypocycloid[16],
          hypocycloid[32],
          hypocycloid[64],
          ImageSize -> 500
          ]


          Mathematica graphics



          I've previously written about an application of hypocycloids here, and I showed how to visualize epicycloids here.



          How to generate the labels is described here (also linked to by moo in a comment). I will simply provide the code.



          mediant[a_, b_, c_, d_] := a + c, b + d
          recursive[v1_, v2_, depth_] := If[
          depth > 2,
          mediant[v1, v2],
          recursive[v1, mediant[v1, v2], depth + 1],
          mediant[v1, v2],
          recursive[mediant[v1, v2], v2, depth + 1]
          ]

          computeLabels[v1_, v2_] := Module[numbers,
          numbers =
          Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
          StringTemplate["``/``"] @@@ numbers
          ]
          computeLabelsNegative[v1_, v2_] := Module[numbers,
          numbers =
          Cases[recursive[v1, v2, 0], _Integer, _Integer, Infinity];
          StringTemplate["-`2`/`1`"] @@@ numbers
          ]

          labels = Reverse@Join[
          "1/0",
          computeLabels[1, 0, 1, 1],
          "1/1",
          computeLabels[1, 1, 0, 1],
          "0/1",
          computeLabelsNegative[1, 0, 1, 1],
          "-1,1",
          computeLabelsNegative[1, 1, 0, 1]
          ];

          coords = CirclePoints[1.1, 186 Degree, 64];

          Show[
          Graphics[Circle[0, 0, 1]],
          hypocycloid[2],
          hypocycloid[4],
          hypocycloid[8],
          hypocycloid[16],
          hypocycloid[32],
          hypocycloid[64],
          Graphics@MapThread[Text, labels, coords],
          ImageSize -> 500
          ]


          Mathematica graphics







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 9 at 6:50

























          answered Apr 9 at 3:27









          C. E.C. E.

          51.2k3101207




          51.2k3101207





















              5












              $begingroup$

              Using Graph with a bit of coding:



              addPoint[p : h_[a_,b_], q : h_[c_,d_], i_] :=
              With[np = h[a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

              addPoint[p : h_[a_,b_], q : h_[-1][c_,d_], i_] :=
              With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

              addPoint[p : h_[-1][a_,b_], q : h_[c_,d_], i_] :=
              With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

              addPoint[p : h_[-1][a_,b_], q : h_[-1][c_,d_], i_] :=
              With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

              fLabel[fr_, angle_] :=
              With[tangle=ArcTan@@angle, Placed[fLabel[fr], AngleVector[1/2, 1/2, .7, #] & /@tangle, tangle+Pi]]

              fLabel[h_[a_, b_]] := ToString[a] ~~ "/" ~~ ToString[b]
              fLabel[h_[-1][a_, b_]] := "-" ~~ ToString[a] ~~ "/" ~~ ToString[b]

              FareyDiagram[n_Integer, d_Integer: 1, opts___?OptionQ] :=
              Block[fr, top, bottom, stedges, toppart, bottompart, vert, edges, coords, labels, labpos, cfunc, i, edgestyle, dstyle, nopts,
              cfunc = ColorFunction /. Flatten[opts] /. ColorFunction -> Automatic;
              nopts = FilterRules[Flatten[opts], Options[Graph]];
              top = fr[0,1], fr[1,1], fr[1,0];
              bottom = fr[1,0], fr[-1][1,1], fr[0,1];
              stedges = UndirectedEdge@@@Join[Partition[top, 2, 1], Partition[bottom, 2, 1], fr[0, 1],fr[1, 0]];
              i = 0;toppart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#, 2, 1],1]][[All,1]])&, top, n]];
              i = 0;bottompart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#,2,1],1]][[All,1]])&,bottom, n]];
              vert = Join[toppart[[1]], bottompart[[1, 2;;-2]]];
              edges = Flatten[stedges, toppart[[2, 1]], bottompart[[2, 1]]];
              coords = CirclePoints[1,0,Length[vert]];
              labpos = Range[1, Length[vert], 2 ^ (d - 1)];
              labels = Thread[vert[[labpos]]->fLabel@@@Transpose[vert,coords][[labpos]]];
              edgestyle = Black;
              dstyle = Black;
              If[cfunc =!= Automatic,
              edgestyle = Flatten[Table[0, Length[stedges]], toppart[[2, 2]], bottompart[[2, 2]]];
              edgestyle = edgestyle / Max[edgestyle];
              edgestyle = Thread[edges -> Flatten[cfunc[1 - #] & /@ edgestyle]];
              dstyle = cfunc[1]
              ];
              Graph[vert, edges, nopts, VertexCoordinates->CirclePoints[1,0,Length[vert]], VertexLabels->labels,
              EdgeShapeFunction->(BSplineCurve[#1[[1]],0,0,#1[[2]], SplineWeights->2,EuclideanDistance@@#,2]&),
              PerformanceGoal->"Speed", Epilog->dstyle, Circle[], VertexShapeFunction -> "Point", EdgeStyle -> edgestyle, VertexStyle -> dstyle]
              ]


              Example:



              FareyDiagram[4]


              enter image description here



              FareyDiagram[6, 4, ColorFunction -> Hue, 
              VertexLabelStyle -> Darker[Red]]


              enter image description here






              share|improve this answer











              $endgroup$

















                5












                $begingroup$

                Using Graph with a bit of coding:



                addPoint[p : h_[a_,b_], q : h_[c_,d_], i_] :=
                With[np = h[a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                addPoint[p : h_[a_,b_], q : h_[-1][c_,d_], i_] :=
                With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                addPoint[p : h_[-1][a_,b_], q : h_[c_,d_], i_] :=
                With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                addPoint[p : h_[-1][a_,b_], q : h_[-1][c_,d_], i_] :=
                With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                fLabel[fr_, angle_] :=
                With[tangle=ArcTan@@angle, Placed[fLabel[fr], AngleVector[1/2, 1/2, .7, #] & /@tangle, tangle+Pi]]

                fLabel[h_[a_, b_]] := ToString[a] ~~ "/" ~~ ToString[b]
                fLabel[h_[-1][a_, b_]] := "-" ~~ ToString[a] ~~ "/" ~~ ToString[b]

                FareyDiagram[n_Integer, d_Integer: 1, opts___?OptionQ] :=
                Block[fr, top, bottom, stedges, toppart, bottompart, vert, edges, coords, labels, labpos, cfunc, i, edgestyle, dstyle, nopts,
                cfunc = ColorFunction /. Flatten[opts] /. ColorFunction -> Automatic;
                nopts = FilterRules[Flatten[opts], Options[Graph]];
                top = fr[0,1], fr[1,1], fr[1,0];
                bottom = fr[1,0], fr[-1][1,1], fr[0,1];
                stedges = UndirectedEdge@@@Join[Partition[top, 2, 1], Partition[bottom, 2, 1], fr[0, 1],fr[1, 0]];
                i = 0;toppart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#, 2, 1],1]][[All,1]])&, top, n]];
                i = 0;bottompart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#,2,1],1]][[All,1]])&,bottom, n]];
                vert = Join[toppart[[1]], bottompart[[1, 2;;-2]]];
                edges = Flatten[stedges, toppart[[2, 1]], bottompart[[2, 1]]];
                coords = CirclePoints[1,0,Length[vert]];
                labpos = Range[1, Length[vert], 2 ^ (d - 1)];
                labels = Thread[vert[[labpos]]->fLabel@@@Transpose[vert,coords][[labpos]]];
                edgestyle = Black;
                dstyle = Black;
                If[cfunc =!= Automatic,
                edgestyle = Flatten[Table[0, Length[stedges]], toppart[[2, 2]], bottompart[[2, 2]]];
                edgestyle = edgestyle / Max[edgestyle];
                edgestyle = Thread[edges -> Flatten[cfunc[1 - #] & /@ edgestyle]];
                dstyle = cfunc[1]
                ];
                Graph[vert, edges, nopts, VertexCoordinates->CirclePoints[1,0,Length[vert]], VertexLabels->labels,
                EdgeShapeFunction->(BSplineCurve[#1[[1]],0,0,#1[[2]], SplineWeights->2,EuclideanDistance@@#,2]&),
                PerformanceGoal->"Speed", Epilog->dstyle, Circle[], VertexShapeFunction -> "Point", EdgeStyle -> edgestyle, VertexStyle -> dstyle]
                ]


                Example:



                FareyDiagram[4]


                enter image description here



                FareyDiagram[6, 4, ColorFunction -> Hue, 
                VertexLabelStyle -> Darker[Red]]


                enter image description here






                share|improve this answer











                $endgroup$















                  5












                  5








                  5





                  $begingroup$

                  Using Graph with a bit of coding:



                  addPoint[p : h_[a_,b_], q : h_[c_,d_], i_] :=
                  With[np = h[a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  addPoint[p : h_[a_,b_], q : h_[-1][c_,d_], i_] :=
                  With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  addPoint[p : h_[-1][a_,b_], q : h_[c_,d_], i_] :=
                  With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  addPoint[p : h_[-1][a_,b_], q : h_[-1][c_,d_], i_] :=
                  With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  fLabel[fr_, angle_] :=
                  With[tangle=ArcTan@@angle, Placed[fLabel[fr], AngleVector[1/2, 1/2, .7, #] & /@tangle, tangle+Pi]]

                  fLabel[h_[a_, b_]] := ToString[a] ~~ "/" ~~ ToString[b]
                  fLabel[h_[-1][a_, b_]] := "-" ~~ ToString[a] ~~ "/" ~~ ToString[b]

                  FareyDiagram[n_Integer, d_Integer: 1, opts___?OptionQ] :=
                  Block[fr, top, bottom, stedges, toppart, bottompart, vert, edges, coords, labels, labpos, cfunc, i, edgestyle, dstyle, nopts,
                  cfunc = ColorFunction /. Flatten[opts] /. ColorFunction -> Automatic;
                  nopts = FilterRules[Flatten[opts], Options[Graph]];
                  top = fr[0,1], fr[1,1], fr[1,0];
                  bottom = fr[1,0], fr[-1][1,1], fr[0,1];
                  stedges = UndirectedEdge@@@Join[Partition[top, 2, 1], Partition[bottom, 2, 1], fr[0, 1],fr[1, 0]];
                  i = 0;toppart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#, 2, 1],1]][[All,1]])&, top, n]];
                  i = 0;bottompart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#,2,1],1]][[All,1]])&,bottom, n]];
                  vert = Join[toppart[[1]], bottompart[[1, 2;;-2]]];
                  edges = Flatten[stedges, toppart[[2, 1]], bottompart[[2, 1]]];
                  coords = CirclePoints[1,0,Length[vert]];
                  labpos = Range[1, Length[vert], 2 ^ (d - 1)];
                  labels = Thread[vert[[labpos]]->fLabel@@@Transpose[vert,coords][[labpos]]];
                  edgestyle = Black;
                  dstyle = Black;
                  If[cfunc =!= Automatic,
                  edgestyle = Flatten[Table[0, Length[stedges]], toppart[[2, 2]], bottompart[[2, 2]]];
                  edgestyle = edgestyle / Max[edgestyle];
                  edgestyle = Thread[edges -> Flatten[cfunc[1 - #] & /@ edgestyle]];
                  dstyle = cfunc[1]
                  ];
                  Graph[vert, edges, nopts, VertexCoordinates->CirclePoints[1,0,Length[vert]], VertexLabels->labels,
                  EdgeShapeFunction->(BSplineCurve[#1[[1]],0,0,#1[[2]], SplineWeights->2,EuclideanDistance@@#,2]&),
                  PerformanceGoal->"Speed", Epilog->dstyle, Circle[], VertexShapeFunction -> "Point", EdgeStyle -> edgestyle, VertexStyle -> dstyle]
                  ]


                  Example:



                  FareyDiagram[4]


                  enter image description here



                  FareyDiagram[6, 4, ColorFunction -> Hue, 
                  VertexLabelStyle -> Darker[Red]]


                  enter image description here






                  share|improve this answer











                  $endgroup$



                  Using Graph with a bit of coding:



                  addPoint[p : h_[a_,b_], q : h_[c_,d_], i_] :=
                  With[np = h[a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  addPoint[p : h_[a_,b_], q : h_[-1][c_,d_], i_] :=
                  With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  addPoint[p : h_[-1][a_,b_], q : h_[c_,d_], i_] :=
                  With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  addPoint[p : h_[-1][a_,b_], q : h_[-1][c_,d_], i_] :=
                  With[np = h[-1][a + c, b + d], Sow[p [UndirectedEdge] np, np [UndirectedEdge] q]; Sow[i, i, "Depth"]; p, np, q]

                  fLabel[fr_, angle_] :=
                  With[tangle=ArcTan@@angle, Placed[fLabel[fr], AngleVector[1/2, 1/2, .7, #] & /@tangle, tangle+Pi]]

                  fLabel[h_[a_, b_]] := ToString[a] ~~ "/" ~~ ToString[b]
                  fLabel[h_[-1][a_, b_]] := "-" ~~ ToString[a] ~~ "/" ~~ ToString[b]

                  FareyDiagram[n_Integer, d_Integer: 1, opts___?OptionQ] :=
                  Block[fr, top, bottom, stedges, toppart, bottompart, vert, edges, coords, labels, labpos, cfunc, i, edgestyle, dstyle, nopts,
                  cfunc = ColorFunction /. Flatten[opts] /. ColorFunction -> Automatic;
                  nopts = FilterRules[Flatten[opts], Options[Graph]];
                  top = fr[0,1], fr[1,1], fr[1,0];
                  bottom = fr[1,0], fr[-1][1,1], fr[0,1];
                  stedges = UndirectedEdge@@@Join[Partition[top, 2, 1], Partition[bottom, 2, 1], fr[0, 1],fr[1, 0]];
                  i = 0;toppart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#, 2, 1],1]][[All,1]])&, top, n]];
                  i = 0;bottompart = Reap[Nest[(i++; Split[Flatten[addPoint[#, i] & /@ Partition[#,2,1],1]][[All,1]])&,bottom, n]];
                  vert = Join[toppart[[1]], bottompart[[1, 2;;-2]]];
                  edges = Flatten[stedges, toppart[[2, 1]], bottompart[[2, 1]]];
                  coords = CirclePoints[1,0,Length[vert]];
                  labpos = Range[1, Length[vert], 2 ^ (d - 1)];
                  labels = Thread[vert[[labpos]]->fLabel@@@Transpose[vert,coords][[labpos]]];
                  edgestyle = Black;
                  dstyle = Black;
                  If[cfunc =!= Automatic,
                  edgestyle = Flatten[Table[0, Length[stedges]], toppart[[2, 2]], bottompart[[2, 2]]];
                  edgestyle = edgestyle / Max[edgestyle];
                  edgestyle = Thread[edges -> Flatten[cfunc[1 - #] & /@ edgestyle]];
                  dstyle = cfunc[1]
                  ];
                  Graph[vert, edges, nopts, VertexCoordinates->CirclePoints[1,0,Length[vert]], VertexLabels->labels,
                  EdgeShapeFunction->(BSplineCurve[#1[[1]],0,0,#1[[2]], SplineWeights->2,EuclideanDistance@@#,2]&),
                  PerformanceGoal->"Speed", Epilog->dstyle, Circle[], VertexShapeFunction -> "Point", EdgeStyle -> edgestyle, VertexStyle -> dstyle]
                  ]


                  Example:



                  FareyDiagram[4]


                  enter image description here



                  FareyDiagram[6, 4, ColorFunction -> Hue, 
                  VertexLabelStyle -> Darker[Red]]


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Apr 9 at 16:08

























                  answered Apr 9 at 15:53









                  halmirhalmir

                  10.7k2544




                  10.7k2544





















                      4












                      $begingroup$

                      I looked up the Farey sequence on Wikipedia, out of curiosity, because I had not heard of it before. The Farey sequence of order $n$ is "the sequence of completely reduced fractions between 0 and 1 which, when in lowest terms, have denominators less than or equal to $n$, arranged in order of increasing size".



                      On that basis, you can generate the sequence as follows, for instance:



                      ClearAll[farey]
                      farey[n_Integer] := (Divide @@@ Subsets[Range[n], 2]) ~ Join ~ 0, 1 //DeleteDuplicates //Sort


                      So for instance:



                      farey[5]



                      0, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1




                      I am not sure how these sequences are connected with the figure you showed though.






                      share|improve this answer









                      $endgroup$












                      • $begingroup$
                        Thanks to C.E., it is a concrete answer
                        $endgroup$
                        – G. R.
                        Apr 9 at 12:58















                      4












                      $begingroup$

                      I looked up the Farey sequence on Wikipedia, out of curiosity, because I had not heard of it before. The Farey sequence of order $n$ is "the sequence of completely reduced fractions between 0 and 1 which, when in lowest terms, have denominators less than or equal to $n$, arranged in order of increasing size".



                      On that basis, you can generate the sequence as follows, for instance:



                      ClearAll[farey]
                      farey[n_Integer] := (Divide @@@ Subsets[Range[n], 2]) ~ Join ~ 0, 1 //DeleteDuplicates //Sort


                      So for instance:



                      farey[5]



                      0, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1




                      I am not sure how these sequences are connected with the figure you showed though.






                      share|improve this answer









                      $endgroup$












                      • $begingroup$
                        Thanks to C.E., it is a concrete answer
                        $endgroup$
                        – G. R.
                        Apr 9 at 12:58













                      4












                      4








                      4





                      $begingroup$

                      I looked up the Farey sequence on Wikipedia, out of curiosity, because I had not heard of it before. The Farey sequence of order $n$ is "the sequence of completely reduced fractions between 0 and 1 which, when in lowest terms, have denominators less than or equal to $n$, arranged in order of increasing size".



                      On that basis, you can generate the sequence as follows, for instance:



                      ClearAll[farey]
                      farey[n_Integer] := (Divide @@@ Subsets[Range[n], 2]) ~ Join ~ 0, 1 //DeleteDuplicates //Sort


                      So for instance:



                      farey[5]



                      0, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1




                      I am not sure how these sequences are connected with the figure you showed though.






                      share|improve this answer









                      $endgroup$



                      I looked up the Farey sequence on Wikipedia, out of curiosity, because I had not heard of it before. The Farey sequence of order $n$ is "the sequence of completely reduced fractions between 0 and 1 which, when in lowest terms, have denominators less than or equal to $n$, arranged in order of increasing size".



                      On that basis, you can generate the sequence as follows, for instance:



                      ClearAll[farey]
                      farey[n_Integer] := (Divide @@@ Subsets[Range[n], 2]) ~ Join ~ 0, 1 //DeleteDuplicates //Sort


                      So for instance:



                      farey[5]



                      0, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1




                      I am not sure how these sequences are connected with the figure you showed though.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Apr 8 at 21:59









                      MarcoBMarcoB

                      38.8k557116




                      38.8k557116











                      • $begingroup$
                        Thanks to C.E., it is a concrete answer
                        $endgroup$
                        – G. R.
                        Apr 9 at 12:58
















                      • $begingroup$
                        Thanks to C.E., it is a concrete answer
                        $endgroup$
                        – G. R.
                        Apr 9 at 12:58















                      $begingroup$
                      Thanks to C.E., it is a concrete answer
                      $endgroup$
                      – G. R.
                      Apr 9 at 12:58




                      $begingroup$
                      Thanks to C.E., it is a concrete answer
                      $endgroup$
                      – G. R.
                      Apr 9 at 12:58

















                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Mathematica Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f194838%2fhow-can-i-plot-a-farey-diagram%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

                      Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given

                      Romeo and Juliet ContentsCharactersSynopsisSourcesDate and textThemes and motifsCriticism and interpretationLegacyScene by sceneSee alsoNotes and referencesSourcesExternal linksNavigation menu"Consumer Price Index (estimate) 1800–"10.2307/28710160037-3222287101610.1093/res/II.5.31910.2307/45967845967810.2307/2869925286992510.1525/jams.1982.35.3.03a00050"Dada Masilo: South African dancer who breaks the rules"10.1093/res/os-XV.57.1610.2307/28680942868094"Sweet Sorrow: Mann-Korman's Romeo and Juliet Closes Sept. 5 at MN's Ordway"the original10.2307/45957745957710.1017/CCOL0521570476.009"Ram Leela box office collections hit massive Rs 100 crore, pulverises prediction"Archived"Broadway Revival of Romeo and Juliet, Starring Orlando Bloom and Condola Rashad, Will Close Dec. 8"Archived10.1075/jhp.7.1.04hon"Wherefore art thou, Romeo? To make us laugh at Navy Pier"the original10.1093/gmo/9781561592630.article.O006772"Ram-leela Review Roundup: Critics Hail Film as Best Adaptation of Romeo and Juliet"Archived10.2307/31946310047-77293194631"Romeo and Juliet get Twitter treatment""Juliet's Nurse by Lois Leveen""Romeo and Juliet: Orlando Bloom's Broadway Debut Released in Theaters for Valentine's Day"Archived"Romeo and Juliet Has No Balcony"10.1093/gmo/9781561592630.article.O00778110.2307/2867423286742310.1076/enst.82.2.115.959510.1080/00138380601042675"A plague o' both your houses: error in GCSE exam paper forces apology""Juliet of the Five O'Clock Shadow, and Other Wonders"10.2307/33912430027-4321339124310.2307/28487440038-7134284874410.2307/29123140149-661129123144728341M"Weekender Guide: Shakespeare on The Drive""balcony"UK public library membership"romeo"UK public library membership10.1017/CCOL9780521844291"Post-Zionist Critique on Israel and the Palestinians Part III: Popular Culture"10.2307/25379071533-86140377-919X2537907"Capulets and Montagues: UK exam board admit mixing names up in Romeo and Juliet paper"Istoria Novellamente Ritrovata di Due Nobili Amanti2027/mdp.390150822329610820-750X"GCSE exam error: Board accidentally rewrites Shakespeare"10.2307/29176390149-66112917639"Exam board apologises after error in English GCSE paper which confused characters in Shakespeare's Romeo and Juliet""From Mariotto and Ganozza to Romeo and Guilietta: Metamorphoses of a Renaissance Tale"10.2307/37323537323510.2307/2867455286745510.2307/28678912867891"10 Questions for Taylor Swift"10.2307/28680922868092"Haymarket Theatre""The Zeffirelli Way: Revealing Talk by Florentine Director""Michael Smuin: 1938-2007 / Prolific dance director had showy career"The Life and Art of Edwin BoothRomeo and JulietRomeo and JulietRomeo and JulietRomeo and JulietEasy Read Romeo and JulietRomeo and Julieteeecb12003684p(data)4099369-3n8211610759dbe00d-a9e2-41a3-b2c1-977dd692899302814385X313670221313670221