mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh().
Break it up.
This commit is contained in:
parent
a71b5f4e1d
commit
11a5071ed6
@ -83,7 +83,11 @@ Return the arc sine of x.";
|
||||
static Py_complex c_asinh(x)
|
||||
Py_complex x;
|
||||
{
|
||||
return c_neg(c_log(c_diff(c_sqrt(c_sum(c_1,c_prod(x,x))),x)));
|
||||
/* Break up long expression for WATCOM */
|
||||
Py_complex z;
|
||||
z = c_sum(c_1,c_prod(x,x));
|
||||
z = c_diff(c_sqrt(z),x);
|
||||
return c_neg(c_log(z));
|
||||
}
|
||||
|
||||
static char c_asinh_doc [] =
|
||||
|
Loading…
Reference in New Issue
Block a user