process.args(...)
strictify(val,status)
&result
gsl_sf_
gsl_sf_sin()
, gsl_sf_cos()
, gsl_sf_gamma()
,
gsl_sf_ choose()
, gsl_sf_beta()
. Function process.args()
et seq is 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.
Function process.arg()
does this by returning a list whose
elements are vectors of the same length.
Function strictify()
uses the status
value returned by
the 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.