Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplification for quantities #16

Closed
sharkdp opened this issue Mar 28, 2017 · 0 comments
Closed

Simplification for quantities #16

sharkdp opened this issue Mar 28, 2017 · 0 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented Mar 28, 2017

A few examples (X = unit that does not have dimension length):

50 cm/m   => 0.5        (already supported)
50 X*cm/m => 0.5 X
1 mm/m    => 0.001      (already supported)
1 X*mm/m  => 1mX        (adapted SI prefix)

Derived rules:

  • If a whole physical dimension can be canceled out (length above) => remove all units of this dimension and transfer the SI prefix to the new units (and/or re-scale the numerical value)

(WIP)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant