more_math 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +1 -0
- data/CHANGES +3 -0
- data/Gemfile +4 -0
- data/VERSION +1 -1
- data/lib/more_math/distributions.rb +1 -1
- data/lib/more_math/string_numeral.rb +19 -6
- data/lib/more_math/version.rb +1 -1
- data/more_math.gemspec +8 -8
- data/tests/{test_cantor_pairing_function.rb → cantor_pairing_function_test.rb} +2 -2
- data/tests/{test_continued_fraction.rb → continued_fraction_test.rb} +16 -2
- data/tests/{test_distribution.rb → distribution_test.rb} +3 -2
- data/tests/{test_functions.rb → functions_test.rb} +2 -2
- data/tests/{test_histogram.rb → histogram_test.rb} +2 -2
- data/tests/{test_newton_bisection.rb → newton_bisection_test.rb} +2 -2
- data/tests/{test_numberify_string_function.rb → numberify_string_function_test.rb} +4 -2
- data/tests/{test_permutation.rb → permutation_test.rb} +2 -2
- data/tests/{test_sequence.rb → sequence_test.rb} +5 -2
- data/tests/string_numeral_test.rb +65 -0
- data/tests/{test_subset.rb → subset_test.rb} +5 -4
- data/tests/test_helper.rb +7 -0
- metadata +86 -58
data/.travis.yml
CHANGED
data/CHANGES
CHANGED
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -5,7 +5,9 @@ module MoreMath
|
|
5
5
|
include ::MoreMath::NumberifyStringFunction
|
6
6
|
|
7
7
|
def self.from(object, alphabet = 'a'..'z')
|
8
|
-
if object
|
8
|
+
if Symbol === object
|
9
|
+
StringNumeral.from_string(object.to_s, alphabet)
|
10
|
+
elsif object.respond_to?(:to_str)
|
9
11
|
StringNumeral.from_string(object.to_str, alphabet)
|
10
12
|
elsif object.respond_to?(:to_int)
|
11
13
|
StringNumeral.from_number(object.to_int, alphabet)
|
@@ -40,12 +42,13 @@ module MoreMath
|
|
40
42
|
@number ||= numberify_string(@string, @alphabet)
|
41
43
|
end
|
42
44
|
alias to_i number
|
45
|
+
alias to_int number
|
43
46
|
|
44
47
|
def string
|
45
48
|
@string ||= stringify_number(@number, @alphabet).freeze
|
46
49
|
end
|
47
|
-
|
48
50
|
alias to_s string
|
51
|
+
alias to_str string
|
49
52
|
|
50
53
|
def inspect
|
51
54
|
"#<#{self.class}: #{string.inspect} #{number.inspect}>"
|
@@ -125,8 +128,18 @@ module MoreMath
|
|
125
128
|
self
|
126
129
|
end
|
127
130
|
|
128
|
-
def
|
129
|
-
|
131
|
+
def eql?(other)
|
132
|
+
if other.respond_to?(:to_int)
|
133
|
+
to_int == other.to_int
|
134
|
+
elsif other.respond_to?(:to_str)
|
135
|
+
to_str == other.to_str
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
alias == eql?
|
140
|
+
|
141
|
+
def hash
|
142
|
+
number.hash
|
130
143
|
end
|
131
144
|
|
132
145
|
private
|
@@ -141,8 +154,8 @@ module MoreMath
|
|
141
154
|
::MoreMath::StringNumeral.from(other, alphabet)
|
142
155
|
end
|
143
156
|
|
144
|
-
def
|
145
|
-
StringNumeral
|
157
|
+
def to_string_numeral(alphabet = 'a'..'z')
|
158
|
+
StringNumeral(self, alphabet)
|
146
159
|
end
|
147
160
|
end
|
148
161
|
end
|
data/lib/more_math/version.rb
CHANGED
data/more_math.gemspec
CHANGED
@@ -2,34 +2,34 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "more_math"
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Florian Frank"]
|
9
|
-
s.date = "2011-
|
9
|
+
s.date = "2011-12-25"
|
10
10
|
s.description = "Library that provides more mathematical functions/algorithms than standard Ruby."
|
11
11
|
s.email = "flori@ping.de"
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/more_math/cantor_pairing_function.rb", "lib/more_math/version.rb", "lib/more_math/functions.rb", "lib/more_math/sequence.rb", "lib/more_math/linear_regression.rb", "lib/more_math/string_numeral.rb", "lib/more_math/ranking_common.rb", "lib/more_math/subset.rb", "lib/more_math/histogram.rb", "lib/more_math/constants/functions_constants.rb", "lib/more_math/numberify_string_function.rb", "lib/more_math/distributions.rb", "lib/more_math/exceptions.rb", "lib/more_math/newton_bisection.rb", "lib/more_math/permutation.rb", "lib/more_math/continued_fraction.rb", "lib/more_math.rb"]
|
13
|
-
s.files = [".gitignore", ".travis.yml", "CHANGES", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "VERSION", "lib/more_math.rb", "lib/more_math/cantor_pairing_function.rb", "lib/more_math/constants/functions_constants.rb", "lib/more_math/continued_fraction.rb", "lib/more_math/distributions.rb", "lib/more_math/exceptions.rb", "lib/more_math/functions.rb", "lib/more_math/histogram.rb", "lib/more_math/linear_regression.rb", "lib/more_math/newton_bisection.rb", "lib/more_math/numberify_string_function.rb", "lib/more_math/permutation.rb", "lib/more_math/ranking_common.rb", "lib/more_math/sequence.rb", "lib/more_math/string_numeral.rb", "lib/more_math/subset.rb", "lib/more_math/version.rb", "more_math.gemspec", "tests/
|
13
|
+
s.files = [".gitignore", ".travis.yml", "CHANGES", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "VERSION", "lib/more_math.rb", "lib/more_math/cantor_pairing_function.rb", "lib/more_math/constants/functions_constants.rb", "lib/more_math/continued_fraction.rb", "lib/more_math/distributions.rb", "lib/more_math/exceptions.rb", "lib/more_math/functions.rb", "lib/more_math/histogram.rb", "lib/more_math/linear_regression.rb", "lib/more_math/newton_bisection.rb", "lib/more_math/numberify_string_function.rb", "lib/more_math/permutation.rb", "lib/more_math/ranking_common.rb", "lib/more_math/sequence.rb", "lib/more_math/string_numeral.rb", "lib/more_math/subset.rb", "lib/more_math/version.rb", "more_math.gemspec", "tests/cantor_pairing_function_test.rb", "tests/continued_fraction_test.rb", "tests/distribution_test.rb", "tests/functions_test.rb", "tests/histogram_test.rb", "tests/newton_bisection_test.rb", "tests/numberify_string_function_test.rb", "tests/permutation_test.rb", "tests/sequence_test.rb", "tests/string_numeral_test.rb", "tests/subset_test.rb", "tests/test_helper.rb"]
|
14
14
|
s.homepage = "http://flori.github.com/more_math"
|
15
15
|
s.rdoc_options = ["--title", "MoreMath -- More Math in Ruby", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
17
|
-
s.rubygems_version = "1.8.
|
17
|
+
s.rubygems_version = "1.8.13"
|
18
18
|
s.summary = "Library that provides more mathematics."
|
19
|
-
s.test_files = ["tests/
|
19
|
+
s.test_files = ["tests/subset_test.rb", "tests/sequence_test.rb", "tests/histogram_test.rb", "tests/string_numeral_test.rb", "tests/cantor_pairing_function_test.rb", "tests/distribution_test.rb", "tests/permutation_test.rb", "tests/continued_fraction_test.rb", "tests/numberify_string_function_test.rb", "tests/functions_test.rb", "tests/test_helper.rb", "tests/newton_bisection_test.rb"]
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
s.specification_version = 3
|
23
23
|
|
24
24
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
|
-
s.add_development_dependency(%q<gem_hadar>, ["~> 0.1.
|
25
|
+
s.add_development_dependency(%q<gem_hadar>, ["~> 0.1.4"])
|
26
26
|
s.add_runtime_dependency(%q<tins>, ["~> 0.3"])
|
27
27
|
else
|
28
|
-
s.add_dependency(%q<gem_hadar>, ["~> 0.1.
|
28
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.1.4"])
|
29
29
|
s.add_dependency(%q<tins>, ["~> 0.3"])
|
30
30
|
end
|
31
31
|
else
|
32
|
-
s.add_dependency(%q<gem_hadar>, ["~> 0.1.
|
32
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.1.4"])
|
33
33
|
s.add_dependency(%q<tins>, ["~> 0.3"])
|
34
34
|
end
|
35
35
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'test_helper'
|
4
4
|
require 'more_math'
|
5
5
|
|
6
|
-
class
|
6
|
+
class CantorPairingFunctionTest < Test::Unit::TestCase
|
7
7
|
include MoreMath::Functions
|
8
8
|
|
9
9
|
def test_cantor_pairing_function
|
@@ -1,12 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'test_helper'
|
4
4
|
require 'more_math'
|
5
5
|
|
6
|
-
class
|
6
|
+
class ContinuedFractionTest < Test::Unit::TestCase
|
7
7
|
include MoreMath
|
8
8
|
|
9
9
|
def setup
|
10
|
+
@zero = ContinuedFraction.for_a([-1,2,3]).for_b([2,3,3])
|
10
11
|
@none1 = ContinuedFraction.for_a proc {}
|
11
12
|
@none2 = ContinuedFraction.for_a {}
|
12
13
|
@phi = ContinuedFraction.new
|
@@ -25,6 +26,7 @@ class TestContinuedFraction < Test::Unit::TestCase
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def test_continued_fractions
|
29
|
+
assert @zero[].zero?
|
28
30
|
assert @none1[1].nan?
|
29
31
|
assert @none2[1].nan?
|
30
32
|
assert_in_delta 1.618033, @phi[], 1E-6
|
@@ -37,4 +39,16 @@ class TestContinuedFraction < Test::Unit::TestCase
|
|
37
39
|
assert_in_delta Math.atan(0.5), @atan[0.5], 1E-10
|
38
40
|
assert_in_delta Math::PI, @pi[], 1E-10
|
39
41
|
end
|
42
|
+
|
43
|
+
def test_invalid_arguments
|
44
|
+
assert_raise(ArgumentError) { ContinuedFraction.for_a }
|
45
|
+
assert_raise(ArgumentError) { ContinuedFraction.for_b }
|
46
|
+
end
|
47
|
+
|
48
|
+
|
49
|
+
def test_to_proc
|
50
|
+
atan = @atan.to_proc
|
51
|
+
assert_kind_of Proc, atan
|
52
|
+
assert_in_delta Math::PI, 4 * atan[1], 1E-10
|
53
|
+
end
|
40
54
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'test_helper'
|
4
4
|
require 'more_math'
|
5
5
|
|
6
|
-
class
|
6
|
+
class DistributionTest < Test::Unit::TestCase
|
7
7
|
include MoreMath
|
8
8
|
|
9
9
|
def setup
|
@@ -44,6 +44,7 @@ class TestDistribution < Test::Unit::TestCase
|
|
44
44
|
ps.zip(zs) do |p, z|
|
45
45
|
assert_in_delta(-z, std.inverse_probability(1 - p), 1E-2)
|
46
46
|
end
|
47
|
+
assert_in_delta 0, std.inverse_probability(0.5), 1E-6
|
47
48
|
end
|
48
49
|
|
49
50
|
def test_chisquaredistribution
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'test_helper'
|
4
4
|
require 'more_math'
|
5
5
|
|
6
|
-
class
|
6
|
+
class NumberifyStringFunctionTest < Test::Unit::TestCase
|
7
7
|
include MoreMath::Functions
|
8
8
|
|
9
9
|
def test_log_ceil
|
@@ -37,6 +37,8 @@ class TestNumberifyStringFunction < Test::Unit::TestCase
|
|
37
37
|
assert_equal 3, numberify_string('c', 'abc')
|
38
38
|
assert_equal 4, numberify_string('aa', 'abc')
|
39
39
|
assert_equal 5, numberify_string('ab', 'abc')
|
40
|
+
assert_equal 5, numberify_string('ab', %w[a b c])
|
41
|
+
assert_equal 5, numberify_string('ab', 'a'..'c')
|
40
42
|
end
|
41
43
|
|
42
44
|
def test_numberify_string_inv_function
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'test_helper'
|
4
4
|
require 'more_math'
|
5
5
|
|
6
|
-
class
|
6
|
+
class SequenceTest < Test::Unit::TestCase
|
7
7
|
include MoreMath
|
8
8
|
|
9
9
|
def setup
|
@@ -184,6 +184,7 @@ class TestSequence < Test::Unit::TestCase
|
|
184
184
|
assert_in_delta 0.3, @flat.median, 1E-8
|
185
185
|
assert_in_delta 0.3, @flat.percentile(75), 1E-8
|
186
186
|
assert_equal 100, @flat.histogram(10).to_a.first[1]
|
187
|
+
assert @flat.linear_regression.residues.all? { |r| r.abs <= 1E-6 }
|
187
188
|
end
|
188
189
|
|
189
190
|
def test_half
|
@@ -202,6 +203,7 @@ class TestSequence < Test::Unit::TestCase
|
|
202
203
|
assert_in_delta 37.375, @half.percentile(75), 1E-8
|
203
204
|
assert_equal [10] * 10, counts = @half.histogram(10).to_a.transpose[1]
|
204
205
|
assert_equal 100, counts.inject { |s, x| s + x }
|
206
|
+
assert @half.linear_regression.residues.all? { |r| r.abs <= 0.5 }
|
205
207
|
end
|
206
208
|
|
207
209
|
def test_rand
|
@@ -285,6 +287,7 @@ class TestSequence < Test::Unit::TestCase
|
|
285
287
|
assert_equal [3, 4, 9, 12, 18, 14, 4, 5, 0, 1],
|
286
288
|
counts = @book.histogram(10).to_a.transpose[1]
|
287
289
|
assert_equal 70, counts.inject { |s, x| s + x }
|
290
|
+
assert @flat.linear_regression.residues.all? { |r| r.abs <= 1E-6 }
|
288
291
|
end
|
289
292
|
|
290
293
|
def test_cover
|
@@ -0,0 +1,65 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'test_helper'
|
4
|
+
require 'more_math'
|
5
|
+
|
6
|
+
class StringNumeralTest < Test::Unit::TestCase
|
7
|
+
include MoreMath
|
8
|
+
|
9
|
+
def test_equality
|
10
|
+
s = StringNumeral.from('abc')
|
11
|
+
t = 731.to_string_numeral
|
12
|
+
u = StringNumeral(:abc)
|
13
|
+
assert_equal t, s
|
14
|
+
assert_equal 'abc', s
|
15
|
+
assert_equal u, t
|
16
|
+
assert_equal s, u
|
17
|
+
assert_equal s.hash, t.hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_displaying
|
21
|
+
s = StringNumeral.from('abc')
|
22
|
+
assert_equal 'abc', s.string
|
23
|
+
assert_equal 'abc', s.to_s
|
24
|
+
assert_equal 'abc', s.to_str
|
25
|
+
assert_equal 731, s.to_i
|
26
|
+
assert_equal 731, s.to_int
|
27
|
+
assert_equal '#<MoreMath::StringNumeral: "abc" 731>', s.inspect
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_succ
|
31
|
+
s = StringNumeral.from('abc', 'abc')
|
32
|
+
t = s.succ
|
33
|
+
assert_equal 'aca', t.string
|
34
|
+
s.succ!
|
35
|
+
assert_equal 'aca', s.string
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_pred
|
39
|
+
s = StringNumeral.from('aca', 'abc')
|
40
|
+
t = s.pred
|
41
|
+
assert_equal 'abc', t.string
|
42
|
+
s.pred!
|
43
|
+
assert_equal 'abc', s.string
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_arithmetics
|
47
|
+
s = StringNumeral.from('abc', 'abc')
|
48
|
+
assert_equal 54, 3 * s
|
49
|
+
assert_equal 54, s * 3
|
50
|
+
assert_equal 6, s / 3
|
51
|
+
assert_equal 3, 54 / s
|
52
|
+
assert_equal 19, s + 1
|
53
|
+
assert_equal 19, 1 + s
|
54
|
+
assert_equal 17, s - 1
|
55
|
+
assert_equal 1, 19 - s
|
56
|
+
assert_equal 324, s ** 2
|
57
|
+
assert_equal 0, s % 2
|
58
|
+
assert_equal 9, s >> 1
|
59
|
+
assert_equal 36, s << 1
|
60
|
+
assert_equal 2, s ^ 16
|
61
|
+
assert_equal 19, s | 1
|
62
|
+
assert_equal 2, s & 2
|
63
|
+
assert_equal 1, s[1]
|
64
|
+
end
|
65
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'test_helper'
|
4
4
|
require 'more_math'
|
5
5
|
|
6
|
-
class
|
6
|
+
class SubsetTest < Test::Unit::TestCase
|
7
7
|
include MoreMath
|
8
8
|
|
9
9
|
def test_empty_set
|
@@ -15,7 +15,8 @@ class TestSubset < Test::Unit::TestCase
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def test_three_element_set
|
18
|
-
|
19
|
-
|
18
|
+
expected = [[], [1], [2], [1, 2], [3], [1, 3], [2, 3], [1, 2, 3]]
|
19
|
+
assert_equal expected, Subset.for([1, 2, 3]).map(&:value)
|
20
|
+
assert_equal expected, Subset.power_set([1, 2, 3])
|
20
21
|
end
|
21
22
|
end
|
metadata
CHANGED
@@ -1,44 +1,60 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: more_math
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Florian Frank
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-12-25 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: gem_hadar
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 19
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 1
|
32
|
+
- 4
|
33
|
+
version: 0.1.4
|
22
34
|
type: :development
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
26
37
|
name: tins
|
27
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
40
|
none: false
|
29
|
-
requirements:
|
41
|
+
requirements:
|
30
42
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 13
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 3
|
48
|
+
version: "0.3"
|
33
49
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
description: Library that provides more mathematical functions/algorithms than standard
|
37
|
-
Ruby.
|
50
|
+
version_requirements: *id002
|
51
|
+
description: Library that provides more mathematical functions/algorithms than standard Ruby.
|
38
52
|
email: flori@ping.de
|
39
53
|
executables: []
|
54
|
+
|
40
55
|
extensions: []
|
41
|
-
|
56
|
+
|
57
|
+
extra_rdoc_files:
|
42
58
|
- README.rdoc
|
43
59
|
- lib/more_math/cantor_pairing_function.rb
|
44
60
|
- lib/more_math/version.rb
|
@@ -57,7 +73,7 @@ extra_rdoc_files:
|
|
57
73
|
- lib/more_math/permutation.rb
|
58
74
|
- lib/more_math/continued_fraction.rb
|
59
75
|
- lib/more_math.rb
|
60
|
-
files:
|
76
|
+
files:
|
61
77
|
- .gitignore
|
62
78
|
- .travis.yml
|
63
79
|
- CHANGES
|
@@ -84,52 +100,64 @@ files:
|
|
84
100
|
- lib/more_math/subset.rb
|
85
101
|
- lib/more_math/version.rb
|
86
102
|
- more_math.gemspec
|
87
|
-
- tests/
|
88
|
-
- tests/
|
89
|
-
- tests/
|
90
|
-
- tests/
|
91
|
-
- tests/
|
92
|
-
- tests/
|
93
|
-
- tests/
|
94
|
-
- tests/
|
95
|
-
- tests/
|
96
|
-
- tests/
|
103
|
+
- tests/cantor_pairing_function_test.rb
|
104
|
+
- tests/continued_fraction_test.rb
|
105
|
+
- tests/distribution_test.rb
|
106
|
+
- tests/functions_test.rb
|
107
|
+
- tests/histogram_test.rb
|
108
|
+
- tests/newton_bisection_test.rb
|
109
|
+
- tests/numberify_string_function_test.rb
|
110
|
+
- tests/permutation_test.rb
|
111
|
+
- tests/sequence_test.rb
|
112
|
+
- tests/string_numeral_test.rb
|
113
|
+
- tests/subset_test.rb
|
114
|
+
- tests/test_helper.rb
|
97
115
|
homepage: http://flori.github.com/more_math
|
98
116
|
licenses: []
|
117
|
+
|
99
118
|
post_install_message:
|
100
|
-
rdoc_options:
|
119
|
+
rdoc_options:
|
101
120
|
- --title
|
102
121
|
- MoreMath -- More Math in Ruby
|
103
122
|
- --main
|
104
123
|
- README.rdoc
|
105
|
-
require_paths:
|
124
|
+
require_paths:
|
106
125
|
- lib
|
107
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
127
|
none: false
|
109
|
-
requirements:
|
110
|
-
- -
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
|
113
|
-
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
136
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 3
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
version: "0"
|
119
144
|
requirements: []
|
145
|
+
|
120
146
|
rubyforge_project:
|
121
|
-
rubygems_version: 1.8.
|
147
|
+
rubygems_version: 1.8.13
|
122
148
|
signing_key:
|
123
149
|
specification_version: 3
|
124
150
|
summary: Library that provides more mathematics.
|
125
|
-
test_files:
|
126
|
-
- tests/
|
127
|
-
- tests/
|
128
|
-
- tests/
|
129
|
-
- tests/
|
130
|
-
- tests/
|
131
|
-
- tests/
|
132
|
-
- tests/
|
133
|
-
- tests/
|
134
|
-
- tests/
|
135
|
-
- tests/
|
151
|
+
test_files:
|
152
|
+
- tests/subset_test.rb
|
153
|
+
- tests/sequence_test.rb
|
154
|
+
- tests/histogram_test.rb
|
155
|
+
- tests/string_numeral_test.rb
|
156
|
+
- tests/cantor_pairing_function_test.rb
|
157
|
+
- tests/distribution_test.rb
|
158
|
+
- tests/permutation_test.rb
|
159
|
+
- tests/continued_fraction_test.rb
|
160
|
+
- tests/numberify_string_function_test.rb
|
161
|
+
- tests/functions_test.rb
|
162
|
+
- tests/test_helper.rb
|
163
|
+
- tests/newton_bisection_test.rb
|