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

derived unit coercion #3

Open
mkhan45 opened this issue Feb 15, 2021 · 3 comments
Open

derived unit coercion #3

mkhan45 opened this issue Feb 15, 2021 · 3 comments
Labels
enhancement New feature or request
Projects

Comments

@mkhan45
Copy link
Owner

mkhan45 commented Feb 15, 2021

LaTeX output should be able to show derived units. The print expression should then look like

expr = ? (Unit1, Unit2)

@mkhan45
Copy link
Owner Author

mkhan45 commented Feb 15, 2021

For now I'm just adding a unit hint so just

expr = ? Unit

@mkhan45
Copy link
Owner Author

mkhan45 commented Feb 15, 2021

Unit hints in d6eef53

@mkhan45 mkhan45 added the enhancement New feature or request label Feb 17, 2021
@mkhan45 mkhan45 added this to Low Priority in Project Feb 20, 2021
@mkhan45
Copy link
Owner Author

mkhan45 commented Feb 21, 2021

What I mean by derived unit coercion is that the program should figure out how to construct the output reasonably by using the given derived units.

Example:
9.8 m/s^2 * 40 kg * 4 seconds and Newton as a preferred unit should output with unit Newton seconds. This example would be pretty easy to implement by just trying to divide the unit by Newtons.

4 seconds / (9.8 m/s^2 * 40 kg) with Newton as a preferred unit should output with unit seconds/Newtons.

I don't think this problem is perfectly solvable but it's still worth implementing with hard Unit hints as an override

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Project
Low Priority
Development

No branches or pull requests

1 participant