惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

Some TeX Developments

Moving on from achemso ltx-talk: A new class for presentations ConTeXt in TeX Live The tagging project and beamer LearnLaTeX in more languages The mythical LaTeX3 Engine news from the LaTeX Project Tagging project progress Get the Jag: from x-type to e-type
Uncertainties in siunitx
Joseph Wright · 2023-08-02 · via Some TeX Developments

Right from the first version, siunitx has supported uncertainty values in numbers. Uncertainties are a key piece of information about a lot of scientific values, and so it’s important to have a convenient way to present them.

The most common uncertainty we see is one that is symmetrical, a value plus-or-minus some number, for example 1.23 ± 0.04. This could be a standard deviation from repeated measurement, or a tolerance, or derived some other way. Luckily for me, the source of such a value doesn’t matter: siunitx just needs to be able to read the input, store it and print the output. For both reading and printing, siunitx has two ways of handling these symmetrical uncertainties

  • A ‘long’ form, in which the uncertainty is given as a complete number, for example 1.23 ± 0.04
  • A ‘compact’ form, in which the uncertainly is shown relative to the digits in the main value, for example 1.23(4)

In version 3 of siunitx, I took that existing support and added a long-requested new feature: rounding to an uncertainty. That means that if you have something like 1.2345 ± 0.0367 and ask to round to one place, the uncertainty is first rounded (to 0.04), then the main value is rounded to the same precision (to 1.23).

Building on that, v3.1 added the idea of multiple uncertainties. These come up in some areas (astronomy is one, particle physics another) where there are clear sources of distinct uncertainty elements. Supporting multiple uncertainties also means supporting descriptions for them: if you are dividing up uncertainty, you likely want to say why. So in v3.1, you can say 1.23(4)(5) or 1.23 ± 0.04 ± 0.05, and set up the descriptors, and have something like 1.23 ± 0.04 (sys) ± 0.05 (stat) get printed. I’ve not had any feedback yet on this new feature: fingers-crossed that means it all works 100%!

Now, for v3.3, I’ve looked at another long-standing request: asymmetric uncertainties. For this release, I’ve kept this area simple, as it’s one I know less about. There’s just a ‘compact’ input form, and one (compact) output form. So we can input 1.23(4:5) and get in TeX terms $1.23^{+0.04}_{-0.05}$ typeset. Asymmetric and symmetric uncertainties can be intermixed, and you can have multiple asymmetric ones. I’m hoping this feature gets picked up by users, and that I get some idea of what to do next. I suspect there might be alternative output formats requested, and I wonder whether a ‘long’ input form 1.23 + 0.04 - 0.05 will be asked for: I’ve not done that yet as it’s more tricky if the user misses one part out!

Hopefully, with the introduction of asymmetric uncertainty support, siunitx covers just about all types of uncertainty in scientific data: aiming to be a comprehensive (SI) units package, after all!