Function

NumCosmoMathutil_function_params

Declaration [src]

gchar*
ncm_util_function_params (
  const gchar* func,
  gdouble** x,
  guint* len
)

Description [src]

Extracts the function name and its numerical parameters.

Parameters

func

Type: const gchar*

String representing function and its parameters.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
x

Type: An array of double

The parameters or NULL if none found.

The argument will be set by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
len

Type: guint*

Number of parameters.

The argument will be set by the function.

Return value

Type: gchar*

Function name or NULL if it fails.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.