Commits

ZyX_I  committed ee40ffe

Seems that __truediv__ does not work for some reason. Use __div__

  • Participants
  • Parent commits 3a476f1

Comments (0)

Files changed (1)

         return self.__class__(self.num/f.num,
                               sqrt((self.acc/f.num)**2+
                                    ((f.acc*self.num/(f.num**2))**2)))
+    __div__=__truediv__
 
     @tosameclass
     def __rtruediv__(self, f):
         return f/self
+    __rdiv__=__rtruediv__
 
     def __pow__(self, n):
         return self.__class__(self.num**n, self.acc*abs(n*(self.num**(n-1))))