Sha256: 45675ccfe327abf545b418d9d169b744a455bb06e6e1e19a8c8b483ab1531daf

Contents?: true

Size: 451 Bytes

Versions: 7

Compression:

Stored size: 451 Bytes

Contents

module Hilbert
  module Api
    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
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hilbert-0.0.2700420 lib/hilbert/api/sigma_api.rb
hilbert-0.0.2700410 lib/hilbert/api/sigma_api.rb
hilbert-0.0.2700400 lib/hilbert/api/sigma_api.rb
hilbert-0.0.2700320 lib/hilbert/api/sigma_api.rb
hilbert-0.0.2700300 lib/hilbert/api/sigma_api.rb
hilbert-0.0.2700210 lib/hilbert/api/sigma_api.rb
hilbert-0.0.2700110 lib/hilbert/api/sigma_api.rb