update options for pip installation in README.md
[liba.git] / python / test / poly.py
blob1e0ebd6f5240a94b01b760dcc0a88cff7c7b58d6
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(k, *k))
12 print(k, liba.poly_eval(2, *k))
13 print(k, liba.poly_evar(k, *k))
14 print(k, liba.poly_evar(2, *k))