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