Top Level Namespace

Includes:
BigMath, LUSolve, Newton

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

nlsolve, norm

Methods included from Jacobian

dfdxi, isEqual, jacobian

Methods included from LUSolve

ludecomp, 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)
  message "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}\\"]

  message "#{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