amath  1.8.5
Simple command line calculator
csch.c File Reference

Hyperbolic cosecant function. More...

#include "prim.h"
Include dependency graph for csch.c:

Go to the source code of this file.

Functions

double csch (double x)
 Hyperbolic cosecant function. More...
 

Detailed Description

Hyperbolic cosecant function.

Definition in file csch.c.

Function Documentation

◆ csch()

double csch ( double  x)

Hyperbolic cosecant function.

csch(x) = 1/sinh(x)

Definition at line 44 of file csch.c.

References sinh().

Referenced by RealNumber::HypCosecant().

45 {
46  double a = sinh(x);
47  if (TRIG_INEXACT(a))
48  {
49  return NAN;
50  }
51  return 1.0 / a;
52 }
double sinh(double x)
Hyperbolic sine function.
Definition: sinh.c:77
#define TRIG_INEXACT(x)
Definition: prim.h:48
#define NAN
Definition: mathr.h:53
Here is the call graph for this function:
Here is the caller graph for this function: