add substitution and differentiation
This commit is contained in:
@@ -50,7 +50,7 @@ module RubyAlgebra
|
||||
@locals[command.lhs] = result
|
||||
return "#{command.lhs} = #{result}"
|
||||
when :subs
|
||||
result = operand1.evaluate(operand2)
|
||||
result = operand1.substitute(operand2)
|
||||
@locals[command.lhs] = result
|
||||
return "#{command.lhs} = #{result}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user