I've written a mathematically-oriented and computatioally-intensive application in Rust. While the mathematical theory is not necessarily difficult, keeping the various quantities clear required some care.
For this reason, I'm refactoring it to clear it up. I've created some custom structs to wrap various mathematical types.
For example, I created a type to write PDFs (probability density functions)