math functions parallel to Design Double Diamond