Skip to content

"Tracking" units through calculations #31

Answered by KenKundert
rgilton asked this question in Q&A
Discussion options

You must be logged in to vote

The whole unit propagation issue is a deep hole with many gotchas. It is outside the scope of QuantiPhy to address it. There are other packages, such as pint, that specialize in units. However it is possible to add unit propagation to QuantiPhy that works in typical cases when the problem is constrained.

Take a look at my unit_propagation repository. You can start with that and add rules (simplifications) to fit your situation. The package is largely an experiment for me, so it is not in pypi. It includes a simple RPN calculator demonstrator program that you can used to quickly get a feel for the capabilities and limitations of the package.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rgilton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants