ulvis.paste.net

Paste Search Dynamic
Recent pastes
math p
  1. import math
  2. a= int (input())
  3. b= int (input())
  4. x= int (input())
  5. k= int (input())
  6. s= int (input())
  7. if k>0 and x>=0:
  8.   c=math.sqrt(x)+b/k
  9.   z=math.pow(math.sin(a*b*c),2)
  10.   p=(math.exp(x-c)+math.pow(math.sin(a*b),2))/math.sqrt(k)+math.pow(math.cos(s*z),2)
  11.   print ('p=%.2f'%p)
  12. else:
  13.   print ('ERROR/0')
Parsed in 0.003 seconds