new functions in h2_math.h