Additional math functions for golang