symbolic 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "symbolic"
8
- gem.version = '0.1.5'
8
+ gem.version = '0.1.6'
9
9
  gem.summary = 'Symbolic math for ruby'
10
10
  gem.description = %Q{Symbolic math can be really helpful if you want to simplify some giant equation or if you don't want to get a performance hit re-evaluating big math expressions every time when few variables change.}
11
11
  gem.email = "ravwar@gmail.com"
@@ -0,0 +1,5 @@
1
+ class Matrix
2
+ def value
3
+ map {|it| it.value }
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class Numeric
2
+ def value
3
+ self
4
+ end
5
+ end
@@ -23,4 +23,7 @@ require 'symbolic/variable'
23
23
  require 'symbolic/expression'
24
24
  require 'symbolic/method'
25
25
  require 'symbolic/unary_minus'
26
- require 'extensions/kernel'
26
+
27
+ require 'extensions/kernel'
28
+ require 'extensions/numeric'
29
+ require 'extensions/matrix'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: symbolic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - brainopia
@@ -35,6 +35,8 @@ files:
35
35
  - README.rdoc
36
36
  - Rakefile
37
37
  - lib/extensions/kernel.rb
38
+ - lib/extensions/matrix.rb
39
+ - lib/extensions/numeric.rb
38
40
  - lib/symbolic.rb
39
41
  - lib/symbolic/core.rb
40
42
  - lib/symbolic/expression.rb