Comments (9)
I tried to propose this a few years ago, but it was rejected :(
from proposal-math-extensions.
+1 link for TAU
Tau replaces Pi - Numberphile:
https://www.youtube.com/watch?v=83ofi_L6eAo
from proposal-math-extensions.
FWIW, I agree with you and the rationale
from proposal-math-extensions.
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.
I made nearly the same argument. The "Python has it" point might be compelling
from proposal-math-extensions.
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.
+1 for Tau. I'll call it that from now on instead of TWO_PI
;)
from proposal-math-extensions.
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.
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)
- [Suggestion] Methods to be added HOT 8
- [Suggestion] Math.mean and Math.roundBy HOT 2
- [Suggestion] Constants to be added HOT 1
- Is it still active? HOT 7
- [Suggestion] Math.lerp and Math.normalize HOT 2
- alternatives to Math.radians and Math.degrees HOT 5
- Math.exp2
- modulo function HOT 8
- Math.pow should accept Bigints, modulo and pow=-1 HOT 12
- Proposal Math.clamp separately HOT 1
- In the spec draft missed conversion of arguments to numbers
- Repository should be transferred to tc39 organization HOT 2
- Should `factorial` be defined in all or some domains? HOT 2
- Dot product?
- New rounding modes HOT 1
- Bitwise methods HOT 4
- Tuple methods
- `Number.prototype.toByteSize` / `Intl.SizeFormat` HOT 2
- `Math.copysign`? HOT 1
- `Math.MAX_RANDOM_BITS`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proposal-math-extensions.