An Equation of Belief Systems and Purpose