MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Farey Comb Histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49419] Farey Comb Histogram
  • From: Roger Bagula <tftn at earthlink.net>
  • Date: Mon, 19 Jul 2004 07:46:09 -0400 (EDT)
  • Reply-to: tftn at earthlink.net
  • Sender: owner-wri-mathgroup at wolfram.com

The function that gives a Farey triangle effect is :
f[a,b]=a/(b-a) if 0<=a/b<=1/2
f[a,b]=(b-a)/a if 1/2<a/b<=1
The distribution histogram is a count of the frequency of the different
values  between zero and one.
It is the same histogram function I use for noise analysis.
This comb result is remarkably like the comb effect I got in my self 
similar integer
sequences.
As a result of this I think that there may be a fractal dimension
associated with rational numbers produced in the Farey manner
even if their measure as a set is zero.
Respectfully, Roger L. Bagula

tftn at earthlink.net, 11759Waterhill Road, Lakeside,Ca 92040-2905,tel: 
619-5610814 :
URL :  http://home.earthlink.net/~tftn
URL :  http://victorian.fortunecity.com/carmelita/435/

(***********************************************************************

                   Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the notebook 
starts with the line of stars above.

To get the notebook into a Mathematica-compatible application, do one of 
the following:

* Save the data starting with the line of stars above into a file
 with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
 clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
 web: http://www.wolfram.com
 email: info at wolfram.com
 phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from Wolfram 
Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      4697,        192]*)
(*NotebookOutlinePosition[      5540,        219]*)
(*  CellTagsIndexPosition[      5496,        215]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[BoxData[
   \(Clear\ [f, a, b]\)], "Input"],

Cell[BoxData[{
   \(f[a_, b_] := \((\((a/b)\)/\((1 - a/b)\))\) /; 0 <= a/b <= 1/2\),    
\(f[a_, b_] := \((\((1 - a/b)\)/\((a/b)\))\) /; 1/2 < a/b <= 1\)}], 
 "Input"],

Cell[BoxData[
   \(a = Table[If[n < m, f[n, m], 0], {n, 1, 100}, {m, 1, \ 100}]\)], 
"Input"],

Cell[CellGroupData[{

Cell[BoxData[
   \(g1 =      ListPlot3D[a, ViewPoint -> {3.378, \ \(-0.049\), \ 
0.194},        Mesh -> False]\)], "Input"],

Cell[BoxData[
   TagBox[\(\[SkeletonIndicator]  SurfaceGraphics  \[SkeletonIndicator]\),
     False,
     Editable->False]], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
   \(Show[g1, ViewPoint -> {2.333, \ 2.429, \ 0.329}, Mesh -> False]\)], 
 "Input"],

Cell[BoxData[
   TagBox[\(\[SkeletonIndicator]  SurfaceGraphics  \[SkeletonIndicator]\),
     False,
     Editable->False]], "Output"]
}, Open  ]],

Cell[BoxData[
   \(\(a2 = Flatten[a]; \)\)], "Input"],

Cell[BoxData[
   \(\(b = Table[Floor[10000*a2[\([n]\)]], {n, 1, 10000}]; \)\)], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
   \(b0 = \(Dimensions[b]\)[\([1]\)]\)], "Input"],

Cell[BoxData[
   \(10000\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
   \(bmax = Max[b]\)], "Input"],

Cell[BoxData[
   \(10000\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
   \(bmin = Min[b]\)], "Input"],

Cell[BoxData[
   \(0\)], "Output"]
}, Open  ]],

Cell[BoxData[
   \(\(c = Table[Count[b, n], {n, Floor[bmin], bmax}]; \)\)], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
   \(ListPlot[c, PlotJoined -> True, PlotRange -> {{0, 10000}, {0, 101}}]
     \)], "Input"],

Cell[BoxData[
   TagBox[\(\[SkeletonIndicator]  Graphics  \[SkeletonIndicator]\),
     False,
     Editable->False]], "Output"]
}, Open  ]],

Cell[BoxData[
   \(a1 = Delete[Union[Flatten[a]], 1]\)], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
   \(\(Dimensions[a1]\)[\([1]\)]\)], "Input"],

Cell[BoxData[
   \(1522\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
   \(ga = ListPlot[a1]\)], "Input"],

Cell[BoxData[
   TagBox[\(\[SkeletonIndicator]  Graphics  \[SkeletonIndicator]\),
     False,
     Editable->False]], "Output"]
}, Open  ]],

Cell[BoxData[
   \(\(b1 = Table[x^n, {n, 0, 2}]; \)\)], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
   \(y = Fit[a1, b1, x]\)], "Input"],

Cell[BoxData[
   \(\(0.0208926743815583826`\[InvisibleSpace]\) +      
0.000192050665253223193`\ x + 2.83750591828659537`*^-7\ x\^2\)],  "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
   \(gb = Plot[y, {x, 0, 1522}]\)], "Input"],

Cell[BoxData[
   TagBox[\(\[SkeletonIndicator]  Graphics  \[SkeletonIndicator]\),
     False,
     Editable->False]], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
   \(Show[{ga, gb}]\)], "Input"],

Cell[BoxData[
   TagBox[\(\[SkeletonIndicator]  Graphics  \[SkeletonIndicator]\),
     False,
     Editable->False]], "Output"]
}, Open  ]]
},
FrontEndVersion->"Macintosh 3.0",
ScreenRectangle->{{0, 1920}, {0, 1060}},
WindowSize->{1298, 779},
WindowMargins->{{138, Automatic}, {Automatic, 6}},
MacintoshSystemPageSetup->"\<\
00/0001804P000000_@2@?olonh35@9B7`<5:@?l0040004/0B`000003509H04/
02d5X5k/02H20@4101P00BL?00400@0000000000000000010000000000000000
0000000000000002000000@210D00000\>"
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of 
the file.  The cache data will then be recreated when you save this file 
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1709, 49, 49, 1, 27, "Input"],
Cell[1761, 52, 170, 3, 43, "Input"],
Cell[1934, 57, 93, 1, 27, "Input"],

Cell[CellGroupData[{
Cell[2052, 62, 127, 3, 27, "Input"],
Cell[2182, 67, 137, 3, 26, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[2356, 75, 99, 2, 27, "Input"],
Cell[2458, 79, 137, 3, 26, "Output"]
}, Open  ]],
Cell[2610, 85, 54, 1, 27, "Input"],
Cell[2667, 88, 89, 1, 27, "Input"],

Cell[CellGroupData[{
Cell[2781, 93, 64, 1, 27, "Input"],
Cell[2848, 96, 39, 1, 26, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[2924, 102, 46, 1, 27, "Input"],
Cell[2973, 105, 39, 1, 26, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[3049, 111, 46, 1, 27, "Input"],
Cell[3098, 114, 35, 1, 26, "Output"]
}, Open  ]],
Cell[3148, 118, 85, 1, 27, "Input"],

Cell[CellGroupData[{
Cell[3258, 123, 108, 2, 27, "Input"],
Cell[3369, 127, 130, 3, 26, "Output"]
}, Open  ]],
Cell[3514, 133, 66, 1, 27, "Input"],

Cell[CellGroupData[{
Cell[3605, 138, 60, 1, 27, "Input"],
Cell[3668, 141, 38, 1, 26, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[3743, 147, 50, 1, 27, "Input"],
Cell[3796, 150, 130, 3, 26, "Output"]
}, Open  ]],
Cell[3941, 156, 65, 1, 27, "Input"],

Cell[CellGroupData[{
Cell[4031, 161, 51, 1, 27, "Input"],
Cell[4085, 164, 150, 3, 28, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[4272, 172, 59, 1, 27, "Input"],
Cell[4334, 175, 130, 3, 26, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[4501, 183, 47, 1, 27, "Input"],
Cell[4551, 186, 130, 3, 26, "Output"]
}, Open  ]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)





------------------------------------------------------------------------


  • Prev by Date: Re: using file txt in mathematica
  • Next by Date: Assigning names to columns of a matrix
  • Previous by thread: RE: Why aboluteoptions doesn't work here?
  • Next by thread: Assigning names to columns of a matrix