From 1e81067b074c990a031b1b8c9b658ecbdc22dcb3 Mon Sep 17 00:00:00 2001 From: Franklin Chen Date: Fri, 23 Jun 2017 18:46:37 -0400 Subject: [PATCH] Add tau. --- src/Math.js | 2 ++ src/Math.purs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Math.js b/src/Math.js index f225f3a..9041361 100644 --- a/src/Math.js +++ b/src/Math.js @@ -74,6 +74,8 @@ exports.log10e = Math.LOG10E; exports.pi = Math.PI; +exports.tau = 2 * Math.PI; + exports.sqrt1_2 = Math.SQRT1_2; exports.sqrt2 = Math.SQRT2; diff --git a/src/Math.purs b/src/Math.purs index 4f62e85..a8f2516 100644 --- a/src/Math.purs +++ b/src/Math.purs @@ -87,6 +87,9 @@ foreign import log10e :: Number -- | The ratio of the circumference of a circle to its diameter, around 3.14159. foreign import pi :: Number +-- | The ratio of the circumference of a circle to its radius, around 6.283185. +foreign import tau :: Number + -- | The Square root of one half, around 0.707107. foreign import sqrt1_2 :: Number