98、以e为底的对数

98、以e为底的对数

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

 

function ln(form)

{

var a = eval(form.a.value);

var b = Math.log(a)

form.z.value = b

}

</script>

<form>

<table border=3 cellspacing=2 cellpadding=5>

<tr>

<td align=center>A from log<sub><i>e</i></sub>A</td>

<td align=center><i>log<sub><i>e</i></sub>A=</i></td>

</tr>

<tr>

<td align=center><input type=text name=a size=20></td>

<td align=center><input type=text name=z size=20></td>

</tr>

<tr>

<td colspan=2 align=center><input type=button value="请看答案" onclick="ln(this.form)"></td>

</tr>

</table>

</form>

 

Write a comment

Comments: 0