tauday 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tauday.rb +14 -0
  2. metadata +53 -0
@@ -0,0 +1,14 @@
1
+ module Math
2
+ # The true circle constant.
3
+ # The ratio of a circle's circumfered to its radius.
4
+ TAU = PI * 2.0
5
+ end
6
+
7
+ module BigMath
8
+ # Computes the value of tau to the specific number of digits of precision.
9
+ def TAU(prec)
10
+ raise ArgumentError, "Zero or negative argument for TAU" if prec <= 0
11
+ PI(prec) * BigDecimal("2")
12
+ end
13
+ end
14
+
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tauday
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Matthew Kerwin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-28 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Introduces Tau as the true circle constant. See http://tauday.com
15
+ email: matthew@kerwin.net.au
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/tauday.rb
21
+ homepage: http://rubygems.org/gems/tauday
22
+ licenses:
23
+ - Simplified BSD License
24
+ post_install_message:
25
+ rdoc_options:
26
+ - --title
27
+ - ! 'TAU: The True Circle Constant'
28
+ - --main
29
+ - Tau
30
+ - --line-numbers
31
+ - --tab-width
32
+ - '2'
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project:
49
+ rubygems_version: 1.8.11
50
+ signing_key:
51
+ specification_version: 3
52
+ summary: ! 'Tau: the true circle constant'
53
+ test_files: []