solve for m in E=1/2mv²+mgh