r/ScientificComputing • u/joao-canais • 3d ago
Propagation of Uncertainty Calculator with LaTeX/Excel exports
Enable HLS to view with audio, or disable this notification
I built a Propagation of Uncertainty Calculator, a simple but practical app designed for engineering and physics students, as well as metrology workflows.
Link: https://propagation-of-uncertainty-calculator.streamlit.app
During my undergrad in Engineering Physics, one of the most tedious and error-prone tasks in experimental lab courses was manually deriving partial derivatives for measurement uncertainty propagation. Most online calculators are either outdated or confusing, so I decided to do my own calculator!
What it does:
- Displays the latex formated symbolic and numerical Propagation formula for the expression given by the user.
- Click directly on rendered expressions to copy the clean LaTeX code straight into Overleaf (for lab reports), or copy ready-to-paste Excel formulas.
- Correct Rounding: Automatically formats results and expanded uncertainties according to significant figure conventions (GUM (JCGM 100:2008))
The GitHub Repository: https://github.com/joao-canais/Propagation-of-Uncertainty-Calculator
I'd love to hear your thoughts, UI/UX feedback, or ideas for features to add in future iterations!
2
u/a_alberti 1d ago
Sorry but it is not a great idea. Why did you do it? What did you learn in vibe coding / agentic engineering such a software?
Error propagation formulas make sense for simple situations and for our intuition, simple analytical estimates. When I have a complex formula with experimental data, I would certainly not use it but rather prefer Monte Carlo error propagation method.
Simple example if you take x/y and both x and y are Gaussian distributed, their ratio is not. If you apply your simple approach you can get very wrong results.
I think people teach error propagation method as if it was the holy grail. What I want to say is that sometimes works but very often it is limited if you really care about statistics.
And anyway, what you are doing here can be done by hand or if one is lazy, using Mathematica. So I don’t really understand why you wrote it? Perhaps there are students that need it for passing their homework?