Current location - Training Enrollment Network - Mathematics courses - (OC Elementary Notes) OC Common Mathematical Functions (C Language)
(OC Elementary Notes) OC Common Mathematical Functions (C Language)
1. Arithmetic function

1. 1 generates a random number.

Rand ()

1.2 takes the absolute value.

Wafer factory

1.3 takes the absolute value of a complex number.

Cab (complex structure I)

1.4 absolute value of floating-point number

fabs()/fabsf()/fabsl()

1.5 remainder

Fmod (double precision, double precision)

1.6 round up.

ceil()/ceilf()/ceill()

1.7 rounded down.

floor()/floorf()/floorl()

1.8 Find the maximum value.

fmax()/fmaxf()/fmaxl()

1.9 Find the minimum value.

fmin()/fminf()/fminl()

1. 10 rounded.

round()/roundf()/roundl()

2. Exponents and Logarithms

2. 1 Find the value of n to the m power.

Power (n, m)/ power (n, m)/ power (n, m)

2.2 find the x power of e

exp(x)/expf(x)/expl(x)

2.3 Logarithmic value based on E

log()/logf()/logl()

2.4 Logarithm based on 10

log 10()/log 10f()/log 10l()

2.5 square root (root sign)

sqrt()

3. Trigonometric function

3. 1 sine value

sin()/sinf()/sinl()

3.2 cosine value

cons()/cosf()/cosl()

3.3 Tangent value

tan()/tanf()/tanl()

3.4 hyperbolic sine value

sinh()/sinhf()/sinhl()

3.5 hyperbolic cosine value

cosh()/coshf()/coshl()

3.4 hyperbolic tangent value

tanh()/tanhf()/tanhl()

4. Inverse trigonometric function

4. 1 arcsine value

asin()/asinf()/asinl()

4.2 cosine value

acos()/acosf()/acosl()

4.3 arc tangent value

Atan ()/Atan Fu ()/Atan Er ()

4.4 Inverse hyperbolic sine value

asinh()/asinhf()/asinhl()

4.5 Inverse hyperbolic cosine value

acosh()/acoshf()/acoshl()

4.6 Inverse hyperbolic tangent value

atanh()/atanhf()/atanhl()