lib/hilbert/api/sigma_api.rb in hilbert-0.0.2700100 vs lib/hilbert/api/sigma_api.rb in hilbert-0.0.2700110
- old
+ new
@@ -3,9 +3,10 @@
module SigmaApi
def self.execute(formula, var, from, to)
case $meta_info.lang
# TODO: I know what you want to say.
when :ruby
+ Dydx::API.reset!
"temp_cal_f(#{var}) <= #{formula};
(#{from}..#{to}).inject(0) {|sum, i| sum+=temp_cal_f(i) }"
else
fail "List is not implemented for #{$meta_info.lang_str}"
end