compute v-number of homogeneous ideals and v-function of monomial ideals