upvote
Here's one way to do it.

https://en.wikipedia.org/wiki/CORDIC

reply