Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DR(object):
- def __init__(self, a, b):
- self.a = a
- self.b = b
- def value(self,x):
- return self.a * exp(-self.b * x)
- f = DR(1.0, 0.1)
- f.value(1)
- from math import exp
- class DR(object):
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement