Folder full of pertinent coursework
Kernel: Python 2 (SageMath)
In [8]:
Out[8]:
WARNING: 1 intermediate output message was discarded.
In [9]:
In [10]:
In [11]:
Out[11]:
CPU times: user 0 ns, sys: 4 ms, total: 4 ms
Wall time: 16.2 ms
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-11-2a95bb0acec6> in <module>()
1 j = JuliaSetPlot(-1.037 + 0.17j)
2 get_ipython().magic(u'time j.set_spacing(0.006)')
----> 3 get_ipython().magic(u'time j.show()')
/projects/sage/sage-6.9/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
2334 magic_name, _, magic_arg_s = arg_s.partition(' ')
2335 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2336 return self.run_line_magic(magic_name, magic_arg_s)
2337
2338 #-------------------------------------------------------------------------
/projects/sage/sage-6.9/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
2255 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2256 with self.builtin_trap:
-> 2257 result = fn(*args,**kwargs)
2258 return result
2259
/projects/sage/sage-6.9/local/lib/python2.7/site-packages/IPython/core/magics/execution.pyc in time(self, line, cell, local_ns)
/projects/sage/sage-6.9/local/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
/projects/sage/sage-6.9/local/lib/python2.7/site-packages/IPython/core/magics/execution.pyc in time(self, line, cell, local_ns)
1161 if mode=='eval':
1162 st = clock2()
-> 1163 out = eval(code, glob, local_ns)
1164 end = clock2()
1165 else:
<timed eval> in <module>()
<ipython-input-10-2c3d5a46376a> in show(self)
21
22 def show(self):
---> 23 if not self.img.size: self.render()
24 # Specify complex plane axes efficiently
25 xy = np.linspace(-2,2,self.get_dim())
<ipython-input-10-2c3d5a46376a> in render(self)
18 dim = self.get_dim()
19 # Reshape array into a 2d complex plane
---> 20 self.img = np.reshape(self.img, (dim,dim)).T
21
22 def show(self):
/projects/sage/sage-6.9/local/lib/python2.7/site-packages/numpy/core/fromnumeric.pyc in reshape(a, newshape, order)
216 except AttributeError:
217 return _wrapit(a, 'reshape', newshape, order=order)
--> 218 return reshape(newshape, order=order)
219
220
ValueError: total size of new array must be unchanged
In [0]:
In [0]:
In [0]: