Mikroc, Cosh, Fabs – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 295

Advertising
background image

MikroElektronika: Development tools - Books - Compilers

287

page

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

Prototype

double

cos(double x);

Description

Function returns the cosine of

x

in radians. The return value is from -1 to 1.

cos

Prototype

double

cosh(double x);

Description

Function returns the hyperbolic cosine of

x

, defined mathematically as

(e

x

+e

-x

)/2

. If

the value of

x

is too large (if overflow occurs), the function fails.

cosh

Prototype

double

exp(double x);

Description

Function returns the value of

e

— the base of natural logarithms — raised to the power

of

x

(i.e.

e

x

).

exp

Prototype

double

fabs(double num);

Description

Function returns the absolute (i.e. positive) value of

num

.

fabs

Advertising
This manual is related to the following products: