Handheld Pixel Density

Calculate pixel density (ppi) from resolution width (px), height (px), screen diagonal (in).