We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In addition to Math.TAU = 2·π = τ #5, at least some of these would make sense to have as well
Math.TAU
Number.EPSILON
Math.PHI
(Math.SQRT5 + 1) / 2
Math.PHIM1
1/Math.PHI = Math.PHI-1
Math.SQRT2P1
Math.SQRT2 + 1
Math.THETA
Math.sqrt(Math.PI) * Math.PHI
Math.RHO
(Math.cbrt(0.5+Math.sqrt(69)) + Math.cbrt(0.5-Math.sqrt(69)))/18
Math.SQRT3
Math.sqrt(3)
Math.SQRT5
Math.sqrt(5)
Math.SQRT3_2
Math.sqrt(1.5)
Math.SQRT2_3
Math.sqrt(2/3)
Math.CLOCK1
Math.DEG30
Math.PI / 6
Math.CLOCK2
Math.DEG60
Math.PI / 3
Math.CLOCK3
Math.DEG90
Math.PI / 2
Math.CLOCK4
Math.DEG120
Math.PI * 2/3
Math.CLOCK5
Math.DEG150
Math.PI * 5/6
Math.CLOCK6
Math.DEG180
Math.PI
Math.CLOCK7
Math.DEG210
Math.PI * 7/6
Math.CLOCK8
Math.DEG240
Math.PI * 4/3
Math.CLOCK9
Math.DEG270
Math.PI * 3/2
Math.CLOCK10
Math.DEG300
Math.PI * 5/3
Math.CLOCK11
Math.DEG360
Math.PI * 11/6
Math.CLOCK12
Math.PI * 2
Math.NORTH
0
Math.NNE
Math.PI / 8
Math.NE
Math.DEG45
Math.PI / 4
Math.ENE
Math.PI * 3/8
Math.EAST
Math.ESE
Math.PI * 5/8
Math.SE
Math.DEG135
Math.PI * 3/4
Math.SSE
Math.PI * 7/8
Math.SOUTH
Math.SSW
Math.PI * 9/8
Math.SW
Math.DEG225
Math.PI * 5/4
Math.WSW
Math.PI * 11/8
Math.WEST
Math.WNW
Math.PI * 13/8
Math.NW
Math.DEG315
Math.PI * 7/4
Math.NNW
Math.PI * 15/8
The text was updated successfully, but these errors were encountered:
add suggested constants to index.js
487e4e9
implements rwaldron#5 τ implements rwaldron#14 φ etc.
I just left a comment on the PR. Let's drop the Twelfths, Fourths, Eighths or Sixteenths (with the exception of TAU)
Sorry, something went wrong.
No branches or pull requests
Radical Constants 👍
In addition to
Math.TAU
= 2·π = τ #5, at least some of these would make sense to have as wellNumber.EPSILON
= ε already exists)Math.PHI
(Math.SQRT5 + 1) / 2
Math.PHIM1
1/Math.PHI = Math.PHI-1
Math.SQRT2P1
Math.SQRT2 + 1
Math.THETA
Math.sqrt(Math.PI) * Math.PHI
Math.RHO
(Math.cbrt(0.5+Math.sqrt(69)) + Math.cbrt(0.5-Math.sqrt(69)))/18
Math.SQRT3
Math.sqrt(3)
Math.SQRT5
Math.sqrt(5)
Math.SQRT3_2
Math.sqrt(1.5)
Math.SQRT2_3
Math.sqrt(2/3)
Standard angles in radians 👎
Twelfths 👎
Math.CLOCK1
=Math.DEG30
Math.PI / 6
Math.CLOCK2
=Math.DEG60
Math.PI / 3
Math.CLOCK3
=Math.DEG90
Math.PI / 2
Math.CLOCK4
=Math.DEG120
Math.PI * 2/3
Math.CLOCK5
=Math.DEG150
Math.PI * 5/6
Math.CLOCK6
=Math.DEG180
Math.PI
Math.CLOCK7
=Math.DEG210
Math.PI * 7/6
Math.CLOCK8
=Math.DEG240
Math.PI * 4/3
Math.CLOCK9
=Math.DEG270
Math.PI * 3/2
Math.CLOCK10
=Math.DEG300
Math.PI * 5/3
Math.CLOCK11
=Math.DEG360
Math.PI * 11/6
Math.CLOCK12
=Math.DEG360
Math.PI * 2
=Math.TAU
Fourths, Eighths or Sixteenths 👎
Math.NORTH
=Math.DEG360
0
Math.NNE
Math.PI / 8
Math.NE
=Math.DEG45
Math.PI / 4
Math.ENE
Math.PI * 3/8
Math.EAST
=Math.DEG90
Math.PI / 2
Math.ESE
Math.PI * 5/8
Math.SE
=Math.DEG135
Math.PI * 3/4
Math.SSE
Math.PI * 7/8
Math.SOUTH
=Math.DEG180
Math.PI
Math.SSW
Math.PI * 9/8
Math.SW
=Math.DEG225
Math.PI * 5/4
Math.WSW
Math.PI * 11/8
Math.WEST
=Math.DEG270
Math.PI * 3/2
Math.WNW
Math.PI * 13/8
Math.NW
=Math.DEG315
Math.PI * 7/4
Math.NNW
Math.PI * 15/8
The text was updated successfully, but these errors were encountered: