Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def B1(s):
- if s >= 0.8: return 1.0
- return 1 / (1 + math.pow(0.2 + s, 3))
- def B2(s):
- if 0 <= s <= 0.1: return 1.0
- return 1 / (1 + math.pow(0.9 + s, 2))
- if __name__ == "__main__":
- h = input()
- print B1(h)
- print B2(h)
Add Comment
Please, Sign In to add comment