Eshendo

Untitled

Apr 29th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def F(x):
  2.     return 2*(x*x-9)*(x*x-9)+10
  3. a=-10
  4. b=20
  5. M=a
  6. R=F(a)
  7. for t in range(a,b+1):
  8.     if F(t)<=R:
  9.         M=t
  10.         R=F(t)
  11. print(M)
Add Comment
Please, Sign In to add comment