A generalization of methods for determining g tensors