深入浅出ASP.NET程序设计-源代码 书籍语言: 简体中文 书籍类型: 程序设计 授权方式: 免费软件 书籍大小: 627 KB

源代码在线查看: ch12-03-02.aspx

软件大小: 628 K
上传用户: bandagemaster
关键词: 书籍 ASP 627 NET
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				Ch12-03-02.aspx 三角函数、自然对数与指数
				
				
				三角函数、自然对数与指数
								' 显示数学常数
				Response.Write("E: " & Math.E & "")
				Response.Write("PI: " & Math.PI & "")
				' 指数和对数函数
				Dim valA As Double = 15.3189
				Dim valB As Double = 7.3495
				Response.Write("变量valA的值为:" & valA & " 变量valB的值为:" & valB & "")
				Response.Write("Exp(valA): " & Math.Exp(valA) & "")
				Response.Write("Log(valA): " & Math.Log(valA) & "")
				Response.Write("Pow(valA, valB): " & Math.Pow(valA, valB) & "")
				Response.Write("Sqrt(valA): " & Math.Sqrt(valA) & "")
				' 三角函数
				Dim DegA As Double = 45.0
				Dim RadA As Double = DegA*Math.PI/180.0
				Response.Write("三角函数角度DegA的值为:" & DegA & " 弧度RadA的值为:" & RadA & "")
				Response.Write("Sin(RadA): " & Math.Sin(RadA) & "")
				Response.Write("Cos(RadA): " & Math.Cos(RadA) & "")
				Response.Write("Tan(RadA): " & Math.Tan(RadA) & "")
				Response.Write("ASin(RadA): " & Math.ASin(RadA) & "")
				Response.Write("ACos(RadA): " & Math.ACos(RadA) & "")
				Response.Write("ATan(RadA): " & Math.ATan(RadA) & "")
				%>
				
				
							

相关资源