예제 #1
0
def sph_harm(l, m, theta, phi):
    if m > 0:
        return np.sqrt(2) * (-1)**m * _sph_harm(m, l, phi, theta).real
    if m == 0:
        return _sph_harm(m, l, phi, theta).real
    else:
        return np.sqrt(2) * (-1)**m * _sph_harm(-m, l, phi, theta).imag
예제 #2
0
def sph_harm(l, m, theta, phi):
    if m > 0:
        return np.sqrt(2) * (-1) ** m * _sph_harm(m, l, phi, theta).real
    if m == 0:
        return _sph_harm(m, l, phi, theta).real
    else:
        return np.sqrt(2) * (-1) ** m * _sph_harm(-m, l, phi, theta).imag
예제 #3
0
def sph_harm(l, m, theta, phi):
    return _sph_harm(m, l, phi, theta)
예제 #4
0
def sph_harm(l, m, theta, phi):
    if m >= 0:
        return np.sqrt(2) * _sph_harm(m, l, phi, theta).real
    else:
        return np.sqrt(2) * _sph_harm(-m, l, phi, theta).imag
예제 #5
0
def sph_harm(l, m, theta, phi):
    return _sph_harm(m, l, phi, theta)
예제 #6
0
def sph_harm(l, m, theta, phi):
    if m >= 0:
        return np.sqrt(2) * _sph_harm(m, l, phi, theta).real
    else:
        return np.sqrt(2) * _sph_harm(-m, l, phi, theta).imag