summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
authorsasha <sasha@localhost>2006-01-14 07:21:32 +0000
committersasha <sasha@localhost>2006-01-14 07:21:32 +0000
commit5410f3426f3a6a97f5053dcf96f593d4bdde769a (patch)
treedf54f8a84a1abdb9ffec5f48287f6ab8c1a9718a /numpy/core/ma.py
parentdde45b170499fbe3202e45e93eeb2acb08837c45 (diff)
downloadnumpy-5410f3426f3a6a97f5053dcf96f593d4bdde769a.tar.gz
fixed domains for arccosh and arctanh
TODO: replace literal constants with appropriate machine specific values in arctanh and tan domains
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 982ba437e..03e94b68e 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -455,8 +455,8 @@ arccos = masked_unary_operation(umath.arccos, 0.0, domain_check_interval(-1.0, 1
arctan = masked_unary_operation(umath.arctan)
# Missing from numeric
arcsinh = masked_unary_operation(umath.arcsinh)
-arccosh = masked_unary_operation(umath.arccosh)
-arctanh = masked_unary_operation(umath.arctanh)
+arccosh = masked_unary_operation(umath.arccosh, 1.0, domain_greater_equal(1.0))
+arctanh = masked_unary_operation(umath.arctanh, 0.0, domain_check_interval(-1.0+1e-15, 1.0-1e-15))
sinh = masked_unary_operation(umath.sinh)
cosh = masked_unary_operation(umath.cosh)
tanh = masked_unary_operation(umath.tanh)