Talk:Cantor set: Difference between revisions

From Rosetta Code
Content added Content deleted
mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Perhaps a pity that this task looks a bit neglected and incompletely defined ?
Perhaps a pity that this task looks a bit neglected and incompletely defined ?


I wonder if it would be worth fleshing it out, and perhaps aiming for two complementary representations of N steps of the elaboration of the Cantor set – perhaps for example:
I wonder if it would be worth fleshing it out, and perhaps aiming for two complementary representations of N steps of the elaboration of the ternary Cantor set – perhaps for example:
# Each line as a list of intervals, expressed as fractions, and
# Each line as a list of intervals, expressed as fractions, and
# some graphic representation of the same
# some graphic representation of the same



e.g. where N = 4, something like:
e.g. where N = 4, perhaps something like the following ?


<pre>[0, 1]
<pre>[0, 1]

Latest revision as of 19:19, 6 November 2018

Perhaps a pity that this task looks a bit neglected and incompletely defined ?

I wonder if it would be worth fleshing it out, and perhaps aiming for two complementary representations of N steps of the elaboration of the ternary Cantor set – perhaps for example:

  1. Each line as a list of intervals, expressed as fractions, and
  2. some graphic representation of the same


e.g. where N = 4, perhaps something like the following ?

[0, 1]
[0, 1/3] [2/3, 1]
[0, 1/9] [2/9, 1/3] [2/3, 7/9] [8/9, 1]
[0, 1/27] [2/27, 1/9] [2/9, 7/27] [8/27, 1/3] [2/3, 19/27] [20/27, 7/9] [8/9, 25/27] [26/27, 1]

███████████████████████████
█████████         █████████
███   ███         ███   ███
█ █   █ █         █ █   █ █