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

Commit

Permalink
Merge pull request #17 from FranklinChen/add-tau
Browse files Browse the repository at this point in the history
Add tau.
  • Loading branch information
paf31 authored Jun 25, 2017
2 parents 1c24077 + 1e81067 commit 9ece563
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Math.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
3 changes: 3 additions & 0 deletions src/Math.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9ece563

Please sign in to comment.