Changed formula for calculating mu from theta.