Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
EJ2_PYTHON_20.321.212-7
#VicenteGonzalezFariña #20.321.212-7 import math while True: N = int(input()) if 1 <= N and N <= 50: break else: continue while True: X = float(input()) if -10.0 <= X and X <= 10.0: break else: continue Omega = 0.0 num = 0 while ( num != N): Omega += (((-1)**num)*(X**(num *3)))/math.factorial(num*3) num += 1 print("OMEGA (", X, ") para ", N , " Termino(s) = ", Omega)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Pierwiastkowanie
Remove all Adjacent duplicates using a loop
камень ножницы бумага
CICLO WHILE PYTHON 3
9th jan2
shuru16
Return nth fibonacci number using memoization
(P3) Rok przestępny
Homework exercise
Random module
Please log in to post a comment.