Sha256: a3d6800a333ce68aa2ab2a32bdff65f692f000706f20ac739dbaec8151fce305
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
module Hilbert 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 when :inter Dydx::API.store_func(eval(var), eval(formula), :tmp) Dydx::API.eval_func(eval(close_to) + Float::EPSILON ** 20, :tmp) else fail "List is not implemented for #{$meta_info.lang_str}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hilbert-0.0.2700100 | lib/hilbert/api/limit_api.rb |