Top Level Namespace
Defined Under Namespace
Modules: BigMath, Jacobian, Kernel, LUSolve, Newton Classes: BigDecimal, Complex, Float, Function, Integer, NilClass, Rational, String
Instance Method Summary collapse
Methods included from Newton
Methods included from Jacobian
Methods included from LUSolve
Methods included from BigMath
E, PI, atan, cos, exp, log, sin, sqrt
Instance Method Details
#check_bigdecimal_version(gemspec_path) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'extconf.rb', line 4 def check_bigdecimal_version(gemspec_path) "checking RUBY_BIGDECIMAL_VERSION... " bigdecimal_version = IO.readlines(gemspec_path) .grep(/\Abigdecimal_version\s+=\s+/)[0][/\'([^\']+)\'/, 1] version_components = bigdecimal_version.split('.') bigdecimal_version = version_components[0, 3].join('.') bigdecimal_version << "-#{version_components[3]}" if version_components[3] $defs << %Q[-DRUBY_BIGDECIMAL_VERSION=\\"#{bigdecimal_version}\\"] "#{bigdecimal_version}\n" end |
#rd_order(na) ⇒ Object
25 26 27 28 |
# File 'sample/linear.rb', line 25 def rd_order(na) printf("Number of equations ?") if(na <= 0) n = ARGF.gets().to_i end |