home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pyhtmldoc / m / math < prev    next >
Text File  |  1996-11-14  |  3KB  |  67 lines

  1. <TITLE>math -- Python library reference</TITLE>
  2. Next: <A HREF="../r/rand" TYPE="Next">rand</A>  
  3. Prev: <A HREF="../m/miscellaneous_services" TYPE="Prev">Miscellaneous Services</A>  
  4. Up: <A HREF="../m/miscellaneous_services" TYPE="Up">Miscellaneous Services</A>  
  5. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  6. <H1>5.1. Built-in Module <CODE>math</CODE></H1>
  7. This module is always available.
  8. It provides access to the mathematical functions defined by the C
  9. standard.
  10. They are:
  11. <DL><DT><B>acos</B> (<VAR>x</VAR>) -- function of module math<DD>
  12. </DL>
  13. <DL><DT><B>asin</B> (<VAR>x</VAR>) -- function of module math<DD>
  14. </DL>
  15. <DL><DT><B>atan</B> (<VAR>x</VAR>) -- function of module math<DD>
  16. </DL>
  17. <DL><DT><B>atan2</B> (<VAR>x</VAR>, <VAR>y</VAR>) -- function of module math<DD>
  18. </DL>
  19. <DL><DT><B>ceil</B> (<VAR>x</VAR>) -- function of module math<DD>
  20. </DL>
  21. <DL><DT><B>cos</B> (<VAR>x</VAR>) -- function of module math<DD>
  22. </DL>
  23. <DL><DT><B>cosh</B> (<VAR>x</VAR>) -- function of module math<DD>
  24. </DL>
  25. <DL><DT><B>exp</B> (<VAR>x</VAR>) -- function of module math<DD>
  26. </DL>
  27. <DL><DT><B>fabs</B> (<VAR>x</VAR>) -- function of module math<DD>
  28. </DL>
  29. <DL><DT><B>floor</B> (<VAR>x</VAR>) -- function of module math<DD>
  30. </DL>
  31. <DL><DT><B>fmod</B> (<VAR>x</VAR>, <VAR>y</VAR>) -- function of module math<DD>
  32. </DL>
  33. <DL><DT><B>frexp</B> (<VAR>x</VAR>) -- function of module math<DD>
  34. </DL>
  35. <DL><DT><B>hypot</B> (<VAR>x</VAR>, <VAR>y</VAR>) -- function of module math<DD>
  36. </DL>
  37. <DL><DT><B>ldexp</B> (<VAR>x</VAR>, <VAR>y</VAR>) -- function of module math<DD>
  38. </DL>
  39. <DL><DT><B>log</B> (<VAR>x</VAR>) -- function of module math<DD>
  40. </DL>
  41. <DL><DT><B>log10</B> (<VAR>x</VAR>) -- function of module math<DD>
  42. </DL>
  43. <DL><DT><B>modf</B> (<VAR>x</VAR>) -- function of module math<DD>
  44. </DL>
  45. <DL><DT><B>pow</B> (<VAR>x</VAR>, <VAR>y</VAR>) -- function of module math<DD>
  46. </DL>
  47. <DL><DT><B>sin</B> (<VAR>x</VAR>) -- function of module math<DD>
  48. </DL>
  49. <DL><DT><B>sinh</B> (<VAR>x</VAR>) -- function of module math<DD>
  50. </DL>
  51. <DL><DT><B>sqrt</B> (<VAR>x</VAR>) -- function of module math<DD>
  52. </DL>
  53. <DL><DT><B>tan</B> (<VAR>x</VAR>) -- function of module math<DD>
  54. </DL>
  55. <DL><DT><B>tanh</B> (<VAR>x</VAR>) -- function of module math<DD>
  56. </DL>
  57. Note that <CODE>frexp</CODE> and <CODE>modf</CODE> have a different call/return
  58. pattern than their C equivalents: they take a single argument and
  59. return a pair of values, rather than returning their second return
  60. value through an `output parameter' (there is no such thing in Python).
  61. <P>
  62. The module also defines two mathematical constants:
  63. <DL><DT><B>pi</B> -- data of module math<DD>
  64. </DL>
  65. <DL><DT><B>e</B> -- data of module math<DD>
  66. </DL>
  67.