amath  1.8.5
Simple command line calculator
exs.c File Reference

Exsecant function. More...

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

Go to the source code of this file.

Functions

double exs (double x)
 Exsecant function. More...
 

Detailed Description

Exsecant function.

Definition in file exs.c.

Function Documentation

◆ exs()

double exs ( double  x)

Exsecant function.

exsec(x) = sec(x)-1
         = (1-cos(x))/cos(x)
         = ver(x)/cos(x)
         = ver(x)*sec(x)
         = 2*sin(x/2)*sin(x/2)*sec(x)

Definition at line 48 of file exs.c.

References sec(), and ver().

Referenced by RealNumber::ExSecant().

49 {
50  return ver(x) * sec(x);
51 }
double ver(double x)
Versed sine function.
Definition: ver.c:45
double sec(double x)
Secant function.
Definition: sec.c:45
Here is the call graph for this function:
Here is the caller graph for this function: