[ruby-core:102021] [Ruby master Feature#17496] Add constant Math::TAU
From:
akr@...
Date:
2021-01-12 06:02:46 UTC
List:
ruby-core #102021
Issue #17496 has been updated by akr (Akira Tanaka). shyouhei (Shyouhei Urabe) wrote in #note-26: > `M_PI_2` is π/2 rather than 2π. I guess `Math::PI2` is too confusing. I hope that it does not cause big confusion because Ruby has no PI_2. ---------------------------------------- Feature #17496: Add constant Math::TAU https://bugs.ruby-lang.org/issues/17496#change-89869 * Author: jzakiya (Jabari Zakiya) * Status: Open * Priority: Normal ---------------------------------------- Excuse me if this has been brought up before. This is a simple proposal to add the math constant ``Math::TAU`` = 2*``Math::PI``. See: https://tauday.com/ ``TAU`` has been included in a growing number of languages (Rust, Python3, Julia, et al), and this would add Ruby to that list, and make it even cooler. :-) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>