Eshendo

Untitled

Apr 29th, 2020
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def f(x):
  2.     return 16*(9+x)*(9+x)+127
  3. a = -20
  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)
Advertisement
Add Comment
Please, Sign In to add comment