amath  1.8.5
Simple command line calculator
hcc.c File Reference

Hacoversed cosine function. More...

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

Go to the source code of this file.

Functions

double hcc (double x)
 Hacoversed cosine function. More...
 

Detailed Description

Hacoversed cosine function.

Definition in file hcc.c.

Function Documentation

◆ hcc()

double hcc ( double  x)

Hacoversed cosine function.

hcc(x) = (1+sin(x))/2

Definition at line 44 of file hcc.c.

References sin().

Referenced by RealNumber::HaCoVerCosine().

45 {
46  double a = sin(x);
47  double b = 1.0 - a;
48  double c = b / 2.0;
49  return c;
50 }
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: