List of commits:
Subject Hash Author Date (UTC)
bpo-29956: Improve the math.exp() related documentation. (#1073) dbaf746b6de0ee431c809d3175ab40ccc18898a8 Serhiy Storchaka 2017-05-04 09:25:09
bpo-30166: Import command-line parsing modules only when needed. (#1293) 7e4db2f253c555568d56177c2fd083bcf8f88d34 Serhiy Storchaka 2017-05-04 05:17:47
bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) 1c4670ea0cc3d208121af11b9b973e6bb268e570 Victor Stinner 2017-05-03 22:45:56
bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316) 5f161fd86dd5bb936a1a2a13391b13b7e59ec201 Serhiy Storchaka 2017-05-03 21:03:23
Add myself to mention-bot's alwaysNotifyForPaths for ssl/hashlib (#1425) feec3dc9c308052754f9e4848c1c1ddb007e9f66 Christian Heimes 2017-05-03 18:17:54
Explicitly mention what should (not) be discussed on GitHub (GH-1437) 7fdd30975e3fa9ec4be62464a9fcab7798d0ed6e Brett Cannon 2017-05-03 17:51:55
bpo-28315: Improve code examples in docs (GH-1372) 8856940cf2e82cb17db2b684cd5732fe658605ca UltimateCoder 2017-05-03 16:46:45
bpo-23404: make touch becomes make regen-all (#1405) a5c62a8e9f0de6c4133825a5710984a3cd5e102b Victor Stinner 2017-05-03 16:21:48
bpo-30103: Allow Uuencode in Python using backtick as zero instead of space (#1326) 13f1f423fac39f8f14a3ce919dd236975517d5c6 Xiang Zhang 2017-05-03 03:16:21
Fix tests: getsockname() can return None on OS X on unbound sockets (#1400) 0360a9d015ddbc4e3d58e3ab4b433da27bf1db3a Antoine Pitrou 2017-05-02 21:48:26
bpo-30232: Regenerate configure (#1396) 9ed34a89532763cf89f5e11fffb91ef7dee29fed Victor Stinner 2017-05-02 20:35:58
bpo-30232: Support Git worktree in configure.ac (#1391) 5facdbb29169c2799c42f887cef4cd9d087b0167 Victor Stinner 2017-05-02 19:42:48
Remove outdated tests in test_isinstance (GH-1393) 094909ad69a6654ac43c69ebdced060fbbbbede8 Jim Fasarakis-Hilliard 2017-05-02 17:17:18
bpo-28556: Routine updates to typing (#1366) f06e0218ef6007667f5d61184b85a81a0466d3ae Ivan Levkivskyi 2017-05-02 17:14:07
bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux (#1370) 495b5021e73e3c4b6404417ecf4fa83aa10297f0 Antoine Pitrou 2017-05-02 15:20:00
Fix typo in selectors.rst (#1383) b0d82036549074357717d130a772d1e2ebc8ea01 Tong SHEN 2017-05-02 13:27:57
bpo-30228: FileIO seek() and tell() set seekable (#1384) 999707373630ce090300c3c542066f493b12faa0 Victor Stinner 2017-05-02 13:10:39
bpo-30199: test_ssl closes all asyncore channels (#1381) 1dae7450c68bad498e57800387b24cb103c461fa Victor Stinner 2017-05-02 11:12:02
bpo-30132: distutils BuildExtTestCase use temp_cwd (#1380) 92fd6c9ef54a857815e3dca8ee74b2b4f5cdf154 Victor Stinner 2017-05-02 11:11:50
Clean up some confusing text left by PROTOCOL_SSLv23 -> PROTOCOL_TLS transition (#1355) d4069de5112f0408801ff2479476827bb3e0e8fc Nathaniel J. Smith 2017-05-02 05:43:31
Commit dbaf746b6de0ee431c809d3175ab40ccc18898a8 - bpo-29956: Improve the math.exp() related documentation. (#1073)
Author: Serhiy Storchaka
Author date (UTC): 2017-05-04 09:25
Committer name: GitHub
Committer date (UTC): 2017-05-04 09:25
Parent(s): 7e4db2f253c555568d56177c2fd083bcf8f88d34
Signing key:
Tree: a7a07d3e2bde0a326e2c5fba7c2fce4396bdb1cd
File Lines added Lines deleted
Doc/library/cmath.rst 8 3
Doc/library/math.rst 18 9
Doc/whatsnew/3.6.rst 2 2
File Doc/library/cmath.rst changed (mode: 100644) (index c819a667ec..9d81730f20)
... ... rectangular coordinates to polar coordinates and back.
47 47
48 48 Return the phase of *x* (also known as the *argument* of *x*), as a Return the phase of *x* (also known as the *argument* of *x*), as a
49 49 float. ``phase(x)`` is equivalent to ``math.atan2(x.imag, float. ``phase(x)`` is equivalent to ``math.atan2(x.imag,
50 x.real)``. The result lies in the range [-π, π], and the branch
50 x.real)``. The result lies in the range [-\ *π*, *π*], and the branch
51 51 cut for this operation lies along the negative real axis, cut for this operation lies along the negative real axis,
52 52 continuous from above. On systems with support for signed zeros continuous from above. On systems with support for signed zeros
53 53 (which includes most systems in current use), this means that the (which includes most systems in current use), this means that the
 
... ... Power and logarithmic functions
86 86
87 87 .. function:: exp(x) .. function:: exp(x)
88 88
89 Return the exponential value ``e**x``.
89 Return *e* raised to the power *x*, where *e* is the base of natural
90 logarithms.
90 91
91 92
92 93 .. function:: log(x[, base]) .. function:: log(x[, base])
 
... ... Classification functions
243 244 Constants Constants
244 245 --------- ---------
245 246
246
247 247 .. data:: pi .. data:: pi
248 248
249 249 The mathematical constant *π*, as a float. The mathematical constant *π*, as a float.
 
... ... Constants
253 253
254 254 The mathematical constant *e*, as a float. The mathematical constant *e*, as a float.
255 255
256
256 257 .. data:: tau .. data:: tau
257 258
258 259 The mathematical constant *τ*, as a float. The mathematical constant *τ*, as a float.
259 260
260 261 .. versionadded:: 3.6 .. versionadded:: 3.6
261 262
263
262 264 .. data:: inf .. data:: inf
263 265
264 266 Floating-point positive infinity. Equivalent to ``float('inf')``. Floating-point positive infinity. Equivalent to ``float('inf')``.
265 267
266 268 .. versionadded:: 3.6 .. versionadded:: 3.6
267 269
270
268 271 .. data:: infj .. data:: infj
269 272
270 273 Complex number with zero real part and positive infinity imaginary Complex number with zero real part and positive infinity imaginary
 
... ... Constants
272 275
273 276 .. versionadded:: 3.6 .. versionadded:: 3.6
274 277
278
275 279 .. data:: nan .. data:: nan
276 280
277 281 A floating-point "not a number" (NaN) value. Equivalent to A floating-point "not a number" (NaN) value. Equivalent to
 
... ... Constants
279 283
280 284 .. versionadded:: 3.6 .. versionadded:: 3.6
281 285
286
282 287 .. data:: nanj .. data:: nanj
283 288
284 289 Complex number with zero real part and NaN imaginary part. Equivalent to Complex number with zero real part and NaN imaginary part. Equivalent to
File Doc/library/math.rst changed (mode: 100644) (index 0c53b294a9..9e4946323a)
... ... Number-theoretic and representation functions
42 42 *y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)`` *y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)``
43 43 returns *-1.0*. returns *-1.0*.
44 44
45
45 46 .. function:: fabs(x) .. function:: fabs(x)
46 47
47 48 Return the absolute value of *x*. Return the absolute value of *x*.
48 49
50
49 51 .. function:: factorial(x) .. function:: factorial(x)
50 52
51 53 Return *x* factorial. Raises :exc:`ValueError` if *x* is not integral or Return *x* factorial. Raises :exc:`ValueError` if *x* is not integral or
52 54 is negative. is negative.
53 55
56
54 57 .. function:: floor(x) .. function:: floor(x)
55 58
56 59 Return the floor of *x*, the largest integer less than or equal to *x*. Return the floor of *x*, the largest integer less than or equal to *x*.
 
... ... Power and logarithmic functions
220 223
221 224 .. function:: exp(x) .. function:: exp(x)
222 225
223 Return e raised to the power *x*, where e = 2.718281... is the base
224 of natural logarithms.
226 Return *e* raised to the power *x*, where *e* = 2.718281... is the base
227 of natural logarithms. This is usually more accurate than ``math.e ** x``
228 or ``pow(math.e, x)``.
229
225 230
226 231 .. function:: expm1(x) .. function:: expm1(x)
227 232
228 Return ``e**x - 1``. For small floats *x*, the subtraction in ``exp(x) - 1``
233 Return *e* raised to the power *x*, minus 1. Here *e* is the base of natural
234 logarithms. For small floats *x*, the subtraction in ``exp(x) - 1``
229 235 can result in a `significant loss of precision can result in a `significant loss of precision
230 236 <https://en.wikipedia.org/wiki/Loss_of_significance>`_\; the :func:`expm1` <https://en.wikipedia.org/wiki/Loss_of_significance>`_\; the :func:`expm1`
231 237 function provides a way to compute this quantity to full precision:: function provides a way to compute this quantity to full precision::
 
... ... Power and logarithmic functions
290 296
291 297 Return the square root of *x*. Return the square root of *x*.
292 298
299
293 300 Trigonometric functions Trigonometric functions
294 301 ----------------------- -----------------------
295 302
296
297 303 .. function:: acos(x) .. function:: acos(x)
298 304
299 305 Return the arc cosine of *x*, in radians. Return the arc cosine of *x*, in radians.
 
... ... Trigonometric functions
339 345
340 346 Return the tangent of *x* radians. Return the tangent of *x* radians.
341 347
348
342 349 Angular conversion Angular conversion
343 350 ------------------ ------------------
344 351
345
346 352 .. function:: degrees(x) .. function:: degrees(x)
347 353
348 354 Convert angle *x* from radians to degrees. Convert angle *x* from radians to degrees.
 
... ... Angular conversion
352 358
353 359 Convert angle *x* from degrees to radians. Convert angle *x* from degrees to radians.
354 360
361
355 362 Hyperbolic functions Hyperbolic functions
356 363 -------------------- --------------------
357 364
 
... ... Constants
440 447
441 448 .. data:: pi .. data:: pi
442 449
443 The mathematical constant π = 3.141592..., to available precision.
450 The mathematical constant *π* = 3.141592..., to available precision.
444 451
445 452
446 453 .. data:: e .. data:: e
447 454
448 The mathematical constant e = 2.718281..., to available precision.
455 The mathematical constant *e* = 2.718281..., to available precision.
456
449 457
450 458 .. data:: tau .. data:: tau
451 459
452 The mathematical constant τ = 6.283185..., to available precision.
453 Tau is a circle constant equal to 2π, the ratio of a circle's circumference to
460 The mathematical constant *τ* = 6.283185..., to available precision.
461 Tau is a circle constant equal to 2\ *π*, the ratio of a circle's circumference to
454 462 its radius. To learn more about Tau, check out Vi Hart's video `Pi is (still) its radius. To learn more about Tau, check out Vi Hart's video `Pi is (still)
455 463 Wrong <https://www.youtube.com/watch?v=jG7vhMMXagQ>`_, and start celebrating Wrong <https://www.youtube.com/watch?v=jG7vhMMXagQ>`_, and start celebrating
456 464 `Tau day <http://tauday.com/>`_ by eating twice as much pie! `Tau day <http://tauday.com/>`_ by eating twice as much pie!
457 465
458 466 .. versionadded:: 3.6 .. versionadded:: 3.6
459 467
468
460 469 .. data:: inf .. data:: inf
461 470
462 471 A floating-point positive infinity. (For negative infinity, use A floating-point positive infinity. (For negative infinity, use
File Doc/whatsnew/3.6.rst changed (mode: 100644) (index a696af4a99..163794da96)
... ... return value.
908 908 cmath cmath
909 909 ----- -----
910 910
911 The new :const:`cmath.tau` (τ) constant has been added.
911 The new :const:`cmath.tau` (*τ*) constant has been added.
912 912 (Contributed by Lisa Roach in :issue:`12345`, see :pep:`628` for details.) (Contributed by Lisa Roach in :issue:`12345`, see :pep:`628` for details.)
913 913
914 914 New constants: :const:`cmath.inf` and :const:`cmath.nan` to New constants: :const:`cmath.inf` and :const:`cmath.nan` to
 
... ... be reopened.
1199 1199 math math
1200 1200 ---- ----
1201 1201
1202 The tau (τ) constant has been added to the :mod:`math` and :mod:`cmath`
1202 The tau (*τ*) constant has been added to the :mod:`math` and :mod:`cmath`
1203 1203 modules. modules.
1204 1204 (Contributed by Lisa Roach in :issue:`12345`, see :pep:`628` for details.) (Contributed by Lisa Roach in :issue:`12345`, see :pep:`628` for details.)
1205 1205
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main