Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class DR(object):
  2.  
  3. def __init__(self, a, b):
  4. self.a = a
  5. self.b = b
  6.  
  7. def value(self,x):
  8. return self.a * exp(-self.b * x)
  9.  
  10. f = DR(1.0, 0.1)
  11.  
  12. f.value(1)
  13.  
  14. from math import exp
  15.  
  16. class DR(object):
  17. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement