Notes The spherical harmonics in sympy (1.10.1) are defined with the Condon-Shortley phase included. This is also true for Mathematica 13.0.