Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Eje2_Python_201169275
#python 3.6.9 #NicolásPeraltaVergara #20.116.927-5 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 OMG = 0.0 CT = 0 while ( CT != N): OMG += (((-1)**CT)*(X**(CT *3)))/math.factorial(CT*3) CT += 1 print("OMEGA (", X, ") para ", N , " Termino(s) = ", OMG)
run
|
edit
|
history
|
help
0
X
Gift_Card Interview SQL Analysis Conducted by Miranda Zhao
S
global 4
ls
HW. InsertionSort in Descending order
gj
Kim
0-1 Knapsack
Country Flags