#7828: There should be a top-level sign() function.
-----------------------------------+----------------------------------------
Reporter: robertwb | Owner: AlexGhitza
Type: defect | Status: positive_review
Priority: minor | Milestone: sage-wishlist
Component: algebra | Keywords:
Author: Karl-Dieter Crisman | Upstream: N/A
Reviewer: John Cremona | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
Comment(by kcrisman):
> I did wonder whether it would be better to return a Sage integer rather
than an int?
Hmm, that is an interesting thing I should have considered but did not.
As long as we are consistent, that's probably the main thing, though it is
often helpful to return something that has the Integer methods... Are
there any current sign()/sgn() methods that return something other than an
int?
Usually one just adds or multiplies it with Integers, but I could imagine
that sometimes the output itself would be important and that it should
also then be an Integer. If so... another ticket, or on this one?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7828#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.