Example #1
0
 def __imul__(self, other):
     if isinstance(other, Uncertainty):
         self.x, self.variance = err1d.mul_inplace(self.x, self.variance, other.x, other.variance)
     else:
         self.x *= other
         self.variance *= other ** 2
     return self
Example #2
0
 def __imul__(self, other):
     if isinstance(other, Uncertainty):
         self.x, self.variance \
             = err1d.mul_inplace(self.x,self.variance,other.x,other.variance)
     else:
         self.x *= other
         self.variance *= other**2
     return self
Example #3
0
 def __imul__(self, other):
     if isinstance(other,Measurement):
         self.x, self.variance \
             = err1d.mul_inplace(self.x,self.variance,other.x,other.variance)
     else:
         self.x *= other
         self.variance *= other**2
     return self