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
#have_builtin_func(name, check_expr, opt = "", &b) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'extconf.rb', line 4 def have_builtin_func(name, check_expr, opt = "", &b) checking_for (name.funcall_style, nil, opt) do if try_compile(<<SRC, opt, &b) int foo; int main() { #{check_expr}; return 0; } SRC $defs.push(format("-DHAVE_BUILTIN_%s", name.tr_cpp)) true else false end end 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 |