TwiNNeR

snzl6z2

Dec 11th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import math
  2.  
  3.  
  4. def B1(s):
  5.     if s >= 0.8: return 1.0
  6.     return 1 / (1 + math.pow(0.2 + s, 3))
  7.  
  8.  
  9. def B2(s):
  10.     if 0 <= s <= 0.1: return 1.0
  11.     return 1 / (1 + math.pow(0.9 + s, 2))
  12.  
  13.  
  14. if __name__ == "__main__":
  15.     h = input()
  16.     print B1(h)
  17.     print B2(h)
Add Comment
Please, Sign In to add comment