79527140

Date: 2025-03-22 08:37:16
Score: 1
Natty:
Report link

There is a function that can be used for that: std::polar from <complex>.

Calling std::polar(1.0, theta) returns a std::complex whose real part is cos(theta) and the imaginary part is sin(theta).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Xavier Andrade