Function

NumCosmoMathSpectralchebyshev_deriv_x

Declaration [src]

gdouble
ncm_spectral_chebyshev_deriv_x (
  GArray* a,
  gdouble a_v,
  gdouble b,
  gdouble x
)

Description [src]

Evaluates the first derivative of a Chebyshev expansion at a point x in [a_v, b]. This function converts x to t using $t = (2x - (a_v+b))/(b-a_v)$, evaluates the derivative with respect to t using ncm_spectral_chebyshev_deriv(), and then applies the chain rule: $df/dx = (df/dt) \cdot (dt/dx) = (df/dt) \cdot 2/(b-a_v)$.

Parameters

a

Type: An array of double

Chebyshev coefficients array.

The data is owned by the caller of the function.
a_v

Type: gdouble

Left endpoint of the interval.

b

Type: gdouble

Right endpoint of the interval.

x

Type: gdouble

Point to evaluate in [a_v, b].

Return value

Type: gdouble

The value of $df/dx$ at x.