projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a71b5f4
)
Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh().
author
Guido van Rossum
<guido@python.org>
Thu, 14 Jan 1999 19:11:11 +0000
(19:11 +0000)
committer
Guido van Rossum
<guido@python.org>
Thu, 14 Jan 1999 19:11:11 +0000
(19:11 +0000)
Break it up.
Modules/cmathmodule.c
patch
|
blob
|
history
diff --git
a/Modules/cmathmodule.c
b/Modules/cmathmodule.c
index 45dad11e060769d210d3f7db3a0897ca7387b232..060cc6f9baf21d34faffd3f243d3180475f1d09f 100644
(file)
--- 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 [] =