add some functions (most?) from math module, some constants
implement base-{2,8,16} input