1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
/*
sf_erfc.c
Ruby/GSL: Ruby extension library for GSL (GNU Scientific Library)
(C) Copyright 2001-2006 by Yoshiki Tsunesada
Ruby/GSL is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "include/rb_gsl_sf.h"
static VALUE rb_gsl_sf_erf(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval1(gsl_sf_erf, x);
}
static VALUE rb_gsl_sf_erf_e(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval_e(gsl_sf_erf_e, x);
}
static VALUE rb_gsl_sf_erfc(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval1(gsl_sf_erfc, x);
}
static VALUE rb_gsl_sf_erfc_e(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval_e(gsl_sf_erfc_e, x);
}
static VALUE rb_gsl_sf_log_erfc(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval1(gsl_sf_log_erfc, x);
}
static VALUE rb_gsl_sf_log_erfc_e(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval_e(gsl_sf_log_erfc_e, x);
}
static VALUE rb_gsl_sf_erf_Z(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval1(gsl_sf_erf_Z, x);
}
static VALUE rb_gsl_sf_erf_Z_e(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval_e(gsl_sf_erf_Z_e, x);
}
static VALUE rb_gsl_sf_erf_Q(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval1(gsl_sf_erf_Q, x);
}
static VALUE rb_gsl_sf_erf_Q_e(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval_e(gsl_sf_erf_Q_e, x);
}
static VALUE rb_gsl_sf_hazard(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval1(gsl_sf_hazard, x);
}
static VALUE rb_gsl_sf_hazard_e(VALUE obj, VALUE x)
{
return rb_gsl_sf_eval_e(gsl_sf_hazard_e, x);
}
void Init_gsl_sf_erfc(VALUE module)
{
rb_define_module_function(module, "erf", rb_gsl_sf_erf, 1);
rb_define_module_function(module, "erf_e", rb_gsl_sf_erf_e, 1);
rb_define_module_function(module, "erfc", rb_gsl_sf_erfc, 1);
rb_define_module_function(module, "erfc_e", rb_gsl_sf_erfc_e, 1);
rb_define_module_function(module, "log_erfc", rb_gsl_sf_log_erfc, 1);
rb_define_module_function(module, "log_erfc_e", rb_gsl_sf_log_erfc_e, 1);
rb_define_module_function(module, "erf_Z", rb_gsl_sf_erf_Z, 1);
rb_define_module_function(module, "erf_Z_e", rb_gsl_sf_erf_Z_e, 1);
rb_define_module_function(module, "erf_Q", rb_gsl_sf_erf_Q, 1);
rb_define_module_function(module, "erf_Q_e", rb_gsl_sf_erf_Q_e, 1);
rb_define_module_function(module, "hazard", rb_gsl_sf_hazard, 1);
rb_define_module_function(module, "hazard_e", rb_gsl_sf_hazard_e, 1);
}
|