コード例 #1
0
ファイル: expansion.py プロジェクト: yfujii08/ShapeMove
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
ファイル: expansion.py プロジェクト: statgenetJimu/ShapeMove
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
ファイル: visualization.py プロジェクト: yfujii08/ShapeMove
def sph_harm(l, m, theta, phi):
    return _sph_harm(m, l, phi, theta)
コード例 #6
0
ファイル: visualization.py プロジェクト: yfujii08/ShapeMove
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