Home
last modified time | relevance | path

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

/external/python/cpython2/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.py831 class Rat: class
873 if not isinstance(other, Rat):
874 other = Rat(other)
890 Rx = Rat(x)
892 Ry = Rat(y)
/external/python/cpython3/Lib/test/
Dtest_binop.py27 return isinstance(x, Rat)
29 class Rat(object): class
85 other = Rat(other)
87 return Rat(self.__num*other.__den + other.__num*self.__den,
98 other = Rat(other)
100 return Rat(self.__num*other.__den - other.__num*self.__den,
109 other = Rat(other)
111 return Rat(other.__num*self.__den - self.__num*other.__den,
120 return Rat(self.__num*other.__num, self.__den*other.__den)
122 return Rat(self.__num*other, self.__den)
[all …]
Dtest_long.py537 class Rat: class
579 if not isinstance(other, Rat):
580 other = Rat(other)
607 Rx = Rat(x)
609 Ry = Rat(y)
/external/icu/icu4c/source/data/locales/
Dlb.txt188 "Rat",
210 "Rat",
Dnl.txt2136 "Rat",
2150 "Rat",
2164 "Rat",
3213 "Rat",
3227 "Rat",
3241 "Rat",
Dar_XB.txt37 "؜‮Rat‬؜",
Den.txt285 "Rat",
/external/python/cpython2/Misc/
DHISTORY14101 - Demo/classes/Rat.py completely rewritten by Sjoerd Mullender.
15270 Complex.py and Rat.py show how to implement a numeric type without and
16481 demo/classes/Rat.py for a simple example.
/external/python/cpython3/Misc/
DHISTORY31480 - Demo/classes/Rat.py completely rewritten by Sjoerd Mullender.
32649 Complex.py and Rat.py show how to implement a numeric type without and
33860 demo/classes/Rat.py for a simple example.