One of the most common algorithms for this is to take the first few members of the Taylor series for sine.
sin x = x - x3/3! + x5/5! - x7/7! + ...,
The more terms you get, the better the approximation. Here X is in radians, but you can easily get radians from degrees. And then, as you can see, only basic operations can be used to calculate the sine: +, -, *, /.
In machines with floating point coprocessor chips, the CORDIC algorithm (with several other modules) is used, since it can also be implemented in hardware.
source share