<html>
<body>
<script language="JavaScript">
<!--
function doMath(){
var result = Math.LN2E;
document.form1.answer.value = result;
}
-->
</script>
<form name=form1>
The Base 2 logarithm of Euler's constant is:
<input type="text" name="answer" size=20>
<input type="button" value="Calculate" onClick='doMath()'>
<br>
</form>
</body>
</html>
|