2021-04-27 18:33:31 +02:00
|
|
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
|
|
#include <math.h>
|
|
|
|
|
2022-04-15 11:00:55 +02:00
|
|
|
double asinh(double x)
|
2021-04-27 18:33:31 +02:00
|
|
|
{
|
2022-04-15 11:00:55 +02:00
|
|
|
return x > 0 ? log(x + sqrt(x * x + 1)) : -log(sqrt(x * x + 1) - x);
|
2021-04-27 18:33:31 +02:00
|
|
|
}
|