amath  1.8.5
Simple command line calculator
ver.c File Reference

Secant function. More...

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

Go to the source code of this file.

Functions

double ver (double x)
 Versed sine function. More...
 

Detailed Description

Secant function.

Versed sine function.

Definition in file ver.c.

Function Documentation

◆ ver()

double ver ( double  x)

Versed sine function.

versin = 1-cos(x)
       = 2*sin(x/2)*sin(x/2)

Definition at line 45 of file ver.c.

References sin().

Referenced by exs(), and RealNumber::VerSine().

46 {
47  double a = x / 2.0;
48  double b = sin(a);
49  double c = 2 * b * b;
50  return c;
51 }
double sin(double x)
Sine function.
Definition: sin.c:86
Here is the call graph for this function:
Here is the caller graph for this function: