A colleague was using NumericStatus to get information about the NumericEvents. But he noticed the following strange behaviour:

> restart:

> NumericStatus( inexact, real_to_complex );

> sqrt(-2.0);  NumericStatus( inexact = false, real_to_complex = false );

> sqrt(-2.0);  NumericStatus( inexact = false, real_to_complex = false );

Here, the inexact status flag is incorrect. A similar case is:

> restart:

> NumericStatus( inexact, real_to_complex );

> log[10](evalf(-infinity));  NumericStatus( inexact = false, real_to_complex = false );

> log[10](evalf(-infinity));  NumericStatus( inexact = false, real_to_complex = false );

> ?NumericStatus

Here, the real_to_complex status flag suddenly dissapears... I think it is a bug, as I cannot explain why this behaviour appears as it does. What do you think? Thanks for any reply. Regards, Franky.

View 320_NumericStatus.mw on MapleNet or Download 320_NumericStatus.mw
View file details


Please Wait...