Code Monkey home page Code Monkey logo

Comments (9)

rwaldron avatar rwaldron commented on July 20, 2024 3

I tried to propose this a few years ago, but it was rejected :(

from proposal-math-extensions.

micnic avatar micnic commented on July 20, 2024 1

+1 link for TAU

Tau replaces Pi - Numberphile:
https://www.youtube.com/watch?v=83ofi_L6eAo

from proposal-math-extensions.

rwaldron avatar rwaldron commented on July 20, 2024

FWIW, I agree with you and the rationale

from proposal-math-extensions.

jhirth avatar jhirth commented on July 20, 2024

Well, Python got it now. Maybe that would convince some people.

Anyhow, I kinda agree that it's somewhat gimmicky, but on the other hand I always think it's silly that I have to define it myself. It's the math constant I use most frequently.

from proposal-math-extensions.

rwaldron avatar rwaldron commented on July 20, 2024

I made nearly the same argument. The "Python has it" point might be compelling

from proposal-math-extensions.

caub avatar caub commented on July 20, 2024

you could always const {PI, TAU=2*PI} = Math; in the files that need it, but I don't find it useful to add it in Math

from proposal-math-extensions.

fuchsia avatar fuchsia commented on July 20, 2024

+1 for Tau. I'll call it that from now on instead of TWO_PI ;)

from proposal-math-extensions.

AlexanderZeilmann avatar AlexanderZeilmann commented on July 20, 2024

The last time Math.TAU was rejected because

"one letter shorter, not well known, not well taught. PI is known, taught and ubiquitous."

(See meeting notes https://esdiscuss.org/notes/2014-07-31)

I don't see how any of this has changed.
And as Brendan wrote:

Don't rehash. New insights (they had better be new and good) in new thread.

(See https://mail.mozilla.org/pipermail/es-discuss/2014-August/038635.html)

And as there are no new and good insight, I doubt, that this will be accepted.

Let us focus on more important additions to the Math object.

from proposal-math-extensions.

Crissov avatar Crissov commented on July 20, 2024

FWIW, CSS has an angular unit turn that effectively is ฯ„ and the CSS folks are reluctant to add any other way to use ฯ€. w3c/csswg-drafts#309

This means, you should reconsider whether radโ†”deg is really all that should be added, and whether the conversion functions make sense as proposed when considering more than two angular units.

Math.RAD_PER_TURN would be 2*Math.PI, i. e. ฯ„.

from proposal-math-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.