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

Hz to rad/s? #531

Closed
cmichelenstrofer opened this issue Apr 26, 2022 · 1 comment
Closed

Hz to rad/s? #531

cmichelenstrofer opened this issue Apr 26, 2022 · 1 comment

Comments

@cmichelenstrofer
Copy link
Contributor

cmichelenstrofer commented Apr 26, 2022

I tried to convert frequency to angular frequency but get the same numeric value with different units:

julia> uconvert(u"rad/s", 1u"Hz")
1 rad s⁻¹

What am I doing wrong? The expected result is 2π rad/s.

@cmichelenstrofer
Copy link
Contributor Author

cmichelenstrofer commented May 1, 2022

Oops, embarrassing mistake. ω and f are not the same quantity in different units... What I want is really a change of variables, not a unit transformation. 🙃

I have spent the last few days fully understanding the code (good way to learn Julia!) and reading (way too many) papers on the status of angle dimensions in the SI system, the issues it causes for software such as this one, the implications to existing mathematical and physical equations of adding angle as a dimension, the "2π Problem", the conflation of frequency and angular velocity... interesting world the world of units!

One idea (that I don't recommend, just a thought experiment) is to have Angles as a dimension in addition to the SI dimensions, and use UnitfulEquivalences.jl to define an equivalence that relates dimensions of frequency, period, and angular frequency, e.g. this equation.

Anyways closing this issue.

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