Talk:cpp/numeric/special functions/comp ellint 2

(2) states that k is an IntegralType, however, the description for k is:

k	-	elliptic modulus or eccentricity (a value of a floating-point or integral type)

Can anybody comment?

Other functions in this group are similar, but want to start with this one.

ticotico (talk) 17:38, 22 October 2020 (PDT)


 * Certainly is a better fit, the  makes little sense for say |complete elliptic integral of the first kind where the proper range is only (-1.0, 1.0).
 * What is more puzzling is that C++17 and C++20 standards do not mention at all the function templates as a possible way to implement those special-math functions.


 * C++17 (final draft) says only:


 * C++20 (final draft) states the same: 26.8.6.4 verbatim.


 * MS STL front-end impl. ~:


 * GCC front-end impl. ~:


 * It seems all those Special Math pages should be updated:


 * Integral → Arithmetic (where appropriate)
 * Probably remove following item and wording (e.g. in comp_ellint_1 page):

2) A set of overloads or a function template accepting an argument of any integral type (etc...)
 * Space Mission (talk)


 * I'm confused as to what you guys think the issue with the integral overloads is. The standard says there needs to be overloads that ensure that integral arguments use the double precision implementation, that doesn't apply to or, which are also arithmetic types, so they shouldn't be included in 2). --Ybab321 (talk) 01:11, 23 October 2020 (PDT)


 * See also and MSVC STL issue 910. We the synopsis in C++17/20 standard is incorrect, and overloads in  should exist. --Fruderica (talk) 05:26, 23 October 2020 (PDT)


 * I think is OK, because overloads for floating point types are covered by . --Fruderica (talk) 05:58, 23 October 2020 (PDT)