diff options
author | Guido van Rossum <guido@python.org> | 1999-01-14 19:11:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-14 19:11:11 (GMT) |
commit | 11a5071ed60511741a03dd375f42c5294bda3e45 (patch) | |
tree | ef8a2d9f4e5d3045baa850c4f165578afe32d3d4 | |
parent | a71b5f4e1d39cda3d78a20a1c41056d362c56630 (diff) | |
download | cpython-11a5071ed60511741a03dd375f42c5294bda3e45.zip cpython-11a5071ed60511741a03dd375f42c5294bda3e45.tar.gz cpython-11a5071ed60511741a03dd375f42c5294bda3e45.tar.bz2 |
Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh().
Break it up.
-rw-r--r-- | Modules/cmathmodule.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 45dad11..060cc6f 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -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 [] = |