Sha256: 9531f357472ef0c3bc80c2f5c6a2155e4c08432a438a64c91223c8efceae102c

Contents?: true

Size: 371 Bytes

Versions: 9

Compression:

Stored size: 371 Bytes

Contents

module Hilbert
  module Api
    module IntegralApi
      def execute(func, delta, range)
        a, b = range.split('..')
        case $meta_info.lang
        when :ruby
          "S(#{func}, #{delta})[#{a}, #{b}]"
        else
          fail "Integral is not implemented for #{$meta_info.lang_str}"
        end
      end
      module_function :execute
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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