Function

NumCosmoMathSpectralgegenbauer_alpha2_eval

Declaration [src]

gdouble
ncm_spectral_gegenbauer_alpha2_eval (
  GArray* c,
  gdouble t
)

Description [src]

Evaluates a Gegenbauer $C^{(2)}n$ expansion at t using Clenshaw recurrence. For $\alpha=2$, the recurrence relation is: $(n+1) C^{(2)}{n+1}(t) = 2(n+2)t C^{(2)}n(t) - (n+3) C^{(2)}{n-1}(t)$ The variable t should be in the interval [-1, 1]. To evaluate at a point x in [a, b], use ncm_spectral_gegenbauer_alpha2_eval_x() or first convert x to t using ncm_spectral_x_to_t().

Parameters

c

Type: An array of double

Gegenbauer $C^{(2)}_n$ coefficients array.

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

Type: gdouble

Point to evaluate in [-1, 1].

Return value

Type: gdouble

The value of $\sum_{n=0}^{N-1} c_n C^{(2)}_n(t)$.