[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] [bug #39990] Use standard function names for Mathieu function
From: |
Patrick Alken |
Subject: |
[Bug-gsl] [bug #39990] Use standard function names for Mathieu function calls |
Date: |
Mon, 09 Sep 2013 17:53:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 |
URL:
<http://savannah.gnu.org/bugs/?39990>
Summary: Use standard function names for Mathieu function
calls
Project: GNU Scientific Library
Submitted by: psa
Submitted on: Mon 09 Sep 2013 05:53:58 PM GMT
Category: None
Severity: 3 - Normal
Operating System:
Status: None
Assigned to: None
Open/Closed: Open
Release:
Discussion Lock: Any
_______________________________________________________
Details:
The GSL special functions are each supposed to have two alternative
functional interfaces, a pure one:
double function(x, ...)
and one allowing for full error returns:
int function_e(x, ... gsl_sf_result * result)
But the Mathieu function code doesn't follow this convention.
It doesn't offer the former interface at all and uses the second
convention for all its functions BUT without the '_e' name extension on
its function declarations.
This is quite error prone since it is easy to assume that *gsl_sf_result
is simply a reference to a double when in fact it is a structure that is
longer than this (a library user on Windows made exactly this mistake
and wondered why his code was causing an illegal access exception).
I am doubtful that this is an intentional feature of the Mathieu
function code so I have created the attached patch to update the code to
use the normal conventions of the GSL special functions. (this needs
testing since I have only tried it on WIndows).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39990>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-gsl] [bug #39990] Use standard function names for Mathieu function calls,
Patrick Alken <=