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

Add tau. #17

Merged
merged 1 commit into from
Jun 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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