sage: load('/var/folders/tq/f5jbfqp97y52w_y7byn05_fw0000gn/T/sage_shell_mode1670
....: Lxp/sage_shell_mode_temp.sage')
---- Implement the new algorithm ----
sage: load('/var/folders/tq/f5jbfqp97y52w_y7byn05_fw0000gn/T/sage_shel
....: l_mode1670Lxp/sage_shell_mode_temp.sage')
---- Check the new algorithm on small input ----
6
sage: load('/var/folders/tq/f5jbfqp97y52w_y7byn05_fw0000gn/T/sage_shel
....: l_mode1670Lxp/sage_shell_mode_temp.sage')
---- Check the new algorithm on big input ----
800
sage: load('/var/folders/tq/f5jbfqp97y52w_y7byn05_fw0000gn/T/sage_shel
....: l_mode1670Lxp/sage_shell_mode_temp.sage')
---- Check that my algorithm is commutative using random input ----
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-13-9f09adb3e820> in <module>()
----> 1 load('/var/folders/tq/f5jbfqp97y52w_y7byn05_fw0000gn/T/sage_shell_mode1670Lxp/sage_shell_mode_temp.sage')
/Applications/SageMath-7.5.1.app/Contents/Resources/sage/src/sage/structure/sage_object.pyx in sage.structure.sage_object.load (/Applications/SageMath-7.5.1.app/Contents/Resources/sage/src/build/cythonized/sage/structure/sage_object.c:12529)()
999
1000 if sage.repl.load.is_loadable_filename(filename):
-> 1001 sage.repl.load.load(filename, globals())
1002 return
1003
/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
245 if attach:
246 add_attached_file(fpath)
--> 247 exec(preparse_file(open(fpath).read()) + "\n", globals)
248 elif ext == '.spyx' or ext == '.pyx':
249 if attach:
<string> in <module>()
NameError: name 'random_input' is not defined