There is a serious error on page 24 in Watt regarding the function for determining the angle of refraction of a ray. The correct equation is:

No, we're not going to tell you the wrong one.  If you have to look it up yourself, it suddenly doesn't matter so much, does it?