Sha256: 5adfda6cf444bd6db7ddf34ebd8f9cdd4b9683600ed07abf45f58e647ad0dbd9

Contents?: true

Size: 1013 Bytes

Versions: 8

Compression:

Stored size: 1013 Bytes

Contents

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

static VALUE rb_gsl_sf_elljac_e(VALUE obj, VALUE n, VALUE m)
{
  double sn, cn, dn;
  // local variable "status" declared and set, but never used
  //int status;
  Need_Float(n); Need_Float(m);
  /*status =*/ gsl_sf_elljac_e(NUM2DBL(n), NUM2DBL(m), &sn, &cn, &dn);
  return rb_ary_new3(3, rb_float_new(sn), 
		     rb_float_new(cn), rb_float_new(dn));
}

void Init_gsl_sf_elljac(VALUE module)
{
  rb_define_module_function(module, "elljac_e",  rb_gsl_sf_elljac_e, 2);
  rb_define_module_function(module, "elljac",  rb_gsl_sf_elljac_e, 2);
}

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
gsl-nmatrix-1.15.3.2 ext/sf_elljac.c
gsl-nmatrix-1.15.3.1 ext/sf_elljac.c
rb-gsl-1.16.0 ext/sf_elljac.c
rb-gsl-1.15.3.2 ext/sf_elljac.c
rb-gsl-1.15.3.1 ext/sf_elljac.c
blackwinter-gsl-1.15.3.2 ext/sf_elljac.c
gsl-nmatrix-1.15.3.0 ext/sf_elljac.c
gsl-1.15.3 ext/sf_elljac.c