804_____________________________________________ 14

14.5.4 _matherr  _matherrl   



ftinclude <math.h>
int matherr(struct exception *e);

int matherri(struct exception! *e) ;



 _matherr  _matherrl (  long double)  
       , 
     (   -
   ..).    ,   
       ,   
     , ,  -
  0.       signal.

  _matherr  _matherrl    -
,        . 
     ,   -
 .           
   .    -
 _matherr  _matherrl    ,    0.
     .

       :

struct exception {

int   type;

char *name;

double argi, arg2, retval;

In-
struct exception! {

int   type;

char *name;

long double argi, arg2, retval;

};

  type   .  name  
,   ,    .  argi
 arg2    ,    (  
 ,      argi).  retval  -
    .     .

 ,    type,     -
 :

DOMAIN             ; -
, log(-l)

SING               ; ,
pow(0, -2)

OVERFLOW        , 
DBLJMAX ( LDBLJMAX); , ()

UNDERFLOW       ,  
DBLJMIN ( LDBL_MIN); , (-)

TLOSS                
 ; , sin(10e70)