Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
20818: back conversion in py_asinh incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Jun 12, 2016
1 parent 715566f commit 4df530d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/functions/hyperbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,13 @@ def __init__(self):
-1/(sqrt(x^2 + 1)*x)
sage: latex(arccsch(x))
\operatorname{arccsch}\left(x\right)
TESTS:
Check if :trac:`20818` is fixed::
sage: arccsch(float(0.1))
2.99822295029797
"""
GinacFunction.__init__(self, "arccsch",
latex_name=r"\operatorname{arccsch}",
Expand Down
4 changes: 4 additions & 0 deletions src/sage/symbolic/pynac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,10 @@ cdef object py_asinh(object x) except +:
try:
return x.arcsinh()
except AttributeError:
pass
try:
return RR(x).arcsinh()
except TypeError:
return CC(x).arcsinh()

cdef object py_acosh(object x) except +:
Expand Down

0 comments on commit 4df530d

Please sign in to comment.