Learn R Programming

boostmath (version 1.0.0)

gegenbauer_polynomials: Gegenbauer Polynomials and Related Functions

Description

Functions to compute Gegenbauer polynomials, their derivatives, and related functions.

Usage

gegenbauer(n, lambda, x)

gegenbauer_prime(n, lambda, x)

gegenbauer_derivative(n, lambda, x, k)

Value

A single numeric value with the computed Gegenbauer polynomial, its derivative, or k-th derivative.

Arguments

n

Degree of the polynomial

lambda

Parameter of the polynomial

x

Argument of the polynomial

k

Order of the derivative

See Also

Boost Documentation for more details on the mathematical background.

Examples

Run this code
# Gegenbauer polynomial C_2^(1)(0.5)
gegenbauer(2, 1, 0.5)
# Derivative of the Gegenbauer polynomial C_2^(1)'(0.5)
gegenbauer_prime(2, 1, 0.5)
# k-th derivative of the Gegenbauer polynomial C_2^(1)''(0.5)
gegenbauer_derivative(2, 1, 0.5, 2)

Run the code above in your browser using DataLab