Sha256: 052fc21ca53b43fb86eb6d89db2c89dba322b37ad4a8153e8b297f4e8f8e2e57

Contents?: true

Size: 1.61 KB

Versions: 14

Compression:

Stored size: 1.61 KB

Contents

/*
  sf_synchrotron.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.
*/

#include "rb_gsl_sf.h"

static VALUE rb_gsl_sf_synchrotron_1(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval1(gsl_sf_synchrotron_1, x);
}

static VALUE rb_gsl_sf_synchrotron_1_e(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval_e(gsl_sf_synchrotron_1_e, x);
}

static VALUE rb_gsl_sf_synchrotron_2(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval1(gsl_sf_synchrotron_2, x);
}

static VALUE rb_gsl_sf_synchrotron_2_e(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval_e(gsl_sf_synchrotron_2_e, x);
}

void Init_gsl_sf_synchrotron(VALUE module)
{
  VALUE mgsl_sf_synch;

  rb_define_module_function(module, "synchrotron_1",  rb_gsl_sf_synchrotron_1, 1);
  rb_define_module_function(module, "synchrotron_1_e",  rb_gsl_sf_synchrotron_1_e, 1);
  rb_define_module_function(module, "synchrotron_2",  rb_gsl_sf_synchrotron_2, 1);
  rb_define_module_function(module, "synchrotron_2_e",  rb_gsl_sf_synchrotron_2_e, 1);

  mgsl_sf_synch = rb_define_module_under(module, "Synchrotron");
  rb_define_module_function(mgsl_sf_synch, "one",  rb_gsl_sf_synchrotron_1, 1);
  rb_define_module_function(mgsl_sf_synch, "one_e",  rb_gsl_sf_synchrotron_1_e, 1);
  rb_define_module_function(mgsl_sf_synch, "two",  rb_gsl_sf_synchrotron_2, 1);
  rb_define_module_function(mgsl_sf_synch, "two_e",  rb_gsl_sf_synchrotron_2_e, 1);
}

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
gsl-nmatrix-1.15.3.2 ext/sf_synchrotron.c
romanbsd-gsl-1.11.2.2 ext/sf_synchrotron.c
gsl-nmatrix-1.15.3.1 ext/sf_synchrotron.c
rb-gsl-1.16.0 ext/sf_synchrotron.c
rb-gsl-1.15.3.2 ext/sf_synchrotron.c
rb-gsl-1.15.3.1 ext/sf_synchrotron.c
blackwinter-gsl-1.15.3.2 ext/sf_synchrotron.c
gsl-nmatrix-1.15.3.0 ext/sf_synchrotron.c
gsl-1.15.3 ext/sf_synchrotron.c
gsl-1.14.7 ext/sf_synchrotron.c
gsl-1.14.6 ext/sf_synchrotron.c
gsl-1.14.5 ext/sf_synchrotron.c
gsl-1.12.109 ext/sf_synchrotron.c
gsl-1.12.108 ext/sf_synchrotron.c