In the Wolfram Language, WignerD[j, m ,n, psi, theta, phi] gives the matrix element of a -dimensional unitary representation of SU(2) parametrized by three Euler angles, while WignerD[j, m, n, theta, phi] will give the Wigner -function with , which is a generalized spherical harmonic.
If are integers or half-integers subject to conditions , , , and are integers, and and , then the function can be evaluated to a closed-form expression.