Sha256: f3472eb3a14820d5d71bd2c552bf74b167ee1d0b855551d2e5f65778ec140c5f

Contents?: true

Size: 1.57 KB

Versions: 11

Compression:

Stored size: 1.57 KB

Contents

/*
  sf_lambert.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 "include/rb_gsl_sf.h"

static VALUE rb_gsl_sf_lambert_W0(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval1(gsl_sf_lambert_W0, x);
}

static VALUE rb_gsl_sf_lambert_W0_e(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval_e(gsl_sf_lambert_W0_e, x);
}

static VALUE rb_gsl_sf_lambert_Wm1(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval1(gsl_sf_lambert_Wm1, x);
}

static VALUE rb_gsl_sf_lambert_Wm1_e(VALUE obj, VALUE x)
{
  return rb_gsl_sf_eval_e(gsl_sf_lambert_Wm1_e, x);
}

void Init_gsl_sf_lambert(VALUE module)
{
  VALUE mgsl_sf_lambert;
  rb_define_module_function(module, "lambert_W0",  rb_gsl_sf_lambert_W0, 1);
  rb_define_module_function(module, "lambert_W0_e",  rb_gsl_sf_lambert_W0_e, 1);
  rb_define_module_function(module, "lambert_Wm1",  rb_gsl_sf_lambert_Wm1, 1);
  rb_define_module_function(module, "lambert_Wm1_e",  rb_gsl_sf_lambert_Wm1_e, 1);

  mgsl_sf_lambert = rb_define_module_under(module, "Lambert");
  rb_define_module_function(mgsl_sf_lambert, "W0",  rb_gsl_sf_lambert_W0, 1);
  rb_define_module_function(mgsl_sf_lambert, "W0_e",  rb_gsl_sf_lambert_W0_e, 1);
  rb_define_module_function(mgsl_sf_lambert, "Wm1",  rb_gsl_sf_lambert_Wm1, 1);
  rb_define_module_function(mgsl_sf_lambert, "Wm1_e",  rb_gsl_sf_lambert_Wm1_e, 1);
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
gsl-2.1.0.3 ext/gsl_native/sf_lambert.c
gsl-2.1.0.2 ext/gsl_native/sf_lambert.c
gsl-2.1.0.1 ext/gsl_native/sf_lambert.c
gsl-2.1.0 ext/gsl_native/sf_lambert.c
gsl-1.16.0.6 ext/gsl_native/sf_lambert.c
rb-gsl-1.16.0.5 ext/gsl_native/sf_lambert.c
rb-gsl-1.16.0.4 ext/gsl/sf_lambert.c
rb-gsl-1.16.0.3 ext/gsl/sf_lambert.c
rb-gsl-1.16.0.3.rc1 ext/gsl/sf_lambert.c
rb-gsl-1.16.0.2 ext/gsl/sf_lambert.c
rb-gsl-1.16.0.1 ext/gsl/sf_lambert.c