resultwizard / ResultWizard

Intelligent interface between Python-computed values and your LaTeX work.
https://resultwizard.github.io/ResultWizard
MIT License
7 stars 0 forks source link

Feature list ValueWizard #16

Open Splines opened 9 months ago

Splines commented 9 months ago

What we wish to have as features:

Edit:

TODO

paul019 commented 9 months ago
Res(1.5, 0.1, r"\milli\meter")      # 1.50 +- 0.10

Res(0.0005, 0.1, r"\meter", autoprefix=True)    # 0.5 mm oder 500 um

Res(0.5, sys=0.1, stat=0.2)

Res(0.5, errors=[Error(0.2, "stat1"), Error(0.3, "stat2"), Error(0.4, "sys")])

Res(1.5, 0.1, r"\milli\meter", sigfigs=2)   # 1.5 +- 0.1

Res(1.5, 0.1, r"\milli\meter", decimal_places=2)    # 1.50 +- 0.10

vw.res("laenge", 1.5, r"\mm")

wiz.res("abw", 1.5, r"\sigma")

wiz.resint("i", i)

wiz.printByDefault()
Splines commented 9 months ago

@paul019 What do you think? Do we want to allow that uncertainties can have units separated from the value? E.g. when an uncertainty is so small, you'd want to have "mm" instead of "m" just for the uncertainty. Is that a valid use case? It would definitely make the logic more complicated which is why I'm a bit reluctant right now.

Edit: we discussed this in person and came to the conclusion that this is not necessary. That is, we want uncertainties to be represented in the unit of the main value.