amath  1.8.5
Simple command line calculator
asec.c File Reference

Inverse secant function. More...

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

Go to the source code of this file.

Functions

double asec (double x)
 Inverse secant function. More...
 

Detailed Description

Inverse secant function.

Definition in file asec.c.

Function Documentation

◆ asec()

double asec ( double  x)

Inverse secant function.

Method
    arcsec(x) = arccos(1/x)

Definition at line 45 of file asec.c.

References acos().

Referenced by RealNumber::ArcSecant().

46 {
47  double a = 1.0 / x;
48  double b = acos(a);
49  return b;
50 }
double acos(double x)
Inverse cosine function.
Definition: acos.c:92
Here is the call graph for this function:
Here is the caller graph for this function: