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

Show asymmetric uncertainty as symmetric when upper and lower uncertainties are the same #688

Open
kh296 opened this issue Aug 23, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kh296
Copy link

kh296 commented Aug 23, 2023

If upper and lower values for an asymmetric uncertainty are the same, they're currently shown as superscript and subscript:

\num{20.01(2:2)} gives approximately the same as $20.01^{+0.02}{-0.02}$

There could perhaps be a package option to retain the current behaviour, or to recognise automatically when the two uncertainties are the same, and show them as a symmetric uncertainty:

\num{20.01(2:2)} should give approximately the same as $20.01 \pm 0.02$

This could be useful, for example, when autogenerating tables of values and their uncertainties, as the user could use the syntax for asymmetric uncertainties in all cases, without needing to check whether lower and upper uncertainties are the same or different.

@josephwright josephwright added the enhancement New feature or request label Aug 23, 2023
@josephwright josephwright self-assigned this Aug 23, 2023
@josephwright josephwright added this to the v3.4 milestone Aug 23, 2023
@Gerald-Meyers
Copy link

This is not necessarily always ideal, and in table environments I would want the upper and lower bounds to display separately. Perhaps as an option? Eg always-display-uncertainty-separately=False usually.

@josephwright
Copy link
Owner

@Gerald-Meyers I'll definitely have this as an option and off as standard.

@kh296
Copy link
Author

kh296 commented Sep 8, 2023

Having this as an option sounds good to me! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants