gsl (version 1.2-21)

Misc: Argument processing and general info

Description

Massages arguments into a form suitable for passing to C functions; also general info

Usage

process.2.args(a1,a2)
process.3.args(a1,a2,a3)
process.4.args(a1,a2,a3,a4)
strictify(val,status)

Arguments

a1
First argument
a2
Second argument
a3
Third argument
a4
Fourth argument
val
Value component of &result
status
status integer

Details

Functions that retain the gsl_sf_ prefix: gsl_sf_sin(), gsl_sf_cos(), gsl_sf_gamma(), gsl_sf_ choose(), beta()

Functions process.2.args() et seq are called, if possible, to massage the arguments into a form suitable for passing to .C(). For example, in function hyperg_0F1(c,x), one wants hyperg_0F1(0.1, c(0.3,0.4)) and hyperg_0F1(c(0.1,0.2), 0.3) and hyperg_0F1(c(0.1,0.2),c(0.3,0.4) to behave sensibly. The process functions do this by returning a list whose elements are vectors of the same length.

Function strictify() uses the status value returned by the error form of the GSL special functions to make values returned with a nonzero error a NaN. This function is called if argument strict takes its default value of TRUE. Setting it to FALSE sometimes returns a numerical value as per the GSL reference manual.

If argument give takes its default value of FALSE, a numerical value only is returned. If TRUE, error information and the status (see preceding paragraph) is also returned.