Namespaces
Variants
Views
Actions

Talk:cpp/numeric/complex/pow

From cppreference.com

Hi, folks. Is that adding possible implementation like [1] to this page useful?

when it is as simple as that, yes, although this page already mentions that this is as if return std::exp(y*std::log(x)) (for the first three overloads anyway). --Cubbi (talk) 03:38, 12 January 2015 (PST)

[edit] Where can I find the C++11 new overloads in the standard?

In n3337, the final draft of C++11, these overloads seem to exist in neither [complex.transcendentals] (29.5.8 complex transcendentals) nor [complex.syn] (29.5.1 Header <complex> synopsis). Similar for n4659, the final draft of C++17. Did I miss something? LittleFlower (talk) 02:48, 24 April 2019 (PDT)

see [cmplx.over]/3 "Function template pow shall have additional overloads" (quoting n3337) --Cubbi (talk) 11:29, 24 April 2019 (PDT)