Пример #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