javascript手冊-a

王朝java/jsp·作者佚名  2006-12-17
宽屏版  字体: |||超大  

javascript手冊-a

javascript手冊-a

See alsoappName, appCodeName, userAgent properties asin methodReturns the arc sine (in radians) of a number. 语法Math.asin(number)

number is a numeric expression between -1 and 1, or a property of an existing object. 用法Math 描述The asin method returns a numeric value between -pi/2 and pi/2 radians. If the value of number is outside the suggested range, the return value is always 0. 例子// Displays the value 1.570796326794897 (pi/2)document.write("The arc sine of 1 is " + Math.asin(1))// Displays the value -1.570796326794897 (-pi/2)document.write("<P>The arc sine of -1 is " + Math.asin(-1))// Displays the value 0 because the argument is out of rangedocument.write("<P>The arc sine of 2 is " + Math.asin(2))

See alsoacos, atan, cos, sin, tan methods atan methodReturns the arc tangent (in radians) of a number. 语法Math.atan(number)

number is either a numeric expression or a property of an existing object, representing the tangent of an angle. 用法Math 描述The atan method returns a numeric value between -pi/2 and pi/2 radians. 例子// Displays the value 0.7853981633974483document.write("The arc tangent of 1 is " + Math.atan(1))// Displays the value -0.7853981633974483document.write("<P>The arc tangent of -1 is " + Math.atan(-1))// Displays the value 0.4636476090008061document.write("<P>The arc tangent of .5 is " + Math.atan(.5))

See alsoacos, asin, cos, sin, tan methods

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有