示例#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