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

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>Log Example</H3>

<CFIF IsDefined("form.number")>
<CFOUTPUT>
<P>Your number, #form.number#
<BR>#form.number# raised to the E power: #exp(form.number)#
<CFIF #form.number# LTE 0><BR>You must enter a positive real number to see the natural logarithm of that number<CFELSE><BR>The natural logarithm of #form.number#: #log("#form.number#")#</CFIF>
<CFIF #form.number# LTE 0><BR>You must enter a positive real number to see the logarithm of that number to base 10<CFELSE><BR>The logarithm of #form.number# to base 10: #log10("#form.number#")#</CFIF>
</CFOUTPUT>
</CFIF>

<CFFORM ACTION="log.cfm" METHOD="POST">
Enter a number to see its value raised to the E power,
the natural logarithm of that number, and the logarithm of
number to base 10.
<CFINPUT TYPE="Text" NAME="number" MESSAGE="You must enter a number" VALIDATE="float" REQUIRED="No">
<INPUT TYPE="Submit" NAME="">
</CFFORM>

</BODY>
</HTML>       
