NumericException - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Numerical Computations : Maple Numerics : Functions : NumericException

NumericException

return the exception string of an event

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

NumericException(event)

Parameters

event

-

symbol; represents one of six numeric events

Description

• 

The NumericException(event) function returns the exception string associated with event.

Examples

NumericException'division_by_zero'

numeric exception: division by zero

(1)

MyHandler := proc( f, ops, defVal )
    if NumericEventLocation = 'MyProc' then
        error NumericException( 'division_by_zero' );
      else
        NumericStatus( 'division_by_zero' = false );
        defVal;
    end if;
end proc:

NumericEventHandler'division_by_zero'=MyHandler

division_by_zero=default

(2)

MyProc := proc(a,b) a/b; end proc:

1.0.

Float∞

(3)

MyProc1.,0.

Error, (in unknown) numeric exception: division by zero

See Also

error

events

numerics

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam