Trigonometric Functions: How do I write Sine and Cosine function's code without using `math` module?

I have been writing code for a module I am making for my Discord Bot. I have been trying not to use any module as it is not helping in in importing stuff. So I thought I should write the code myself for both of them.

The problem here is that I don't really know how do we make them. I couldn't find them anywhere on the net as everywhere I only saw the use of math module which I don't want to use.

I don't know how do I work with them, so I want some help.

Thank You! :)

Submitted May 16th 2021 by Admin


Using Taylor expansion you get an approximation up to the desired precision.


Admin | 4 months ago

Relevant Questions