2 asech - inverse hyperbolic secant
9 eps nonzero real, defaults to epsilon()
14 Returns the asech of x to a multiple of eps with error less in
15 absolute value than .75 * eps.
17 asech(x) is the real number v for which sech(v) = x. It is given by
19 asech(x) = ln((1 + sqrt(1 - x^2))/x)
22 ; print asech(.5,1e-5), asech(.5,1e-10), asech(.5,1e-15), asech(.5,1e-20)
23 1.31696 1.3169578969 1.316957896924817 1.31695789692481670862
29 NUMBER *qasech(NUMBER *x, NUMBER *eps)
32 asinh, acosh, atanh, acsch, acoth, epsilon
34 ## Copyright (C) 1999 Landon Curt Noll
36 ## Calc is open software; you can redistribute it and/or modify it under
37 ## the terms of the version 2.1 of the GNU Lesser General Public License
38 ## as published by the Free Software Foundation.
40 ## Calc is distributed in the hope that it will be useful, but WITHOUT
41 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
42 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
43 ## Public License for more details.
45 ## A copy of version 2.1 of the GNU Lesser General Public License is
46 ## distributed with calc under the filename COPYING-LGPL. You should have
47 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
48 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
50 ## @(#) $Revision: 30.1 $
51 ## @(#) $Id: asech,v 30.1 2007/03/16 11:10:42 chongo Exp $
52 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/asech,v $
54 ## Under source code control: 1995/11/13 03:49:00
55 ## File existed as early as: 1995
57 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
58 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/