sine in python

zillow10 at googlemail.com zillow10 at googlemail.com
Thu Apr 3 19:09:02 EDT 2008


On Apr 3, 11:58 pm, Astan Chee <st... at al.com.au> wrote:
> Hi,
> I have a math function that looks like this
> sin (Theta) = 5/6
> How do I find Theta (in degrees) in python? I am aware of the math.sin
> function, but is there a reverse? maybe a sine table in python?
> Thanks
> Astan
>
> --
> "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."
>
> Animal Logichttp://www.animallogic.com
>
> Please think of the environment before printing this email.
>
> This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free.

import math
If you now do
dir(math)
you'll see that the module has the functions 'asin' and 'degrees' that
find the inverse sine of a number, and convert radians to degrees,
respectively



More information about the Python-list mailing list