See the current implementation of Legendre functions.
In Legendre functions, n is "degree", not "order".
n
Current implementation uses "order".