Sha256: 41ddb21484f518589b673c171365f6922740103bbc2a136234f41b86f9fec9fd

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

module Qlang
  module Api
    module LimitApi
      def self.execute(formula, var, close_to)
        case $meta_info.lang
        # TODO: I know what you want to say.......!
        when :ruby
          case close_to
          when 'oo'
            "temp_cal_f(#{var}) <= #{formula};
             temp_cal_f(100000)"
          else
            "temp_cal_f(#{var}) <= #{formula};
             temp_cal_f(#{close_to} + Float::EPSILON ** 20)"
          end
        else
          fail "List is not implemented for #{$meta_info.lang_str}"
        end
      end
   end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qlang-0.0.27182123 lib/qlang/api/limit_api.rb
qlang-0.0.27182122 lib/qlang/api/limit_api.rb
qlang-0.0.27182121 lib/qlang/api/limit_api.rb
qlang-0.0.27182120 lib/qlang/api/limit_api.rb