After execute test.py

This commit is contained in:
Daniil Doroshenko
2024-04-05 12:20:22 +00:00
parent 617dd1e10f
commit 112380e2a8
5 changed files with 12 additions and 13 deletions
Regular → Executable
+3 -2
View File
@@ -1,6 +1,7 @@
#!/usr/bin/python3
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)
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)