Opened 13 years ago

Last modified 13 years ago

#587 closed task

CR: expt should signal error on domain error — at Initial Version

Reported by: felix winkelmann Owned by:
Priority: minor Milestone:
Component: core libraries Version: 4.7.x
Keywords: expt Cc:
Estimated difficulty:

Description

expt returns +NaN when called with a negative first argument and a non-integer second argument. With a full numeric tower this would be a complex number, but those are of course not supported in the core system.

I suggest signalling an error in this case. This might break existing code that relies on +NaN being returned.

Change History (0)

Note: See TracTickets for help on using tickets.