You want the ArcSine of the Opposite side divided by the Hypotenuse side. And what are these radian things you talkin' 'bout? Ignore them. They were just a rumor. Like the metric system.
So, Angle=Arcsine(oppositeSide/Hypotenuse) Now back to those pesky radians. Cold fusion ASin function returns radians In your example below... <cfset AngleInDegrees=aSin(x/z)*(180/pi())> Does this make any more sense? Jerry Johnson >>> [EMAIL PROTECTED] 12/30/02 03:34PM >>> Oh dear, I must be a little worse off than I thought. Taking a look at what you wrote has yielded little to me. I think I may be confused over units, and perhaps converting radians to degrees improperly. Would you mind stepping me through your formulas? Say if, in triangle ABC, where B is a right angle and z is the hypotenuse, when BC is x and AB is y, we have a value of 5 for y and 10 for x. How do I apply these calculations to determine the angle of A in degrees? Thanks, M -----Original Message----- From: Lon Lentz [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 3:33 PM To: CF-Community Subject: RE: Geometry Question Oscar Has A Hunk Of Apples Sin(theta) = Opposite/Hypotenuse => Sin(A) = x/z Cos(theta) = Adjacent/Hypotenuse => Cos(A) = y/z Tan(theta) = Opposite/Adjacent => Tan(A) = x/y A = Atan(x/y) = Acos(y/z) = Asin(x/z) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5