Function

NumCosmoMathSpectralF

Declaration

gdouble
(* NcmSpectralF) (
  gpointer user_data,
  gdouble x
)

Description [src]

Function to be used in spectral computations. The function is defined over an interval [a, b] and receives x in that interval. Internally, Chebyshev polynomials work with the transformed variable $t \in [-1, 1]$ where $t = (2x - (a + b))/(b - a)$ and $x = ((b - a)t + (a + b))/2$.

Parameters

user_data

Type: gpointer

User data.

The argument can be NULL.
The data is owned by the caller of the function.
x

Type: gdouble

Point to evaluate in the interval [a, b].

Return value

Type: gdouble

The value of the function at x.