Commit 0985aef7 authored by SETaratukhina's avatar SETaratukhina

Update main.py, mymodule.py files

parents
from mymodule import g
x = int(input())
i = int(input())
print(g(x,i))
from math import factorial
def g(x,i):
f =0
for j in range(1,i+1):
a = (((factorial(j))/(factorial(2*j+1)))*(x**(2*j+1)))
f = f + a
return f
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment