@@ -620,8 +620,9 @@ def spherical_hankel2(n,x):
620620
621621class SphericalHarmonic (BuiltinFunction ):
622622 r"""
623- Returns the spherical harmonic function `Y_n^m(\theta, \varphi)`. For
624- integers `n > -1`, `|m|\leq n`, simplification is done automatically.
623+ Returns the spherical harmonic function `Y_n^m(\theta, \varphi)`.
624+
625+ For integers `n > -1`, `|m| \leq n`, simplification is done automatically.
625626 Numeric evaluation is supported for complex `n` and `m`.
626627
627628 Reference: Merzbacher 9.64
@@ -647,7 +648,7 @@ def __init__(self):
647648 sage: n, m, theta, phi = var('n m theta phi')
648649 sage: spherical_harmonic(n, m, theta, phi)._sympy_()
649650 Ynm(n, m, theta, phi)
650- """
651+ """
651652 BuiltinFunction .__init__ (self , 'spherical_harmonic' , nargs = 4 ,
652653 conversions = dict (
653654 maple = 'SphericalY' ,
@@ -703,8 +704,8 @@ def _derivative_(self, n, m, theta, phi, diff_param):
703704
704705 sage: n, m, theta, phi = var('n m theta phi')
705706 sage: spherical_harmonic(n, m, theta, phi).diff(theta)
706- m*cot(theta)*spherical_harmonic(n, m, theta, phi) +...
707- sqrt(-(m + n + 1)*(m - n))*e^(-I*phi)*spherical_harmonic(n, m + 1, theta, phi)
707+ m*cot(theta)*spherical_harmonic(n, m, theta, phi)
708+ + sqrt(-(m + n + 1)*(m - n))*e^(-I*phi)*spherical_harmonic(n, m + 1, theta, phi)
708709 sage: spherical_harmonic(n, m, theta, phi).diff(phi)
709710 I*m*spherical_harmonic(n, m, theta, phi)
710711 """
@@ -714,9 +715,9 @@ def _derivative_(self, n, m, theta, phi, diff_param):
714715 spherical_harmonic (n , m + 1 , theta , phi ))
715716 if diff_param == 3 :
716717 return I * m * spherical_harmonic (n , m , theta , phi )
717- else :
718- raise ValueError ('only derivative with respect to theta or phi '
719- ' supported. ' )
718+
719+ raise ValueError ('only derivative with respect to theta or phi'
720+ ' supported' )
720721
721722 def _latex_ (self ):
722723 r"""
@@ -736,7 +737,7 @@ def _print_latex_(self, n, m, theta, phi):
736737 Y_{3}^{2}\left(x, y\right)
737738 """
738739 return r"Y_{{{}}}^{{{}}}\left({}, {}\right)" .format (
739- latex (n ), latex (m ), latex (theta ), latex (phi ))
740+ latex (n ), latex (m ), latex (theta ), latex (phi ))
740741
741742spherical_harmonic = SphericalHarmonic ()
742743
0 commit comments