[cfe-dev] [libc++] std::polar(rho, theta) bogus for theta < 0?

Luc Bourhis luc_j_bourhis at mac.com
Thu Nov 14 11:16:46 PST 2013


On 14 Nov 2013, at 19:40, Luc Bourhis wrote:

> libstdc++, on the contrary, returns (rho*cos(theta), rho*sin(theta)) in this case.

I typed without thinking: it's (rho*cos(theta + pi), rho*sin(theta + pi)) of course

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131114/4b323c9a/attachment.html>


More information about the cfe-dev mailing list