Re: About missing inverse hyperbolic function

2008-01-03 Thread Bastien ROUCARIES
Le mercredi 2 janvier 2008, Bruno Haible a écrit : > Hello, > > Bastien Roucaries wrote: > > I need for my program to use asinh acosh and atanh. For now I used to > > define > > > > it if missing using > > #define asinh(x) log(x+sqrt(x*x+1)) > > #define acosh(x) log(x+sqrt(x-1.0)*sqrt(x+1.0)) > > #

Re: About missing inverse hyperbolic function

2008-01-02 Thread Bruno Haible
Hello, Bastien Roucaries wrote: > I need for my program to use asinh acosh and atanh. For now I used to define > > it if missing using > #define asinh(x) log(x+sqrt(x*x+1)) > #define acosh(x) log(x+sqrt(x-1.0)*sqrt(x+1.0)) > #define atanh(x) (0.5*log(x+1)-0.5*log(1-x)) > > How can I create a g