Home
last modified time | relevance | path

Searched refs:imag (Results 1 - 25 of 32) sorted by relevance

12

/third_party/python/Modules/
H A Dcmathmodule.c112 r.imag = m_inf(); in c_infj()
133 r.imag = m_nan(); in c_nanj()
190 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \
193 [special_type((z).imag)]; \
232 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in cmath_acos_impl()
234 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl()
238 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
239 M_LN2*2., z.imag); in cmath_acos_impl()
241 r.imag in cmath_acos_impl()
[all...]
/third_party/python/Objects/
H A Dcomplexobject.c32 r.imag = a.imag + b.imag; in _Py_c_sum()
41 r.imag = a.imag - b.imag; in _Py_c_diff()
50 r.imag = -a.imag; in _Py_c_neg()
58 r.real = a.real*b.real - a.imag*b.imag; in _Py_c_prod()
241 complex_subtype_from_doubles(PyTypeObject *type, double real, double imag) complex_subtype_from_doubles() argument
250 PyComplex_FromDoubles(double real, double imag) PyComplex_FromDoubles() argument
[all...]
H A Dcodeobject.c2111 imag_negzero = z.imag == 0.0 && copysign(1.0, z.imag) < 0.0; in _PyCode_ConstantKey()
2112 /* use True, False and None singleton as tags for the real and imag in _PyCode_ConstantKey()
/third_party/python/Lib/test/
H A Dtest_complex.py29 unittest.TestCase.assertAlmostEqual(self, a.imag, b.imag)
32 unittest.TestCase.assertAlmostEqual(self, a.imag, 0.)
36 unittest.TestCase.assertAlmostEqual(self, 0., b.imag)
78 self.assertCloseAbs(x.imag, y.imag, eps)
116 self.assertTrue(isnan(z.imag))
167 def check(n, deltas, is_equal, imag = 0.0):
170 z = complex(i, imag)
260 for imag i
[all...]
H A Dtest_cmath.py99 self.assertFloatIdentical(x.imag, y.imag)
161 self.assertEqual(cmath.inf.imag, 0.0)
163 self.assertEqual(cmath.infj.imag, math.inf)
166 self.assertEqual(cmath.nan.imag, 0.0)
168 self.assertTrue(math.isnan(cmath.nanj.imag))
325 self.assertEqual(0., z.imag)
332 self.assertEqual(0., z.imag)
351 return cmath.rect(z.real, z.imag)
394 actual = complex(abs(actual.real), actual.imag)
[all...]
H A Dtest_abstract_numbers.py14 self.assertEqual(0, int(7).imag)
25 self.assertEqual(0, float(7.3).imag)
H A Dtest_bool.py354 self.assertEqual(True.imag, 0)
356 self.assertIs(type(True.imag), int)
358 self.assertEqual(False.imag, 0)
360 self.assertIs(type(False.imag), int)
H A Dtest_fractions.py492 self.assertEqual(z.imag, 1)
602 self.assertEqual(1, z.imag)
/third_party/typescript/tests/baselines/reference/
H A DtsxTypeErrors.js13 var e1 = <imag src="bar.jpg" />
45 var e1 = <imag src="bar.jpg"/>;
/third_party/libsnd/src/
H A Dmat4.c208 int rows, cols, imag ; in mat4_read_header() local
229 psf_binheader_readf (psf, "444", &rows, &cols, &imag) ; in mat4_read_header()
231 psf_log_printf (psf, " Rows : %d\n Cols : %d\n Imag : %s\n", rows, cols, imag ? "True" : "False") ; in mat4_read_header()
259 psf_binheader_readf (psf, "444", &rows, &cols, &imag) ; in mat4_read_header()
261 psf_log_printf (psf, " Rows : %d\n Cols : %d\n Imag : %s\n", rows, cols, imag ? "True" : "False") ; in mat4_read_header()
/third_party/ffmpeg/libavfilter/
H A Daf_afftfilt.c47 AVExpr **imag; member
64 { "imag", "set channels imaginary expressions", OFFSET(img_str), AV_OPT_TYPE_STRING, {.str = "im" }, 0, 0, A },
98 static const char *const func2_names[] = { "real", "imag", NULL };
163 s->imag = av_calloc(inlink->ch_layout.nb_channels, sizeof(*s->imag)); in config_input()
164 if (!s->imag) in config_input()
194 ret = av_expr_parse(&s->imag[ch], arg ? arg : last_expr, var_names, in config_input()
283 fi = av_expr_eval(s->imag[ch], values, s); in filter_channel()
424 av_expr_free(s->imag[i]); in uninit()
428 av_freep(&s->imag); in uninit()
[all...]
H A Dafir_template.c67 double div, real_num = 0., imag_num = 0., real = 0., imag = 0.; in draw_response() local
71 imag += sin(-x * w) * src[x]; in draw_response()
76 mag[i] = hypot(real, imag); in draw_response()
77 phase[i] = atan2(imag, real); in draw_response()
78 div = real * real + imag * imag; in draw_response()
79 delay[i] = (real_num * real + imag_num * imag) / div; in draw_response()
H A Daf_apsyclip.c360 float imag = clip_spectrum[i * 2 + 1]; in limit_clip_spectrum() local
363 relative_distortion_level = hypotf(real, imag) * 2 / mask_curve[i]; in limit_clip_spectrum()
H A Daf_aiir.c1101 double real, imag; in get_response() local
1119 imag = (imagz * realp - imagp * realz) / div; in get_response()
1121 *magnitude = hypot(real, imag); in get_response()
1122 *phase = atan2(imag, real); in get_response()
/third_party/PyYAML/lib/yaml/
H A Drepresenter.py275 if data.imag == 0.0:
278 data = '%rj' % data.imag
279 elif data.imag > 0:
280 data = '%r+%rj' % (data.real, data.imag)
282 data = '%r%rj' % (data.real, data.imag)
/third_party/python/Lib/
H A Dnumbers.py35 In short, those are: a conversion to complex, .real, .imag, +, -,
64 def imag(self): member in Complex
256 def imag(self): member in Real
H A Dcopyreg.py35 return complex, (c.real, c.imag)
H A Dfractions.py685 if isinstance(b, numbers.Complex) and b.imag == 0:
/third_party/python/Include/
H A Dcomplexobject.h16 PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
/third_party/python/Include/cpython/
H A Dcomplexobject.h7 double imag; member
/third_party/python/Modules/_decimal/tests/
H A Dranddec.py457 imag = 0.0
459 imag = randfloat()
460 return complex(real, imag)
H A Ddeccheck.py103 'property': ('real', 'imag')
846 t.cresults.append(str(t.rc.imag))
850 t.presults.append(str(t.rp.imag))
856 t.maxresults.append(str(t.rmax.imag))
/third_party/python/Parser/
H A Dpegen.c589 compl.imag = PyOS_string_to_double(s, (char **)&end, NULL); in parsenumber_raw()
590 if (compl.imag == -1.0 && PyErr_Occurred()) { in parsenumber_raw()
/third_party/python/Python/
H A Dmarshal.c1088 c.imag = r_float_str(p); in r_object()
1089 if (c.imag == -1.0 && PyErr_Occurred()) in r_object()
1102 c.imag = r_float_bin(p); in r_object()
1103 if (c.imag == -1.0 && PyErr_Occurred()) in r_object()
/third_party/python/Lib/test/test_capi/
H A Dtest_getargs.py515 self.assertEqualWithSign(getargs_D(complex(1.0, 0.0)).imag, 0.0)
516 self.assertEqualWithSign(getargs_D(complex(1.0, -0.0)).imag, -0.0)

Completed in 29 milliseconds

12