Up to [local] / OpenXM / src / ox_toolkit
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.1 / (download) - annotate - [select for diffs], Tue Sep 17 07:09:18 2019 UTC (5 years, 1 month ago) by takayama
Branch: MAIN
CVS Tags: HEAD
A sample shared library for python. OpenXM_HOME etc should be properly set by OpenXM/rc/dot.bashrc python2 import ctypes lib = ctypes.cdll.LoadLibrary('./sample4.so'); lib.eval_string_by_ox_asir.argtypes = (ctypes.c_char_p,) lib.eval_string_by_ox_asir.restype = ctypes.c_char_p lib.open_ox_asir() s = lib.eval_string_by_ox_asir('fctr(x^10-1)') print(s) s = lib.eval_string_by_ox_asir('print_tex_form(poly_factor((x^10-1))') print(s) lib.close_ox_asir()