-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "sign" method #3630
base: development
Are you sure you want to change the base?
Add "sign" method #3630
Conversation
f5087a0
to
5b59ebe
Compare
More descriptive since it gives the value of the sign *bit* and wraps mpfr_signbit. Clears the way for us to use "sign" for wrapping various *_sgn functions from GMP and MPFR. Also simplify remove unused sign(RRi).
Either remove now-redundant methods or rename "sign" variables to "sgn".
I'll be honest, I don't think I like |
We already have two packages ( There were a number of packages that used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,26 @@ | |||
doc /// | |||
Key | |||
sign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a shared symbol, then it should be documented similar to other shared symbols, with links to nodes in other packages that enhance it.
@@ -72,7 +72,6 @@ export { | |||
"mbRing", | |||
"minimalModel", | |||
"normalForm", | |||
"sign", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed it from here, but several places in the documentation link to sign
, which now goes to an irrelevant node in Macaulay2Doc.
@@ -33,7 +33,6 @@ export { | |||
"isCDG", | |||
"foataBijection", | |||
"ord", | |||
"sign", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same problem here, this change mangles the documentation links to sign
.
I'm amazed that we don't have this already!
We add a$\frac{z}{|z|}$ for nonzero complex $z$ ). For example:
sign
method that wraps the corresponding functions in GMP and MPFR (and returns