support for PyPy
[liba.git] / python / test / poly.py
blob6e0791f8d3ca8570092da3b78d154cf08678d999
1 #!/usr/bin/env python
2 import os, sys
4 base = os.path.dirname(__file__)
5 path = os.path.dirname(base)
6 sys.path.insert(0, path)
8 import liba # type: ignore
10 k = [1, 2, 3]
11 print(k, liba.poly_eval(2, *k))
12 print(k, list(liba.poly_eval(k, *k)))
13 print(k, liba.poly_evar(2, *k))
14 print(k, list(liba.poly_evar(k, *k)))