Sha256: 457c37b0f45b2901299e017e518c5a8d3a768956c3a0b6d6a485a355c262ca1d
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 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 "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hilbert-0.0.2700100 | lib/hilbert/api/sigma_api.rb |
hilbert-0.0.2700001 | lib/hilbert/api/sigma_api.rb |