Opened 13 years ago

Last modified 13 years ago

#587 closed task

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

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

Description (last modified by felix winkelmann)

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 signaling an error in this case. This might break existing code that relies on +NaN being returned.

Change History (1)

comment:1 Changed 13 years ago by felix winkelmann

Description: modified (diff)
Note: See TracTickets for help on using tickets.