예제 #1
0
import julia
import numpy as np
from time import clock
import matplotlib.pyplot as plt

t1 = clock()
jl = julia.calc_julia(1000, (0.322 + 0.05j))
print "time:", clock() - t1

print "julia fraction:", julia.julia_fraction(jl)

plt.imshow(np.log(jl))
plt.show()
예제 #2
0
import julia
import numpy as np
from time import clock
import matplotlib.pyplot as plt

t1 = clock()
jl = julia.calc_julia(1000, (0.322 + 0.05j))
print
"time:", clock() - t1

print
"julia fraction:", julia.julia_fraction(jl)

plt.imshow(np.log(jl))
plt.show()
예제 #3
0
import numpy as np
import matplotlib.pyplot as plt

import julia

jl = julia.calc_julia(1.5, 4000, (0.322 + 0.05j), 2.25, 1000)
area = julia.julia_fraction(jl)
print(area)

plt.imshow(np.log(jl))
plt.show()