7.4.10 Mathematical functions

Mathematical functions are as follows.

Table 7.12

Mathematical Functions

Function/Macro Name

Outline

expf

Exponent function

exp

Exponent function

logf

Logarithmic function (natural logarithm)

log

Logarithmic function (natural logarithm)

log10f

Logarithmic function (base = 10)

log10

Logarithmic function (base = 10)

powf

Power function

pow

Power function

sqrtf

Square root function

sqrt

Square root function

ceilf

ceiling function

ceil

ceiling function

fabsf

Absolute value function

fabs

Absolute value function

floorf

floor function

floor

floor function

fmodf

Remainder function

fmod

Remainder function

frexpf

Divide floating-point number into mantissa and power

frexp

Divide floating-point number into mantissa and power

ldexpf

Convert floating-point number to power

ldexp

Convert floating-point number to power

modff

Divide floating-point number into integer and decimal

modf

Divide floating-point number into integer and decimal

cosf

Cosine

cos

Cosine

sinf

Sine

sin

Sine

tanf

Tangent

tan

Tangent

acosf

Arc cosine

acos

Arc cosine

asinf

Arc sine

asin

Arc sine

atanf

Arc tangent

atan

Arc tangent

atan2f

Arc tangent (y / x)

atan2

Arc tangent (y / x)

coshf

Hyperbolic cosine

cosh

Hyperbolic cosine

sinhf

Hyperbolic sine

sinh

Hyperbolic sine

tanhf

Hyperbolic tangent

tanh

Hyperbolic tangent