Triangle Trigonometry

Thelma F. Gonzales thelmagonzales99 at yahoo.com
Mon Dec 31 12:05:06 EST 2001


This is an almost embarrassing question, but...

I'm trying to write a script that will calculate an unknown angle in a
triangle. I have the value for the side adjacent and the side opposite
of the angle in question, therefore I need to use the tangent
function. I understand how to determine this value in decimal units,
however I need degree units. I can reach down and pick up my trusty
calculator and hit the inverse key and then the tangent key and viola
I have my degree measurement. But, alas I do not want to use my old
calculator to measure a few thousand angles, and I cannot figure out
how to do this using the math module. Does anyone know how to invoke
the "inverse" function in python?

Perhaps one of you kind folks can help me out, for I am completely
frustrated.

Thanks,
Thelma



More information about the Python-list mailing list