276
ASin
Returns the arcsine of a number in radians. The arcsine is the angle whose sine is
number.
See also Sin, Cos,
Syntax
ASin( number )
number
Sine of the angle that is to be calculated. This value must be between 1 and -1.
Usage
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/ .
Examples
<!--- 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)>
CFOUTPUT>
Degrees</CFOUTPUT>
<!--- if it is less than negative one, output an error message --->
calculated in degrees and radians. This value must be between 1 and -1,
inclusive.</H4>
<!--- if it is greater than one, output an error message --->
degrees and radians. This value must be between 1 and -1, inclusive.</H4>
<CFELSE>
<!--- if it is empty, output an error message --->
Pi,
and Tan.
<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</
<BR>
or
<BR>ASin(<CFOUTPUT>#FORM.SinNum#</CFOUTPUT>) =
<CFOUTPUT>#Evaluate(ASin(FORM.sinNum) * 180/Pi())#
<CFELSE>
<H4>Please enter the sine of the angle that is to be
</CFIF>
<CFELSE>
<H4>Please enter the sine of the angle that is to be calculated in
</CFIF>
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers