Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15d7270 commit 1c8e1f0Copy full SHA for 1c8e1f0
1 file changed
Modules/cmathmodule.c
@@ -70,8 +70,9 @@ c_asin(Py_complex x)
70
/* -i * log[(sqrt(1-x**2) + i*x] */
71
const Py_complex squared = c_prod(x, x);
72
const Py_complex sqrt_1_minus_x_sq = c_sqrt(c_diff(c_one, squared));
73
- const Py_complex sum = c_sum(sqrt_1_minus_x_sq, c_prod(c_i, x));
74
- return c_neg(c_prodi(c_log(sum)));
+ return c_neg(c_prodi(c_log(
+ c_sum(sqrt_1_minus_x_sq, c_prodi(x))
75
+ ) ) );
76
}
77
78
static char c_asin_doc[] =
0 commit comments