This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libstdc++, PATCH] PR libstdc++/83140 - assoc_legendre returns negated value when m is odd.


All,

We were using a different convention for P_l^m assoc_legendre(int l, int m, FloatTp x)

 - the so-called Condon-Shortley convention which includes (-1)^m.  This unfortunately is common.

This factor is taken out to match the standard.  The underlying __detail code has an arg that allows you to flip this

- mostly to highlight the subtle difference.

The related sph_legendre is unaffected by this (our impl and the standard include the C-S phase).

OK for trunk and branches?

Ed


Attachment: CL_pr83140
Description: Text document

Attachment: patch_pr83140
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]