~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/math.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
 
167
167
.. function:: log(x[, base])
168
168
 
169
 
   Return the logarithm of *x* to the given *base*. If the *base* is not specified,
170
 
   return the natural logarithm of *x* (that is, the logarithm to base *e*).
 
169
   With one argument, return the natural logarithm of *x* (to base *e*).
 
170
 
 
171
   With two arguments, return the logarithm of *x* to the given *base*,
 
172
   calculated as ``log(x)/log(base)``.
171
173
 
172
174
   .. versionchanged:: 2.3
173
175
      *base* argument added.
183
185
 
184
186
.. function:: log10(x)
185
187
 
186
 
   Return the base-10 logarithm of *x*.
 
188
   Return the base-10 logarithm of *x*.  This is usually more accurate
 
189
   than ``log(x, 10)``.
187
190
 
188
191
 
189
192
.. function:: pow(x, y)
318
321
   The mathematical constant *e*.
319
322
 
320
323
 
321
 
.. note::
 
324
.. impl-detail::
322
325
 
323
326
   The :mod:`math` module consists mostly of thin wrappers around the platform C
324
327
   math library functions.  Behavior in exceptional cases is loosely specified