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 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
miyabhai
H.W.5 ALL Solutions
Bisection method
shuru9
list_copy_shallow_deep.py
Calc1
Fu 1
Emails_Python
Return nth fibonacci number using memoization
Hello world