/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_math.py | 133 def ftest(self, name, value, expected):
member in class:MathTests 143 self.ftest('pi', math.pi, 3.1415926)
144 self.ftest('e', math.e, 2.7182818)
148 self.ftest('acos(-1)', math.acos(-1), math.pi)
149 self.ftest('acos(0)', math.acos(0), math.pi/2)
150 self.ftest('acos(1)', math.acos(1), 0)
157 self.ftest('acosh(1)', math.acosh(1), 0)
158 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168)
167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2)
168 self.ftest('asin(0)', math.asin(0), 0) [all...] |
/external/python/cpython2/Lib/test/ |
test_math.py | 133 def ftest(self, name, value, expected): member in class:MathTests 143 self.ftest('pi', math.pi, 3.1415926) 144 self.ftest('e', math.e, 2.7182818) 148 self.ftest('acos(-1)', math.acos(-1), math.pi) 149 self.ftest('acos(0)', math.acos(0), math.pi/2) 150 self.ftest('acos(1)', math.acos(1), 0) 157 self.ftest('acosh(1)', math.acosh(1), 0) 158 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168) 167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2) 168 self.ftest('asin(0)', math.asin(0), 0 [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_math.py | 133 def ftest(self, name, value, expected): member in class:MathTests 143 self.ftest('pi', math.pi, 3.1415926) 144 self.ftest('e', math.e, 2.7182818) 148 self.ftest('acos(-1)', math.acos(-1), math.pi) 149 self.ftest('acos(0)', math.acos(0), math.pi/2) 150 self.ftest('acos(1)', math.acos(1), 0) 157 self.ftest('acosh(1)', math.acosh(1), 0) 158 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168) 167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2) 168 self.ftest('asin(0)', math.asin(0), 0 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_math.py | 133 def ftest(self, name, value, expected): member in class:MathTests 143 self.ftest('pi', math.pi, 3.1415926) 144 self.ftest('e', math.e, 2.7182818) 148 self.ftest('acos(-1)', math.acos(-1), math.pi) 149 self.ftest('acos(0)', math.acos(0), math.pi/2) 150 self.ftest('acos(1)', math.acos(1), 0) 157 self.ftest('acosh(1)', math.acosh(1), 0) 158 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168) 167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2) 168 self.ftest('asin(0)', math.asin(0), 0 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_math.py | 133 def ftest(self, name, value, expected): member in class:MathTests 143 self.ftest('pi', math.pi, 3.1415926) 144 self.ftest('e', math.e, 2.7182818) 148 self.ftest('acos(-1)', math.acos(-1), math.pi) 149 self.ftest('acos(0)', math.acos(0), math.pi/2) 150 self.ftest('acos(1)', math.acos(1), 0) 157 self.ftest('acosh(1)', math.acosh(1), 0) 158 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168) 167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2) 168 self.ftest('asin(0)', math.asin(0), 0 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_math.py | 133 def ftest(self, name, value, expected): member in class:MathTests 143 self.ftest('pi', math.pi, 3.1415926) 144 self.ftest('e', math.e, 2.7182818) 148 self.ftest('acos(-1)', math.acos(-1), math.pi) 149 self.ftest('acos(0)', math.acos(0), math.pi/2) 150 self.ftest('acos(1)', math.acos(1), 0) 157 self.ftest('acosh(1)', math.acosh(1), 0) 158 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168) 167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2) 168 self.ftest('asin(0)', math.asin(0), 0 [all...] |
/external/ltp/testcases/network/nfsv4/locks/ |
locktests.c | 751 int i, a, result, ftest; local 763 ftest = -1; 785 if ((ftest = open(dp.fname, O_RDONLY | O_NONBLOCK)) < 0) { 792 P("fd=%d\n", ftest); 793 a = read(ftest, tmp, 16); 804 if ((ftest = open(dp.fname, O_WRONLY | O_NONBLOCK)) < 0) { 811 P("fd=%d\n", ftest); 812 if (write(ftest, phraseTest, len) < len) 824 if ((ftest = open(dp.fname, O_RDONLY | O_NONBLOCK)) < 0) { 832 P("fd=%d\n", ftest); [all...] |
/external/python/cpython3/Lib/test/ |
test_math.py | 195 # Common logic of MathTests.(ftest, test_testcases, test_mtestcases) 249 def ftest(self, name, got, expected, ulp_tol=5, abs_tol=0.0): member in class:MathTests 264 self.ftest('pi', math.pi, 3.141592653589793238462643) 265 self.ftest('e', math.e, 2.718281828459045235360287) 270 self.ftest('acos(-1)', math.acos(-1), math.pi) 271 self.ftest('acos(0)', math.acos(0), math.pi/2) 272 self.ftest('acos(1)', math.acos(1), 0) 281 self.ftest('acosh(1)', math.acosh(1), 0) 282 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168) 291 self.ftest('asin(-1)', math.asin(-1), -math.pi/2 [all...] |