Henley
03-03-2009, 08:59 PM
I don't know if this will be "useful" to anyone, but it was to me.
I've been shopping online for an HDTV. The diagonal measurement of the screen isn't much help if you are trying to visualize the actual dimensions of the screen. So, I did the algebra / trigonometry, and came up with the following. It computes the the height and width of the screen when you know the diagonal measurement.
<html>
<head>
<title>HDTV Dimensions</title>
<script type="text/javascript">
function calculate(nForm){
nForm.rise.value = (nForm.hypotenuse.value / 2.042).toFixed(2);
nForm.run.value = (nForm.rise.value * 1.78).toFixed(2);
}
</script>
</head>
<body>
<form action="">
<label>Diagonal Measurement: <input type="text" size="5" name="hypotenuse"></label>
<br>
<label>Height: <input type="text" size="5" name="rise" readonly=true></label>
<br>
<label>Width: <input type="text" size="5" name="run" readonly=true></label>
<br>
<input type="button" value="Calculate" onclick="calculate(this.form)">
</form>
</body>
</html>
I've been shopping online for an HDTV. The diagonal measurement of the screen isn't much help if you are trying to visualize the actual dimensions of the screen. So, I did the algebra / trigonometry, and came up with the following. It computes the the height and width of the screen when you know the diagonal measurement.
<html>
<head>
<title>HDTV Dimensions</title>
<script type="text/javascript">
function calculate(nForm){
nForm.rise.value = (nForm.hypotenuse.value / 2.042).toFixed(2);
nForm.run.value = (nForm.rise.value * 1.78).toFixed(2);
}
</script>
</head>
<body>
<form action="">
<label>Diagonal Measurement: <input type="text" size="5" name="hypotenuse"></label>
<br>
<label>Height: <input type="text" size="5" name="rise" readonly=true></label>
<br>
<label>Width: <input type="text" size="5" name="run" readonly=true></label>
<br>
<input type="button" value="Calculate" onclick="calculate(this.form)">
</form>
</body>
</html>