.


:




:

































 

 

 

 


Hypot, hypotf -




#include <math.h>

double hypot(double x, double y);

float hypotf(float x, float y);

hypot sqrt(x**2 + y**2) , (, y). hypotf .

. hypot HUGE_VAL errno ERANGE.

matherr.

hypot, hypotf ANSI C - .

Ilogb, ilogbf -

#include <math.h>

int ilogb(double val);

int ilogbf(float val);

m*2. ilogb ilogbf val p. frexp frexpf ilogb ilogbf, m.

ilogb ilogbf , . 0, -INT_MAX (INT_MAX limits.h). val NaN, INT_MAX.

ilogb, ilogbf ANSI C System V Interface Definition.

Infinity, infinityf -

#include <math.h>

double infinity(void);

float infinityf(void);

infinity infinityf , IEEE .

Isnan, isnanf, isinf, isinff, finite, finitef - exception

#include <ieeefp.h>

int isnan(double arg);

int isinf(double arg);

int finite(double arg);

int isnanf(float arg);

int isinff(float arg);

int finitef(float arg);

- .

:

zero , - .

subnormal , .

normal .

infinity , ( ) .

NAN , , .

isnan 1, nan. isinf 1, infinity. finite 1, zero, subnormal normal. isnanf, isinff finitef , isnan, isinf finite, .

Ldexp, ldexpf -

#include <math.h>

double ldexp(double val, int exp);

float ldexpf(float val, int exp);

ldexp val*(p**exp). ldexpf .

ldexp ldexpf .

errno ERANGE. ldexp ldexpf 0.0. ldexp HUGE_VAL .

ldexp ANSI C. ldexpf .

Log, logf -

#include <math.h>

double log(double x);

float logf(float x);

, e ( e - , 2.71828...). log logf .

, matherr.

. , -HUGE_VAL errno EDOM. matherr.

log ANSI C. logf .





:


: 2016-11-24; !; : 6590 |


:

:

, , .
==> ...

1898 - | 1541 -


© 2015-2024 lektsii.org - -

: 0.01 .