Solving for some important values