Home
last modified time | relevance | path

Searched refs:NINF (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_math.py15 NINF = float('-inf') variable
152 self.assertRaises(ValueError, math.acos, NINF)
162 self.assertRaises(ValueError, math.acosh, NINF)
171 self.assertRaises(ValueError, math.asin, NINF)
180 self.assertEqual(math.asinh(NINF), NINF)
189 self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
200 self.assertRaises(ValueError, math.atanh, NINF)
212 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
220 self.ftest('atan2(-0., -inf)', math.atan2(-0., NINF), -math.pi)
228 self.ftest('atan2(inf, -inf)', math.atan2(INF, NINF), math.pi*3/4)
[all …]
Dieee754.txt26 >>> NINF = float('-inf')
31 >>> NINF
38 >>> isinf(INF), isinf(NINF), isnan(NAN)
40 >>> INF == -NINF
133 >>> sin(NINF)
143 >>> cos(NINF)
153 >>> tan(NINF)
171 >>> asin(INF), asin(NINF)
175 >>> acos(INF), acos(NINF)
179 >>> equal(atan(INF), PI/2), equal(atan(NINF), -PI/2)
/external/python/cpython3/Lib/test/
Dtest_math.py20 NINF = float('-inf') variable
264 self.assertRaises(ValueError, math.acos, NINF)
276 self.assertRaises(ValueError, math.acosh, NINF)
285 self.assertRaises(ValueError, math.asin, NINF)
296 self.assertEqual(math.asinh(NINF), NINF)
305 self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
316 self.assertRaises(ValueError, math.atanh, NINF)
328 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
336 self.ftest('atan2(-0., -inf)', math.atan2(-0., NINF), -math.pi)
344 self.ftest('atan2(inf, -inf)', math.atan2(INF, NINF), math.pi*3/4)
[all …]
Dieee754.txt26 >>> NINF = float('-inf')
31 >>> NINF
38 >>> isinf(INF), isinf(NINF), isnan(NAN)
40 >>> INF == -NINF
133 >>> sin(NINF)
143 >>> cos(NINF)
153 >>> tan(NINF)
171 >>> asin(INF), asin(NINF)
175 >>> acos(INF), acos(NINF)
179 >>> equal(atan(INF), PI/2), equal(atan(NINF), -PI/2)
/external/fonttools/Tests/misc/
Dpy23_test.py256 NINF = float('-inf') variable
326 self.assertIsClose(NINF, NINF)
327 self.assertIsClose(NINF, NINF, abs_tol=0.0)
337 (INF, NINF),
/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/
Dcos.ll28 ; CHECK-NEXT: [[NINF:%.*]] = call half @llvm.amdgcn.cos.f16(half 0xHFC00)
29 ; CHECK-NEXT: store volatile half [[NINF]], half* [[P]], align 2
91 ; CHECK-NEXT: [[NINF:%.*]] = call float @llvm.amdgcn.cos.f32(float 0xFFF0000000000000)
92 ; CHECK-NEXT: store volatile float [[NINF]], float* [[P]], align 4
154 ; CHECK-NEXT: [[NINF:%.*]] = call double @llvm.amdgcn.cos.f64(double 0xFFF0000000000000)
155 ; CHECK-NEXT: store volatile double [[NINF]], double* [[P]], align 8
Dsin.ll28 ; CHECK-NEXT: [[NINF:%.*]] = call half @llvm.amdgcn.sin.f16(half 0xHFC00)
29 ; CHECK-NEXT: store volatile half [[NINF]], half* [[P]], align 2
91 ; CHECK-NEXT: [[NINF:%.*]] = call float @llvm.amdgcn.sin.f32(float 0xFFF0000000000000)
92 ; CHECK-NEXT: store volatile float [[NINF]], float* [[P]], align 4
154 ; CHECK-NEXT: [[NINF:%.*]] = call double @llvm.amdgcn.sin.f64(double 0xFFF0000000000000)
155 ; CHECK-NEXT: store volatile double [[NINF]], double* [[P]], align 8
/external/llvm-project/libclc/generic/lib/math/
Dmath.h32 #define NINF 0x004 macro
/external/tensorflow/tensorflow/compiler/tests/
Dunary_ops_test.py268 [[np.NINF, -2, -1, 0, 0.5, 1, 2, np.inf, np.nan]], dtype=dtype),
860 [[np.NINF, -2, -1, 0, 0.5, 1, 2, np.inf, np.nan]], dtype=dtype),
865 [[np.NINF, -2, -1, 0, 0.5, 1, 2, np.inf, np.nan]], dtype=dtype),
/external/tensorflow/tensorflow/python/ops/
Dmath_grad_test.py471 x_vals = [0, 1.0, np.nan, np.inf, np.NINF]
Dmath_ops_test.py615 values = [0, 1, np.nan, np.inf, np.NINF]
/external/libxml2/
DChangeLog15927 * include/libxml/xpath.h: exported xmlXPath{NAN,PINF,NINF}