import math as _math
import numpy as _np


pi = _math.pi
inf = _np.inf
log2 = _math.log(2)
sqrt2 = _math.sqrt(2)
log2pi = _math.log(pi * 2)
logpi2 = _math.log(pi / 2)
sqrtpi = _math.sqrt(pi)

def get_eps(dtype):
    return _np.finfo(dtype).eps
