Home
last modified time | relevance | path

Searched refs:Rat (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_binop.py25 return isinstance(x, Rat)
27 class Rat(object): class
89 other = Rat(other)
91 return Rat(self.__num*other.__den + other.__num*self.__den,
102 other = Rat(other)
104 return Rat(self.__num*other.__den - other.__num*self.__den,
113 other = Rat(other)
115 return Rat(other.__num*self.__den - self.__num*other.__den,
124 return Rat(self.__num*other.__num, self.__den*other.__den)
126 return Rat(self.__num*other, self.__den)
[all …]
Dtest_long.py797 class Rat: class
839 if not isinstance(other, Rat):
840 other = Rat(other)
856 Rx = Rat(x)
858 Ry = Rat(y)