2021-04-27 18:33:31 +02:00
|
|
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
double cosh(double x)
|
|
|
|
{
|
2022-04-15 11:00:55 +02:00
|
|
|
const double ebig = exp(fabs(x));
|
|
|
|
return (ebig + 1.0 / ebig) / 2.0;
|
2021-04-27 18:33:31 +02:00
|
|
|
}
|