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

Weird issue with amp, volt, kwh #291

Open
mattfbacon opened this issue Apr 20, 2024 · 1 comment
Open

Weird issue with amp, volt, kwh #291

mattfbacon opened this issue Apr 20, 2024 · 1 comment

Comments

@mattfbacon
Copy link

> w = 1 amp * 1 volt
1 watt
> c = 1 kwh
1 kWh
> (w * 1 hour) / c
1 amp volt hour / kWh
> (w * 1 hour) / c to unitless
0.001

What is going on here? I expected to get 0.001 automatically, without needing to unitless, because they are both in the same quantity.

@mattfbacon
Copy link
Author

It looks like ampere is considered as a fundamental dimension in one but not the other.

> @debug (1 amp * 1 volt * 1 hour)
1 amp (amps, = 1 ampere) * volt (volts, = 1000/1000 ampere^-1 kilogram meter^2 second^-3) * hour (hours, = 3600 second) (base 10, auto, simplifiable)
> @debug (1 amp * 1 volt * 1 hour) to Wh
3600000000/3600000000 Wh (= 3600000/1000 kilogram meter^2 second^-2) (base 10, auto, not simplifiable)

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