17 self.
err = math.sqrt( self.
err*self.
err + other.err*other.err)
21 new = copy.deepcopy(self)
27 self.
err = math.sqrt( self.
err*self.
err + other.err*other.err)
31 new = copy.deepcopy(self)
36 relerr = math.sqrt( self.
relerr()*self.
relerr() + other.relerr()*other.relerr())
38 self.
err = relerr * self.
val
42 new = copy.deepcopy(self)
47 return '{val:10.3f} +- {err:8.3f} ({relerr:5.2f}%)'.
format(val=self.
val,
51 if __name__==
'__main__':
Abs< T >::type abs(const T &t)