calculate real spherical harmonics: this is closely connected to sph_harmonics_prefactor() in molecular_grid.f90 sph_harmonics_real( l, m, theta, phi ) := G%Y_lm_prefactor(lm) * (2l+1) / 4pi * associated_Legendre_P( l, |m|, cos(theta) ) * [ ... ] [ ... ] = 1 for m = 0 = cos( |m| * phi ) for m > 0 = sin( |m| * phi ) for m < 0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | l | |||
integer, | intent(in) | :: | m | |||
real(kind=long), | intent(in) | :: | theta | |||
real(kind=long), | intent(in) | :: | phi |