[issue12345] Add math.tau

2018-10-08 Thread Danish Prakash
Change by Danish Prakash : -- pull_requests: +9150 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12345] Add math.tau

2018-04-10 Thread Simon Baird
Change by Simon Baird : -- nosy: -sbaird ___ Python tracker ___ ___ Python-bugs-list

[issue12345] Add math.tau

2018-04-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -6132 ___ Python tracker ___

[issue12345] Add math.tau

2018-04-09 Thread Pokestar Fan
Change by Pokestar Fan : -- pull_requests: +6132 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because of its lucky number. See https://github.com/python/core-workflow/issues/223 (fixed). -- ___ Python tracker

[issue12345] Add math.tau

2018-03-12 Thread Mark Dickinson
Mark Dickinson added the comment: Why does this issue keep ending up as the target of unrelated PR notifications? -- ___ Python tracker

[issue12345] Add math.tau

2018-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -5816 ___ Python tracker ___

[issue12345] Add math.tau

2018-03-10 Thread TitanSnow
Change by TitanSnow : -- pull_requests: +5816 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: -5653 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5653 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: -5651 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5651 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-24 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: -5640 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5640 ___ Python tracker ___

[issue12345] Add math.tau

2018-02-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -5622 ___ Python tracker ___

[issue12345] Add math.tau

2018-02-23 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-23 Thread TitanSnow
Change by TitanSnow : -- pull_requests: +5622 ___ Python tracker ___ ___

[issue12345] Add math.tau

2017-05-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: -1878 ___ Python tracker ___ ___

[issue12345] Add math.tau

2017-05-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1878 ___ Python tracker ___

[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, fixed. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12345] Add math.tau

2016-08-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is a typo in the NEWS entry: "Issue #12345: Add *mathemathcal* constant tau to math ..." -- ___ Python tracker

[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue12345] Add math.tau

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68f2d6098be1 by Guido van Rossum in branch 'default': Issue #12345: Add mathemathcal constant tau to math and cmath. https://hg.python.org/cpython/rev/68f2d6098be1 -- ___ Python tracker

[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum
Guido van Rossum added the comment: Lisa, this LGTM. I'll commit it so we can put this behind us! -- ___ Python tracker ___

[issue12345] Add math.tau

2016-08-14 Thread Lisa Roach
Lisa Roach added the comment: I have added some more detail to the Tau documentation, including that Tau is 2 * pi, as well as some links to Tau Day and Vi Hart's video. That should give Python users enough to get started forming their own opinions on tau vs pi :) -- Added file:

[issue12345] Add math.tau

2016-08-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: >From http://tauday.com/ > No, really, pi is wrong... For me it's a sign that pi is (currently) more common than tau. One purpose of the documentation is helping newcomers understand what Python's built-in objects mean. "tau = 2 * pi" is better than "pi = tau

[issue12345] Add math.tau

2016-08-14 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: -ebarry ___ Python tracker ___ ___ Python-bugs-list

[issue12345] Add math.tau

2016-08-14 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -zach.ware ___ Python tracker ___ ___

[issue12345] Add math.tau

2016-08-14 Thread STINNER Victor
STINNER Victor added the comment: Chi Hsuan Yen added the comment: > The documentation of tau should mention it's equal to 2 * pi. According to this discussion, tau is very important. Maybe it's better to document pi as tau/2? :-) -- ___ Python

[issue12345] Add math.tau

2016-08-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: The documentation of tau should mention it's equal to 2 * pi. -- nosy: +Chi Hsuan Yen ___ Python tracker ___

[issue12345] Add math.tau

2016-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue12345] Add math.tau

2016-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unsubscribing from this ridiculous issue. Guido, do your thing. -- ___ Python tracker ___

[issue12345] Add math.tau

2016-08-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list

[issue12345] Add math.tau

2016-08-13 Thread Decorater
Decorater added the comment: not to mention I like to use the following expression myself. pie = 22 / 7 # because why not? tau = 2 * pie -- nosy: +Decorater ___ Python tracker

[issue12345] Add math.tau

2016-08-13 Thread Vedran Čačić
Vedran Čačić added the comment: As an Easter egg, of course. I'm all for it. But please take a look at https://docs.python.org/3.5/search.html?q=antigravity_keywords=yes=default -- ___ Python tracker

[issue12345] Add math.tau

2016-08-13 Thread Georg Brandl
Georg Brandl added the comment: Please folks. Stop taking this so seriously and remember that this is the language where you can type in >>> import antigravity and it actually works. (Sort of.) -- ___ Python tracker

[issue12345] Add math.tau

2016-08-13 Thread Vedran Čačić
Vedran Čačić added the comment: > However an honest and non partisan web site would list all the use of pi > without 2 where the formula would be more complicated. I don't see that so > I'm still not convinced. "non partisan" is probably hard to find, but if you want to see the other side of

[issue12345] Add math.tau

2016-08-13 Thread Xavier Combelle
Xavier Combelle added the comment: Python will really follow the tau sort joke ? I never saw it mentioned in any serious math or programming document. All the github search result looks like people who are in this joke (kind of). The page http://tauday.com/state-of-the-tau list very little

[issue12345] Add math.tau

2016-08-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > All that said, I agree with Mark that math.e is at best an attractive > nuisance. Why don't we fix the nuisance part without making it less attractive: class _E(float): def __pow__(self, other): if self is e: return exp(other)

[issue12345] Add math.tau

2016-08-12 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: What about rounding pi to 3 (and tau to 6)? https://en.wikipedia.org/wiki/Indiana_Pi_Bill (and I'm sure we can find a cute video about how cool to have pi as 3 to add it to the docs). -- nosy: +pfalcon ___ Python

[issue12345] Add math.tau

2016-08-12 Thread Tim Peters
Tim Peters added the comment: Serhiy's objection is a little subtler than that. The Python expression `math.log(math.e)` in fact yields exactly 1.0, so IF it were the case that x**y were implemented as math.exp(math.log(x) * y) THEN math.e**500 would be computed as math.exp(math.log(math.e)

[issue12345] Add math.tau

2016-08-12 Thread STINNER Victor
STINNER Victor added the comment: > math.e**500 = math.exp(math.log(math.e)*500) That's the theory if numbers have an infinite precision. In practice, intermediate results are rounded and have a limited precision. -- ___ Python tracker

[issue12345] Add math.tau

2016-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > To give just one example, on my machine, the result of `exp(500)` has an > error of 0.42 ulps, while `math.e**500` gives an error of over 150 ulps. How can it be? math.e**500 = math.exp(math.log(math.e)*500) and math.log(math.e) is 1.0. --

[issue12345] Add math.tau

2016-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: BTW, if we're talking about useless constants in the math module, it's hard to get more useless than `math.e`: it's rare for `e` to turn up in formulas except in the form `e**`, and the latter case is better catered for by the more accurate (and usually

[issue12345] Add math.tau

2016-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: The unification of tau2.diff and tau3.diff LGTM; thanks, Lisa! My commit bit is broken at the moment; anyone in a position to apply those patches? -- ___ Python tracker

[issue12345] Add math.tau

2016-08-11 Thread Lisa Roach
Lisa Roach added the comment: I've updated the test to assert tau is equal to 2*math.pi, as well as updated the docs and cmath. Let me know if I have made any errors! -- nosy: +lisroach Added file: http://bugs.python.org/file44080/tau3.diff ___

[issue12345] Add math.tau

2016-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW I don't plan to have more constants there, at the current rate we'll be fine for centuries. :-) What worries me more is proposals to add Python functions to math... --Guido (mobile) -- ___ Python tracker

[issue12345] Add math.tau

2016-08-11 Thread Aaron Meurer
Aaron Meurer added the comment: Emanuel Barry, that is both untrue and irrelevant (sorry to be blunt, but that's a total straw man on my and I believe other's argument). The fact that the only mathematical constants in math are pi and e (nan and inf aren't really "mathematical" constants)

[issue12345] Add math.tau

2016-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: Let those other libraries follow. -- ___ Python tracker ___ ___

[issue12345] Add math.tau

2016-08-11 Thread Emanuel Barry
Emanuel Barry added the comment: I think that whether or not something is trivial doesn't really correlate to whether or not it has its place in the language. After all, `math.pi` is 3.1416, and most people using pi will not worry about more than 4 decimal digits. Those who do are presumably

[issue12345] Add math.tau

2016-08-11 Thread Stefan Krah
Stefan Krah added the comment: Aaron, I may be wrong, but I understood this to be something like: >>> from __future__ import barry_as_FLUFL >>> 3 <> 10 True I *do* hope sympy supports that! :-) -- nosy: +skrah ___ Python tracker

[issue12345] Add math.tau

2016-08-11 Thread Aaron Meurer
Aaron Meurer added the comment: I also wonder, if math will be gaining constants that no one uses like tau, if it will also gain constants that people actually do use (currently math just has pi, e, inf, and nan). [i for i in dir(numpy) if isinstance(getattr(numpy, i), float)] reveals

[issue12345] Add math.tau

2016-08-11 Thread Aaron Meurer
Aaron Meurer added the comment: If this is implemented, it would be (as far as I can tell) the only thing in the math module that isn't also implemented in any of the standard external math libraries. None of numpy, scipy, sympy, or mpmath implement tau (if I'm missing one that others think

[issue12345] Add math.tau

2016-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch needs a documentation update, by the way. -- ___ Python tracker ___

[issue12345] Add math.tau

2016-08-11 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker ___ ___

[issue12345] Add math.tau

2016-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general, the volume, in n-dimensional Euclidean space, of the unit n-ball, is given by V_n = pi**(n/2) / gamma(n/2+1) or V_n = (tau/2)**(n/2) / gamma(n/2+1) -- ___ Python tracker

[issue12345] Add math.tau

2016-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 11/08/2016 20:07, Tim Peters a écrit : > > For those insisting that tau is somehow unnatural, just consider > that the volume of a sphere with radius r is 2*tau/3*r**3 - the formula using > pi instead is just plain impossible to remember ;-) Thank you, I'm

[issue12345] Add math.tau

2016-08-11 Thread Evelyn Mitchell
Changes by Evelyn Mitchell : -- nosy: -Evelyn Mitchell ___ Python tracker ___ ___

[issue12345] Add math.tau

2016-08-11 Thread Tim Peters
Tim Peters added the comment: For those insisting that tau is somehow unnatural, just consider that the volume of a sphere with radius r is 2*tau/3*r**3 - the formula using pi instead is just plain impossible to remember ;-) -- ___ Python tracker

[issue12345] Add math.tau

2016-08-11 Thread Vedran Čačić
Vedran Čačić added the comment: Guido once again shows he is not a mathematicians (honestly, most of the "arguments" for tau are plain nonsense), but he is a fantastic popularizer. I (and most of the other professional mathematicians) will love Python a tiny bit less, but a horde of people

[issue12345] Add math.tau

2016-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: It's okay if Python occasionally shows its lighter side in unexpected places. Think of the delight of future (junior) high schoolers who discover that Python participates in the tau debate. :-) Also, I think this video by Vi Hart should be linked to from

[issue12345] Add math.tau

2016-08-11 Thread Nofar Schnider
Nofar Schnider added the comment: I agree with Raymond. In my opinion, it doesn't seem like there is a need to add such a constant. I know many of my previous and current colleagues would not use it (why should them if they can just write "2 * math.pi" ?) It seems that the efforts to spread the

[issue12345] Add math.tau

2016-08-10 Thread Evelyn Mitchell
Evelyn Mitchell added the comment: I also agree with Raymond's arguments. Adding tau doesn't add clarity to the math module, it just adds complexity. -- nosy: +Evelyn Mitchell ___ Python tracker

[issue12345] Add math.tau

2016-08-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with Raymond's arguments. -- ___ Python tracker ___ ___

[issue12345] Add math.tau

2016-08-10 Thread Guido van Rossum
Guido van Rossum added the comment: Noted, but it doesn't change my decision. Obscure fact: did you know there are also branches of mathematics and engineering that define pi to for something else? -- ___ Python tracker

[issue12345] Add math.tau

2016-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1 to Raymond. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue12345] Add math.tau

2016-08-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps minds are already made up, but this may be the last chance to say that I think that this shouldn't go forward. * The push to use of "tau" has the flavor a political fad or wishful thinking that may or may not succeed. The math module should only

[issue12345] Add math.tau

2016-08-10 Thread Mark Dickinson
Mark Dickinson added the comment: At some point before 3.6, the docs should get updated, and `cmath` should get the `tau` constant too. -- ___ Python tracker

[issue12345] Add math.tau

2016-08-10 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd test that tau is exactly equal to 2*pi. +1 -- ___ Python tracker ___

[issue12345] Add math.tau

2016-08-09 Thread Tim Peters
Tim Peters added the comment: Hmm. I'd test that tau is exactly equal to 2*pi. All Python platforms (past, present, and plausible future ones) have binary C doubles, so the only difference between pi and 2*pi _should_ be in the exponent (multiplication by 2 is exact). Else we screwed up

[issue12345] Add math.tau

2016-08-09 Thread Guido van Rossum
Guido van Rossum added the comment: OK, here's a diff with a test that math.tau ~~ 2*math.pi. -- Added file: http://bugs.python.org/file44065/tau2.diff ___ Python tracker

[issue12345] Add math.tau

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Builds fine on Windows. Happily, `math.tau == 2*math.pi` is True. -- nosy: +zach.ware stage: needs patch -> commit review versions: +Python 3.6 ___ Python tracker

[issue12345] Add math.tau

2016-08-09 Thread Guido van Rossum
Changes by Guido van Rossum : -- keywords: +patch Added file: http://bugs.python.org/file44063/tau.diff ___ Python tracker ___

[issue12345] Add math.tau

2016-08-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'm just going to do this. -- assignee: -> gvanrossum resolution: rejected -> status: closed -> open ___ Python tracker

[issue12345] Add math.tau

2013-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 761b370f2cfd by Terry Jan Reedy in branch '3.3': #12345: null merge with 3.2. http://hg.python.org/cpython/rev/761b370f2cfd -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue12345] Add math.tau

2013-03-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg184297 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345 ___

[issue12345] Add math.tau

2013-02-27 Thread Waldir Pimenta
Waldir Pimenta added the comment: Following-up sbaird's comment, I must point out that those aren't Python-specific results. Filtering them by appending l=python to the urls yields: - TAU = 2 * Math.PI: 6 - TAU = 2*Math.PI: 2 - TAU=2*Math.PI: 0 - TAU = Math.PI * 2: 0 - TAU = Math.PI*2: 2 -

[issue12345] Add math.tau

2013-02-25 Thread Simon Baird
Simon Baird added the comment: https://github.com/search?q=%22TAU+%3D+2+%2A+Math.PI%22type=Code https://github.com/search?q=%22TAU+%3D+PI+*+2%22type=Code -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345

[issue12345] Add math.tau

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345 ___ ___ Python-bugs-list

[issue12345] Add math.tau

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22397/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345 ___

[issue12345] Add math.tau

2011-06-27 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Uh, not until I've seen a lot more evidence that people are habitually writing TAU = 2 * math.pi in their programs... -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org

[issue12345] Add math.tau

2011-06-17 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: On Wed, Jun 15, 2011 at 8:10 PM, Nick Coghlan rep...@bugs.python.orgwrote: I'd like to add a new constant to the math module: tau = 2*math.pi Rather than repeating all the reasons for why tau makes more sense than pi as the

[issue12345] Add math.tau

2011-06-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Not to mention d(area of circle of radius r) = r dr matey. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345

[issue12345] Add math.tau

2011-06-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: http://tauday.com/ And I thought putting dx directly next to the integral sign was audacious... -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345

[issue12345] Add math.tau

2011-06-16 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: -1 -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345 ___

[issue12345] Add math.tau

2011-06-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The golden ratio is more commonly denoted with phi (although tau does get used sometimes). Popularity isn't the point though, it's the fact that tau *makes geometric sense* in ways that 2*pi doesn't. --

[issue12345] Add math.tau

2011-06-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I like this issue number, but I don't think that Python needs this new constant: it's trivial to add it to your own project. We have pi and e, it's enough. If we begin to add a new constant, others will ask to add much more

[issue12345] Add math.tau

2011-06-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nick, you just have to write: tau = 2 * math.pi and you're done. there are million of other constants Actually, I've heard there are an infinity of them. -- nosy: +pitrou resolution: - rejected status: open - pending

[issue12345] Add math.tau

2011-06-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Actually, I've heard there are an infinity of them. Can you prove that? -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345

[issue12345] Add math.tau

2011-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345 ___ ___ Python-bugs-list

[issue12345] Add math.tau

2011-06-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/6/16 STINNER Victor rep...@bugs.python.org: STINNER Victor victor.stin...@haypocalc.com added the comment: Actually, I've heard there are an infinity of them. Can you prove that? Don't have to. Axiom of infinity. :) --

[issue12345] Add math.tau

2011-06-16 Thread Simon Baird
Changes by Simon Baird simon.ba...@gmail.com: -- nosy: +sbaird ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12345 ___ ___ Python-bugs-list

[issue12345] Add math.tau

2011-06-15 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: I'd like to add a new constant to the math module: tau = 2*math.pi Rather than repeating all the reasons for why tau makes more sense than pi as the fundamental circle constant, I'll just refer interested readers to http://tauday.com/

[issue12345] Add math.tau

2011-06-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Perhaps we should wait until \tau gains popularity larger than some impassioned physicist. \tau has been used to represent the golden ratio longer. -- nosy: +benjamin.peterson ___ Python