Files
Sergey B Kirpichev a9550c2b70 Reorganize docs (doc/source/ -> docs/, *.txt -> *.rst)
Structure now more closely follow https://packaging.python.org/

To build docs:

    python setup.py build_sphinx -c docs -b html,latex
    make -C build/sphinx/latex all-pdf
2021-03-27 01:14:07 +03:00

12 lines
337 B
Python

# Real part of spherical harmonic Y_(4,1)(theta,phi)
def Y(l,m):
def g(theta,phi):
R = abs(fp.re(fp.spherharm(l,m,theta,phi)))
x = R*fp.cos(phi)*fp.sin(theta)
y = R*fp.sin(phi)*fp.sin(theta)
z = R*fp.cos(theta)
return [x,y,z]
return g
fp.splot(Y(4,1), [0,fp.pi], [0,2*fp.pi], points=300)