Add tests for cos_pi and sin_pi. Doc regen.
Fix a few gcc-mingw test failures. Fix typo in spherical harmonic docs. [SVN r82598]