Whether the calculation comes out in degrees or radians will depend on the arcsine/arccosine/arctangent functions used. In CF, it's returned in radians (as it should be!).
To convert radians to degrees, simply multiply by 180/pi. So, in your example, the angle A in degrees would be 180/pi*arcsin(x/z) or 180/pi*arccos(y/z) or 180/pi*arctan(x/y) which (should) all come out to be about 63.4 degrees. did that help? --Ben Doom Programmer & General Lackey Moonbow Software : -----Original Message----- : From: Haggerty, Mike [mailto:[EMAIL PROTECTED]] : Sent: Monday, December 30, 2002 3:35 PM : To: CF-Community : Subject: RE: Geometry Question : : : 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5