Sha256: 3675dd9d6568fda471b8be4f85e2ead607a1cc334c509f160bfba978b58ff6a0

Contents?: true

Size: 945 Bytes

Versions: 6

Compression:

Stored size: 945 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;
  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

6 entries across 6 versions & 2 rubygems

Version Path
romanbsd-gsl-1.11.2.2 ext/sf_elljac.c
gsl-1.14.7 ext/sf_elljac.c
gsl-1.14.6 ext/sf_elljac.c
gsl-1.14.5 ext/sf_elljac.c
gsl-1.12.109 ext/sf_elljac.c
gsl-1.12.108 ext/sf_elljac.c