Module: Hilbert::Api::IntegralApi

Defined in:
lib/hilbert/api/integral_api.rb

Class Method Summary collapse

Class Method Details

.execute(func, delta, range) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/hilbert/api/integral_api.rb', line 4

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