7.5.3 Mathematical functions

Mathematical functions are as follows.

Table 7.5

Mathematical Functions

Function/Macro Name

Outline

acos

Arc cosine

acosf

Arc cosine

asin

Arc sine

asinf

Arc sine

atan

Arc tangent

atanf

Arc tangent

atan2

Arc tangent (y / x)

atan2f

Arc tangent (y / x)

cos

Cosine

cosf

Cosine

sin

Sine

sinf

Sine

tan

Tangent

tanf

Tangent

cosh

Hyperbolic cosine

coshf

Hyperbolic cosine

sinh

Hyperbolic sine

sinhf

Hyperbolic sine

tanh

Hyperbolic tangent

tanhf

Hyperbolic tangent

exp

Exponent function

expf

Exponent function

frexp

Divide floating-point number into mantissa and power

frexpf

Divide floating-point number into mantissa and power

ldexp

Convert floating-point number to power

ldexpf

Convert floating-point number to power

log

Logarithmic function (natural logarithm)

logf

Logarithmic function (natural logarithm)

log10

Logarithmic function (base = 10)

log10f

Logarithmic function (base = 10)

modf

Divide floating-point number into integer and decimal

modff

Divide floating-point number into integer and decimal

pow

Power function

powf

Power function

sqrt

Square root function

sqrtf

Square root function

ceil

ceiling function

ceilf

ceiling function

fabs

Absolute value function

fabsf

Absolute value function

floor

floor function

floorf

floor function

fmod

Remainder function

fmodf

Remainder function