16 return self.
val == other.val
and self.
err == other.err
20 self.
err = math.sqrt( self.
err*self.
err + other.err*other.err)
24 new = copy.deepcopy(self)
30 self.
err = math.sqrt( self.
err*self.
err + other.err*other.err)
34 new = copy.deepcopy(self)
39 relerr = math.sqrt( self.
relerr()*self.
relerr() + other.relerr()*other.relerr())
41 self.
err = relerr * self.
val 45 new = copy.deepcopy(self)
50 return '{val:10.3f} +- {err:8.3f} ({relerr:5.2f}%)'.
format(val=self.
val,
def __iadd__(self, other)
def __init__(self, val, err)
def __isub__(self, other)
Abs< T >::type abs(const T &t)
def __idiv__(self, other)