Opened 14 years ago
Last modified 14 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 )
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.
Note: See
        TracTickets for help on using
        tickets.
    
