Does Euler's Formula give sin and cos in degrees or radians? (ie. For use in C++?)

366 Views Asked by At

If I am using Euler's formula, eg. for solving:

$$e^{ix} = \cos(x)+i\sin(x)$$

And in my equation I end up with some $\sin(x)$ or $\cos(x)$ that derived from this, would the sine and cosine operations need to be set up for receiving results in degrees or radians?

I am guessing degrees.

For example, in C++ the operators $\sin$ and $\cos$ work in radians, so if my math equation that came from the Euler's formula is $\sin(x)$, I presume I would code this as:

sin(degreesToRadians(x))

Is that correct?