Lines Matching defs:result
93 Py_complex r; /* the result */
188 double result;
195 result = fabs(z.real);
197 return result;
200 result = fabs(z.imag);
202 return result;
208 result = hypot(z.real, z.imag);
209 if (!Py_IS_FINITE(result))
213 return result;
341 real part of the result, and fill in the imaginary part as 0. */
354 PyObject *result = NULL;
379 parens in the result. */
397 result = PyUnicode_FromFormat("%s%s%sj%s", lead, re, im, tail);
402 return result;
461 Py_complex result;
465 result = _Py_c_sum(a, b);
466 return PyComplex_FromCComplex(result);
472 Py_complex result;
476 result = _Py_c_diff(a, b);
477 return PyComplex_FromCComplex(result);
483 Py_complex result;
487 result = _Py_c_prod(a, b);
488 return PyComplex_FromCComplex(result);
566 double result;
568 result = _Py_c_abs(v->cval);
575 return PyFloat_FromDouble(result);
860 PyObject *s_buffer = NULL, *result = NULL;
880 result = _Py_string_to_number_with_underscores(s, len, "complex", v, type,
883 return result;