rb-gsl 1.16.0.4 → 1.16.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -0
- data/.travis.yml +24 -0
- data/AUTHORS +6 -0
- data/COPYING +341 -339
- data/ChangeLog +608 -587
- data/Gemfile +4 -0
- data/README.md +77 -0
- data/Rakefile +14 -33
- data/THANKS +1 -1
- data/examples/blas/blas.rb +1 -1
- data/examples/bspline.rb +3 -3
- data/examples/complex/functions.rb +4 -4
- data/examples/complex/mul.rb +1 -1
- data/examples/const/physconst.rb +4 -4
- data/examples/const/travel.rb +4 -4
- data/examples/eigen/nonsymmv.rb +1 -1
- data/examples/eigen/qhoscillator.rb +3 -3
- data/examples/fft/radix2.rb +1 -1
- data/examples/fft/real-halfcomplex.rb +3 -3
- data/examples/fft/real-halfcomplex2.rb +3 -3
- data/examples/fit/expfit.rb +1 -1
- data/examples/fit/multifit.rb +1 -1
- data/examples/fit/ndlinear.rb +44 -44
- data/examples/fit/nonlinearfit.rb +1 -1
- data/examples/fit/wlinear.rb +3 -3
- data/examples/function/function.rb +1 -1
- data/examples/function/min.rb +1 -1
- data/examples/function/synchrotron.rb +2 -2
- data/examples/gallery/koch.rb +1 -1
- data/examples/histogram/cauchy.rb +2 -2
- data/examples/histogram/exponential.rb +1 -1
- data/examples/histogram/histo3d.rb +1 -1
- data/examples/histogram/histogram-pdf.rb +2 -2
- data/examples/histogram/xexp.rb +1 -1
- data/examples/integration/ahmed.rb +2 -2
- data/examples/integration/cosmology.rb +7 -7
- data/examples/integration/friedmann.rb +4 -4
- data/examples/integration/qng.rb +1 -1
- data/examples/interp/demo.rb +2 -2
- data/examples/linalg/LQ_solve.rb +1 -1
- data/examples/linalg/LU.rb +1 -1
- data/examples/linalg/LU2.rb +1 -1
- data/examples/linalg/LU_narray.rb +1 -1
- data/examples/linalg/PTLQ.rb +1 -1
- data/examples/linalg/QRPT.rb +1 -1
- data/examples/linalg/chol.rb +1 -1
- data/examples/linalg/chol_narray.rb +1 -1
- data/examples/linalg/complex.rb +1 -1
- data/examples/math/elementary.rb +1 -1
- data/examples/math/functions.rb +1 -1
- data/examples/math/inf_nan.rb +1 -1
- data/examples/math/minmax.rb +1 -1
- data/examples/math/power.rb +1 -1
- data/examples/math/test.rb +1 -1
- data/examples/min.rb +1 -1
- data/examples/multimin/bundle.rb +1 -1
- data/examples/multimin/cqp.rb +17 -17
- data/examples/multiroot/fsolver3.rb +1 -1
- data/examples/odeiv/binarysystem.rb +12 -12
- data/examples/odeiv/demo.rb +3 -3
- data/examples/odeiv/frei1.rb +7 -7
- data/examples/odeiv/frei2.rb +4 -4
- data/examples/odeiv/oscillator.rb +1 -1
- data/examples/odeiv/sedov.rb +3 -3
- data/examples/odeiv/whitedwarf.rb +11 -11
- data/examples/permutation/ex1.rb +2 -2
- data/examples/permutation/permutation.rb +1 -1
- data/examples/poly/demo.rb +1 -1
- data/examples/random/diffusion.rb +1 -1
- data/examples/random/generator.rb +2 -2
- data/examples/random/randomwalk.rb +3 -3
- data/examples/random/rng.rb +1 -1
- data/examples/roots/bisection.rb +1 -1
- data/examples/roots/brent.rb +1 -1
- data/examples/roots/demo.rb +1 -1
- data/examples/roots/newton.rb +2 -2
- data/examples/roots/recombination.gp +0 -1
- data/examples/sf/hyperg.rb +1 -1
- data/examples/sf/sphbessel.rb +1 -1
- data/examples/sort/sort.rb +1 -1
- data/examples/tamu_anova.rb +4 -4
- data/examples/vector/add.rb +1 -1
- data/examples/vector/decimate.rb +1 -1
- data/examples/vector/gnuplot.rb +8 -8
- data/examples/vector/vector.rb +2 -2
- data/examples/wavelet/wavelet1.rb +1 -1
- data/ext/{gsl → gsl_native}/alf.c +9 -9
- data/ext/{gsl → gsl_native}/array.c +64 -151
- data/ext/{gsl → gsl_native}/array_complex.c +61 -63
- data/ext/{gsl → gsl_native}/blas.c +0 -0
- data/ext/{gsl → gsl_native}/blas1.c +32 -32
- data/ext/{gsl → gsl_native}/blas2.c +54 -58
- data/ext/{gsl → gsl_native}/blas3.c +54 -54
- data/ext/{gsl → gsl_native}/block.c +3 -6
- data/ext/{gsl/block_source.c → gsl_native/block_source.h} +109 -111
- data/ext/gsl_native/bspline.c +122 -0
- data/ext/{gsl → gsl_native}/bundle.c +0 -0
- data/ext/{gsl → gsl_native}/cdf.c +76 -88
- data/ext/{gsl → gsl_native}/cheb.c +74 -85
- data/ext/{gsl → gsl_native}/combination.c +9 -16
- data/ext/{gsl → gsl_native}/common.c +7 -37
- data/ext/{gsl → gsl_native}/complex.c +113 -115
- data/ext/gsl_native/const.c +331 -0
- data/ext/{gsl → gsl_native}/const_additional.c +12 -33
- data/ext/gsl_native/cqp.c +283 -0
- data/ext/{gsl → gsl_native}/deriv.c +22 -30
- data/ext/{gsl → gsl_native}/dht.c +20 -28
- data/ext/{gsl → gsl_native}/diff.c +23 -25
- data/ext/{gsl → gsl_native}/dirac.c +44 -45
- data/ext/{gsl → gsl_native}/eigen.c +1031 -1082
- data/ext/{gsl → gsl_native}/error.c +13 -13
- data/ext/{gsl → gsl_native}/extconf.rb +5 -13
- data/ext/{gsl → gsl_native}/fft.c +192 -198
- data/ext/{gsl → gsl_native}/fit.c +16 -16
- data/ext/gsl_native/fresnel.c +312 -0
- data/ext/{gsl → gsl_native}/function.c +29 -35
- data/ext/{gsl → gsl_native}/geometry.c +15 -15
- data/ext/{gsl → gsl_native}/graph.c +37 -87
- data/ext/{gsl → gsl_native}/gsl.c +10 -23
- data/ext/{gsl → gsl_native}/gsl_narray.c +15 -24
- data/ext/{gsl → gsl_native}/histogram.c +123 -150
- data/ext/{gsl → gsl_native}/histogram2d.c +71 -96
- data/ext/{gsl → gsl_native}/histogram3d.c +72 -72
- data/ext/{gsl → gsl_native}/histogram3d_source.c +195 -196
- data/ext/{gsl → gsl_native}/histogram_find.c +31 -33
- data/ext/{gsl → gsl_native}/histogram_oper.c +43 -52
- data/ext/{gsl → gsl_native}/ieee.c +7 -15
- data/ext/{gsl → gsl_native}/include/rb_gsl.h +0 -7
- data/ext/{gsl → gsl_native}/include/rb_gsl_array.h +15 -25
- data/ext/{gsl → gsl_native}/include/rb_gsl_cheb.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_common.h +44 -52
- data/ext/{gsl → gsl_native}/include/rb_gsl_complex.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_const.h +0 -5
- data/ext/{gsl → gsl_native}/include/rb_gsl_dirac.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_eigen.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_fft.h +0 -3
- data/ext/{gsl → gsl_native}/include/rb_gsl_fit.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_function.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_graph.h +2 -2
- data/ext/{gsl → gsl_native}/include/rb_gsl_histogram.h +8 -8
- data/ext/{gsl → gsl_native}/include/rb_gsl_histogram3d.h +50 -50
- data/ext/{gsl → gsl_native}/include/rb_gsl_integration.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_interp.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_linalg.h +0 -1
- data/ext/{gsl → gsl_native}/include/rb_gsl_math.h +0 -4
- data/ext/{gsl → gsl_native}/include/rb_gsl_odeiv.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_poly.h +3 -3
- data/ext/{gsl → gsl_native}/include/rb_gsl_rational.h +1 -1
- data/ext/{gsl → gsl_native}/include/rb_gsl_rng.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_root.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_sf.h +39 -43
- data/ext/{gsl → gsl_native}/include/rb_gsl_statistics.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_tensor.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_with_narray.h +0 -0
- data/ext/{gsl → gsl_native}/include/templates_off.h +0 -0
- data/ext/{gsl → gsl_native}/include/templates_on.h +1 -1
- data/ext/{gsl → gsl_native}/integration.c +160 -183
- data/ext/{gsl → gsl_native}/interp.c +23 -31
- data/ext/gsl_native/jacobi.c +733 -0
- data/ext/{gsl → gsl_native}/linalg.c +448 -576
- data/ext/{gsl → gsl_native}/linalg_complex.c +84 -98
- data/ext/{gsl → gsl_native}/math.c +45 -63
- data/ext/{gsl → gsl_native}/matrix.c +4 -6
- data/ext/{gsl → gsl_native}/matrix_complex.c +111 -114
- data/ext/{gsl → gsl_native}/matrix_double.c +74 -77
- data/ext/{gsl → gsl_native}/matrix_int.c +49 -50
- data/ext/{gsl/matrix_source.c → gsl_native/matrix_source.h} +280 -302
- data/ext/{gsl → gsl_native}/min.c +43 -74
- data/ext/{gsl → gsl_native}/monte.c +45 -59
- data/ext/{gsl → gsl_native}/multifit.c +138 -147
- data/ext/{gsl → gsl_native}/multimin.c +55 -83
- data/ext/{gsl → gsl_native}/multimin_fsdf.c +15 -15
- data/ext/{gsl → gsl_native}/multiroots.c +61 -64
- data/ext/{gsl → gsl_native}/multiset.c +3 -7
- data/ext/{gsl → gsl_native}/ndlinear.c +320 -321
- data/ext/{gsl → gsl_native}/nmf.c +11 -11
- data/ext/{gsl → gsl_native}/nmf_wrap.c +1 -1
- data/ext/{gsl → gsl_native}/ntuple.c +13 -13
- data/ext/{gsl → gsl_native}/odeiv.c +95 -106
- data/ext/gsl_native/ool.c +879 -0
- data/ext/{gsl → gsl_native}/permutation.c +36 -34
- data/ext/{gsl → gsl_native}/poly.c +2 -5
- data/ext/{gsl → gsl_native}/poly2.c +6 -6
- data/ext/{gsl/poly_source.c → gsl_native/poly_source.h} +232 -275
- data/ext/{gsl → gsl_native}/qrng.c +6 -17
- data/ext/{gsl → gsl_native}/randist.c +218 -243
- data/ext/{gsl → gsl_native}/rational.c +9 -9
- data/ext/{gsl → gsl_native}/rng.c +29 -45
- data/ext/{gsl → gsl_native}/root.c +43 -43
- data/ext/{gsl → gsl_native}/sf.c +163 -197
- data/ext/{gsl → gsl_native}/sf_airy.c +0 -0
- data/ext/{gsl → gsl_native}/sf_bessel.c +6 -6
- data/ext/{gsl → gsl_native}/sf_clausen.c +0 -0
- data/ext/{gsl → gsl_native}/sf_coulomb.c +39 -39
- data/ext/{gsl → gsl_native}/sf_coupling.c +29 -29
- data/ext/{gsl → gsl_native}/sf_dawson.c +0 -0
- data/ext/{gsl → gsl_native}/sf_debye.c +0 -9
- data/ext/{gsl → gsl_native}/sf_dilog.c +0 -0
- data/ext/{gsl → gsl_native}/sf_elementary.c +2 -2
- data/ext/{gsl → gsl_native}/sf_ellint.c +42 -42
- data/ext/{gsl → gsl_native}/sf_elljac.c +2 -2
- data/ext/{gsl → gsl_native}/sf_erfc.c +0 -4
- data/ext/{gsl → gsl_native}/sf_exp.c +2 -2
- data/ext/{gsl → gsl_native}/sf_expint.c +1 -11
- data/ext/{gsl → gsl_native}/sf_fermi_dirac.c +0 -0
- data/ext/{gsl → gsl_native}/sf_gamma.c +1 -5
- data/ext/{gsl → gsl_native}/sf_gegenbauer.c +0 -0
- data/ext/{gsl → gsl_native}/sf_hyperg.c +0 -0
- data/ext/{gsl → gsl_native}/sf_laguerre.c +3 -3
- data/ext/{gsl → gsl_native}/sf_lambert.c +0 -0
- data/ext/{gsl → gsl_native}/sf_legendre.c +0 -0
- data/ext/{gsl → gsl_native}/sf_log.c +3 -3
- data/ext/gsl_native/sf_mathieu.c +235 -0
- data/ext/{gsl → gsl_native}/sf_power.c +0 -0
- data/ext/{gsl → gsl_native}/sf_psi.c +2 -11
- data/ext/{gsl → gsl_native}/sf_synchrotron.c +0 -0
- data/ext/{gsl → gsl_native}/sf_transport.c +0 -0
- data/ext/{gsl → gsl_native}/sf_trigonometric.c +3 -3
- data/ext/{gsl → gsl_native}/sf_zeta.c +0 -4
- data/ext/{gsl → gsl_native}/signal.c +60 -64
- data/ext/{gsl → gsl_native}/siman.c +36 -40
- data/ext/{gsl → gsl_native}/sort.c +3 -4
- data/ext/{gsl → gsl_native}/spline.c +25 -43
- data/ext/{gsl → gsl_native}/stats.c +102 -115
- data/ext/{gsl → gsl_native}/sum.c +32 -32
- data/ext/{gsl → gsl_native}/tamu_anova.c +0 -0
- data/ext/{gsl → gsl_native}/tensor.c +2 -4
- data/ext/{gsl/tensor_source.c → gsl_native/tensor_source.h} +144 -144
- data/ext/{gsl → gsl_native}/vector.c +2 -4
- data/ext/{gsl → gsl_native}/vector_complex.c +165 -171
- data/ext/{gsl → gsl_native}/vector_double.c +167 -174
- data/ext/{gsl → gsl_native}/vector_int.c +23 -25
- data/ext/{gsl/vector_source.c → gsl_native/vector_source.h} +400 -414
- data/ext/{gsl → gsl_native}/wavelet.c +215 -236
- data/lib/gsl.rb +1 -7
- data/lib/gsl/gnuplot.rb +2 -2
- data/lib/gsl/version.rb +1 -3
- data/rb-gsl.gemspec +29 -0
- data/rdoc/blas.rdoc +3 -3
- data/rdoc/bspline.rdoc +7 -7
- data/rdoc/cheb.rdoc +8 -8
- data/rdoc/cholesky_complex.rdoc +1 -1
- data/rdoc/combi.rdoc +9 -9
- data/rdoc/complex.rdoc +11 -11
- data/rdoc/const.rdoc +20 -20
- data/rdoc/dht.rdoc +6 -6
- data/rdoc/diff.rdoc +6 -6
- data/rdoc/ehandling.rdoc +3 -3
- data/rdoc/eigen.rdoc +11 -11
- data/rdoc/fft.rdoc +26 -26
- data/rdoc/fit.rdoc +18 -18
- data/rdoc/graph.rdoc +2 -2
- data/rdoc/hist.rdoc +16 -16
- data/rdoc/hist2d.rdoc +4 -4
- data/rdoc/hist3d.rdoc +3 -3
- data/rdoc/integration.rdoc +16 -16
- data/rdoc/interp.rdoc +11 -11
- data/rdoc/intro.rdoc +3 -3
- data/rdoc/linalg.rdoc +20 -20
- data/rdoc/linalg_complex.rdoc +1 -1
- data/rdoc/math.rdoc +13 -13
- data/rdoc/matrix.rdoc +22 -22
- data/rdoc/min.rdoc +9 -9
- data/rdoc/monte.rdoc +3 -3
- data/rdoc/multimin.rdoc +12 -12
- data/rdoc/multiroot.rdoc +12 -12
- data/rdoc/narray.rdoc +9 -9
- data/rdoc/ndlinear.rdoc +4 -4
- data/rdoc/nonlinearfit.rdoc +17 -17
- data/rdoc/ntuple.rdoc +5 -5
- data/rdoc/odeiv.rdoc +12 -12
- data/rdoc/perm.rdoc +11 -11
- data/rdoc/poly.rdoc +17 -17
- data/rdoc/qrng.rdoc +9 -9
- data/rdoc/randist.rdoc +10 -10
- data/rdoc/ref.rdoc +49 -49
- data/rdoc/rng.rdoc +9 -9
- data/rdoc/roots.rdoc +12 -12
- data/rdoc/sf.rdoc +35 -35
- data/rdoc/siman.rdoc +3 -3
- data/rdoc/sort.rdoc +6 -6
- data/rdoc/start.rdoc +2 -2
- data/rdoc/stats.rdoc +13 -13
- data/rdoc/sum.rdoc +4 -4
- data/rdoc/tensor.rdoc +3 -3
- data/rdoc/tut.rdoc +1 -1
- data/rdoc/use.rdoc +3 -3
- data/rdoc/vector.rdoc +28 -28
- data/rdoc/vector_complex.rdoc +6 -6
- data/rdoc/wavelet.rdoc +8 -8
- data/test/gsl/blas_test.rb +1 -1
- data/test/gsl/index_test.rb +61 -0
- data/test/gsl/matrix_test.rb +21 -0
- data/uncrustify.cfg +1693 -0
- metadata +212 -243
- data/README +0 -28
- data/ext/gsl/bspline.c +0 -130
- data/ext/gsl/const.c +0 -672
- data/ext/gsl/cqp.c +0 -283
- data/ext/gsl/fcmp.c +0 -64
- data/ext/gsl/fresnel.c +0 -312
- data/ext/gsl/jacobi.c +0 -739
- data/ext/gsl/ool.c +0 -879
- data/ext/gsl/oper_complex_source.c +0 -251
- data/ext/gsl/sf_mathieu.c +0 -238
- data/rdoc/index.rdoc +0 -50
File without changes
|
@@ -45,7 +45,7 @@ static VALUE rb_gsl_sf_bessel_Jn_e(VALUE obj, VALUE n, VALUE x)
|
|
45
45
|
}
|
46
46
|
|
47
47
|
static VALUE rb_gsl_sf_bessel_Xn_array(VALUE obj, VALUE n0, VALUE n1, VALUE x,
|
48
|
-
|
48
|
+
int (*f)(int, int, double, double[]))
|
49
49
|
{
|
50
50
|
int nmin, nmax, n;
|
51
51
|
gsl_vector *v = NULL;
|
@@ -167,7 +167,7 @@ static VALUE rb_gsl_sf_bessel_In_scaled_e(VALUE obj, VALUE n, VALUE x)
|
|
167
167
|
}
|
168
168
|
|
169
169
|
static VALUE rb_gsl_sf_bessel_In_scaled_array(VALUE obj, VALUE n0, VALUE n1,
|
170
|
-
|
170
|
+
VALUE x)
|
171
171
|
{
|
172
172
|
return rb_gsl_sf_bessel_Xn_array(obj, n0, n1, x, gsl_sf_bessel_In_scaled_array);
|
173
173
|
}
|
@@ -239,7 +239,7 @@ static VALUE rb_gsl_sf_bessel_Kn_scaled_e(VALUE obj, VALUE n, VALUE x)
|
|
239
239
|
}
|
240
240
|
|
241
241
|
static VALUE rb_gsl_sf_bessel_Kn_scaled_array(VALUE obj, VALUE n0, VALUE n1,
|
242
|
-
|
242
|
+
VALUE x)
|
243
243
|
{
|
244
244
|
return rb_gsl_sf_bessel_Xn_array(obj, n0, n1, x, gsl_sf_bessel_Kn_scaled_array);
|
245
245
|
}
|
@@ -286,7 +286,7 @@ static VALUE rb_gsl_sf_bessel_jl_e(VALUE obj, VALUE n, VALUE x)
|
|
286
286
|
}
|
287
287
|
|
288
288
|
static VALUE rb_gsl_sf_bessel_xl_array(VALUE obj, VALUE n1, VALUE x,
|
289
|
-
|
289
|
+
int (*f)(int, double, double[]))
|
290
290
|
{
|
291
291
|
int nmax, n;
|
292
292
|
// local variable "status" declared and set, but never used
|
@@ -446,7 +446,7 @@ static VALUE rb_gsl_sf_bessel_kl_scaled_e(VALUE obj, VALUE n, VALUE x)
|
|
446
446
|
}
|
447
447
|
|
448
448
|
static VALUE rb_gsl_sf_bessel_kl_scaled_array(VALUE obj, VALUE n1,
|
449
|
-
|
449
|
+
VALUE x)
|
450
450
|
{
|
451
451
|
return rb_gsl_sf_bessel_xl_array(obj, n1, x, gsl_sf_bessel_kl_scaled_array);
|
452
452
|
}
|
@@ -497,7 +497,7 @@ static VALUE rb_gsl_sf_bessel_sequence_Jnu_e(int argc, VALUE *argv, VALUE obj)
|
|
497
497
|
break;
|
498
498
|
default:
|
499
499
|
rb_raise(rb_eTypeError, "wrong argument type %s (String or Fixnum expected)",
|
500
|
-
|
500
|
+
rb_class2name(CLASS_OF(m)));
|
501
501
|
break;
|
502
502
|
}
|
503
503
|
default:
|
File without changes
|
@@ -23,15 +23,15 @@ static VALUE rb_gsl_sf_hydrogenicR_1_e(VALUE obj, VALUE Z, VALUE r)
|
|
23
23
|
return rb_gsl_sf_eval_e_double2(gsl_sf_hydrogenicR_1_e, Z, r);
|
24
24
|
}
|
25
25
|
|
26
|
-
static VALUE rb_gsl_sf_hydrogenicR(VALUE obj, VALUE n, VALUE l,
|
27
|
-
|
26
|
+
static VALUE rb_gsl_sf_hydrogenicR(VALUE obj, VALUE n, VALUE l,
|
27
|
+
VALUE Z, VALUE r)
|
28
28
|
{
|
29
29
|
return rb_float_new(gsl_sf_hydrogenicR(FIX2INT(n), FIX2INT(l),
|
30
|
-
|
30
|
+
NUM2DBL(Z), NUM2DBL(r)));
|
31
31
|
}
|
32
32
|
|
33
|
-
static VALUE rb_gsl_sf_hydrogenicR_e(VALUE obj, VALUE n, VALUE l,
|
34
|
-
|
33
|
+
static VALUE rb_gsl_sf_hydrogenicR_e(VALUE obj, VALUE n, VALUE l,
|
34
|
+
VALUE Z, VALUE r)
|
35
35
|
{
|
36
36
|
gsl_sf_result *rslt = NULL;
|
37
37
|
VALUE v;
|
@@ -41,12 +41,12 @@ static VALUE rb_gsl_sf_hydrogenicR_e(VALUE obj, VALUE n, VALUE l,
|
|
41
41
|
Need_Float(Z); Need_Float(r);
|
42
42
|
v = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, rslt);
|
43
43
|
/*status =*/ gsl_sf_hydrogenicR_e(FIX2INT(n), FIX2INT(l),
|
44
|
-
|
44
|
+
NUM2DBL(Z), NUM2DBL(r), rslt);
|
45
45
|
return v;
|
46
46
|
}
|
47
47
|
|
48
48
|
static VALUE rb_gsl_sf_coulomb_wave_FG_e(VALUE obj, VALUE eta, VALUE x,
|
49
|
-
|
49
|
+
VALUE L_F, VALUE k)
|
50
50
|
|
51
51
|
{
|
52
52
|
gsl_sf_result *F, *Fp, *G, *Gp;
|
@@ -60,13 +60,13 @@ static VALUE rb_gsl_sf_coulomb_wave_FG_e(VALUE obj, VALUE eta, VALUE x,
|
|
60
60
|
vG = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, G);
|
61
61
|
vGp = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, Gp);
|
62
62
|
status = gsl_sf_coulomb_wave_FG_e(NUM2DBL(eta), NUM2DBL(x), NUM2DBL(L_F),
|
63
|
-
|
63
|
+
FIX2INT(k), F, Fp, G, Gp, &exp_F, &exp_G);
|
64
64
|
return rb_ary_new3(7, vF, vFp, vG, vGp,
|
65
|
-
|
65
|
+
rb_float_new(exp_F), rb_float_new(exp_G), INT2FIX(status));
|
66
66
|
}
|
67
67
|
|
68
68
|
static VALUE rb_gsl_sf_coulomb_wave_F_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
69
|
-
|
69
|
+
VALUE eta, VALUE x)
|
70
70
|
{
|
71
71
|
double F_exponent;
|
72
72
|
int status;
|
@@ -76,15 +76,15 @@ static VALUE rb_gsl_sf_coulomb_wave_F_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
|
76
76
|
Need_Float(Lmin); Need_Float(eta); Need_Float(x);
|
77
77
|
size = FIX2INT(kmax);
|
78
78
|
v = gsl_vector_alloc(size);
|
79
|
-
status = gsl_sf_coulomb_wave_F_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
80
|
-
|
81
|
-
|
82
|
-
return rb_ary_new3(3, Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, v),
|
83
|
-
|
79
|
+
status = gsl_sf_coulomb_wave_F_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
80
|
+
NUM2DBL(x), v->data, &F_exponent);
|
81
|
+
|
82
|
+
return rb_ary_new3(3, Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, v),
|
83
|
+
rb_float_new(F_exponent), INT2FIX(status));
|
84
84
|
}
|
85
85
|
|
86
86
|
static VALUE rb_gsl_sf_coulomb_wave_FG_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
87
|
-
|
87
|
+
VALUE eta, VALUE x)
|
88
88
|
{
|
89
89
|
double F_exponent, G_exponent;
|
90
90
|
int status;
|
@@ -97,18 +97,18 @@ static VALUE rb_gsl_sf_coulomb_wave_FG_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
|
97
97
|
vf = gsl_vector_alloc(size);
|
98
98
|
vg = gsl_vector_alloc(size);
|
99
99
|
|
100
|
-
status = gsl_sf_coulomb_wave_FG_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
101
|
-
|
102
|
-
|
100
|
+
status = gsl_sf_coulomb_wave_FG_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
101
|
+
NUM2DBL(x), vf->data, vg->data,
|
102
|
+
&F_exponent, &G_exponent);
|
103
103
|
fary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vf);
|
104
104
|
gary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vf);
|
105
105
|
return rb_ary_new3(5, fary, gary,
|
106
|
-
|
107
|
-
|
106
|
+
rb_float_new(F_exponent), rb_float_new(G_exponent),
|
107
|
+
INT2FIX(status));
|
108
108
|
}
|
109
109
|
|
110
110
|
static VALUE rb_gsl_sf_coulomb_wave_FGp_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
111
|
-
|
111
|
+
VALUE eta, VALUE x)
|
112
112
|
{
|
113
113
|
double F_exponent, G_exponent;
|
114
114
|
int status;
|
@@ -123,21 +123,21 @@ static VALUE rb_gsl_sf_coulomb_wave_FGp_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
|
123
123
|
vg = gsl_vector_alloc(size);
|
124
124
|
vgp = gsl_vector_alloc(size);
|
125
125
|
|
126
|
-
status = gsl_sf_coulomb_wave_FGp_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
127
|
-
|
128
|
-
|
129
|
-
|
126
|
+
status = gsl_sf_coulomb_wave_FGp_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
127
|
+
NUM2DBL(x), vf->data, vfp->data,
|
128
|
+
vg->data, vgp->data,
|
129
|
+
&F_exponent, &G_exponent);
|
130
130
|
fary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vf);
|
131
|
-
fpary =Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vfp);
|
131
|
+
fpary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vfp);
|
132
132
|
gary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vg);
|
133
|
-
gpary =Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vgp);
|
133
|
+
gpary = Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, vgp);
|
134
134
|
return rb_ary_new3(7, fary, fpary, gary, gpary,
|
135
|
-
|
136
|
-
|
135
|
+
rb_float_new(F_exponent), rb_float_new(G_exponent),
|
136
|
+
INT2FIX(status));
|
137
137
|
}
|
138
138
|
|
139
139
|
static VALUE rb_gsl_sf_coulomb_wave_sphF_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
140
|
-
|
140
|
+
VALUE eta, VALUE x)
|
141
141
|
{
|
142
142
|
int status;
|
143
143
|
size_t size;
|
@@ -147,11 +147,11 @@ static VALUE rb_gsl_sf_coulomb_wave_sphF_array(VALUE obj, VALUE Lmin, VALUE kmax
|
|
147
147
|
size = FIX2INT(kmax);
|
148
148
|
v = gsl_vector_alloc(size);
|
149
149
|
v2 = gsl_vector_alloc(size);
|
150
|
-
status = gsl_sf_coulomb_wave_sphF_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
151
|
-
|
152
|
-
return rb_ary_new3(3, Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, v),
|
153
|
-
|
154
|
-
|
150
|
+
status = gsl_sf_coulomb_wave_sphF_array(NUM2DBL(Lmin), size, NUM2DBL(eta),
|
151
|
+
NUM2DBL(x), v->data, v2->data);
|
152
|
+
return rb_ary_new3(3, Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, v),
|
153
|
+
Data_Wrap_Struct(cgsl_vector, 0, gsl_vector_free, v2),
|
154
|
+
INT2FIX(status));
|
155
155
|
}
|
156
156
|
|
157
157
|
static VALUE rb_gsl_sf_coulomb_CL_e(VALUE obj, VALUE L, VALUE eta)
|
@@ -160,14 +160,14 @@ static VALUE rb_gsl_sf_coulomb_CL_e(VALUE obj, VALUE L, VALUE eta)
|
|
160
160
|
}
|
161
161
|
|
162
162
|
static VALUE rb_gsl_sf_coulomb_CL_array(VALUE obj, VALUE Lmin, VALUE kmax,
|
163
|
-
|
163
|
+
VALUE eta)
|
164
164
|
{
|
165
165
|
gsl_vector *v = NULL;
|
166
166
|
size_t size;
|
167
167
|
// local variable "status" declared and set, but never used
|
168
168
|
//int status;
|
169
169
|
CHECK_FIXNUM(kmax);
|
170
|
-
Need_Float(Lmin); Need_Float(eta);
|
170
|
+
Need_Float(Lmin); Need_Float(eta);
|
171
171
|
size = FIX2INT(kmax);
|
172
172
|
v = gsl_vector_alloc(size);
|
173
173
|
/*status =*/ gsl_sf_coulomb_CL_array(NUM2DBL(Lmin), size, NUM2DBL(eta), v->data);
|
@@ -191,7 +191,7 @@ void Init_gsl_sf_coulomb(VALUE module)
|
|
191
191
|
rb_define_module_function(module, "coulomb_CL_array", rb_gsl_sf_coulomb_CL_array, 3);
|
192
192
|
|
193
193
|
mgsl_sf_coulomb = rb_define_module_under(module, "Coulomb");
|
194
|
-
|
194
|
+
|
195
195
|
rb_define_module_function(mgsl_sf_coulomb, "hydrogenicR_1", rb_gsl_sf_hydrogenicR_1, 2);
|
196
196
|
rb_define_module_function(mgsl_sf_coulomb, "hydrogenicR_1_e", rb_gsl_sf_hydrogenicR_1_e, 2);
|
197
197
|
rb_define_module_function(mgsl_sf_coulomb, "hydrogenicR", rb_gsl_sf_hydrogenicR, 4);
|
@@ -12,16 +12,16 @@
|
|
12
12
|
|
13
13
|
#include "include/rb_gsl_sf.h"
|
14
14
|
|
15
|
-
static VALUE rb_gsl_sf_coupling_3j(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_ma, VALUE two_mb, VALUE two_mc)
|
15
|
+
static VALUE rb_gsl_sf_coupling_3j(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_ma, VALUE two_mb, VALUE two_mc)
|
16
16
|
{
|
17
17
|
CHECK_FIXNUM(two_ja); CHECK_FIXNUM(two_jb); CHECK_FIXNUM(two_jc);
|
18
18
|
CHECK_FIXNUM(two_ma); CHECK_FIXNUM(two_mb); CHECK_FIXNUM(two_mc);
|
19
19
|
return rb_float_new(gsl_sf_coupling_3j(FIX2INT(two_ja), FIX2INT(two_jb),
|
20
|
-
|
21
|
-
|
20
|
+
FIX2INT(two_jc), FIX2INT(two_ma),
|
21
|
+
FIX2INT(two_mb), FIX2INT(two_mc)));
|
22
22
|
}
|
23
23
|
|
24
|
-
static VALUE rb_gsl_sf_coupling_3j_e(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_ma, VALUE two_mb, VALUE two_mc)
|
24
|
+
static VALUE rb_gsl_sf_coupling_3j_e(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_ma, VALUE two_mb, VALUE two_mc)
|
25
25
|
{
|
26
26
|
gsl_sf_result *rslt = NULL;
|
27
27
|
VALUE v;
|
@@ -31,23 +31,23 @@ static VALUE rb_gsl_sf_coupling_3j_e(VALUE obj, VALUE two_ja, VALUE two_jb, VALU
|
|
31
31
|
CHECK_FIXNUM(two_ma); CHECK_FIXNUM(two_mb); CHECK_FIXNUM(two_mc);
|
32
32
|
v = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, rslt);
|
33
33
|
/*status =*/ gsl_sf_coupling_3j_e(FIX2INT(two_ja), FIX2INT(two_jb),
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
FIX2INT(two_jc), FIX2INT(two_ma),
|
35
|
+
FIX2INT(two_mb), FIX2INT(two_mc),
|
36
|
+
rslt);
|
37
37
|
|
38
38
|
return v;
|
39
39
|
}
|
40
40
|
|
41
|
-
static VALUE rb_gsl_sf_coupling_6j(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_jd, VALUE two_je, VALUE two_jf)
|
41
|
+
static VALUE rb_gsl_sf_coupling_6j(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_jd, VALUE two_je, VALUE two_jf)
|
42
42
|
{
|
43
43
|
CHECK_FIXNUM(two_ja); CHECK_FIXNUM(two_jb); CHECK_FIXNUM(two_jc);
|
44
44
|
CHECK_FIXNUM(two_jd); CHECK_FIXNUM(two_je); CHECK_FIXNUM(two_jf);
|
45
45
|
return rb_float_new(gsl_sf_coupling_6j(FIX2INT(two_ja), FIX2INT(two_jb),
|
46
|
-
|
47
|
-
|
46
|
+
FIX2INT(two_jc), FIX2INT(two_jd),
|
47
|
+
FIX2INT(two_je), FIX2INT(two_jf)));
|
48
48
|
}
|
49
49
|
|
50
|
-
static VALUE rb_gsl_sf_coupling_6j_e(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_jd, VALUE two_je, VALUE two_jf)
|
50
|
+
static VALUE rb_gsl_sf_coupling_6j_e(VALUE obj, VALUE two_ja, VALUE two_jb, VALUE two_jc, VALUE two_jd, VALUE two_je, VALUE two_jf)
|
51
51
|
{
|
52
52
|
gsl_sf_result *rslt = NULL;
|
53
53
|
VALUE v;
|
@@ -57,31 +57,31 @@ static VALUE rb_gsl_sf_coupling_6j_e(VALUE obj, VALUE two_ja, VALUE two_jb, VALU
|
|
57
57
|
CHECK_FIXNUM(two_jd); CHECK_FIXNUM(two_je); CHECK_FIXNUM(two_jf);
|
58
58
|
v = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, rslt);
|
59
59
|
/*status =*/ gsl_sf_coupling_6j_e(FIX2INT(two_ja), FIX2INT(two_jb),
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
FIX2INT(two_jc), FIX2INT(two_jd),
|
61
|
+
FIX2INT(two_je), FIX2INT(two_jf),
|
62
|
+
rslt);
|
63
63
|
return v;
|
64
64
|
}
|
65
65
|
|
66
66
|
static VALUE rb_gsl_sf_coupling_9j(VALUE obj, VALUE two_ja, VALUE two_jb,
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
VALUE two_jc, VALUE two_jd, VALUE two_je,
|
68
|
+
VALUE two_jf, VALUE two_jg, VALUE two_jh,
|
69
|
+
VALUE two_ji)
|
70
70
|
{
|
71
71
|
CHECK_FIXNUM(two_ja); CHECK_FIXNUM(two_jb); CHECK_FIXNUM(two_jc);
|
72
72
|
CHECK_FIXNUM(two_jd); CHECK_FIXNUM(two_je); CHECK_FIXNUM(two_jf);
|
73
73
|
CHECK_FIXNUM(two_jg); CHECK_FIXNUM(two_jh); CHECK_FIXNUM(two_ji);
|
74
74
|
return rb_float_new(gsl_sf_coupling_9j(FIX2INT(two_ja), FIX2INT(two_jb),
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
FIX2INT(two_jc), FIX2INT(two_jd),
|
76
|
+
FIX2INT(two_je), FIX2INT(two_jf),
|
77
|
+
FIX2INT(two_jg), FIX2INT(two_jh),
|
78
|
+
FIX2INT(two_ji)));
|
79
79
|
}
|
80
80
|
|
81
81
|
static VALUE rb_gsl_sf_coupling_9j_e(VALUE obj, VALUE two_ja, VALUE two_jb,
|
82
|
-
|
83
|
-
|
84
|
-
|
82
|
+
VALUE two_jc, VALUE two_jd, VALUE two_je,
|
83
|
+
VALUE two_jf, VALUE two_jg, VALUE two_jh,
|
84
|
+
VALUE two_ji)
|
85
85
|
{
|
86
86
|
gsl_sf_result *rslt = NULL;
|
87
87
|
VALUE v;
|
@@ -92,10 +92,10 @@ static VALUE rb_gsl_sf_coupling_9j_e(VALUE obj, VALUE two_ja, VALUE two_jb,
|
|
92
92
|
CHECK_FIXNUM(two_jg); CHECK_FIXNUM(two_jh); CHECK_FIXNUM(two_ji);
|
93
93
|
v = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, rslt);
|
94
94
|
/*status =*/ gsl_sf_coupling_9j_e(FIX2INT(two_ja), FIX2INT(two_jb),
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
95
|
+
FIX2INT(two_jc), FIX2INT(two_jd),
|
96
|
+
FIX2INT(two_je), FIX2INT(two_jf),
|
97
|
+
FIX2INT(two_jg), FIX2INT(two_jh),
|
98
|
+
FIX2INT(two_ji), rslt);
|
99
99
|
return v;
|
100
100
|
}
|
101
101
|
|
@@ -111,7 +111,7 @@ void Init_gsl_sf_coupling(VALUE module)
|
|
111
111
|
rb_define_module_function(module, "coupling_9j_e", rb_gsl_sf_coupling_9j_e, 9);
|
112
112
|
|
113
113
|
mgsl_sf_coupling = rb_define_module_under(module, "Coupling");
|
114
|
-
|
114
|
+
|
115
115
|
rb_define_module_function(mgsl_sf_coupling, "3j", rb_gsl_sf_coupling_3j, 6);
|
116
116
|
rb_define_module_function(mgsl_sf_coupling, "3j_e", rb_gsl_sf_coupling_3j_e, 6);
|
117
117
|
rb_define_module_function(mgsl_sf_coupling, "6j", rb_gsl_sf_coupling_6j, 6);
|
File without changes
|
@@ -83,21 +83,18 @@ static VALUE rb_gsl_sf_debye_n(int argc, VALUE *argv, VALUE obj)
|
|
83
83
|
case 4:
|
84
84
|
return rb_gsl_sf_eval1(gsl_sf_debye_4, x);
|
85
85
|
break;
|
86
|
-
#ifdef GSL_1_8_LATER
|
87
86
|
case 5:
|
88
87
|
return rb_gsl_sf_eval1(gsl_sf_debye_5, x);
|
89
88
|
break;
|
90
89
|
case 6:
|
91
90
|
return rb_gsl_sf_eval1(gsl_sf_debye_6, x);
|
92
91
|
break;
|
93
|
-
#endif
|
94
92
|
default:
|
95
93
|
rb_raise(rb_eRuntimeError, "n must be 1, 2, 3, or 4");
|
96
94
|
break;
|
97
95
|
}
|
98
96
|
}
|
99
97
|
|
100
|
-
#ifdef GSL_1_8_LATER
|
101
98
|
static VALUE rb_gsl_sf_debye_5(VALUE obj, VALUE x)
|
102
99
|
{
|
103
100
|
return rb_gsl_sf_eval1(gsl_sf_debye_5, x);
|
@@ -117,8 +114,6 @@ static VALUE rb_gsl_sf_debye_6_e(VALUE obj, VALUE x)
|
|
117
114
|
return rb_gsl_sf_eval_e(gsl_sf_debye_6_e, x);
|
118
115
|
}
|
119
116
|
|
120
|
-
#endif
|
121
|
-
|
122
117
|
void Init_gsl_sf_debye(VALUE module)
|
123
118
|
{
|
124
119
|
VALUE mgsl_sf_debye;
|
@@ -130,12 +125,10 @@ void Init_gsl_sf_debye(VALUE module)
|
|
130
125
|
rb_define_module_function(module, "debye_3_e", rb_gsl_sf_debye_3_e, 1);
|
131
126
|
rb_define_module_function(module, "debye_4", rb_gsl_sf_debye_4, 1);
|
132
127
|
rb_define_module_function(module, "debye_4_e", rb_gsl_sf_debye_4_e, 1);
|
133
|
-
#ifdef GSL_1_8_LATER
|
134
128
|
rb_define_module_function(module, "debye_5", rb_gsl_sf_debye_5, 1);
|
135
129
|
rb_define_module_function(module, "debye_5_e", rb_gsl_sf_debye_5_e, 1);
|
136
130
|
rb_define_module_function(module, "debye_6", rb_gsl_sf_debye_6, 1);
|
137
131
|
rb_define_module_function(module, "debye_6_e", rb_gsl_sf_debye_6_e, 1);
|
138
|
-
#endif
|
139
132
|
rb_define_module_function(module, "debye_n", rb_gsl_sf_debye_n, -1);
|
140
133
|
|
141
134
|
mgsl_sf_debye = rb_define_module_under(module, "Debye");
|
@@ -147,11 +140,9 @@ void Init_gsl_sf_debye(VALUE module)
|
|
147
140
|
rb_define_module_function(mgsl_sf_debye, "three_e", rb_gsl_sf_debye_3_e, 1);
|
148
141
|
rb_define_module_function(mgsl_sf_debye, "four", rb_gsl_sf_debye_4, 1);
|
149
142
|
rb_define_module_function(mgsl_sf_debye, "four_e", rb_gsl_sf_debye_4_e, 1);
|
150
|
-
#ifdef GSL_1_8_LATER
|
151
143
|
rb_define_module_function(mgsl_sf_debye, "five", rb_gsl_sf_debye_5, 1);
|
152
144
|
rb_define_module_function(mgsl_sf_debye, "five_e", rb_gsl_sf_debye_5_e, 1);
|
153
145
|
rb_define_module_function(mgsl_sf_debye, "six", rb_gsl_sf_debye_6, 1);
|
154
146
|
rb_define_module_function(mgsl_sf_debye, "six_e", rb_gsl_sf_debye_6_e, 1);
|
155
|
-
#endif
|
156
147
|
rb_define_module_function(mgsl_sf_debye, "n", rb_gsl_sf_debye_n, -1);
|
157
148
|
}
|
File without changes
|
@@ -25,7 +25,7 @@ static VALUE rb_gsl_sf_multiply_e(VALUE obj, VALUE x, VALUE y)
|
|
25
25
|
}
|
26
26
|
|
27
27
|
static VALUE rb_gsl_sf_multiply_err_e(VALUE obj, VALUE x, VALUE dx,
|
28
|
-
|
28
|
+
VALUE y, VALUE dy)
|
29
29
|
{
|
30
30
|
gsl_sf_result *r;
|
31
31
|
VALUE v;
|
@@ -35,7 +35,7 @@ static VALUE rb_gsl_sf_multiply_err_e(VALUE obj, VALUE x, VALUE dx,
|
|
35
35
|
Need_Float(dx); Need_Float(dy);
|
36
36
|
v = Data_Make_Struct(cgsl_sf_result, gsl_sf_result, 0, free, r);
|
37
37
|
/*status =*/ gsl_sf_multiply_err_e(NUM2DBL(x), NUM2DBL(dx),
|
38
|
-
|
38
|
+
NUM2DBL(y), NUM2DBL(dy), r);
|
39
39
|
return v;
|
40
40
|
}
|
41
41
|
|
@@ -36,10 +36,10 @@ static VALUE rb_gsl_sf_ellint_Ecomp_e(VALUE obj, VALUE k, VALUE m)
|
|
36
36
|
|
37
37
|
static VALUE rb_gsl_sf_ellint_F(int argc, VALUE *argv, VALUE obj)
|
38
38
|
{
|
39
|
-
if (argc == 2)
|
40
|
-
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_F, argv[0], argv[1],
|
41
|
-
|
42
|
-
else
|
39
|
+
if (argc == 2)
|
40
|
+
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_F, argv[0], argv[1],
|
41
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
42
|
+
else
|
43
43
|
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_F, argv[0], argv[1], argv[2]);
|
44
44
|
}
|
45
45
|
|
@@ -50,10 +50,10 @@ static VALUE rb_gsl_sf_ellint_F_e(VALUE obj, VALUE phi, VALUE k, VALUE m)
|
|
50
50
|
|
51
51
|
static VALUE rb_gsl_sf_ellint_E(int argc, VALUE *argv, VALUE obj)
|
52
52
|
{
|
53
|
-
if (argc == 2)
|
54
|
-
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_E, argv[0], argv[1],
|
55
|
-
|
56
|
-
else
|
53
|
+
if (argc == 2)
|
54
|
+
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_E, argv[0], argv[1],
|
55
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
56
|
+
else
|
57
57
|
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_E, argv[0], argv[1], argv[2]);
|
58
58
|
}
|
59
59
|
|
@@ -65,42 +65,42 @@ static VALUE rb_gsl_sf_ellint_E_e(VALUE obj, VALUE phi, VALUE k, VALUE m)
|
|
65
65
|
static VALUE rb_gsl_sf_ellint_P(int argc, VALUE *argv, VALUE obj)
|
66
66
|
|
67
67
|
{
|
68
|
-
if (argc == 3)
|
68
|
+
if (argc == 3)
|
69
69
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_P, argv[0], argv[1], argv[2],
|
70
|
-
|
71
|
-
else
|
70
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
71
|
+
else
|
72
72
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_P, argv[0], argv[1], argv[2],
|
73
|
-
|
73
|
+
argv[3]);
|
74
74
|
}
|
75
75
|
|
76
|
-
static VALUE rb_gsl_sf_ellint_P_e(VALUE obj, VALUE phi, VALUE k,
|
77
|
-
|
76
|
+
static VALUE rb_gsl_sf_ellint_P_e(VALUE obj, VALUE phi, VALUE k,
|
77
|
+
VALUE n, VALUE m)
|
78
78
|
{
|
79
79
|
return rb_gsl_sf_eval_e_double3_m(gsl_sf_ellint_P_e, phi, k, n, m);
|
80
80
|
}
|
81
81
|
|
82
82
|
static VALUE rb_gsl_sf_ellint_D(int argc, VALUE *argv, VALUE obj)
|
83
83
|
{
|
84
|
-
if (argc == 3)
|
84
|
+
if (argc == 3)
|
85
85
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_D, argv[0], argv[1], argv[2],
|
86
|
-
|
87
|
-
else
|
86
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
87
|
+
else
|
88
88
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_D, argv[0], argv[1], argv[2],
|
89
|
-
|
89
|
+
argv[3]);
|
90
90
|
}
|
91
91
|
|
92
|
-
static VALUE rb_gsl_sf_ellint_D_e(VALUE obj, VALUE phi, VALUE k,
|
93
|
-
|
92
|
+
static VALUE rb_gsl_sf_ellint_D_e(VALUE obj, VALUE phi, VALUE k,
|
93
|
+
VALUE n, VALUE m)
|
94
94
|
{
|
95
95
|
return rb_gsl_sf_eval_e_double3_m(gsl_sf_ellint_D_e, phi, k, n, m);
|
96
96
|
}
|
97
97
|
|
98
98
|
static VALUE rb_gsl_sf_ellint_RC(int argc, VALUE *argv, VALUE obj)
|
99
99
|
{
|
100
|
-
if (argc == 2)
|
101
|
-
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_RC, argv[0], argv[1],
|
102
|
-
|
103
|
-
else
|
100
|
+
if (argc == 2)
|
101
|
+
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_RC, argv[0], argv[1],
|
102
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
103
|
+
else
|
104
104
|
return rb_gsl_sf_eval_double2_m(gsl_sf_ellint_RC, argv[0], argv[1], argv[2]);
|
105
105
|
}
|
106
106
|
|
@@ -111,48 +111,48 @@ static VALUE rb_gsl_sf_ellint_RC_e(VALUE obj, VALUE x, VALUE y, VALUE m)
|
|
111
111
|
|
112
112
|
static VALUE rb_gsl_sf_ellint_RD(int argc, VALUE *argv, VALUE obj)
|
113
113
|
{
|
114
|
-
if (argc == 3)
|
114
|
+
if (argc == 3)
|
115
115
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_RD, argv[0], argv[1], argv[2],
|
116
|
-
|
117
|
-
else
|
116
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
117
|
+
else
|
118
118
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_RD, argv[0], argv[1], argv[2],
|
119
|
-
|
119
|
+
argv[3]);
|
120
120
|
}
|
121
121
|
|
122
|
-
static VALUE rb_gsl_sf_ellint_RD_e(VALUE obj, VALUE x, VALUE y,
|
123
|
-
|
122
|
+
static VALUE rb_gsl_sf_ellint_RD_e(VALUE obj, VALUE x, VALUE y,
|
123
|
+
VALUE z, VALUE m)
|
124
124
|
{
|
125
125
|
return rb_gsl_sf_eval_e_double3_m(gsl_sf_ellint_RD_e, x, y, z, m);
|
126
126
|
}
|
127
127
|
|
128
128
|
static VALUE rb_gsl_sf_ellint_RF(int argc, VALUE *argv, VALUE obj)
|
129
129
|
{
|
130
|
-
if (argc == 3)
|
130
|
+
if (argc == 3)
|
131
131
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_RF, argv[0], argv[1], argv[2],
|
132
|
-
|
133
|
-
else
|
132
|
+
INT2FIX(GSL_PREC_DOUBLE));
|
133
|
+
else
|
134
134
|
return rb_gsl_sf_eval_double3_m(gsl_sf_ellint_RF, argv[0], argv[1], argv[2],
|
135
|
-
|
135
|
+
argv[3]);
|
136
136
|
}
|
137
137
|
|
138
|
-
static VALUE rb_gsl_sf_ellint_RF_e(VALUE obj, VALUE x, VALUE y,
|
139
|
-
|
138
|
+
static VALUE rb_gsl_sf_ellint_RF_e(VALUE obj, VALUE x, VALUE y,
|
139
|
+
VALUE z, VALUE m)
|
140
140
|
{
|
141
141
|
return rb_gsl_sf_eval_e_double3_m(gsl_sf_ellint_RF_e, x, y, z, m);
|
142
142
|
}
|
143
143
|
|
144
144
|
static VALUE rb_gsl_sf_ellint_RJ(int argc, VALUE *argv, VALUE obj)
|
145
145
|
{
|
146
|
-
if (argc == 4)
|
146
|
+
if (argc == 4)
|
147
147
|
return rb_gsl_sf_eval_double4_m(gsl_sf_ellint_RJ, argv[0], argv[1], argv[2],
|
148
|
-
|
149
|
-
else
|
148
|
+
argv[3], INT2FIX(GSL_PREC_DOUBLE));
|
149
|
+
else
|
150
150
|
return rb_gsl_sf_eval_double4_m(gsl_sf_ellint_RJ, argv[0], argv[1], argv[2],
|
151
|
-
|
151
|
+
argv[3], argv[4]);
|
152
152
|
}
|
153
153
|
|
154
|
-
static VALUE rb_gsl_sf_ellint_RJ_e(VALUE obj, VALUE x, VALUE y,
|
155
|
-
|
154
|
+
static VALUE rb_gsl_sf_ellint_RJ_e(VALUE obj, VALUE x, VALUE y,
|
155
|
+
VALUE z, VALUE p, VALUE m)
|
156
156
|
{
|
157
157
|
return rb_gsl_sf_eval_e_double4_m(gsl_sf_ellint_RJ_e, x, y, z, p, m);
|
158
158
|
}
|