exception

Contains error information used by matherr

Service:Math
Defined In:math.h

Structure

  struct exception  
  {  
     int       type ;  
     char     *name ; 
     double    arg1 ;  
     double    arg2 ;  
     double    retval ; 
  };
  

Fields

type
Specifies the error type.

The type field contains one of the following values:

Value

Meaning

DOMAIN

A domain error has occurred, such as sqrt (-1e0).

SING

A singularity would result, such as pow (0e0,-2).

OVERFLOW

An overflow would result, such as pow (10e0,100).

UNDERFLOW

An underflow would result, such as pow (10e0,-100).

TLOSS

Total loss of significance would result, such as exp(1000).

PLOSS

Partial loss of significance would result, such as sin(10e70).

name
Points to a string containing the name of the function that detected the error.
arg1
Specifies the first argument to the function.
arg2
Specifies the second argument to the function.
retval
Specifies the default return value. This is the only field that can be changed by a developer-supplied version of matherr.