amath  1.8.5
Simple command line calculator
hcv.c File Reference

Hacoversed sine function. More...

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

Go to the source code of this file.

Functions

double hcv (double x)
 Hacoversed sine function. More...
 

Detailed Description

Hacoversed sine function.

Definition in file hcv.c.

Function Documentation

◆ hcv()

double hcv ( double  x)

Hacoversed sine function.

hcv(x) = (1-sin(x))/2

Definition at line 44 of file hcv.c.

References sin().

Referenced by RealNumber::HaCoVerSine().

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: