screen size
calculate the width and height of a screen from the diagonal in inches.
Parameters
diagonal
d
\('\)
Ratio
r
\(\)
horizontal resolution
hr
\(pix\)
Output
diagonal cm
1 inch = 2.54 cm
width a
`(rb)^2+b^2=d^2`
height b
`a=rb`
Area s
`s=ab`
Area to A4 paper
`s//(29.7xx21)`
horizontal ppi
`ppi=hr//a`