Returns the arcsine of a number, in radians. The arcsine is the angle whose sine is number.
ASin(number)
Parameter |
Description |
---|---|
number |
Sine of the angle to calculate. The value must be between 1 and -1. |
The range of the result is -π/2 to π/2 radians. To convert degrees to radians, multiply degrees by π/180. To convert radians to degrees, multiply radians by 180/π.
<!--- This example shows how to use ASin ---> <html> <head> <title>ASin Example</title> </head> <body bgcolor = silver> <H3>ASin Example</H3> <!--- output its arcsine value ---> <cfif IsDefined("FORM.SinNum")> <cfif IsNumeric(FORM.SinNum)> <cfif FORM.SinNum LESS THAN OR EQUAL TO 1> <cfif FORM.SinNum GREATER THAN OR EQUAL TO -1> ASin(<cfoutput>#FORM.SinNum#</cfoutput>) = <cfoutput>#Evaluate(ASin(FORM.sinNum))# Radians</cfoutput> <BR> or <BR>ASin(<cfoutput>#FORM.SinNum#</cfoutput>) = <cfoutput> #Evaluate(ASin(FORM.sinNum) * 180/Pi())# Degrees </cfoutput> <cfelse> <!--- if it is less than negative one, output an error message ---> <H4>Please enter the sine of the angle to calculate in degrees and radians. The value must be between 1 and -1, inclusive.</H4> </cfif> <cfelse> <!--- if it is greater than one, output an error message ---> <H4>Please enter the sine of the angle to calculate in degrees and radians. The value must be between 1 and -1, inclusive.</H4> </cfif> <cfelse> <!--- if it is empty, output an error message ---> <H4>Please enter the sine of the angle that is to be calculated in degrees and radians. The value must be between 1 and -1,inclusive.</H4> </cfif> </cfif> <form action = "asin.cfm" method = "POST"> <P>Type in a number to get its arcsine in Radians and Degrees. <BR><input type = "Text" name = "sinNum" size = "25"> <P><input type = "Submit" name = ""> <input type = "RESET"> </FORM> </body> </html>