Notes on CHAOS and STABILITY ZONES
This commit is contained in:
parent
df051234e8
commit
11893469c4
20
hijfong.py
20
hijfong.py
@ -1,6 +1,16 @@
|
|||||||
import random
|
import random
|
||||||
#from graphics import *
|
#from graphics import *
|
||||||
#win = GraphWin()
|
#win = GraphWin()
|
||||||
|
# library
|
||||||
|
#import seaborn as sns
|
||||||
|
#import pandas as pd
|
||||||
|
#import numpy as np
|
||||||
|
|
||||||
|
# Create a dataset (fake)
|
||||||
|
#df = pd.DataFrame(np.random.random((5,5)), columns=["a","b","c","d","e"])
|
||||||
|
|
||||||
|
# Default heatmap: just a visualization of this square matrix
|
||||||
|
#p1 = sns.heatmap(df)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -48,6 +58,10 @@ while 1:
|
|||||||
io = io + float(imag)
|
io = io + float(imag)
|
||||||
|
|
||||||
mm = mandelbrot(r,i,100)
|
mm = mandelbrot(r,i,100)
|
||||||
|
if mm > 98:
|
||||||
|
print "you are in the STABLE zone "
|
||||||
|
if mm < 21:
|
||||||
|
print "you are in the CHAOS zone "
|
||||||
print "Stability factor=",mm," x=",ro*100,"y=",io*100
|
print "Stability factor=",mm," x=",ro*100,"y=",io*100
|
||||||
if mm > 20 and mm < 80:
|
if mm > 20 and mm < 80:
|
||||||
print "you won"
|
print "you won"
|
||||||
@ -61,7 +75,11 @@ while 1:
|
|||||||
io = io + float(imag)
|
io = io + float(imag)
|
||||||
|
|
||||||
mm = mandelbrot(r,i,100)
|
mm = mandelbrot(r,i,100)
|
||||||
|
if mm > 98:
|
||||||
|
print "you are in the STABLE zone "
|
||||||
|
if mm < 21:
|
||||||
|
print "you are in the CHAOS zone "
|
||||||
print "Stability factor=",mm," x=",ro*100,"y=",io*100
|
print "Stability factor=",mm," x=",ro*100,"y=",io*100
|
||||||
if mm > 20 and mm < 80:
|
if mm > 20 and mm < 80:
|
||||||
print "you won"
|
print "you found the RAGGED EDGE OF CHAOS YOU WON"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user