atanh(p1)
public
Computes the inverse hyperbolic tangent of x.
Show source
/*
* call-seq:
* Math.atanh(x) => float
*
* Computes the inverse hyperbolic tangent of <i>x</i>.
*/
static VALUE
math_atanh(obj, x)
VALUE obj, x;
{
double d;
Need_Float(x);
errno = 0;
d = atanh(RFLOAT(x)->value);
domain_check(d, "atanh");
return rb_float_new(d);
}