Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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 C = 0.0 D = 0 while ( D != N): C += (((-1)**D)*(X**(D *3)))/math.factorial(D*3) D += 1 print("OMEGA (", X, ") para ", N , " Termino(s) = ", C)
run
|
edit
|
history
|
help
0
PyAnchorAlter
PyRegLookBehind
json array object loop
linked_lists
PyMenu
PyQueue
PyMenuClass
quck sort
PyNamedTuple
Pure Python Square root without using Math.sqrt()