How to use the julia.calc_julia function in julia

To help you get started, we’ve selected a few julia examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cythonbook / examples / 12-parallel-cython / 02-prange-parallel-loops / run_julia.py View on Github external
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()