Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ej2_python_204676887
import math while True: N = int(input()) if 1<=N and N<=50 : break else: continue while True: X = float(input()) if -10 <= X and X <= 10: break else: continue omega = 0.0 counters = 0 while ( counters != N): omega += (((-1)**counters)*(X**(counters *3)))/math.factorial(counters*3) counters += 1 print("OMEGA (", X, ") para ", N , " termino(s) ", omega)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
19.09.18
Stk String replace
Ex_039.py
(P2) Ciągi 2 - mapowanie
Homework exercise
Monthly Calendar
RANDOM NUMBER
abstractmethod
tree
contarsucesoresmayores
Please log in to post a comment.