amath  1.8.5
Simple command line calculator
acot.c File Reference

Inverse cotangent function. More...

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

Go to the source code of this file.

Functions

double acot (double x)
 Inverse cotangent function. More...
 

Detailed Description

Inverse cotangent function.

Definition in file acot.c.

Function Documentation

◆ acot()

double acot ( double  x)

Inverse cotangent function.

Method
    arccot(x) = arctan(1/x)

Definition at line 45 of file acot.c.

References atan().

Referenced by RealNumber::ArcCotangent().

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