[Bug libstdc++/83140] assoc_legendre returns negated value when m is odd

emsr at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 1 17:39:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83140

--- Comment #1 from emsr at gcc dot gnu.org ---
Created attachment 44047
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44047&action=edit
This adds a defaulted arg to the underlying __assoc_legendre_p for phase.


2018-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>

        PR libstdc++83140 - assoc_legendre returns negated value when m is odd
        * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
        argument defaulted to +1.  Doxy comments on same.
        * testsuite/special_functions/02_assoc_legendre/
        check_assoc_legendre.cc: Regenerate.
        * testsuite/tr1/5_numerical_facilities/special_functions/
        02_assoc_legendre/check_tr1_assoc_legendre.cc: Regenerate.
        * testsuite/special_functions/02_assoc_legendre/pr83140.cc: New.
        * testsuite/tr1/5_numerical_facilities/special_functions/
        02_assoc_legendre/pr83140.cc: New.


More information about the Gcc-bugs mailing list