Init repo mat_lib

This commit is contained in:
Daniil Doroshenko
2024-04-05 11:30:03 +00:00
commit 617dd1e10f
4 changed files with 26 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
from factorial import factorial as fct
def sin(x):
    sin = 1 - (x**2/fct(2)) + (x**4/fct(4)) - (x**6/fct(6)) + (x**8/fct(8)) - (x**10/fct(10))
    return round(sin, 5)