Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Commit 9ece563

Browse files
authored
Merge pull request #17 from FranklinChen/add-tau
Add tau.
2 parents 1c24077 + 1e81067 commit 9ece563

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Math.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ exports.log10e = Math.LOG10E;
7474

7575
exports.pi = Math.PI;
7676

77+
exports.tau = 2 * Math.PI;
78+
7779
exports.sqrt1_2 = Math.SQRT1_2;
7880

7981
exports.sqrt2 = Math.SQRT2;

src/Math.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ foreign import log10e :: Number
8787
-- | The ratio of the circumference of a circle to its diameter, around 3.14159.
8888
foreign import pi :: Number
8989

90+
-- | The ratio of the circumference of a circle to its radius, around 6.283185.
91+
foreign import tau :: Number
92+
9093
-- | The Square root of one half, around 0.707107.
9194
foreign import sqrt1_2 :: Number
9295

0 commit comments

Comments
 (0)