asp编一个计算公式

来源:百度知道 编辑:UC知道 时间:2024/06/06 06:36:30
请教高手们在ASP里怎么能写怎样一个计算公式.高手们帮帮忙吧

这样的简单问题也不愿意动脑筋编写一下代码???
很难吗?不就是基本的公式嘛!
劝楼主以后不要这么懒了。

文件名:a.asp
<%
t1=request.form("textfield1")
t2=request.form("textfield2")
if isnumeric(t1) and isnumeric(t2) and t2>0 then
t3=t1*log(t2)
else
t3=""
end if
%>

<form name="form1" method="post" action="a.asp">
<p>
<input name="textfield1" type="text" value="<%=t1%>">
乘以 自然对数ln
<input name="textfield2" type="text" value="<%=t2%>">
等于
<input name="textfield3" type="text" value="<%=t3%>">
</p>
<input type="submit" name="Submit" value="提交">
</form>

你是不是写错了,ln代表以10为底吧,你是不是想要以x为底的任意值的对数?

呃...
数学不好