symbolic 0.1.7 → 0.1.8

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/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.7'
8
+ gem.version = '0.1.8'
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"
@@ -12,6 +12,10 @@ module Symbolic
12
12
  Math.send @operation, @variable.value if undefined_variables.empty?
13
13
  end
14
14
 
15
+ def variables
16
+ @variable.variables
17
+ end
18
+
15
19
  def undefined_variables
16
20
  @variable.undefined_variables
17
21
  end
@@ -26,7 +26,7 @@ module Symbolic
26
26
  end
27
27
 
28
28
  def variables
29
- [@variable]
29
+ @variable.variables
30
30
  end
31
31
 
32
32
  def undefined_variables
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - brainopia