beta Function

private elemental function beta(mode)

Coefficient beta from the recursive formulation of Legendre polynomials, for the Legendre mode 'mode'.

For Legendre polynomials we have:

Note

This is negative for all modes > 1.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: mode

The Legendre mode to compute for.

Return Value real(kind=rk)