Cantormenge
Verfasst: Mittwoch 10. Oktober 2018, 17:23
Hallo.
Ich bin neu in diesem Forum und wäre dankbar, wenn mir einer kurz die Umgebung für die Formelcodierung nennt.
Ich möchte gerne die Cantormenge als Intervallausgabe in Python haben.
Also dass das Ergebnis von plt.show() ist:
Iteration 0 [0,1]
Iteration 1 [0, 1/3] U [2/3,1]
Iteration 2 ......
......
Iteration n
In matlab wird das wohl so codiert:
cantorset := k → [seq([ cantorpoint( 2* i − 1, k ) cantorpoint( 2* i, k) ], i = 1 .. 2^k))];
cantorset(1);
Beste Grüße
Ich bin neu in diesem Forum und wäre dankbar, wenn mir einer kurz die Umgebung für die Formelcodierung nennt.
Ich möchte gerne die Cantormenge als Intervallausgabe in Python haben.
Also dass das Ergebnis von plt.show() ist:
Iteration 0 [0,1]
Iteration 1 [0, 1/3] U [2/3,1]
Iteration 2 ......
......
Iteration n
In matlab wird das wohl so codiert:
cantorset := k → [seq([ cantorpoint( 2* i − 1, k ) cantorpoint( 2* i, k) ], i = 1 .. 2^k))];
cantorset(1);
Beste Grüße