Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ej2_python_204676887
#Valentina MOral 20467688-7 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
Organizing Transactions
Ваня и забор
E
Python input
Search element in a matrix
@godel godel
Helloworld
Hello
Bubble sort
Assignment-3b