Skip to content
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

[ratio.ratio] Use defined function for sign #5925

Merged
merged 1 commit into from Nov 8, 2022

Conversation

JohelEGP
Copy link
Contributor

Resolves #5879.
Before and after:
1667143015
1667143022

Is it OK to only use math font on the relevant subexpressions?

source/meta.tex Outdated
@@ -2498,7 +2498,7 @@
\tcode{N} and \tcode{D}:

\begin{itemize}
\item \tcode{num} shall have the value \tcode{sign(N) * sign(D) * abs(N) / gcd}.
\item \tcode{num} shall have the value \tcode{$\text{sgn}(\tcode{N})$ * $\text{sgn}(\tcode{D})$ * abs(N) / gcd}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't use \text but something like \operatorname.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(If we used those more often, we would add \DeclareMathOperator to the preamble.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before, after and after-after:
1667143015
1667143022
1667874624

@tkoeppe tkoeppe merged commit 6e035b5 into cplusplus:main Nov 8, 2022
@JohelEGP JohelEGP deleted the ratio.ratio branch November 8, 2022 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ratio.ratio] What is sign?
2 participants