sine in python
Dan Bishop
danb_83 at yahoo.com
Thu Apr 3 19:28:09 EDT 2008
On Apr 3, 6:09 pm, zillo... at googlemail.com wrote:
> 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
>
> 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
Better yet, do
help(math)
which will display the docstrings.
More information about the Python-list
mailing list