<!--- This example shows how to use ASin --->
<HTML>
<HEAD>
<TITLE>
ASin Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>

<BODY  bgcolor="#FFFFD5">

<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 that is to be calculated in degrees and radians. This 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 that is to be calculated in degrees and radians. This 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. This 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> 